1. Window styles was {Back to Bitmaps]

Thank you Al and Jason,

Correction: Should have been Bitwise not Bitmaps.

Now what is confusing me here is why are there 2 Window styles ?

create
createEx

style
styleEx

flag
flagEx

Don Cole

new topic     » topic index » view message » categorize

2. Re: Window styles was {Back to Bitmaps]

don cole wrote:
> 
> Thank you Al and Jason,
> 
> Correction: Should have been Bitwise not Bitmaps.
> 
> Now what is confusing me here is why are there 2 Window styles ?
> 
> create
> createEx
> 
> style
> styleEx
> 
> flag
> flagEx
> 
> Don Cole

Hi Don,

There are two window styles (Style, StyleEx) because that's the way
Microsoft did it when Windows evolved to have more advanced styles.

Wait till you use the HotTrackButton class, which has one more style:
the "Advanced" style, he he.  This gives it three styles altogether smile
The advanced style controls the text shadow/highlight order.

Style
StyleEx
AdvancedStyle (1,2 or 3)



Take care,
Al

And, good luck with your Euphoria programming!

My bumper sticker: "I brake for LED's"

 From "Black Knight":
"I can live with losing the good fight,
 but i can not live without fighting it".
"Well on second thought, maybe not."

new topic     » goto parent     » topic index » view message » categorize

3. Re: Window styles was {Back to Bitmaps]

don cole wrote:
> 
> Thank you Al and Jason,
> 
> Correction: Should have been Bitwise not Bitmaps.
> 
> Now what is confusing me here is why are there 2 Window styles ?
> 
> create
> createEx
> 
> style
> styleEx
> 
> flag
> flagEx
> 
> Don Cole
You're welcome!

I didn't think of equating it to electronic OR gates. Since I work in
electronics I should have thought of that. That is the best way of thinking about
it. Think of a series of OR gates with each input being one of WS_SYSMENU and
WS_OVERLAPPED. Say 32 OR gates so all of the bits could be ORed together. The
output is the result. It becomes much simpler with software because with hardware
you would have to add even more inputs for each value to be ORed together.

The difference between create() and createEx() is the different versions of
Windows. The *Ex versions either take more options or use Unicode or whatever.
You really have to look up the documentation on the functions.

This is from someone who reads a lot but doesn't do anything with the knowledge
that he gains (me).

--
"Any programming problem can be solved by adding a level of indirection."
--anonymous
"Any performance problem can be solved by removing a level of indirection."
--M. Haertel
"Premature optimization is the root of all evil in programming."
--C.A.R. Hoare
j.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu