Sign in to follow this  
Followers 0
autoitxp

GUICtrlCreateTab Question

5 posts in this topic

Hi

i have little problem im using GUICtrlCreateTab with GUICtrlCreateInput fields but when i put $WS_MINIMIZEBOX + $ws_maximizebox in currrent Gui it resize on $ws_maximizebox how to set GUICtrlCreateInput to normal position level while using $ws_maximizebox

GUICreate("My Gui", 800, 600  , -1 , -1 ,  $WS_MINIMIZEBOX + $ws_maximizebox )

Help!

Share this post


Link to post
Share on other sites



Hi

i have little problem im using GUICtrlCreateTab with GUICtrlCreateInput fields but when i put $WS_MINIMIZEBOX + $ws_maximizebox in currrent Gui it resize on $ws_maximizebox how to set GUICtrlCreateInput to normal position level while using $ws_maximizebox

GUICreate("My Gui", 800, 600  , -1 , -1 ,  $WS_MINIMIZEBOX + $ws_maximizebox )

Help!

Hi,

can you show a little example then we can test easily. Many of us are too lazy to build such things on our own. :-)

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

autoitxp

Hi! You need this?

#include <GuiConstants.au3>

Opt("GuiResizeMode", $GUI_DOCKALL)

$hGUI = GUICreate("Test GUI", 300, 200, -1, -1, BitOR($WS_MINIMIZEBOX, $WS_MAXIMIZEBOX, $WS_SIZEBOX))

$hTab = GUICtrlCreateTab(5, 5, 285, 160)

$TabItem = GUICtrlCreateTabItem("TabItem")
$hInput = GUICtrlCreateInput("", 50, 50, 200, 20)

GUICtrlCreateTabItem("")

GUISetState()

Do
Until GUIGetMsg() = -3

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Thanks

and how to resize _GUICtrlStatusBar with gui

Edited by autoitxp

Share this post


Link to post
Share on other sites

From help:

#include <GuiConstants.au3>
#include <GuiStatusBar.au3>

Opt("GUIResizeMode", $GUI_DOCKALL)

Global $aText[3] = ["status", "system", "open"]

$hGUI = GUICreate("Test GUI", 300, 220, -1, -1, BitOR($WS_MINIMIZEBOX, $WS_MAXIMIZEBOX, $WS_SIZEBOX))

$hTab = GUICtrlCreateTab(5, 5, 285, 160)

$TabItem = GUICtrlCreateTabItem("TabItem")
$hInput = GUICtrlCreateInput("", 50, 50, 200, 20)

GUICtrlCreateTabItem("")

$hStatus = _GUICtrlStatusBar_Create($hGUI, 100, $aText)

GUIRegisterMsg($WM_SIZE, "WM_SIZE")

GUISetState()

Do
Until GUIGetMsg() = -3

Func WM_SIZE($hWnd, $iMsg, $wParam, $lParam)
    _GUICtrlStatusBar_Resize($hStatus)
    
    Return $GUI_RUNDEFMSG
EndFunc   ;==>WM_SIZE
:)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0