Jump to content

Problem with GuiCreateEx


Recommended Posts

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

Link to comment
Share on other sites

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!
Link to comment
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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...