Hi all:
I'm developing in Palm OS 4, working with CW8 on W2KPro.
I want to know the size (actually height and width) of an object in a
form (a PopupTrigger). For this, the idea is to get the bounds of object in
a RectangleType variable to obtain height and width. To calculate the width,
I suppose I can do:
uiWidth = rtObject.extent.x - rtObject.topLeft.x;
I used FrmGetObjectBounds(frmP, uiObjectIndex, &rtObject), but the problem
is that the function ALWAYS returns:
rtObject.extent.x == 59
i.e., I called the function to obtain the size of other popup triggers
(of diferent sizes), but the function always returns the same value for
'extent.x' (59). Is it correct? What's the way the variable is calculated?
It's correct the way that I want to use to calculate the width?
Sorry for my English, I tried to explain the problem the best I can.
Best regards
Ariel Ayala
Corrientes, Argentina
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/