Forum > Graphics
Visual Component List Box ?
Weitentaaal:
Hello Guys,
so i wanted to create myself a List wich changes a Runtime.
In the attachment u can see how i currently handled it. I want to change this to 1 List where i can add for Example a Group box and then the next components i add will get added below the last one. If there are to much then a scrollbar should appear to go through all those fields. Not every field is shown for certain operations.
Is this somehow possible ?
Handoko:
Sorry, cannot fully understood what you said. Did you mean the items in "Anzahl Zonen" will be changed if user change the selected item in "CO2 oder VOC"?
Weitentaaal:
Ignore the File.
I wanted to create a ListBox with scrollbar, but instead of Strings i wanted to add Controls like a TEdit or a GroupBox. The List has a maximum height (Length) wich when it getws full a scrollbar should appear.
Something like the normal ListBox but with Visual Components instead.
For Example if u Check a checkbox or press a button some information(the components) will appear in the ListBox.
Edit: To understand my problem: in my attached Picture u can see some Groupboxes. But when i need to extend those boxes there wont be enough space to display it so i thought about a List where u can scroll down to work around my space problems
dseligo:
Put your controls in a TScrollBox (it is in Additional tab in Lazarus' controls).
lucamar:
Rather than a ListBox, which is somewhat specialized to manage strings, why don't you use a normal container like, say, a TScrollBox or even a TFlowPanel?
One might understand if you wanted a somewhat "extended" list of strings (e.g. with a check box for each string, like a TCheckListBox), but for arbitrary controls ...
Note also that you can easily extend a container with a normal object list, if you want it to manage the contained controls/components, so (mis-)using a list box shouldn't really be your first option, IMHO.
Navigation
[0] Message Index
[#] Next page