Re: opening windoze

new topic     » goto parent     » topic index » view thread      » older message » newer message

Wolf wrote to Kat:

> -- NEW! 0.30
>     -- convert the style to a Win32 flag
>     if      style = Minimize then   styleFlag = SW_SHOWMINIMIZED
>     elsif   style = Maximize then   styleFlag = SW_SHOWMAXIMIZED
> elsif style=NEWSTYLE then styleFlag=SW_SHOWMINNOACTIVE -- add THIS !!
>     else                            styleFlag = SW_SHOWNORMAL
>     end if

The reason I use bogus flags is because of the Modal property. Otherwise,
I'd just map the constants like so:

   constant
    Minimize = SW_SHOWMINIMIZED,
    Maximize = SW_SHOWMAXIMIZED

If I make the Modal constant -1, then I can change openWindow to accept
regular Win32 flags. I'll look into this.

SettingModal as a property in openWindow is probably a bit of a mistake; it
reflects a class of window instead of a display property. I should instead
have set up seperate classes of windows, such as Window, Dialog, Palette,
MDI and so on. Creating a modal window would become:

   constant MyModal = create( Dialog, ... )

-- David Cuny

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu