Página 1 de 1

Dialogs in Panels Question

Publicado: Mar Ago 01, 2006 6:32 pm
por aross
In FiveWin, I could assign a child dialog to a TPanel object
programmatically. When the user switches context in my program, I could
"End" one non-modal dialog and create another. Furthermore, I could work on
all these child dialogs and their various edit controls independently in
Borland's Resource Editor.
Is this possible in Xailer? Can a TPanel have a child dialog? If not, how
can I edit a TPanel/TBevel or TPages control without a Form container and
then assign it to a Form container at runtime. I don't want to copy and
paste from prg to XFM just to edit the data entry screen.
I have so many data entry screens in our application that I cannot create
them all at once using hidden panels or TPages. It is not memory or time
efficient.
Thanks

Dialogs in Panels Question

Publicado: Mar Ago 01, 2006 7:42 pm
por jfgimenez
Andrew,
> In FiveWin, I could assign a child dialog to a TPanel object
> programmatically. When the user switches context in my program, I could
> "End" one non-modal dialog and create another. Furthermore, I could work
> on all these child dialogs and their various edit controls independently
> in Borland's Resource Editor.
>
> Is this possible in Xailer? Can a TPanel have a child dialog? If not, how
> can I edit a TPanel/TBevel or TPages control without a Form container and
> then assign it to a Form container at runtime. I don't want to copy and
> paste from prg to XFM just to edit the data entry screen.
>
> I have so many data entry screens in our application that I cannot create
> them all at once using hidden panels or TPages. It is not memory or time
> efficient.
Give a look at xailersamplesdatacontrolsdbfdata6. That sample is using a
special class (TFormFolder in FrmFolder.prg, which is derived from
XFolderPage) to allow what you want. That way, you can design any "folder
page" as a regular form in the IDE, and later, show it as a page in the
folder control. Of course, the same can be applied to the TPages control.
--
Regards,
Jose F. Gimenez
http://www.xailer.com

Dialogs in Panels Question

Publicado: Mar Ago 01, 2006 8:35 pm
por aross
Perfecto! That's what I was looking for.
Thanks.
"Jose F. Gimenez" <jfgimenez@wanadoo.es> wrote in message
news:44cf9289$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
> Andrew,
>
>> In FiveWin, I could assign a child dialog to a TPanel object
>> programmatically. When the user switches context in my program, I could
>> "End" one non-modal dialog and create another. Furthermore, I could work
>> on all these child dialogs and their various edit controls independently
>> in Borland's Resource Editor.
>>
>> Is this possible in Xailer? Can a TPanel have a child dialog? If not, how
>> can I edit a TPanel/TBevel or TPages control without a Form container and
>> then assign it to a Form container at runtime. I don't want to copy and
>> paste from prg to XFM just to edit the data entry screen.
>>
>> I have so many data entry screens in our application that I cannot create
>> them all at once using hidden panels or TPages. It is not memory or time
>> efficient.
>
> Give a look at xailersamplesdatacontrolsdbfdata6. That sample is using
> a special class (TFormFolder in FrmFolder.prg, which is derived from
> XFolderPage) to allow what you want. That way, you can design any "folder
> page" as a regular form in the IDE, and later, show it as a page in the
> folder control. Of course, the same can be applied to the TPages control.
>
> --
> Regards,
>
> Jose F. Gimenez
> http://www.xailer.com
>

Dialogs in Panels Question

Publicado: Mar Ago 01, 2006 10:14 pm
por aross
Just out of curiosity, are there any other undocumented (english) classs
like XPage and XFolderPage. Or if they are documented and just not in the
Xailer help file, where can I find the documentation?
"Jose F. Gimenez" <jfgimenez@wanadoo.es> wrote in message
news:44cf9289$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
> Andrew,
>
>> In FiveWin, I could assign a child dialog to a TPanel object
>> programmatically. When the user switches context in my program, I could
>> "End" one non-modal dialog and create another. Furthermore, I could work
>> on all these child dialogs and their various edit controls independently
>> in Borland's Resource Editor.
>>
>> Is this possible in Xailer? Can a TPanel have a child dialog? If not, how
>> can I edit a TPanel/TBevel or TPages control without a Form container and
>> then assign it to a Form container at runtime. I don't want to copy and
>> paste from prg to XFM just to edit the data entry screen.
>>
>> I have so many data entry screens in our application that I cannot create
>> them all at once using hidden panels or TPages. It is not memory or time
>> efficient.
>
> Give a look at xailersamplesdatacontrolsdbfdata6. That sample is using
> a special class (TFormFolder in FrmFolder.prg, which is derived from
> XFolderPage) to allow what you want. That way, you can design any "folder
> page" as a regular form in the IDE, and later, show it as a page in the
> folder control. Of course, the same can be applied to the TPages control.
>
> --
> Regards,
>
> Jose F. Gimenez
> http://www.xailer.com
>

Dialogs in Panels Question

Publicado: Mar Ago 01, 2006 10:35 pm
por jfgimenez
Andrew,
> Just out of curiosity, are there any other undocumented (english) classs
> like XPage and XFolderPage. Or if they are documented and just not in the
> Xailer help file, where can I find the documentation?
Almost Xailer's classes have 2 sides: X and T classes. The X classes contain
all the code, while the T ones are empty. The true Xailer hierarchy is:
XComponent -> TComponent ->XWinObject -> TWinObject ->XControl ->
TControl -> ...
This let you to develop your own T class in any level of the hierarchy, to
change any class behavior without modifying the Xailer source code.
Please, read this article to understand what I'm talking about:
http://sailingwithxailer.blogspot.com/2 ... nced-xaile r-techniques-x-classes.html
--
Regards,
Jose F. Gimenez
http://www.xailer.com

Dialogs in Panels Question

Publicado: Mié Ago 02, 2006 12:57 am
por aross
This just keeps getting better and better. So in other words, Instead of
using TPage and having to program all the properties and methods, I can use
XPage and program just the stuff I need for this "dialog" container. Neat!
"Jose F. Gimenez" <jfgimenez@wanadoo.es> wrote in message
news:44cfbb1e$[email=1@news.xailer.com...]1@news.xailer.com...[/email]
> Andrew,
>
>> Just out of curiosity, are there any other undocumented (english) classs
>> like XPage and XFolderPage. Or if they are documented and just not in the
>> Xailer help file, where can I find the documentation?
>
> Almost Xailer's classes have 2 sides: X and T classes. The X classes
> contain all the code, while the T ones are empty. The true Xailer
> hierarchy is:
>
> XComponent -> TComponent ->XWinObject -> TWinObject ->XControl ->
> TControl -> ...
>
> This let you to develop your own T class in any level of the hierarchy, to
> change any class behavior without modifying the Xailer source code.
>
> Please, read this article to understand what I'm talking about:
> http://sailingwithxailer.blogspot.com/2 ... nced-xaile r-techniques-x-classes.html
>
> --
> Regards,
>
> Jose F. Gimenez
> http://www.xailer.com
>