Sign in to follow this  
Followers 0
RagnaroktA

Prevent GUI(s) from resizing or being moved...

4 posts in this topic

There you have it. I have a GUI, with multiple tabs. The only way to get several tabs on one GUI to be seperate was to create a seperate GUI for some of them. Now when I resize or move the main GUI, the child GUI doesnt move or resize with it. Is there a way to set this? If not, is there a way to prevent resizing and moving windows? Or perhaps a way to perm attach a child GUI to its parent?


Current Projects:Remote Administration Suite Updated! 12-20-07Remote User State Migration Tool (Plugin) Updated! 12-20-07Batch Print Wizard Updated! 12-20-07Links:AutoIt Beta | AutoIt Wiki

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

To prevent Resizing, remove $WS_SIZEBOX style and use Guictrlsetresizing(-1,$GUI_DOCKALL)

To prevent Moving, remove $WS_CAPTION style

For child and parent windows try $WS_CHILD or when creating the GUI :

e.g:

$parent = Guicreate("Wee! Parent",200,200,50,50,-1,-1)

$childwin = Guicreate("Wee!",200,200,0,0,-1,-1,$parent)

Can I see some code?

Edited by eynstyne

F@m!ly Guy Fr33k! - Avatar speaks for itself__________________________________________________________________________________________ite quotes... - Is your refrigerator running? If it is, It probably runs like you...very homosexually - Christians don't believe in gravity - Geeze Brian where do you think you are, Payless?- Show me potato Salad!__________________________________________________________________________________________Programs available - Shutdown timer[indent][/indent]

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

It's a whole lotta code... 1200 lines, all GUI.

Maybe too much to paste here. What bit do you want to see? I'll break it out.

Edit: Sweet Jesus I figured it out. Thanks for your help, you turned on the lightbulb.

Edited by RagnaroktA

Current Projects:Remote Administration Suite Updated! 12-20-07Remote User State Migration Tool (Plugin) Updated! 12-20-07Batch Print Wizard Updated! 12-20-07Links:AutoIt Beta | AutoIt Wiki

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