Utility("CREATE", struct) - Maximising an MDI_Frame (OpenInsight 32-Bit)
At 25 FEB 2010 08:58:10AM John Godfrey wrote:
Using the WINDOW CREATE code for the first time. Need to add a customised title to an MDI Frame.
Code as follows called from a commuter subroutine.
MENU:
STRUCT=Start_Window("MNU_WA_ONE",WINDOW,"", 1,'')Account_name=xlate("SYSENV","RCI_WA",20,"X")STRUCT=ACCOUNT_NAMEUtility("CREATE", struct)RETURN
Calls the window ok but does not maximise my screen so the new frame lies offset down below my centralised calling window which is the opening window of my app.
Do I need to add anything to force the window to maximise? Is the syntax correct?
BTW works ok when I use Start_Window from a Push Button control. I have a SET_PROPERTY(@window ,"VISIBLE", 3) code at the Create event within the frame.
At 25 FEB 2010 09:24AM Sean FitzSimons wrote:
John,
Why not set the "TEXT" property of the MDIFrame to add the customized title?
Sean
At 25 FEB 2010 09:42AM John Bouley wrote:
John,
I believe the property you need to set is the "TEXT" property of the window.
HTH,
John
At 25 FEB 2010 11:48AM Warren Auyong wrote:
In the CREATE event:
@@window-]visible=3 ;* changed to 3 to maximize
At 25 FEB 2010 12:52PM Sean FitzSimons wrote:
The issue is that the CREATE event occurs on the Start_Window and by making a change to the structure and recreating the window using the Utility function, the CREATE event will not occur because you are outside of the event chain. The suggestion is to use the TEXT property to change the title bar of the window within the CREATE event. By doing so you will then be able to maximize the window using the VISIBLE property.
Sean
At 26 FEB 2010 03:15AM John Godfrey wrote:
Thanks Guys. Setting the TEXT Property worked. Im sure I tried that first but could not make it work for some unrelated reason.