catch a mouse click as a raw event. If the mouse point is
in the edit fields rect then null out the event. Don't allow
the edit field to get the focus and you've defeated the users
attempt to access the field thereby making it static without
truly being static.
W.
-----Original Message-----
From: gnome [mailto:gnome@...]
Sent: Thursday, May 23, 2002 9:54 AM
To: futurebasic@...
Subject: Re: [FB] Static edit field problem
Le jeudi 23 mai 2002, à 01:24 , Douglas Stemen a écrit :
> In this example, a regular edit field can be made static and
> then return to
> non-static.
>
> A static edit field cannot be made non-static.
i would propose that your first statement is misled.
i think that in fact a regular edit field is always
non-static, however some 'magic' in the runtime allows
it to 'pretend' to be non-static for all practical
intents and purposes.
as edit fields, with the appearnce manager, cannot change
on-the-fly [they are in fact controls, and you cannot and
never have been able to turn a scroll bar to a checkbox
and then back].
so if you are needing edit fields to appear to 'turn' on
and 'on' use your first technique. trying to make non-static
fields wake up is sure to lead to pain.
:-j
--
To unsubscribe, send ANY message to <futurebasic-unsubscribe@...>