April 23, 2024, 04:35:27 PM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


Windows Flag values

Started by billhsln, August 22, 2016, 10:55:13 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

billhsln

I have seen in the documentation the 'keyword' values for the flags, but is there some where that shows what their values are.

I have lots of programs that have stuff like

OPENWINDOW w1,0,0,desW,desH,0x80C80080,0,"  Dots Game",&w1_handler

CONTROL w1,@BUTTON,"Exit",360,10,50,25,0x50000000,W1_B1
control w1,@STATIC,"Player 1",100,10,55,20,@CTEDITCENTER,W1_S1
control w1,@STATIC,"Player 2",180,10,55,20,@CTEDITCENTER,W1_S2
CONTROL w1,@EDIT,"0",100,30,45,20,0x50800000,W1_E1
CONTROL w1,@EDIT,"0",180,30,45,20,0x50800000,W1_E2
CONTROL w1,@EDIT,"Player 1",250,30,75,20,0x50800000,W1_E3


I would be interested in knowing what the '0x80C80080' translates to like @MINBOX|@MAXBOX|@SIZE.

I am planning on converting all of them over to the @MINBOX format, but I need to know what the numbers translate to.

Thanks,
Bill
When all else fails, get a bigger hammer.

LarryMc

The value of each @MINBOX type constant can be found in the *.incc files in the /bin folder.
And in some cases you'll have to do some binary math
'0x80C8008D'  =
    80000000
        800000
        400000
          80000
                80
                 8
                 4
                 1

FYI
IWB+ has the controls and uses the text versions of the flags when it generates its code.
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

billhsln

I always forget about the INCC files.  Probably due to the fact that I don't do many includes.

Will go thru the files and see what I can find.

Thank you,
Bill
When all else fails, get a bigger hammer.

Egil

One of the users of MiniBASIC sent me the attached file some years ago. It has come in handy many times.


Egil
Support Amateur Radio  -  Have a ham  for dinner!