Sign in to follow this  
Followers 0
gigilihooie

Side button to open another part of app?

22 posts in this topic

Is it possable to do this?

Have a window with a button the side.

Posted Image

When you press the button, a side box comes out.

Posted Image

Would that be possable to do?

Share this post


Link to post
Share on other sites



Is it possable to do this?

Have a window with a button the side.

Posted Image

When you press the button, a side box comes out.

Posted Image

Would that be possable to do?

I have one that is set up to slide up vertically when you mouse over it, I am sure it could be tweaked to do that instead, though it will take some doing... I'll PM it to you?

Christianity: In the beginning, there was God, who always was there and created everything.Atheism: In the beginning, there was nothing, which exploded. Both sides look bad...

Share this post


Link to post
Share on other sites

I think this "Sliding Menu" is what your looking for

http://www.autoitscript.com/forum/index.ph...st&p=181596

8)

Yeah nevermind that one is better, use that haha

Christianity: In the beginning, there was God, who always was there and created everything.Atheism: In the beginning, there was nothing, which exploded. Both sides look bad...

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Ah, I copyed the code into an au3 file, and I get an error when I try to run it.

Posted Image

Edited by gigilihooie

Share this post


Link to post
Share on other sites

You need to add #include <WindowConstants.au3> at the top of the script.

Share this post


Link to post
Share on other sites

Now I get an error.

Posted Image

Share this post


Link to post
Share on other sites

LOL. It's #include <WindowsConstants.au3>. Sorry!

Share this post


Link to post
Share on other sites

Thanks, Now I have another error. Sorry for all of this. :)

Posted Image

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

Hi gigilihooie,

Drag an drop your script in the fourth tab of this tool : GCS Search

I have tried. It's allright except the third script (Array variable has incorrect number...). :)

Edited by Jikoo

My projects : GCS Search 1.07 (GUI Control Styles Search)* Multilingual tool to help about the old scripts, with a dynamic menu.* Easy way to find missing Include files in old scripts downloaded from forums !* Famous Monoceres script added and improved (visual, drag and drop, automatic)* There is an interactive color converter with palettes too, for fun !The best way to start Autoit3 development (for newbies).

Share this post


Link to post
Share on other sites

Ah thanks mate, works great. Going to keep this little app of yours. :)

Share this post


Link to post
Share on other sites

Ah thanks mate, works great. Going to keep this little app of yours. :)

Thank you very much gigilihooie ! :)


My projects : GCS Search 1.07 (GUI Control Styles Search)* Multilingual tool to help about the old scripts, with a dynamic menu.* Easy way to find missing Include files in old scripts downloaded from forums !* Famous Monoceres script added and improved (visual, drag and drop, automatic)* There is an interactive color converter with palettes too, for fun !The best way to start Autoit3 development (for newbies).

Share this post


Link to post
Share on other sites

#13 ·  Posted (edited)

This is internesting. Its kind of complicated. :)

Could someone give me a gutted example?

You dont have to, I just cant understand all of this. :)

Edited by gigilihooie

Share this post


Link to post
Share on other sites

#14 ·  Posted (edited)

What problem ? My tool or your downloaded script ? :)

I think it's the last one. Use the help file to start. It's better than explain the complete script you have got ! :)

Edited by Jikoo

My projects : GCS Search 1.07 (GUI Control Styles Search)* Multilingual tool to help about the old scripts, with a dynamic menu.* Easy way to find missing Include files in old scripts downloaded from forums !* Famous Monoceres script added and improved (visual, drag and drop, automatic)* There is an interactive color converter with palettes too, for fun !The best way to start Autoit3 development (for newbies).

Share this post


Link to post
Share on other sites

The download script. :)

Share this post


Link to post
Share on other sites

If you like to see long scripts. See mine : more than 2000 lines !!! :):)


My projects : GCS Search 1.07 (GUI Control Styles Search)* Multilingual tool to help about the old scripts, with a dynamic menu.* Easy way to find missing Include files in old scripts downloaded from forums !* Famous Monoceres script added and improved (visual, drag and drop, automatic)* There is an interactive color converter with palettes too, for fun !The best way to start Autoit3 development (for newbies).

Share this post


Link to post
Share on other sites

#17 ·  Posted (edited)

He he, mine is 1600 so far. And this wont work for what I want. To bad. :)

Made up something that will work though.

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <EditConstants.au3>
Opt("TrayIconHide", 1)
Opt("GUIResizeMode", $GUI_DOCKALL)


Move()
Func Move()
    $Form = GUICreate("", 131, 220, 619, 451)

    GUISetState()
    
    
    $go = GUICtrlCreateButton(">", 50, 194, 75, 17, 0)
    $go1 = GUICtrlCreateButton("<", 137, 194, 75, 17, 0)
    GUICtrlCreateLabel("", 131, 0, 1, 220)
    GUICtrlSetBkColor(-1, 0x666666)
    
    
    $expanded = False
    $expanded1 = True

    While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
            Case $GUI_EVENT_CLOSE
                Exit
                
                
            Case $go
                If Not $expanded Then
                WinMove($Form, "", 619, 451, 262, 246)
            EndIf
            
            Case $go1
                If $expanded1 Then
                WinMove($Form, "", 619, 451, 137, 246)
            EndIf
        EndSwitch
    WEnd
