I seem to be having a problem with a scrollbar, when i
enter into the form i'm using i get a
"Field.c Line 6425, not scrollable" fatal warning and
i traced the problem back to the call.
FldGetScrollValues (fld, &scrollPos, &textHeight,
&fieldHeight);
can anyone explain why this may be happing, the
function is below.
static void EditViewUpdateScrollBar() {
UInt16 scrollPos;
UInt16 textHeight;
UInt16 fieldHeight;
Int16 maxValue;
FieldType *fld;
ScrollBarPtr bar;
fld = GetObjectPtr (TctEditField);
bar = GetObjectPtr (TctEditScrollbar);
// FldGetScrollValues is the problem
// get values necessary to update scroll bar.
SysFatalAlert("1");
FldGetScrollValues (fld, &scrollPos, &textHeight,
&fieldHeight);
SysFatalAlert("2");
if (textHeight > fieldHeight)
maxValue = textHeight - fieldHeight;
else if (scrollPos)
maxValue = scrollPos;
else
maxValue = 0;
SclSetScrollBar (bar, scrollPos, 0, maxValue,
fieldHeight-1);
}
Cheers
DB
____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/