orange Posted June 26, 2006 Share Posted June 26, 2006 Basically just that -- I ahve a GUI that is about 400 lines to setup, so I would like to condense it like you can with loops and functions. is there a way to do this? Link to comment Share on other sites More sharing options...
Developers Jos Posted June 26, 2006 Developers Share Posted June 26, 2006 Basically just that -- I ahve a GUI that is about 400 lines to setup, so I would like to condense it like you can with loops and functions. is there a way to do this?As in "View/Toggle all folds" ? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
MHz Posted June 26, 2006 Share Posted June 26, 2006 (edited) #region #endregion will collapse with folding in Scite4AutoIt3 Maybe like you mention with collapse... Edit: Like folds I thought JdeB Edited June 26, 2006 by MHz Link to comment Share on other sites More sharing options...
Uten Posted June 26, 2006 Share Posted June 26, 2006 (edited) Refactor and structure your code! Use regions. #region - Global declarations Global $guiMain, $ctlInput, $ctlLable #endregion - Global declarations ; Include stuff Main() Exit Func Main() While 1 $msg = GuiGetMsg() If $msg = 0 Then Sleep(250) Else GuiMsgCracker($msg) EndIf WEnd EndFunc Func GuiMsgCracker($msg) Switch $msg ;Switch requieres beta ;;;Do your stuff Case Else EndSwitch EndFunc EDIT: Also remember CTRL+ALT+ LEFT_CLICK on a +/- in the sidebar of the code will fold all subfolds. CTRL+SHIFT+LEFT_CLICK does something else. Edited June 26, 2006 by Uten Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling Link to comment Share on other sites More sharing options...
orange Posted June 28, 2006 Author Share Posted June 28, 2006 thanks guys 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