Jump to content
Sign in to follow this  
Hybrid

GUI "extension" => Question (?)

Recommended Posts

Hybrid

Hello dear AutoIT comunity.

I have a fail question..I made 2pics, so I hope u'll understand what i'm asking for.

so, pic1

Posted Image

This is the original GUI Form.

When that button is pressed, GUI get a new "extension". It's getting larger.

Take a look at pic2.

Posted Image

Waiting for replies, and sorry for asking newb questions :s

Share this post


Link to post
Share on other sites
Melba23

Hybrid,

My GUIExtender UDF (look in my sig for the link) is exactly what you want. :)

Try out the current version now. I am working on a new version which I hope to release soon which will let you have multiple extended GUIs - but it is not quite ready yet. ;)

M23


Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
Hybrid
Thankies Mel *-*

Share this post


Link to post
Share on other sites
Melba23

Hybrid,

Please ask if you have any trouble getting the UDF to work. :)

M23


Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
PlayHD

another way :

_main()
Exit

Func _main()
Local $wOpt = Opt("WinTitleMatchMode",4) ;Advanced mode
Local $rOpt = Opt("GUIResizeMode",802) ;$GUI_DOCKALL
Local $Form = GUICreate("PlayHDEx", 180,56)
Local $Button = GUICtrlCreateButton(">",8,8,163,41)
GUICtrlCreateLabel("SECRET MESSAGE",200,10,100,17,0x0200) ;$SS_CENTERIMAGE
GUISetState(@SW_SHOW,$Form)
Local $Msg
While 1
$Msg = GUIGetMsg()
Switch $Msg
Case -3 ;$GUI_EVENT_CLOSE
GUIDelete($Form)
Opt("GUIResizeMode",$rOpt)
Return Opt("WinTitleMatchMode",$wOpt)
Case $Button
If GUICtrlRead($Button) = ">" Then
GUICtrlSetData($Button,"<")
For $i = 185 To 320
WinMove($Form,"",Default,Default,$i)
Next
Else
GUICtrlSetData($Button,">")
For $i = 320 To 185 Step -1
WinMove($Form,"",Default,Default,$i)
Next
EndIf
EndSwitch
WEnd
EndFunc
Edited by PlayHD

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  

×