i think i know what the problem was.
when i handled the popSelectEvent i entered the OnSelIcon() function. in this 
function i have 

m_trgIcon.SetLabel("__ many spaces not displayed in htlm __"); 

which sets the label longer. i thought i wanted it longer so that when i press 
on the icon i can pop the list up. since the trigger label is empty and when i 
tap on the trigger it will be brought forward (layers?) to the uppest layer on 
top of the icon drawing layer. that is why the drawing dissapeared.

now i have to live with 
m_trgIcon.SetLabel("__ no spaces__"); 
so that the icon stays, but on the down side i will have to press on the 
triangle to pop the list

thanks for the help!


Boolean CCategoryForm::OnSelIcon(EventPtr pEvent, Boolean& bHandled) 
{ 
Int16 trgX,trgY; 
m_trgIcon.GetObjectPosition(trgX,trgY); 
RectangleType rect; 
rect.topLeft.x = trgX+12; 
rect.topLeft.y = trgY+1; 
rect.extent.x = 10; 
rect.extent.y = 9; 

WinPushDrawState(); 
WinSetForeColor(0); 
WinDrawRectangle(&rect,0); 
WinPopDrawState(); 
m_trgIcon.SetLabel("     "); // <----------- problem was here
DrawIcon(m_lstIcon.GetSelection(),trgX+12,trgY+1); 
m_iSelectedIcon = m_lstIcon.GetSelection(); 


bHandled = true; 
return true; 
}
To unsubscribe send an email to  [EMAIL PROTECTED]
-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/

Reply via email to