Hi,
  I'm having a problem with LstSetSelection in 3.5 drawing even when the 
list is not usable and not visible.

Sample code:

  LstSetListChoices(listP, NULL, 5);
  LstSetHeight(listP, 5);
  LstSetDrawFunction(listP, DrawDropItem);

// using cw pose plugin I verified listP->attr.visible = 0, attr.usable=0
  LstSetSelection(listP,3);
 // The above draws the item on the screen - prior to popping up the list!
  newListSelected = LstPopupList(listP);        
//  the text drawn by the LstSetSelection is still displayed on the screen

The same code works fine using the 3.0 debug rom image.

Thanks in advance for your help.

___________________________________________________
Subject: Re: LstSetSelection & OS3.5 (AGAIN)
From: Jim Schram <[EMAIL PROTECTED]>
Date: Sun, 27 Feb 2000 12:11:45 -0800
X-Message-Number: 16

<snip>

Comparing the LstSetSelection sources for 3.0 and 3.5, both draw the list 
if it's usable and visible (listP->attr.usable && listP->attr.visible). If 
there is a current selection (listP->currentItem != noListSelection), the 
selection is XORed in OS versions prior to 3.5, but it is drawn in OS 
version 3.5 (because color XOR looks bad). Perhaps that's the source of 
your trouble? Is the visible bit set in the list you pass to 
CategoryCreateList? It should not be marked visible until just before 
calling LstPopupList.

Regards,

Jim Schram
Palm Incorporated
Partner Engineering


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to