Hello.

WinXP 32bit, iuplua 3.5

I write a litte code for MDI GUI, it run is OK but can not maximize the  
child window. pls help me.

This is example:

-- DATE : 2013-12-17 --

APPNAME = 'MDI Demo'

require('iuplua')

MainForm = iup.dialog{
        TITLE = APPNAME,
        SIZE = 'HALFxHALF',
        MDIFRAME = 'YES',
        iup.frame{   -- if kill the line (and "}") then maximize child is OK.  
why? I need the "iup.frame".
                iup.canvas{
                        EXPAND = 'YES',
                        MDICLIENT = 'YES',
                },
        },
}
MainForm:show()

MDI1Form = iup.dialog{
        TITLE = 'MDI1',
        SIZE = '200x150',
        MDICHILD = 'YES',
        PARENTDIALOG = MainForm,
        iup.text{
                EXPAND = 'YES',
                MULTILINE = 'YES',
        },
}
MDI1Form:show()

if (iup.MainLoopLevel()==0) then
   iup.MainLoop()
end

-- 
Regards,

Sunus Yang

-- 
使用Opera的电子邮件客户端:http://www.opera.com/mail/

------------------------------------------------------------------------------
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
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to