Jump to content

GuiCreate


Recommended Posts

Hi everybody!

Somewhere in one example script i've seen something like this:

GuiCreate(" .. Name ..", 600, 500,30, 30 , -xxxxxxxxxx, 128)

-xxxxxxxxxx stands for a 10 digit negative number. So i've had a look to the autoit-help

but i didn't understand how this negative 10 digit number was build. :)

So - can someone explain me, the connection between this way to build numbers and the "style" and "exStyle"? muttley

Thanks

Dizzy

Edited by Dizzy
Link to comment
Share on other sites

Negative numbers? Where do you get that??

If I go into the helpfile to the GUICreate function I click on the "GUI Control Styles Appendix" link and find myself a table of variables OR values I can use in a GUICreate.

So I get something like:

GuiCreate(" .. Name ..", 600, 500,30, 30 , $WS_POPUPWINDOW)

OR

GuiCreate(" .. Name ..", 600, 500,30, 30 , "0x80880000")

Extended styles are just styles that are applied ontop of the 'normal' style(s).

There only variables, but I guess that have to have a value as well muttley

If you want to use a exstyle and not a 'normal' style you can use -1 to set the default for style. (because a style is mandatory when using a exstyle)

If i'm wrong on something please correct me :) I have to learn as well :(

My active project(s): A-maze-ing generator (generates a maze)

My archived project(s): Pong3 (Multi-pinger)

Link to comment
Share on other sites

Thanks for answering Triblade,

yes, you're right. But i have found decimal numbers.

I was in the help file to - make some tests with hex - dec changing and found the solution.

I want to know what ever stand behind the dec number, so i converted it from dec to hex.

$dec = Hex(number)

Now i can split the hex to the different Values which were in the help-file.

It seems that the negative number depends to the numbers to be converted ...

I have to play around the styles, values and more muttley

Thanks

Dizzy

Edit : Hmm - try this

GuiCreate(" .. Name ..", 600, 500,30, 30 , -2138570752)

This should be the same as yours.

But i in a script it is really unreadable - i will take the style-names :)

Edited by Dizzy
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...