Skip to main content
GameDev.net gamedev.net
🔒 Locked

Form problem in BCB5

Started by Kaesebrot Jul 25, 2002 at 5:36 AM 2 replies 1k views
Original Post
Kaesebrot
Kaesebrot
Hi, can somebody tell me how to create a form wich is always on top of the main-form.. TForm3 *vForm; vForm = new TForm3(Application); vForm->Parent = Form1; vForm->Show(); If I do this, the new Form is inside the MainForm and that''s not, what I want.. thats the reason why I dont use MDIForms. If I don''t set the parent, the form can move outside, but it''s not always on top of the main form. I don''t want do set fsStayOnTop, because I don''t want the form stay on top off all applications..
amreshr
amreshr
Did you try Form3->ShowModal();
Or do you want smt else like accessing form1 while form3 is visible, but on top of form1?
dArkteMplaR of Delphi
Kaesebrot
Kaesebrot
quote:

Or do you want smt else like accessing form1 while form3 is visible, but on top of form1?


yes, I want form1 to be usable during form3 is visible..


Now, I have an additional question (I don't want to start a new thread).. I have a frame (TFrame) inside my form. Inside this frame I placed a button.. I want the following: If the user clicks on this button, the the frame should be deleted...
I've tried the following...

delete this;

and

((TComponent*)this->GetOwner())->RemoveComponent(this);

but it doesn't work...

[edited by - Kaesebrot on July 25, 2002 7:14:02 AM]
Kaesebrot
Kaesebrot
cool

All my problems are blown away... fsStayOnTop does exactly what I want, and my second problem is solved, too...

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.