Jump to content

Recommended Posts

Posted

Hi,

I want to create a window that only shows the CloseBox in the titlebar, or with disabled Minimize/MaximizeBox.

Which window style(s) do I have to set to get my wishes true ... ?

Please, could somebody help me ?

$hWndMsgBox = GUICreate(@ScriptName, $iWidth, $iHeight, -1, -1, _
                                         BitOR($WS_VISIBLE, $WS_TABSTOP, $DS_MODALFRAME, $DS_SETFOREGROUND), _
                                         BitOR($WS_EX_APPWINDOW, $WS_EX_TOPMOST, $WS_EX_CLIENTEDGE, $WS_EX_DLGMODALFRAME ))
    $Button1 = GUICtrlCreateButton($szButton1, $iLeft1, $iTop, 80, 25, 0)
    $Button2 = GUICtrlCreateButton($szButton2, $iLeft2, $iTop, 80, 25, 0)
    $Button3 = GUICtrlCreateButton($szButton3, $iLeft3, $iTop, 80, 25, 0)
    $Label1 = GUICtrlCreateLabel($szString, 90, 40)

This window is nearly what I want, but how could I disable the MaximizeBox ...

Greetz

Greenhorn

Posted

Hi,

I want to create a window that only shows the CloseBox in the titlebar, or with disabled Minimize/MaximizeBox.

Which window style(s) do I have to set to get my wishes true ... ?

Please, could somebody help me ?

$hWndMsgBox = GUICreate(@ScriptName, $iWidth, $iHeight, -1, -1, _
                                         BitOR($WS_VISIBLE, $WS_TABSTOP, $DS_MODALFRAME, $DS_SETFOREGROUND), _
                                         BitOR($WS_EX_APPWINDOW, $WS_EX_TOPMOST, $WS_EX_CLIENTEDGE, $WS_EX_DLGMODALFRAME ))
    $Button1 = GUICtrlCreateButton($szButton1, $iLeft1, $iTop, 80, 25, 0)
    $Button2 = GUICtrlCreateButton($szButton2, $iLeft2, $iTop, 80, 25, 0)
    $Button3 = GUICtrlCreateButton($szButton3, $iLeft3, $iTop, 80, 25, 0)
    $Label1 = GUICtrlCreateLabel($szString, 90, 40)

This window is nearly what I want, but how could I disable the MaximizeBox ...

Greetz

Greenhorn

You could do it like this

$hWndMsgBox = GUICreate(@ScriptName, $iWidth, $iHeight, -1, -1, BitOR($WS_SIZEBOX,$WS_CAPTION), 0)

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
Posted

You could do it like this

$hWndMsgBox = GUICreate(@ScriptName, $iWidth, $iHeight, -1, -1, BitOR($WS_SIZEBOX,$WS_CAPTION), 0)

That's exactly what I was looking for ! :D

Thank you very much, martin !!!

Greetz

Greenhorn

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...