Re: Win32Lib bug?
Derek Parnell wrote:
> if window_type[id] = Window then ....
>
> this might have to be changed to ...
>
> if find(window_type[id], {Window, NoSizeWindow, ...}) != 0 then ....
>
> or maybe ...
>
> if and_bits(classAttr[window_type[id]], w32IsWindow) != 0 then ...
or just:
if window_class[ID] = WINDOW then ...
> if equal(styleflag, w32NoSizeWin) then
> flags = or_bits(....)
> elsif ...
> else
> flags = or_bits(defaultflags, styleflags)
> end if
For that matter, you could code the new Window classes as:
if equal(class, NoSizeWin) then
class = Window
flags = or_bits(w32NoSizeWin)
elsif ...
else
flags = or_bits(defaultflags, styleflags)
end if
but I think it's a bad plan.
A cleaner solution would be to create a Window class that has *no*
defaultflags, so that you could write:
win = create( GenericWin, ..., myWindowFlags )
-- David Cuny
|
Not Categorized, Please Help
|
|