Main Window and Others
|
![]() ![]() ![]() |
Define and Properties |
CREATE WINDOW cName | (cVarName) | &(cExpression) | ||||||
[ PARENT cParentName ] | ![]() | Parent window for this window | ||||
[ PARENTTYPE n/a ] | ![]() | Only for mg_get() function, this property returns the PARENT control type or "" if the parent was not set. | ||||
[ ROW nRow ] | ![]() | Row position on container desktop in pixels coordinates | ||||
[ COL nCol ] | ![]() | Col position on container desktop in pixels coordinates | ||||
[ WIDTH nWidth ] | ![]() | The desired width size of the window in pixels | ||||
[ HEIGHT nHeight ] | ![]() | The desired height size of the window in pixels | ||||
[ ROWBOTTOM nRow ] | ![]() | Bottom Row position on container desktop in pixels coordinates. This property adjust the HEIGHT property according the ROW property. | ||||
[ COLRIGHT nCol ] | ![]() | Right Col position on container desktop in pixels coordinates. This property adjust the WIDTH property according the COL property. | ||||
[ VIRTUALWIDTH nVirtualWidth ] | ![]() | The desired virtual width size of the window in pixels. This property must be greater than WIDTH property and it enabled the horizontal scroll bar | ||||
[ VIRTUALHEIGHT nVirtualHeight ] | ![]() | The desired virtual height size of the window in pixels. This property must be greater than HEIGHT property and it enabled the vertical scroll bar | ||||
[ HSCROLL nTypeScrollBar ] | ![]() | This property enable/disable the horizontal scrollbar for VIRTUALWIDTH property. Accepted values are: Qt_ScrollBarAsNeeded = Shows a scroll bar when the content is too large to fit and not otherwise. This is the default. Qt_ScrollBarAlwaysOff = Never shows a scroll bar. Qt_ScrollBarAlwaysOn = Always shows a scroll bar. | ||||
[ VSCROLL nTypeScrollBar ] | ![]() | This property enable/disable the vertical scrollbar for VIRTUALHEIGHT property. Accepted values are: Qt_ScrollBarAsNeeded = Shows a scroll bar when the content is too large to fit and not otherwise. This is the default. Qt_ScrollBarAlwaysOff = Never shows a scroll bar. Qt_ScrollBarAlwaysOn = Always shows a scroll bar. | ||||
[ HSCROLLVALUE nValue ] | ![]() | This property move the horizontal scrollbar to nValue. This ScrollBar is used when VIRTUALWIDTH property is used. The minumum and maximun values can be consulted/seted by HScrollMin and HScrollMax properties. | ||||
[ VSCROLLVALUE nValue ] | ![]() | This property move the vertical scrollbar to nValue. This ScrollBar is used when VIRTUALHEIGHT property is used. The minumum and maximun values can be consulted/seted by VScrollMin and VScrollMax properties. | ||||
[ HSCROLLMIN nValueMin ] | ![]() | This property is used to get/set the minimum value for the horizontal scrollbar. This ScrollBar is used when VIRTUALWIDTH property is used. | ||||
[ HSCROLLMAX nValueMax ] | ![]() | This property is used to get/set the maximum value for the horizontal scrollbar. This ScrollBar is used when VIRTUALWIDTH property is used. | ||||
[ VSCROLLMIN nValueMin ] | ![]() | This property is used to get/set the minimum value for the vertical scrollbar. This ScrollBar is used when VIRTUALHEIGHT property is used. | ||||
[ VSCROLLMAX nValueMax ] | ![]() | This property is used to get/set the maximum value for the vertical scrollbar. This ScrollBar is used when VIRTUALHEIGHT property is used. | ||||
[ CAPTION cCaption ] | ![]() | A text expressions for the window title | ||||
[ MAIN .T. | .F. ] | ![]() | Set window to main type | ||||
[ CHILD .T. | .F. ] | ![]() | Set window to child type | ||||
[ MODAL .T. | .F. ] | ![]() | Set window to modal type | ||||
[ TOPMOST .T. | .F. ] | ![]() | Set window always on top | ||||
[ HASFOCUS ] | ![]() | Only for mg_Get() function. This property returns .T. if window has the application focus | ||||
[ CURSOR ] | ![]() | Change the cursor pointer shape for the window. Go to to learn more about it. | ||||
[ ICON cIconName ] | ![]() | Image for display as icon window. If window isn't MAIN, Marinas-GUI get the parent window automatically from Main window | ||||
[ NOCAPTION .T. | .F. ] | ![]() | Window without title bar | ||||
[ NOCLOSEBUTTON .T. | .F. ] | ![]() | Window with title bar but without CLOSE button | ||||
[ NOMAXIMIZEBUTTON .T. | .F. ] | ![]() | Window with title bar but without MAXIMIZE button | ||||
[ NOMINIMIZEBUTTON .T. | .F. ] | ![]() | Window with title bar but without MINIMIZE button | ||||
[ NOSIZE .T. | .F. ] | ![]() | Window with title bar but without SIZE buttons | ||||
[ NOSYSMENU .T. | .F. ] | ![]() | Window with title bar but without SYSTEM menu | ||||
[ NOWAIT .T. | .F. ] | ![]() | When the windows is activated, the flow of program don't stop waiting for an event an execute the following sentence | ||||
[ ENTERTAB .T. | .F. | NIL ] | ![]() | This property set the TAB key simulation when user press ENTER key in a control. Typically used for DATA ENTRY tasks. A NIL (default) value will use the global SET ENTERTAB value. | ||||
[ BACKCOLOR {aBackColor} | aVarBackColor ] | ![]() | Set background color | ||||
[ FONTCOLOR {aFontColor} | aVarFontColor ] | ![]() | Set foreground color (text color) | ||||
[ FONTNAME "cFontName" ] | ![]() | Font family for window text | ||||
[ FONTSIZE nPoints ] | ![]() | Font size for window text | ||||
[ FONTBOLD .T. | .F. ] | ![]() | Set Bold attribute to window text | ||||
[ FONTITALIC .T. | .F. ] | ![]() | Set Italic attribute to window text | ||||
[ FONTUNDERLINE .T. | .F. ] | ![]() | Set Underline attribute to window text | ||||
[ FONTSTRIKEOUT .T. | .F. ] | ![]() | Set Strikeout attribute to window text | ||||
[ ENABLED .T. | .F. ] | ![]() | Enable or Disable ALL controls in windows | ||||
[ TOOLTIP cToolTip ] | ![]() | Text for display into tooltip | ||||
[ VISIBLE .T. | .F. ] | ![]() | Show or hide window (like methods SHOW and HIDE, and like INITIALSHOWMODE QWindow_Normal and QWindow_HIDDEN) | ||||
[ INITIALSHOWMODE nOption ] | ![]() | Initial state for an ACTIVATED window. Accepted values: QWindow_Normal (default) QWindow_Hidden (like VISIBLE .F.) QWindow_Minimized QWindow_Maximized QWindow_FullScreen | ||||
[ ONCHANGEHSCROLL cOnChangeHScroll | {BOnChangeHScroll} ] | ![]() | An action to be performed when the Horizontal ScrollBar moved. This ScrollBar is used when VIRTUALWIDTH property is used | ||||
[ ONCHANGEVSCROLL cOnChangeVScroll | {BOnChangeVScroll} ] | ![]() | An action to be performed when the Vertical ScrollBar moved. This ScrollBar is used when VIRTUALHEIGHT property is used | ||||
[ ONMOUSEMOVE cOnMouseMove | {BOnMouseMove} ] | ![]() | An action to be performed when the mouse is moved into window. | ||||
[ ONMOVE cOnMove | {BOnMove} ] | ![]() | An action to be performed when the window is moved | ||||
[ ONGOTFOCUS cOnGotFocus | {BOnGotFocus} ] | ![]() | An action to be performed when the window is focused | ||||
[ ONLOSTFOCUS cOnLostFocus | {BOnLostFocus} ] | ![]() | An action to be performed when the window is lost focused | ||||
[ ONINIT cOnInit | {BOnInit} ] | ![]() | An action to be performed when the window is activated by ACTIVATE method | ||||
[ ONCLOSE cOnClose | {BOnClose} ] | ![]() | An action to be performed when the window is closed by system menu or system close button | ||||
[ ONRELEASE cOnRelease | {BOnRelease} ] | ![]() | An action to be performed when the window is released by RELEASE method | ||||
[ ONSIZE cOnSize | {BOnSize} ] | ![]() | An action to be performed when the window is resized | ||||
[ ONMINIMIZE cOnMinimize | {BOnMinimize} ] | ![]() | An action to be performed when the window is MINIMIZED (by system menu, system button or method) | ||||
[ ONMAXIMIZE cOnMaximize | {BOnMaximize} ] | ![]() | An action to be performed when the window is MAXIMIZED (by system menu, system button or method) | ||||
[ ONFULLSCREEN cOnFullScreen | {BOnFullScreen} ] | ![]() | An action to be performed when the window is FULLSCREEN (by system menu, system button or method) | ||||
[ ONHIDE cOnHide | {BOnHide} ] | ![]() | An action to be performed when the window is HIDDEN (by system menu, system button or method) | ||||
[ ONRESTORE cOnRestore | {BOnRestore} ] | ![]() | An action to be performed when the window is RESTORED (by system menu, system button or method) | ||||
[ CONTEXTMENUSUPRESSED .T. | .F. ] | ![]() | Disable the display of the Context Menu of window. | ||||
[ CREATE CONTEXT MENU [ cName ] ] | ![]() | CONTEXT MENU for control | ||||
[ ......... ] | ![]() | You can see properties for this menu in CONTEXT MENU topic | ||||
[ END MENU ] | ![]() | |||||
END WINDOW |
Jump to Context Menu topic |
Methods |
ACTIVATE | ![]() | Activate window | ||||
ONINIT | ![]() | Execute ONINIT block coded in CREATE or seted by mg_Set | ||||
RELEASE | ![]() | Release window | ||||
ONRELEASE | ![]() | Execute ONRELEASE block coded in CREATE or seted by mg_Set | ||||
CENTER | ![]() | Set window position at center desktop | ||||
MINIMIZE | ![]() | Minimize window to task bar | ||||
MAXIMIZE | ![]() | Maximize window in the desktop area | ||||
FULLSCREEN | ![]() | FullScreen window in the desktop area (without any frame) | ||||
HIDE | ![]() | Hide window. | ||||
SHOW | ![]() | Show window. The window must have been previously activated with the ACTIVATE method | ||||
RESTORE | ![]() | Set window to default size | ||||
GETCHILDREN | ![]() | This method return an array containing a list of controls that have this window as parent | ||||
GETCONTROLS | ![]() | This method return an array containing a list of controls that have this window as parent, except those that are not shown on screen (e.g. TIMER or CONTEXTMENU) | ||||
GETBORDERHEIGHT | ![]() | This method is used to query the height of a window border. Can be used to calculate the full area filled by a window in this way: nFullAreaHeight := mg_do( "win" , "getTitlebarHeight" ) + mg_get( "win" , "height" ) + ( mg_do( "win" , "getBorderHeight" ) * 2 ) Function "getWindowBorderHeight( 'Win' )" does the same job. | ||||
GETBORDERWIDTH | ![]() | This method is used to query the width of a window border. Can be used to calculate the full area filled by a window in this way: nFullAreaWidth := mg_get( "win" , "width" ) + ( mg_do( "win" , "getBorderWidth" ) * 2 ) Function "getWindowBorderWidth( 'win' )" does the same job. | ||||
GETTITLEBARHEIGHT | ![]() | This method is used to query the height of a window titlebar. Can be used to calculate the full area filled by a window in this way: nFullAreaHeight := mg_go( "win" , "getTitleBarHeight" ) + mg_get( "win" , "height" ) + ( mg_do( "win" , "getBorderHeight" ) * 2 ) Function "getWindowTitleBarHeight( 'win' )" does the same job. | ||||
UNSETCURSOR | ![]() | Reset the cursor pointer shape for the window to default (Qt_ArrowCursor). Go to to learn more about it. | ||||
HSCROLLMOVE | ![]() | Move Horizontal ScrollBar in window with VIRTUALWIDTH property seted Accepted values are: Qt_ScrollSingleStepAdd Qt_ScrollSingleStepSub Qt_ScrollPageStepAdd Qt_ScrollPageStepSub Qt_ScrollToMinimum Qt_ScrollToMaximum | ||||
VSCROLLMOVE | ![]() | Move Vertical ScrollBar in window with VIRTUALHEIGHt property seted Accepted values are: Qt_ScrollSingleStepAdd Qt_ScrollSingleStepSub Qt_ScrollPageStepAdd Qt_ScrollPageStepSub Qt_ScrollToMinimum Qt_ScrollToMaximum | ||||
BRINGTOFRONT | ![]() | Move window to the top of the parent widget's stack. | ||||
BRINGTOBACK | ![]() | Move window to the bottom of the parent widget's stack. | ||||
SETFOCUS | ![]() | This method put the program focus into window | ||||
ONMOUSEMOVE | ![]() | Execute ONMOUSEMOVE block coded in CREATE or seted by mg_Set | ||||
ONMOVE | ![]() | Execute ONMOVE block coded in CREATE or seted by mg_Set | ||||
ONSIZE | ![]() | Execute ONSIZE block coded in CREATE or seted by mg_Set | ||||
ONMINIMIZE | ![]() | Execute ONMINIMIZE block coded in CREATE or seted by mg_Set | ||||
ONMAXIMIZE | ![]() | Execute ONMAXIMIZE block coded in CREATE or seted by mg_Set | ||||
ONFULLSCREEN | ![]() | Execute ONFULLSCREEN block coded in CREATE or seted by mg_Set | ||||
ONHIDE | ![]() | Execute ONHIDE block coded in CREATE or seted by mg_Set | ||||
ONRESTORE | ![]() | Execute ONRESTORE block coded in CREATE or seted by mg_Set | ||||
ONCLOSE | ![]() | Execute ONCLOSE block coded in CREATE or seted by mg_Set | ||||
ONGOTFOCUS | ![]() | Execute ONGOTFOCUS block coded in CREATE or seted by mg_Set | ||||
ONLOSTFOCUS | ![]() | Execute ONLOSTFOCUS block coded in CREATE or seted by mg_Set | ||||
ONCHANGEHSCROLL | ![]() | Execute ONCHANGEHSCROLL block coded in CREATE or seted by mg_Set | ||||
ONCHANGEVSCROLL | ![]() | Execute ONCHANGEVSCROLL block coded in CREATE or seted by mg_Set |
Marinas-GUI Version 03.06 and Marinas-IDE Version 05.06 and LEX Files Version 02.06 --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- last update: April 27 2017 --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ![]() A Harbour/QT framework to make multiplatform programs (©) Copyright 2009-2017 by Fernando Santolin (aka CarozoDeQuilmes) CarozoDeQuilmes@gmail.com 2009-2017 Beta tester and full English translator: Bruno Luciani Bruno.Luciani@gmail.com 2014-2015 Final English corrector: David Worboys DavidWorboys@hotmail.com --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- www.marinas-gui.org |
|
![]() ![]() ![]() |