Can you use this?

case sclExitEvent :

switch (event->data.sclExit.scrollBarID)

{

// sclVertical receives an event

case sclVertical1://ScrollBar1

break;

case sclVertical2://ScrollBar2

break;

......

}

.....


Ralf

Martin Vera" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]

I�ve got an scroll event that triggers when I press the scroll bar.  This is
working.  The problem is that I�ve got more than one scroll bar resource in
the same form so I need to know wicht one caused the event.  I�ve tried this
code but it doesn�t recognized the controlID property it gives me an error.

Boolean CFrmProductos::OnScroll(EventType* pEvent, Boolean& bHandled)
{
if(pEvent->data.sclRepeat.controlID ==
frmProductos_scrVerticalManual)
{ 
return true; 
} 

return false;
}






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

Reply via email to