"David Fedor" <[EMAIL PROTECTED]> wrote in message
news:26005@palm-dev-forum...
>
> >Palmos 3.5.* listboxes don't seem to respect the hasScrollBar flag, or
> >clipping regions.
>
> Yes, I can confirm that bug.  It is not an easy one to get around.  FWIW
it
> has been fixed in the main sources so you'll see it repaired in the next
OS
> release.

I assume this means the next full release, not in a 3.5.3 patch.

> One workaround might be to have your drawing callback call WinSetTextColor
> as its last step, and set the color to UIObjectFill or
> UIObjectSelectedFill, such that when it calls WinDrawChar to draw the up
or
> down arrow, it blends into the background and is thus invisible.  Not
> ideal, since it might overlap part of your list item's content, but
perhaps
> it'll do.  You'd also have to be careful to set the color back to
something
> normal at a later time, which could get tricky.

Another idea is to only allow your list to grow to the size of the visible
display.  So, if you want to scroll through 200 items but are only showing
10, just set the list size to 10.  Then, use a custom draw routine to
combine the index with a separate top offset based on the scroll bar
location.  That way, the list never gets larger than the screen so the
arrows are never drawn.  A scroll update would require repainting the whole
list.

I'd never realized what that "hasScrollBar" attribute meant -- it really
should be documented as turning off the "scroll character" display (although
documented along with the bug that it doesn't work on 3.5)



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

Reply via email to