Thread View: borland.public.cppbuilder.oodesign
3 messages
3 total messages
Started by Shannon Peterson
Wed, 16 Jun 2004 16:28
Overloading FormShow
Author: Shannon Peterson
Date: Wed, 16 Jun 2004 16:28
Date: Wed, 16 Jun 2004 16:28
7 lines
1066 bytes
1066 bytes
Does anyone know if one is able to Overload the FormShow function using TForm so that I can call FromShow normally and call it with extra parameters??? thanks shannon
Re: Overloading FormShow
Author: Mark Guerrieri
Date: Sat, 19 Jun 2004 06:08
Date: Sat, 19 Jun 2004 06:08
15 lines
1423 bytes
1423 bytes
TForm (or TCustomForm, not sure which) should defind the protected method DoShow wheich calls the OnShow hadler, if I remeber correctly. You can override DoShow to do whatever you want... Mark "Shannon Peterson" <speterson@ae-solutions.com> wrote in message news:40d0751e$1@newsgroups.borland.com... > Does anyone know if one is able to Overload the FormShow function using > TForm so that I can call FromShow normally and call it with extra > parameters??? > > thanks > > shannon
Re: Overloading FormShow
Author: Shannon Peterson
Date: Mon, 21 Jun 2004 14:13
Date: Mon, 21 Jun 2004 14:13
45 lines
2330 bytes
2330 bytes
Well I've tried to overrige it but with no success. how would you do it. I would like to say override the FormShow and FormShowModal functions and pass in a AnsiString. the Calls that would be accepted would be as follows. Form2->Show(); Form2->ShowModal(); Form2->Show(this, "string"); Form2->ShowModal(this,"string"); "this" is a TObject pointer Form2 is the form I would like to open with the extra parameter it can be opened from lets say Form1. What I need is how do I set up the override in the Form2 header file. (i.e. were to place the override for DoShow, before the class, in the class public??...., how it should look example of the header line, etc..) After that I can probably figure out the rest. thanks Shannon Mark Guerrieri wrote: > TForm (or TCustomForm, not sure which) should defind the protected method > DoShow wheich calls the OnShow hadler, if I remeber correctly. You can > override DoShow to do whatever you want... > > Mark > > "Shannon Peterson" <speterson@ae-solutions.com> wrote in message > news:40d0751e$1@newsgroups.borland.com... > >>Does anyone know if one is able to Overload the FormShow function using >>TForm so that I can call FromShow normally and call it with extra >>parameters??? >> >>thanks >> >>shannon > > >
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads