Why "sizewindow" work only with "Display 1"
I need this to work with other display ID than 1
Code: Select all
@DISPLAY 1, {Hidden=True,color=#WHITE}
@DISPLAY 2, {Hidden=True,color=#WHITE}
Function p_EventFunc(msg)
Switch msg.action
Case "MUIRoyale":
Switch msg.attribute
Case "CloseRequest":
End
Case "Pressed":
Switch msg.id
Case"addpath":
EndSwitch
EndSwitch
Case "SizeWindow":
Debugprint("Sizewin OK")
Case "HideWindow":
mui.Set("app", "iconified", True)
Case "ShowWindow":
mui.Set("app", "iconified", False)
EndSwitch
EndFunction
; dynamically create MUI GUI from an external *.xml file definition
mui.CreateGUI([[
<?xml version="1.0" encoding="iso-8859-1"?>
<application id="app" base="NOUVEAU">
<window id="win1" width="400" height="400" title="Nouveau" notify="closerequest">
<vgroup>
<hollywood display="2" minwidth="32" minheight="32" maxwidth="950" maxheight="600" innertop="0" innerleft="0" innerright="0" innerbottom="0"/>
<rectangle/>
</vgroup>
</window>
</application>
]])
; listen to these events!
InstallEventHandler({MUIRoyale = p_EventFunc, SizeWindow = p_EventFunc,})
EscapeQuit(True)
/* Boucle infinie */
Repeat
WaitEvent
Forever