Sign in to follow this  
Followers 0
Mikeman27294

GUI Panel

12 posts in this topic

Hello everyone... again, right? hahaha yeah.

I am designing a GUI program, and I need to create a panel, sorta like the console in the scite editor, but only the GUI part of it, not the functions and all. Is there a way to make this sort of GUI control in AutoIT?

Thanks.

Share this post


Link to post
Share on other sites



Mikeman27294,

You can use an edit control to act in a similar manner to the SciTE console. If you want the user to be able to adjust the size of the 2 elements of the GUI as is the case in SciTE, take a look at the GUIFrames UDF in my sig. :huh2:

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______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

#3 ·  Posted (edited)

Thanks... I will definately take a look at it.

EDIT

Ok, I have taken a look at it, and found that when I call the _GUIFrame_Exit() function, exactly as shown there, it freezes up the window, which stops responding. Is this a bug, or do I need to add more in? Thanks.

Edited by Mikeman27294

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Mikeman27294,

My crystal ball is at the cleaners at the moment - could you please provide some code so I can take a look? ;)

M23

Edit: Why are you calling that function anyway? :huh2:

The function header clearly says:

; #INTERNAL_USE_ONLY#==============
; Name...........: _GUIFrame_Exit

So it not supposed to be called directly by the user - the UDF calls it automatically on exit to delete the subclassed separator bars and to free the UDF created WndProc. Which could well be Chinese to you - and is why the function is marked as it is. :alien:

Edited by Melba23

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______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

#5 ·  Posted (edited)

Oh... honestly, I didnt see that... I must be going blind. well what I am trying to do is allow the user to show and hide the frame upon request.

EDIT

After having a look at the include file, I know why I didnt see that. Because I never look at that part of the description, but I look inside that description box at the name, description, etc.

Edited by Mikeman27294

Share this post


Link to post
Share on other sites

Mikeman27294,

what I am trying to do is allow the user to show and hide the frame upon request

Then perhaps my GUIExtender UDF is what you want. :huh2:

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______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

#7 ·  Posted (edited)

Ok, downloading now and I will let you know if it works then. Thanks again.

That looks quite good. With a bit of modification, I may be able to get it to do what I want, but I am unsure. So there is no way to manually destroy the GUI Frame?

Edited by Mikeman27294

Share this post


Link to post
Share on other sites

Mikeman27294,

Read the headers this time! :huh2:

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______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

Hahaha will do. Thanks.

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

So there is no way to manually destroy the GUI Frame?

Why do you want to destroy it? If I recall correctly, there are functions to read and set the splitter position. So to "hide", just move it to the bottom and to show the console, restore the old coordinates.

Edit: This is the same behaviour as in SciTE.

Edited by ProgAndy

*GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes

Share this post


Link to post
Share on other sites

Why do you want to destroy it? If I recall correctly, there are functions to read and set the splitter position. So to "hide", just move it to the bottom and to show the console, restore the old coordinates.

Edit: This is the same behaviour as in SciTE.

Oh... So it is, I never knew that until you just told me... that is exactly what I will do, thanks for telling me that one. You have just saved me a lot of trouble... You too, Melba23, making the code and all... I only wish I had thought of hiding it like that myself.

Share this post


Link to post
Share on other sites

ProgAndy,

Thank you for jumping in - I had missed the post edit where the OP asked about destroying the frame. :huh2:

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______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

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