R
Rich S
Hi,
I want to create a list collection of complex frames. I.e. I want a listbox
type of container, where the entries are complex ( each entry contains
individual buttons / images / text ).
My original idea was to use a custom listbox, and each item in the list
would be an indivudual Form. The custom listbox could set the size and
position of each item in an overridden "DrawItem" function. The
"MeasureItem" function was overridden to get the size of the Form ( and
hence the listbox would correctly set the scrollbar etc.. ).
However, as you cannot make the listbox a parent of the forms it doesnt seem
like a good solution. I've already knocked up a quick app, but wasnt sure
if it was worth continuing with my current way of doing it.
The reason I liked this idea, was that you could construct a base Form for
use in the custom listbox. Then derive from that and you could contain all
sorts of complex forms in the listbox. This would make it real easy to add
new things.
Is there a better way of doing this ? Or am I going to have to get dirty
and manually create my controls ( buttons / etc .. ) inside code for each
entry in my custom listbox ?
I suppose what I want are multi MDI containers inside my toplevel window.
Please help.
regards,
R.
I want to create a list collection of complex frames. I.e. I want a listbox
type of container, where the entries are complex ( each entry contains
individual buttons / images / text ).
My original idea was to use a custom listbox, and each item in the list
would be an indivudual Form. The custom listbox could set the size and
position of each item in an overridden "DrawItem" function. The
"MeasureItem" function was overridden to get the size of the Form ( and
hence the listbox would correctly set the scrollbar etc.. ).
However, as you cannot make the listbox a parent of the forms it doesnt seem
like a good solution. I've already knocked up a quick app, but wasnt sure
if it was worth continuing with my current way of doing it.
The reason I liked this idea, was that you could construct a base Form for
use in the custom listbox. Then derive from that and you could contain all
sorts of complex forms in the listbox. This would make it real easy to add
new things.
Is there a better way of doing this ? Or am I going to have to get dirty
and manually create my controls ( buttons / etc .. ) inside code for each
entry in my custom listbox ?
I suppose what I want are multi MDI containers inside my toplevel window.
Please help.
regards,
R.