Jump to content
Sign in to follow this  
Meszaros Csaba

GUICreate and BitOR

Recommended Posts

Meszaros Csaba

Hi,

I have a simlpe question: How can I use BitOr in GUICreate command. I have two ideas:

1. GUICreate("Somename",x,y,w,h,BitOR($style,$extendedstyle,$parentGUI))

2. GUICreate("Somename",x,y,w,h,BitOR($style,$extendedstyle),$parentGUI)

Which one is correct ?

Csaba

Share this post


Link to post
Share on other sites
MrSpacely

both wrong

Style extended gui and the parent handle have their own parameter.

3. GUICreate("Somename",x,y,w,h,$style,$extendedstyle,$parentGUI)

bitor is not needed for this

Share this post


Link to post
Share on other sites
seandisanti

both wrong

Style extended gui and the parent handle have their own parameter.

3. GUICreate("Somename",x,y,w,h,$style,$extendedstyle,$parentGUI)

bitor is not needed for this

that's actually inaccurate. it is not used correctly in either of the examples given, but any time you want to combine styles or extended styles, not styles AND extended styles.

such as:

GUICreate ( "title" , width , height , left , top , BitOr(style1,style2,style3) ,BitOr(exStyle1,exStyle2) , parent)

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  

×