In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

Window Menu on MDI Frame

Xailer English public forum
Responder
Erol Karazincir
Mensajes: 4
Registrado: Lun Mar 02, 2009 9:14 pm

Window Menu on MDI Frame

Mensaje por Erol Karazincir »

Hi,
I have a project with an MDI frame and multiple MDI children. I am trying
to get the children to register on the frame's "Windows" Sub-Menu. The MDI
example uses the MENU/MENUITEM statements but I utilized the TMenu Class
from the 2.0 version IDE (worked in 1.9.8 as well, though).
I also assigned the submenu to the ::oMDIMenu property of the MDI Frame.
Still, when I open child forms, the Windows menu does not get populated.
What am I doing wrong?
Erol Karazincir
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9442
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

Window Menu on MDI Frame

Mensaje por ignacio »

Erol,
Try this:
METHOD FormInitialize( oSender ) CLASS TMdiFrame
::oMdiMenu := ::oMenu:aItems[ 2 ]:oSubMenu
RETURN Nil
It worked here.
Regards,
--
Ignacio Ortiz de Zúñiga
Xailer support / Soporte de Xailer
http://www.xailer.com
http://www.xailer.info
"Erol Karazincir" <erol.k@pplmotorhomes.com> escribió en el mensaje
news:[email=49ac3e1e@svctag-j7w3v3j....]49ac3e1e@svctag-j7w3v3j....[/email]
> Hi,
> I have a project with an MDI frame and multiple MDI children. I am trying
> to get the children to register on the frame's "Windows" Sub-Menu. The
> MDI example uses the MENU/MENUITEM statements but I utilized the TMenu
> Class from the 2.0 version IDE (worked in 1.9.8 as well, though).
> I also assigned the submenu to the ::oMDIMenu property of the MDI Frame.
> Still, when I open child forms, the Windows menu does not get populated.
> What am I doing wrong?
> Erol Karazincir
>
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Erol Karazincir
Mensajes: 4
Registrado: Lun Mar 02, 2009 9:14 pm

Window Menu on MDI Frame

Mensaje por Erol Karazincir »

Thanks, that does work.
Erol
"Ignacio Ortiz de Zúñiga" <NoNameToAvoidSpam@xailer.com> wrote in message
news:49acf821$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> Erol,
>
> Try this:
>
> METHOD FormInitialize( oSender ) CLASS TMdiFrame
>
> ::oMdiMenu := ::oMenu:aItems[ 2 ]:oSubMenu
>
> RETURN Nil
>
> It worked here.
>
> Regards,
>
> --
> Ignacio Ortiz de Zúñiga
> Xailer support / Soporte de Xailer
> http://www.xailer.com
> http://www.xailer.info
> "Erol Karazincir" <erol.k@pplmotorhomes.com> escribió en el mensaje
> news:[email=49ac3e1e@svctag-j7w3v3j....]49ac3e1e@svctag-j7w3v3j....[/email]
>> Hi,
>> I have a project with an MDI frame and multiple MDI children. I am
>> trying to get the children to register on the frame's "Windows" Sub-Menu.
>> The MDI example uses the MENU/MENUITEM statements but I utilized the
>> TMenu Class from the 2.0 version IDE (worked in 1.9.8 as well, though).
>> I also assigned the submenu to the ::oMDIMenu property of the MDI Frame.
>> Still, when I open child forms, the Windows menu does not get populated.
>> What am I doing wrong?
>> Erol Karazincir
>>
>>
>
>
Responder