Sign in to follow this  
Followers 0
peterbonge

Problem with GuiCreateEx

5 posts in this topic

Hello again...

Under certain circumstances 2 buttons of my gui are disabled. In this case the helpfile defined with

GuiCreateEx("notepad readme.txt", -1, icon.ico)

doesn't work anymore.

If I'm removing the lines

GuiSetControlEx($but1,128)

GuiSetControlEx($but1,128)

it works fine again...

By the way: Is it possible to open other formats with GuiCreateEx than just textfiles?


Regards,Peter Bonge

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Take a look at GuiConstants.au3

128 == $GUI_DISABLE which means that a control with that style will appear disabled/grayed-out.

GuiCreateEx should support at least TXT, EXE, HLP, CHM. If Adobe Acrobat Reader (or similar program) is installed, I imagine that PDF would work.

Edited by CyberSlug

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post


Link to post
Share on other sites

I see you don't understand me:

I have no problems with disabling buttons. But when a button is disabled the helpfile (F1) defined with GuiCreateEx doesn't work anymore.

Button enabled -> F1 works

Button disabled -> F1 doesn't work


Regards,Peter Bonge

Share this post


Link to post
Share on other sites

Button enabled -> F1 works

Button disabled -> F1 doesn't work

Ah, now I see what you mean!

I recommend posting a small sample script and the version of AutoIt-Gui you are using to the Bugs forum.


Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post


Link to post
Share on other sites

Now I've found out that only disabling the first button causes this problem. It's strange...

I've posted it to the bugs forum.


Regards,Peter Bonge

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