Hi, 阳光.
If you want preserve titlebar for maximized MDI childs - just set menu
for MDIFRAME dialog, and attach it to canvas MDIMENU attribute.
See example in attach.
Regards,
Karagy
APPNAME = 'MDI Demo'
require('iuplua')
MDIMenu = iup.menu{}
MainForm = iup.dialog{
menu = MDIMenu,
TITLE = APPNAME,
SIZE = 'HALFxHALF',
MDIFRAME = 'YES',
iup.canvas{
EXPAND = 'YES',
MDICLIENT = 'YES',
MDIMENU = MDIMenu,
},
}
MDI1Form = iup.dialog{
TITLE = 'MDI1',
SIZE = '200x150',
MDICHILD = 'YES',
PARENTDIALOG = MainForm,
iup.text{
EXPAND = 'YES',
MULTILINE = 'YES',
},
}
MDI2Form = iup.dialog{
TITLE = 'MDI1',
SIZE = '200x150',
MDICHILD = 'YES',
PARENTDIALOG = MainForm,
iup.text{
EXPAND = 'YES',
MULTILINE = 'YES',
},
}
MainForm:show()
MDI1Form:show()
MDI2Form:show()
if (iup.MainLoopLevel()==0) then
iup.MainLoop()
end
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Iup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iup-users