Re: [WIN] Who wants a tough question?
----- Original Message -----
From: "Dan B Moyer" <DANMOYER at PRODIGY.NET>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Sunday, November 19, 2000 4:54 PM
Subject: Re: [WIN] Who wants a tough question?
> Levi,
Hi Dan and others,
if you really insist on the old behaviour, the closest you can get to it is
this...
Put the following lines just after the include for win32lib.ew ...
object whocares
whocares = classDefaults(Window, {{CCflags,0}})
The rest of your code remains unchanged except for create(Window, ..., 0).
Any of these, you should change to
win = create(Window, ..., WS_OVERLAPPEDWINDOW)
>
> I just read an earlier post from Derek, and what he said there suggests
that
> I should mention that I don't know if the Win32Lib hack I suggested might
> interfere with proper action of *other* control's styles or not.
Yes it will.
> And he
> gives some suggestions which relate to what you want, though I still would
> rather just be able to include the user specified styles simply & directly
> in the windows create statement and have them *replace* the defaults.
And I'd rather the function had consistent behaviour with all controls.
And yet another idea to get around this idealogical impass, how about having
two functions like create(), one that behaves in the manner you are
describing, and the other just using the default flags.
win = createStyledControl(<controltype>,
<caption>,
<parent>,
<left>,<top>,<width>,<height>,
{<styleflags, extendedstyleflags}>
)
win = createControl(<controltype>,
<caption>,
<parent>,
<left>,<top>,<width>,<height>
)
------
Derek Parnell
Melbourne, Australia
(Vote [1] The Cheshire Cat for Internet Mascot)
|
Not Categorized, Please Help
|
|