Listbox not enabled
Posted on 2014-09-11
Using Borland Builder C++: I have placed a listbox on in a Panel on my form, together with a button.
On startup the listbox appears, and functions as expected - ie I can make a selection and the button causes the appropriate code to execute. On startup, it's the only control I can use, but I don't want it yet.
But - I don't want the listbox at all on startup. I need it much later in the program. I don't know how to achieve this.
I tried setting the panel to not visible - so it's not there on startup - good. But when I try to use the panel/listbox later on, I can't make it function. I set the panel to visible - I can see it, but it's not populated with the text lines any more. And it doesn't have focus - doesn't respond to keyboard / mouse.