Can ListBox support variable-height rows

  1. 2 weeks ago

    Stephen G

    Oct 9 Pre-Release Testers, Xojo Pro
    Edited 2 weeks ago by Stephen G

    I'm thinking about redesigning an app that has all manner of variable-height UI tables and headers (see image below). Any way to do this with ListBox, or any Xojo add-on?

    -image-

    not sure why my DropBox link to the above jpg isn't being displayed, but here it is again:

    https://www.dropbox.com/s/6sbcbs8cg9m0hur/Screen%20Shot%202017-10-09%20at%2012.28.28%20PM.jpg?dl=0

  2. Karen A

    Oct 9 Pre-Release Testers

    I can't see your image but I have a listbox sublass that allows you to merge cells across rows that might get you where you want to go.

    See:
    http://katkosoft.com/Mergeable%20Listbox%20Page/MergeableCellListbox.html

  3. Jeff T

    Oct 9 Midlands of England, Europe

    Assemble it as HTML and display it in an HTMLviewer?
    Much depends upon whether you expect to edit the text.
    If not, then variable height like this is easy.

  4. Douglas H

    Oct 9 Pre-Release Testers, Xojo Pro

    @StephenGreenfield I'm thinking about redesigning an app that has all manner of variable-height UI tables and headers (see image below). Any way to do this with ListBox, or any Xojo add-on?

    Take a look at DataView as it can do that plus LOTS more you probably did not even think about yet but will appreciate once available to you.

    Just a user/customer here; no vested interest.

  5. Stephen G

    Oct 9 Pre-Release Testers, Xojo Pro

    Turns out I WOULD need to live (in-place) edit text in the variable height rows / cells.

    I use this style of UI all the time -- I'm frequently amazed that more list / table classes don't support it out-of-the-box.

  6. Michel B

    Oct 9 Pre-Release Testers, Xojo Pro

    @Jeff T Assemble it as HTML and display it in an HTMLviewer?
    Much depends upon whether you expect to edit the text.
    If not, then variable height like this is easy.

    This is very easy to do if one haas a minimum of HTML knowledge. Making a cell editable is not terribly difficult either.

    The most complex is the interface to exchange data between the Desktop app and the HTML within the HTMLViewer. On Mac it is relatively simple with StatusChanged, but on PC using TitleChanged is limited to 4K, so one may have to send ou chunks.

  7. shao s

    is not verified Oct 12 Sudbury, Ontario, Canada

    On macOS it is easier because you can get results returned from Javascript (declares are on this forum and MBS has plugins for it, plus I think also for other platforms too)

  8. Emile S

    Oct 12 Europe (France, Strasbourg)

    (my) Stupid questions:

    How come that enarly everyone want this feature (and others) and there is no direct support to do that ?

    What is the situation on other Development Tools ?
    Do they need workarounds / plugins too ?

  9. Beatrix W

    Oct 12 Pre-Release Testers Europe (Germany)

    @Emile Schwarz: a listbox is very very complicated. The Xojo listbox is a jack-of-all-trades and not very fast. I spent a ton of time with the piDog listbox which in the end was too slow. Then I helped Thomas Tempelmann testing his implementation of the macOS listbox. In both cases the code was way beyond my level of understanding. Now the listbox with variable-height rows surely is many times more complex. For Visual Basic there is a large market of components. Xojo is way too small for them to support.

  10. Emile S

    Oct 12 Europe (France, Strasbourg)
    Edited 2 weeks ago by Emile S

    Thanks Beatrix.

    What strange world.

    Fortunately, all industries does not behave that way (in fact, I hope so).

    Edit:
    I really correctly read Beatrix answer, but I do not wanted to share my feeling about what is implied in it.
    I prefer the deny and stay with a naive thinking (No, companies does not sold buggy stuff / Xojo is not a prototyping application creator where you have to buy addons / use tons of declare to create applications that really roll).

or Sign Up to reply!