Jump to content

Side button to open another part of app?


gigilihooie
 Share

Recommended Posts

here I think this is what ya wanted, this one makes it strech through the whole screen but you can modify that.

#include <GuiConstants.au3>


GUICreate("", 830, 600, -1, -1, -1)
GUISetState(@SW_SHOW)
$button3 = GUICtrlCreateButton(">", 810,280,15,75)



Do
    $msg = GUIGetMsg()
    if $msg = $button3 Then
        _added()
    EndIf
Until $msg = $GUI_EVENT_CLOSE


Func _added()
    Global $pos
    $msg = GUIGetMsg()
    
    $pos = WinGetPos("")

    WinMove("", "", 0,0)
    
    Global $s = GUICreate("", @desktopwidth - $pos[2], 200, $pos[2], $pos[3]/2)
    GUISetState(@sw_Show)
    Do 
        $msg2 = GUIGetMsg()
        
    Until $msg2 = $GUI_EVENT_CLOSE
    _close()
    
EndFunc
Func _close()
    GUIDelete($s)
EndFunc

GL,

Rental

Link to comment
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
 Share

  • Recently Browsing   0 members

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