Greetings,

We have a gadget that we are using as a tab control. The gadget is being
used in the 3.0 fashion. It basically works by hiding & showing controls
(FrmHideObject and FrmShowObject) on pen down events. The gadget overlaps
all the controls and some of the controls (check boxes and repeating
buttons) that lie within the gadget area overlap each other. In Constructor,
when we lay out the controls, they are not set to be usable (unlike the
gadget). 

This seems to work fine on 3.0, 3.1 etc but under 3.5 (both debug and
release ROMs), even though the controls are visible correctly (and hence are
usable, I believe), they don't respond to any mouse down events (no
CtlSelect or CrlRepeat events come through). Just to make sure, I even tried
calling CtlSetUsable but still no luck. Changing the order of the controls
and gadget in the form made no difference either. 

Any ideas what's going on?

If I delete the gadget after drawing the tabs initially (FrmRemoveObject),
everything is fine and the controls respond like they should! Another
interesting thing I noticed while playing with this stuff was that if there
no overlapping controls inside the gadget area, everything behaves normally.
However, this is not an acceptable workaround for us. Luckily, calling
FrmRemoveObject on the gadget is because the gadget is really only being
used to figure out the rectangle for drawing the tabs. 

FrmRemoveObject obviously fixes up the form in some way. I did not look very
hard, but it does not appear there is any other function in Form.c that does
similar things. I would like to know what I am doing wrong. Can any Palm Dev
Support people please respond, thanks.

- Sudeep

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to