When using the following code in the FrmOpenEvent handler for my app, I
get a run-time error dialog from POSE saying "Control.c, Line:1707,
Background must be at least half as wide as slider":
case frmOpenEvent:
sliderP = GetObjectPtr(frm, SettingsVolumeSliderControl);
min=0, max=10, page=2, value=8;
CtlSetSliderValues(sliderP, &min, &max, &page, &value);
FrmDrawForm(frm);
break;
The slider is 80x15 pixels. I haven't specified a background bitmap in
the slider resource (using Constructor), so that according to the
KnowledgeBase article describing sliders
(http://oasis.palm.com/dev/kb/manuals/1788.cfm) the default background
bitmap will be used. The error seems to imply that the default
background bitmap is somehow not good. Has anyone else seen this error
and know how to fix it (other than providing my own background bimap)?
It only happens with the debug runs - the code runs fine on non-debug
ROMs.
John.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/