Justforfun Posted July 17, 2010 Share Posted July 17, 2010 I there away to make it when you click a button on the gui it will shrink from original size 450, 200 to like 50, 50 I have tried the guictrlsetpos and change the hieght and width at the end but no lick help please. Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted July 17, 2010 Share Posted July 17, 2010 First you say Window, and then Control. What is it you want to resize? Window: WinMove() Control: GUICtrlSetPos() OR ControlMove() depending on the situation. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
Justforfun Posted July 17, 2010 Author Share Posted July 17, 2010 First you say Window, and then Control. What is it you want to resize?Window:WinMove()Control:GUICtrlSetPos() OR ControlMove() depending on the situation.Its the GUI window I want to click a button on the gui window and have it resize the gui window. Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted July 17, 2010 Share Posted July 17, 2010 (edited) So just WinMove() it then. Tell us if you need an example. Edit:more words Edited July 17, 2010 by AdmiralAlkex .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
Justforfun Posted July 17, 2010 Author Share Posted July 17, 2010 So just WinMove() it then. Tell us if you need an example.Edit:more wordsNo I understand how to do it I just didnt know what command to use. I have one button top right of my GUI window called shrink then the other button top left called grow. I have other buttons and sliders on my GUI window is ther any way to keep the shrink and grow buttons on top and visible when I shrink the window because when it shrinks all the buttons cram together and over lap so I cant see the grow button to get it back to original size. And thank you for your help so far if you know the command I can get it from there I looked in buttonconstants didnt see anything tried a windowconstant $WS_EX_TOPMOST but it didnt help mabye I am looking in the wrong area of the help file. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now