Jump to content

Search the Community

Showing results for tags 'guictrlcreateupdown'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 1 result

  1. GUICtrlCreateUpdown & $GUI_DOCKRIGHT dont play along with GUICtrlSetState( CtrlCreateUpdown , $GUI_HIDE ). Here is an example to shows it's misbehaviour: #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <GuiStatusBar.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form=G:\au3s\SMS_lite\TestUpdownHidei.kxf Global $idGui = GUICreate("GUI_DOCKRIGHT oops", 389, 180, -1, -1, BitOR($GUI_SS_DEFAULT_GUI, $WS_MAXIMIZEBOX, $WS_SIZEBOX, $WS_THICKFRAME, $WS_TABSTOP)) Global $idLabel = GUICtrlCreateLabel("try OnTop and resize, the UpDown does not behave as expacted, play around, you'll see", 16, 52, 356, 100) GUICtrlSetFont(-1, 26, 400, 0, "Lucida Console") GUICtrlSetResizing(-1, $GUI_DOCKLEFT + $GUI_DOCKRIGHT + $GUI_DOCKTOP + $GUI_DOCKBOTTOM) Global $idCk_KeepOnTop = GUICtrlCreateCheckbox("OnTop", 280, 12, 97, 25, BitOR($GUI_SS_DEFAULT_CHECKBOX, $BS_PUSHLIKE)) GUICtrlSetResizing(-1, $GUI_DOCKRIGHT + $GUI_DOCKTOP + $GUI_DOCKWIDTH + $GUI_DOCKHEIGHT) Global $idSetTrans = GUICtrlCreateInput("0", 200, 12, 69, 24, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER)) GUICtrlSetFont(-1, 12, 400, 0, "Lucida Console") GUICtrlSetResizing(-1, $GUI_DOCKRIGHT + $GUI_DOCKTOP + $GUI_DOCKWIDTH + $GUI_DOCKHEIGHT) Global $StatusBar1 = _GUICtrlStatusBar_Create($idGui) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### Global $idSetTransUpdown = GUICtrlCreateUpdown($idSetTrans) GUICtrlSetResizing(-1, $GUI_DOCKRIGHT + $GUI_DOCKTOP + $GUI_DOCKWIDTH + $GUI_DOCKHEIGHT) GUICtrlSetLimit($idSetTransUpdown, 9) GUICtrlSetState($idSetTrans, $GUI_HIDE) GUICtrlSetState($idSetTransUpdown, $GUI_HIDE) GUICtrlSetState($idLabel, $GUI_FOCUS) GUISetState(@SW_SHOW) ; this is to better show what I mean WinMove($idGui,"",50,50,389+100,180) _GUICtrlStatusBar_Resize($StatusBar1) ; this is to better show what I mean While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE GUIDelete() Exit 0 Case $GUI_EVENT_RESIZED _GUICtrlStatusBar_Resize($StatusBar1) Case $idSetTransUpdown GUICtrlSetState($idLabel, $GUI_FOCUS) Case $idSetTrans GUICtrlSetState($idLabel, $GUI_FOCUS) If Int(GUICtrlRead($idSetTrans)) Then WinSetTrans($idGui, "", 255 - (Int(GUICtrlRead($idSetTrans)) * 25)) Else WinSetTrans($idGui, "", 255) EndIf Case $idCk_KeepOnTop GUICtrlSetState($idLabel, $GUI_FOCUS) If GUICtrlRead($idCk_KeepOnTop) = 1 Then GUICtrlSetState($idSetTransUpdown, $GUI_SHOW) GUICtrlSetState($idSetTrans, $GUI_SHOW) WinSetOnTop($idGui, "", 1) WinSetTrans($idGui, "", 255 - (Int(GUICtrlRead($idSetTrans)) * 20)) Else WinSetOnTop($idGui, "", 0) WinSetTrans($idGui, "", 255) GUICtrlSetState($idSetTrans, $GUI_HIDE) GUICtrlSetState($idSetTransUpdown, $GUI_HIDE) EndIf EndSwitch WEnd I believe not to be doing anything wrong, therefore I posted here. If there is a workaround for this, please let me know. And if you can open a ticket for it better, I've never done it before. I took the plunge and open a ticket for it Thanks.
×
×
  • Create New...