jpm Posted March 6, 2004 Author Posted March 6, 2004 Who needs an add on form designer True, but I am sure Larry will come out with a CONTROLscript that will do that.
GEOSoft Posted March 6, 2004 Posted March 6, 2004 It actually will be nice to have it all built in. I was just pointing out that this is a good work-around. I can do my layout in real time and then just use the same coordinates etc. for the actual AU3GUI file. If I want to make changes I just open the FRM file and make them, copy the new coordinates or sizes or whatever else and change the AU3 file accordingly. George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!"
GEOSoft Posted March 6, 2004 Posted March 6, 2004 When this is done, you'll probably be amazed... I have grand ideas for a form designer... muhuhuwhahahahaGreat !! That should make it a complete package. George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!"
jpm Posted March 6, 2004 Author Posted March 6, 2004 (edited) When this is done, you'll probably be amazed... I have grand ideas for a form designer... muhuhuwhahahahaIt will be name AU3GUIScripWriter ... Edited March 6, 2004 by jpm
Guest kotschi Posted March 7, 2004 Posted March 7, 2004 ...once again... @jpm: is it possible to include the states "enable", "disable", "hide" and "focus" into the function "GUIRead" cause it would make a lot of things easier for me Or is the source-code for this new autoit-version anywhere available? Thanks Holger
Guest kotschi Posted March 7, 2004 Posted March 7, 2004 (edited) ohhhhh I found a solution for my 'problem' that maybe wasn't a 'problem GUICreate("Checkboxes") $check1 = GUISetControl("checkbox","checkbox1",0,0) GUISetControlAction(2) $check2 = GUISetControl("checkbox","checkbox2",0,20) GUISetControlEx(21) While GUIExecute() If GUIRead($check1) = 1 Then If GUIRead($check2) = 1 Then GUIWrite($check2,17) Else GUIWrite($check2,16) EndIf Else If GUIRead($check2) = 1 Then GUIWrite($check2,21) Else GUIWrite($check2,20) EndIf EndIf Wend Exit .... Yeah, thats life... Edited March 7, 2004 by kotschi
jpm Posted March 7, 2004 Author Posted March 7, 2004 ohhhhh I found a solution for my 'problem' that maybe wasn't a 'problem GUICreate("Checkboxes") $check1 = GUISetControl("checkbox","checkbox1",0,0) GUISetControlAction(2) $check2 = GUISetControl("checkbox","checkbox2",0,20) GUISetControlEx(21) While GUIExecute() If GUIRead($check1) = 1 Then If GUIRead($check2) = 1 Then GUIWrite($check2,17) Else GUIWrite($check2,16) EndIf Else If GUIRead($check2) = 1 Then GUIWrite($check2,21) Else GUIWrite($check2,20) EndIf EndIf Wend Exit .... Yeah, thats life... Good, You can improve the readibility of your script using #include "GUI_include.au3" so you can use $GUI_ENABLE+$GUI_CHECKED instead of 17 21 is $GUI_DISABLE+$GUI_CHECKED Perhaps the $GUI_... are not so good so comments
alawoona Posted March 7, 2004 Posted March 7, 2004 Perhaps the $GUI_... are not so good so commentsWhat would help me would be a simple table of these values with 2 or 3 words on what effect they cause. I know there are the microsoft pages where these values are defined. Somehat helpful, but can read like gobbledy gook to me sometimes.
jpm Posted March 7, 2004 Author Posted March 7, 2004 What would help me would be a simple table of these values with 2 or 3 words on what effect they cause. I know there are the microsoft pages where these values are defined. Somehat helpful, but can read like gobbledy gook to me sometimes.already done for the next upload with background colo(u)r, windows title bar with icon
Guest kotschi Posted March 7, 2004 Posted March 7, 2004 (edited) @jpm: I think there is an error at your sample for GUISetControlFont in the helpfile...!!! AND It doesn't work correctly !!!There is an error message that the number of parameters in function call is incorrect !GUICreate("My GUI"); will create a dialog box that when displayed is centered GUISetControlCurFont(12, 700, "Comic Sans MS", 4) ; will display underlined characters creation GUISetControl("label","my underlined label",0,0) GUIExecute() ; will display an empty dialog boxIf I only use:GUISetControlCurFont(12, 700, "Comic Sans MS")then there is no error BUT I couldn't use different fonts!All fonts are 'overwritten' by the default I think "sysgui-font"...... it is always the same font... You can see it with this...GUICreate("My GUI") GUISetControlCurFont(10,400,"fixedsys") GUISetControl("label","my underlined label",0,0,150,25) GUIExecute()And that is not the Fixedsys-Font.Holger Edited March 7, 2004 by kotschi
jpm Posted March 7, 2004 Author Posted March 7, 2004 @jpm: I think there is an error at your sample for GUISetControlFont in the helpfile...!!! AND It doesn't work correctly !!!There is an error message that the number of parameters in function call is incorrect !HolgerYes they were bug in this first proof of concept version.I am on the way to upload what I think a final tested version.I just discover that the GUIWrite when setting the state as noway to update only enable/hidden without resetting the checked state of a checkbox.So I need to do some more changes for handling this situation.
jpm Posted March 8, 2004 Author Posted March 8, 2004 Just to inform everybody that the proof of concept is now mature.Pick up the new version at http://www.hiddensoft.com/fileman/users/jpm/AutoIt3-gui/with background colo(u)r and icon Thanks Valik, Larry, Jon
Guest kotschi Posted March 8, 2004 Posted March 8, 2004 (edited) @jpm: thanks, I'll test it in 1h Hey, I think today it's christmas-time HolgerAhhh, forgot something: whats the difference between AutoIt3-gui.exe and AutoIt3-jpm.exe?They are the same versions but different sizes...Hmmm.... Edited March 8, 2004 by kotschi
jpm Posted March 8, 2004 Author Posted March 8, 2004 @jpm: thanks, I'll test it in 1h Hey, I think today it's christmas-time HolgerAhhh, forgot something: whats the difference between AutoIt3-gui.exe and AutoIt3-jpm.exe?They are the same versions but different sizes...Hmmm....I forgot to change the name so the good one is -jpm I will reupload
Guest kotschi Posted March 8, 2004 Posted March 8, 2004 (edited) !!! @jpm: ohhhh, the good one is not so good The first 2 things/errors I saw:When I use this:GUICreate("My GUI"); will create a dialog box that when displayed is centered $font="Comic Sans MS" GUISetControlCurFont(9, 400, $font, 4) ; will display underlined characters GUISetControl("label","underlined label",10,20) GUISetControlCurFont(9, 400, $font, 2) ; will display underlined characters GUISetControl("label","italic label", 0,-1) GUISetControlCurFont(9, 400, $font, 8) ; will display underlined characters GUISetControl("label","strike label",0,-1) GUIExecute() ; will display an empty dialog boxit works on the "old"-version (without-jpm you know...)With the new version there is only a black window !!!The 2.thing is (I don't know if its an error) the window-preferences:As default the style is changed, not like the old version...you cannot change the size by default...the maximize-button is not more available too!This error is in both versions (the one from yesterday and the new version from today)!Do you understand what I mean?Holger Edited March 8, 2004 by kotschi
jpm Posted March 8, 2004 Author Posted March 8, 2004 !!! @jpm: ohhhh, the good one is not so good The first 2 things/errors I saw: When I use this: GUICreate("My GUI"); will create a dialog box that when displayed is centered $font="Comic Sans MS" GUISetControlCurFont(9, 400, $font, 4) ; will display underlined characters GUISetControl("label","underlined label",10,20) GUISetControlCurFont(9, 400, $font, 2) ; will display underlined characters GUISetControl("label","italic label", 0,-1) GUISetControlCurFont(9, 400, $font, 8) ; will display underlined characters GUISetControl("label","strike label",0,-1) GUIExecute() ; will display an empty dialog box it works on the "old"-version (without-jpm you know...) With the new version there is only a black window !!! The 2.thing is (I don't know if its an error) the window-preferences: As default the style is changed, not like the old version...you cannot change the size by default...the maximize-button is not more available too! This error is in both versions (the one from yesterday and the new version from today)! Do you understand what I mean? HolgerI don't know what happens but try this new one (take care of your cache same name)
Guest kotschi Posted March 8, 2004 Posted March 8, 2004 @jpm: yeah, this one works I think (noe more black screen), but what is with the second point: the default style? Is the new default style wanted? I think the style is only $WS_CAPTION + $WS_MINIMIZEBOX $WS_SYSMENU and maybe the Exstyle $WS_EX_APPwindow... I don't know, but there is a difference to version 3.0.100.1
jpm Posted March 8, 2004 Author Posted March 8, 2004 @jpm: yeah, this one works I think (noe more black screen), but what is with the second point: the default style?Is the new default style wanted?I think the style is only $WS_CAPTION + $WS_MINIMIZEBOX $WS_SYSMENU and maybe the Exstyle $WS_EX_APPwindow...I don't know, but there is a difference to version 3.0.100.1 Yes there are difference.By default the size is what is define in GUICreate.No need to be sizable so maximize and size are off see docI hope it is a good decision we will see
Guest kotschi Posted March 8, 2004 Posted March 8, 2004 @jpm: yes, I understand I think you're right, cause the most people don't want to have a 'changable' (I don't know the right english word) GUI. Yeah, thanks again, I'll test now my scripts
Guest kotschi Posted March 8, 2004 Posted March 8, 2004 @jpm: the next problem is GUISetControlCurFont: I take your sample:GUICreate("My GUI") ; will create a dialog box that when displayed is centered $font="Comic Sans MS" GUISetControlCurFont(9, 400, $font, 4) ; will display underlined characters GUISetControl("label","underlined label",10,20) GUISetControlCurFont(9, 400, $font, 2) ; will display underlined characters GUISetControl("label","italic label", 0,-1) GUISetControlCurFont(9, 400, $font, 8) ; will display underlined characters GUISetControl("label","strike label",0,-1) GUIExecute() ; will display an empty dialog boxThis one works, BUT when I use only:GUICreate("My GUI") ; will create a dialog box that when displayed is centered $font="Comic Sans MS" GUISetControlCurFont(9, 400) ; will display underlined characters GUISetControl("label","underlined label",10,20) GUISetControlCurFont(9) ; will display underlined characters GUISetControl("label","italic label", 0,-1) GUISetControlCurFont(9, 400) ; will display underlined characters GUISetControl("label","strike label",0,-1) GUIExecute() ; will display an empty dialog boxThen the whole script crashesThe problems only occur with the function:GUISetControlCurFont(X) and GUISetControlCurFont(X,X)Holger
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