Advertisement

C++ Builder MDI question (not game related)

Started by October 04, 2000 03:56 PM
-1 comments, last by AbsoluteZero 24 years, 3 months ago
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

This topic is closed to new replies.

Advertisement