Dear Sir:
I would like to saperate those different kind of file such as .FMG、.PRG .......
It means that I will not write define window code in .prg instead of .FMG.
Following are steps I wish could be done.
1.define plenty of form as template in individual .fmg file.
2.Loading form from .fmg when necessary.
The benefit is share the same form definition with plenty of routine.
Could it possible? How should I do?
Best Regard
chen min
How to define main window from template .FMG file ?
Moderator: Rathinagiri
-
- Posts: 157
- Joined: Mon Jun 07, 2010 2:24 am
- Roberto Lopez
- HMG Founder
- Posts: 4004
- Joined: Wed Jul 30, 2008 6:43 pm
Re: How to define main window from template .FMG file ?
There is lots of samples showing that in \samples\external.windows.huangchenmin wrote:Dear Sir:
I would like to saperate those different kind of file such as .FMG、.PRG .......
It means that I will not write define window code in .prg instead of .FMG.
Following are steps I wish could be done.
1.define plenty of form as template in individual .fmg file.
2.Loading form from .fmg when necessary.
The benefit is share the same form definition with plenty of routine.
Could it possible? How should I do?
Best Regard
chen min
Regards/Saludos,
Roberto
(Veritas Filia Temporis)
Roberto
(Veritas Filia Temporis)
-
- Posts: 157
- Joined: Mon Jun 07, 2010 2:24 am
Re: How to define main window from template .FMG file ?
Dear RobertoRoberto Lopez wrote:There is lots of samples showing that in \samples\external.windows.huangchenmin wrote:Dear Sir:
I would like to saperate those different kind of file such as .FMG、.PRG .......
It means that I will not write define window code in .prg instead of .FMG.
Following are steps I wish could be done.
1.define plenty of form as template in individual .fmg file.
2.Loading form from .fmg when necessary.
The benefit is share the same form definition with plenty of routine.
Could it possible? How should I do?
Best Regard
chen min
Thank you very much.
-
- Posts: 157
- Joined: Mon Jun 07, 2010 2:24 am
Re: How to define main window from template .FMG file ?
Dear RobertoRoberto Lopez wrote:There is lots of samples showing that in \samples\external.windows.huangchenmin wrote:Dear Sir:
I would like to saperate those different kind of file such as .FMG、.PRG .......
It means that I will not write define window code in .prg instead of .FMG.
Following are steps I wish could be done.
1.define plenty of form as template in individual .fmg file.
2.Loading form from .fmg when necessary.
The benefit is share the same form definition with plenty of routine.
Could it possible? How should I do?
Best Regard
chen min
I read couples of those samples. They load template with the name of fmg.
Could compiler tell different from each .prg that have same window name. It is a little bite similar to Polymorphism.Following are I desire to do.
There is a form template named a.fmg.
Is that possible to load a.fmg and give individual name.
How show I do to declar one of them as main form ?
Best Regards
chen min
-
- Posts: 157
- Joined: Mon Jun 07, 2010 2:24 am
Re: How to define main window from template .FMG file ?
Dear Robertohuangchenmin wrote:Dear RobertoRoberto Lopez wrote:There is lots of samples showing that in \samples\external.windows.huangchenmin wrote:Dear Sir:
I would like to saperate those different kind of file such as .FMG、.PRG .......
It means that I will not write define window code in .prg instead of .FMG.
Following are steps I wish could be done.
1.define plenty of form as template in individual .fmg file.
2.Loading form from .fmg when necessary.
The benefit is share the same form definition with plenty of routine.
Could it possible? How should I do?
Best Regard
chen min
I read couples of those samples. They load template with the name of fmg.
Could compiler tell different from each .prg that have same window name. It is a little bite similar to Polymorphism.Following are I desire to do.
There is a form template named a.fmg.
Is that possible to load a.fmg and give individual name.
How show I do to declar one of them as main form ?
Best Regards
chen min
I found『AS』clause in reference. I think that is what I need.
Thank you again.
Best Regards
chen min
- Roberto Lopez
- HMG Founder
- Posts: 4004
- Joined: Wed Jul 30, 2008 6:43 pm
Re: How to define main window from template .FMG file ?
Yes, it is.huangchenmin wrote: Dear Roberto
I found『AS』clause in reference. I think that is what I need.
Thank you again.
Best Regards
chen min
You'll find an exact sample of that in: \samples\multi.instance.
Regards/Saludos,
Roberto
(Veritas Filia Temporis)
Roberto
(Veritas Filia Temporis)
-
- Posts: 157
- Joined: Mon Jun 07, 2010 2:24 am
Re: How to define main window from template .FMG file ?
Dear RobertoRoberto Lopez wrote:Yes, it is.huangchenmin wrote: Dear Roberto
I found『AS』clause in reference. I think that is what I need.
Thank you again.
Best Regards
chen min
You'll find an exact sample of that in: \samples\multi.instance.
After reading that sample, I realize how to load a form from template and assign it a new name. Is that possible to define Form_1 as main from template ?
Best Regards
- Roberto Lopez
- HMG Founder
- Posts: 4004
- Joined: Wed Jul 30, 2008 6:43 pm
Re: How to define main window from template .FMG file ?
Of course. All the IDE samples (\samples\external.windows) has its main window defined as a .fmg external file.huangchenmin wrote:Dear RobertoRoberto Lopez wrote:Yes, it is.huangchenmin wrote: Dear Roberto
I found『AS』clause in reference. I think that is what I need.
Thank you again.
Best Regards
chen min
You'll find an exact sample of that in: \samples\multi.instance.
After reading that sample, I realize how to load a form from template and assign it a new name. Is that possible to define Form_1 as main from template ?
Best Regards
Regards/Saludos,
Roberto
(Veritas Filia Temporis)
Roberto
(Veritas Filia Temporis)