Re: Buiding a form inside another form
"Irwan" <[email protected]>
| Newsgroups | gmane.comp.lang.delphi.programming |
|---|---|
| Message-ID | <3F1CF42E.18482.202D75@localhost> |
On 21 Jul 2003 at 15:41, Axel Canicio wrote:
> Hi again,
>
> Thanks for your answer.
>
> I have a form that has a tmemo in it (a kind of script editor), and I'
> like to reuse the whole form (with its menu dialog), by inserting it
> in a Ttabsheet control. That way it minimizes the number of active
> windows in my application. Then is there a way to put a TMenu inside a
> TTabsheet ?
>
> Thanks
> Axel
I don't think you can put a tmenu inside a ttabsheet (CMIIW). maybe other delphi
gurus can help you with this, but not me :)
I have a different approach, why don't you assign a different tmenu each time the
user changes the page?
maybe you can use it like this:
procedure TForm1.PageControl1Change(Sender: TObject);
begin
case pagecontrol1.ActivePageIndex of
0 : form1.Menu := mainmenu1;
1 : form1.Menu := mainmenu2;
2 : form1.Menu := mainmenu3;
end;
end;
end.
Hope it helps
Irwan
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Free shipping on all inkjet cartridge & refill kit orders to US & Canada. Low prices up to 80% off. We have your brand: HP, Epson, Lexmark & more.
http://www.c1tracking.com/l.asp?cid=5510
http://us.click.yahoo.com/GHXcIA/n.WGAA/ySSFAA/i7folB/TM
---------------------------------------------------------------------~->
CodeCoffer - new Delphi code protection Tool!
http://www.delphicollection.com/public/CodeCoffer.htm
---------------------------------------------------------------
Unsubscribe:[email protected]
List owner:[email protected]
---------------------------------------------------------------
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/