I'm a newbie in CodeWarrior programming. I'm using
CodeWarrior for Palm on Windows Me.

Now I'm developing a simple entry form which contains
some Labels, Fields, Scroll Bar, and Buttons.
I have a problem when I try to correlate Field and
Scroll Bar.
This Field consists of 128 max characters and 2
visible lines, and a Scroll Bar next to it.

When I try to write some long texts in this Field the
Scroll Bar appears when the Field scrolls, so it is
OK.
It seems that the statement 'SclSetScrollBar (bar,
scrollPos, 0, maxValue, fieldHeight-1)' is working
fine.

But, conversely when I tap the Scroll Bar to scroll up
or down the Field, it doesn't work.
I use the statement 'FldScrollField (fldP,
linesToScroll, direction)' to do this.
I've debugged this and I found that the value of
'direction' is always 86 whether I tap the upper or
lower side of the Scroll Bar, I guess it's source of
the problem.The statement ' if (FldScrollable (fldP,
direction)) ' is always false, how to make it true ?
I've tried to compare this source code with the Memo.c
file included in the CodeWarrior and it seems OK.

Any helps would be appreciated.

Bill



__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to