EndFunc

Just made this up. Is there something like this instead of what Valuater posted?

When I use this though, my buttons go all wonky.

Edited by gigilihooie

Share this post


Link to post
Share on other sites

all you need to change is

$go = GUICtrlCreateButton(">", 50, 194, 75, 17, 0,$GUI_DOCKALL)
    $go1 = GUICtrlCreateButton("<", 137, 194, 75, 17, 0,$GUI_DOCKALL)
    GUICtrlCreateLabel("", 131, 0, 1, 220,$GUI_DOCKALL)

Share this post


Link to post
Share on other sites

#19 ·  Posted (edited)

See your code I changed :

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <EditConstants.au3>
Opt("TrayIconHide", 1)
Opt("GUIResizeMode", $GUI_DOCKALL)


Move()
Func Move()
    $Form = GUICreate("", 131, 220, -1, -1)

    GUISetState()

    $go = GUICtrlCreateButton(">", 50, 194, 75, 17, 0, $GUI_DOCKALL)
    $go1 = GUICtrlCreateButton("<", 137, 194, 75, 17, 0, $GUI_DOCKALL)
    GUICtrlCreateLabel("", 131, 0, 1, 220, $GUI_DOCKALL)

    $expanded = False
    $expanded1 = True
    
    WinMove($Form, "", Default, Default, 137, 246)

    While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
            Case $GUI_EVENT_CLOSE
                Exit


            Case $go
                If Not $expanded Then
                    WinMove($Form, "", Default, Default, 262, 246)
                EndIf

            Case $go1
                If $expanded1 Then
                    WinMove($Form, "", Default, Default, 137, 246)
                EndIf
        EndSwitch
    WEnd
EndFunc   ;==>MoveoÝ÷ Ø­µêܡ׺Ú"µÍÚ[ÛYH  ÑÕRPÛÛÝ[Ñ^]LÉÝÂÚ[ÛYH ÕÚ[ÝÜÐÛÛÝ[Ë]LÉÝÂÚ[ÛYH ÑY]ÛÛÝ[Ë]LÉÝÂÜ
    ][ÝÕ^RXÛÛYI][ÝËJBÜ
    ][ÝÑÕRTÚ^S[ÙI][ÝË    ÌÍÑÕRWÑÐÒÐS
BÜ
    ][ÝÓ]ÝXÛUÉ][ÝËJHÌ[ËO]ZHKYXÛBÛØ[ ÌÍÛÙÂÛØ[ ÌÍÑÜHHÕRPÜX]J ][ÝÉ][ÝËLÌKLKLJBÛØ[  ÌÍÙÛÈHÕRPÝÜX]P]Û   ][ÝÉÝÉ][ÝË
LNM
ÍKMË  ÌÍÑÕRWÑÐÒÐS
BÛØ[  ÌÍÙÛÌHHÕRPÝÜX]P]Û  ][ÝÉÉ][ÝËLÍËNM
ÍKMË  ÌÍÑÕRWÑÐÒÐS
BÕRPÝÜX]SX[
    ][ÝÉ][ÝËLÌKK   ÌÍÑÕRWÑÐÒÐS
BÕRTÙ]Ý]J
B^[Y
[ÙJBÚ[HBIÌÍÛÙÈHÕRQÙ]ÙÊ
BTÝÚ]Ú   ÌÍÛÙÂBPØÙH   ÌÍÑÕRWÑUSÐÓÔÑBBBQ^]BPØÙH ÌÍÙÛÂBBY^[Y
YJBBPØÙH  ÌÍÙÛÌBBBY^[Y
[ÙJBBBBQ[ÝÚ]ÚÑ[[È^[Y
    ÌÍÙ^[Y
BRY ÌÍÙ^[YHYH[Ú[[ÝJ    ÌÍÑÜK   ][ÝÉ][ÝËY][Y][
BRY ÌÍÙ^[YH[ÙH[Ú[[ÝJ  ÌÍÑÜK   ][ÝÉ][ÝËY][Y][LÍË
B[[ÈÏOIÝÙ^[Y
Edited by Jikoo

My projects : GCS Search 1.07 (GUI Control Styles Search)* Multilingual tool to help about the old scripts, with a dynamic menu.* Easy way to find missing Include files in old scripts downloaded from forums !* Famous Monoceres script added and improved (visual, drag and drop, automatic)* There is an interactive color converter with palettes too, for fun !The best way to start Autoit3 development (for newbies).

Share this post


Link to post
Share on other sites

Sweet, thank you again Jikoo.

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