Control Panel usando Ide

Discuss anything else that does not suite other forums.

Moderator: Rathinagiri

Post Reply
Mario Mansilla
Posts: 270
Joined: Wed Aug 13, 2008 2:35 pm
Location: Córdoba - Argentina

Control Panel usando Ide

Post by Mario Mansilla »

Hola : Estoy realizando un ejemplo para ver el comportamiento del control panel pero me da errores al intentar hacerlo desde el ide .
¿ Que estoy haciendo mal ?
Saludos .
Mario Mansilla
Hello, I am making an example to see the behavior of the control panel but I get errors when trying to do it from the ide.
What am I doing wrong?
Greetings.
Mario Mansilla
Attachments
Panel.rar
(2.05 KiB) Downloaded 261 times
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Control Panel usando Ide

Post by esgici »

Hi Mario

Where is 'PanelWindow_1.fmg' ?

Saludos

--

Esgici
Viva INTERNATIONAL HMG :D
Mario Mansilla
Posts: 270
Joined: Wed Aug 13, 2008 2:35 pm
Location: Córdoba - Argentina

Re: Control Panel usando Ide

Post by Mario Mansilla »

Hola Esgici :
Simplemente creo el form principal e inserto el control panel desde el ide , creo que tendria que crearlo el propio ide pero aparentemente no o hace .
Además quiza cometo algun error en el orden con el cual inserto los controles al formulario ; porque si inserto primero el control panel , no me deja insertar controles dentro del mismo .
Te recuerdo que todo lo hago siempre desde el ide de la version 3.0.34 con Win Xp Sp2
Saludos .
Mario Mansilla
Hello Esgici:
I just think the main form and insert the control panel from the ide, I think it would have to create it's own ide but apparently not or does.
Also maybe make a mistake in the order in which to insert form controls, because if you first insert the control panel, will not let me insert controls within it.
I remember you always do everything from the ide version 3.0.34 with Windows XP Sp2
Greetings.
Mario Mansilla
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: Control Panel usando Ide

Post by esgici »

Hola Mario

You have used

Code: Select all

LOAD WINDOW PanelWindow_1 ...
in your Main.fmg and there isn't such .fmg file.

Your error.log file said this :

Main.fmg(6) Error F0029 Can't open #include file 'PanelWindow_1.fmg'

In other hand "to create it's own ide" may be a good idea; but is very "high" target for me ;)

Saludos

--

Esgici
Viva INTERNATIONAL HMG :D
User avatar
cdsaenz
Posts: 58
Joined: Sun Jul 11, 2010 4:02 am

Re: Control Panel usando Ide

Post by cdsaenz »

Mario, I had the same problem as you. I'm a Delphi background programmer so I assumed the Panel window would work as a Delphi's TPanel, in other words as a container that you can put controls inside of. But not - it works like a TFrame, a "reusable" window where you place controls and you "call" from a main window.

Summarizing, you need to do this:
1) Create your Main form normally, say it's called Main.fmg.
2) Create another form, say called SubForm.fmg and set its WindowType to PANEL.
3) Put all the controls inside this second form, save it.
4) Switch back to the Main form and insert the Panel Window control, locate as desired.
5) Set the Panel control "Name" property to SubForm (the second form's name)
6) Run.. and all stuff will appear as expected.

Very very nice. I most probably will use the frame control instead most of the times, but this reusable capability (based on the "LOAD" magic) is very interesting and modular.

Espero te sirva Mario, si no me avisas y seguimos investigando. Gracias!
Charly
Argentina, Hobbyist developer, Clipper/Delphi/PHP/Progress
Post Reply