This topic is now archived and is closed to further replies.


C++ Builder MDI question (not game related)

Recommended Posts

I am new to using Borlands C++ Builder but I am forced to for a class since our school does not have licenses for MSVC++. My problem is this: I have an MDI application with a child window that has a list box in it. There is also a dialog that pops up and has you enter some text. When you click the OK button on the dialog I need to reference the listbox. I cannot figure out how to get a reference to the listbox on the mdi child window. after some snooping through headers i thought that something like this would work... TForm *Blah = App->MainForm->ActiveMDIChild; Blah->LstBox->Items->whateverblahblahblah; this creates an error between types on the first line... However ActiveMDIChild should be a TForm*???? is there something i''m missing here? Thanks Jason

Share this post

Link to post
Share on other sites