Jump to content

Recommended Posts

  • Replies 93
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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!"

Link to post
Share on other sites

When this is done, you'll probably be amazed... I have grand ideas for a form designer... muhuhuwhahahaha

Great !! That should make it a complete package. :whistle:B)

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!"

Link to post
Share on other sites

When this is done, you'll probably be amazed... I have grand ideas for a form designer... muhuhuwhahahaha

It will be name AU3GUIScripWriter ... :whistle: Edited by jpm
Link to post
Share on other sites
Guest kotschi

...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 :whistle:

Or is the source-code for this new autoit-version anywhere available?

Thanks Holger

Link to post
Share on other sites
Guest kotschi

ohhhhh :angry:

I found a solution for my 'problem' that maybe wasn't a 'problem :whistle:

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... B)

Edited by kotschi
Link to post
Share on other sites

ohhhhh  :angry:

I found a solution for my 'problem' that maybe wasn't a 'problem  :whistle:

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... B)

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

Link to post
Share on other sites

Perhaps the $GUI_... are not so good so comments

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.

Link to post
Share on other sites

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 iconPosted Image
Link to post
Share on other sites
Guest kotschi

@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 box

If 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... :whistle:

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 by kotschi
Link to post
Share on other sites

@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 !

Holger

Yes 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.

Link to post
Share on other sites
Guest kotschi

@jpm: thanks, I'll test it in 1h B)

Hey, I think today it's christmas-time :whistle:

Holger

Ahhh, forgot something: whats the difference between AutoIt3-gui.exe and AutoIt3-jpm.exe?

They are the same versions but different sizes...Hmmm....

Edited by kotschi
Link to post
Share on other sites

@jpm: thanks, I'll test it in 1h B)

Hey, I think today it's christmas-time  :whistle:

Holger

Ahhh, 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
Link to post
Share on other sites
Guest kotschi

!!! @jpm: ohhhh, the good one is not so good :whistle:

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?

Holger

Edited by kotschi
Link to post
Share on other sites

!!! @jpm: ohhhh, the good one is not so good  :whistle:

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?

Holger

I don't know what happens but try this new one (take care of your cache same name)
Link to post
Share on other sites
Guest kotschi

@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 :whistle:

Link to post
Share on other sites

@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  :whistle:

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 doc

I hope it is a good decision we will see

Link to post
Share on other sites
Guest kotschi

@jpm: yes, I understand :whistle:

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 B)

Link to post
Share on other sites
Guest kotschi

@jpm: the next problem is GUISetControlCurFont: :whistle:

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 box

This 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 box

Then the whole script crashes

The problems only occur with the function:

GUISetControlCurFont(X) and GUISetControlCurFont(X,X)

Holger

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...