I’m using the following in the opening event of a Web 2.0 Listbox to achieve cells with the required vertical size.
Var row, col as Integer
me.ColumnCount = 3
me.Height = 380
For Row = 0 to 20
style = New WebStyle
Style.Value("padding-top") = "0"
Style.Value("padding-bottom") = "0"
Style.Value("padding-left") = "2"
For col = 0 to 2
Var cellRenderer As New WebListBoxStyleRenderer(style, "Hello World!")
cellRenderer.CellOnly = True
Me.CellValueAt(row,col) = cellRenderer
Weblistbox is probably the most-used component in webapp development. It is for sure in my case. As far as I know most of us use Xojo web for Webapp development NOT for Website development. In some respects I believe they’ve taken some steps in the wrong direction especially for a RAD tool. I like having better access to CSS settings but Web 1.0 was a much more efficient tool for building business applications. Let’s hope after the release of Android that Web 2.0 gets the love it deserves.
That and the fact that the bug base is so full of junk, nobody has cleaned out the Web 1.0 requests and bugs. It all stems from the fact that the theory of “bug base” is good but the successful execution is lacking.
I waited for long for a good weblistbox, then I made a websdkcontrol with a bootstrap table.
works fine, I can fix almost everything and I’m happy with it
I even have only one control with all the sql access to the database.
this made me late by 2 months in my planning but now I have something I want
the only thing to code is the pagination system for long lists.
for now I don’t need it but it may come.
I’m now making a control to have a small text editor for the textarea.
I need some methods to convert rtf to html and back.
styledtext is not available for xojo web…
if you need a good listbox you should buy graffiti suite it’s all in.
I bought a license for Graffiti but found the load times in the IDE we’re borderline untenable and I didn’t have time to break up the resources to only the two or three that I actually needed (although I assume that’s possible). Very robust product though.
what I like very much with my websdkcontrol is that it is very fast. some 10x the weblistbox…
may be it will slowdown once I have incorporated the pagination methods.
I can still use the standard weblistbox if I need long lists, and mine for shorter lists but with infinite possible options…
I did not buy graffiti, but heard by some forum users that it feels slow effectively.
I noticed that the main slowdown in the IDE comes from the DrawControlInLayoutEditor event.
if you remove it, the control will look only like a rectangle in the IDE, but it will be faster as hell.
Ivan. If you’re suggesting Xojo will ever be able to compete with the multitude of pure web development tools out there I strongly disagree. Web 1 was a solid, easy to use RAD development tool for creating web applications. There was/is no real competition for it in that specific market. Attempting to compete in another otherwise totally saturated market while abandoning their loyal customer base, well in my humble opinion that’s just a fools errand. I’d pay real money for a separate, well supported RAD tool based on Web 1 and from what I’ve heard/read I’m not alone.