Hello,

I'm new to PalmOS programming and writing an application that needs
two PopTriggers (pulldown menues) on the form. I have added Popup
Triggers on my form in the Constructor and associated List IDs with
their respective Popups but i could not get the exact control event
sequence to display my dynamic lists against those popups.

The lists are populating Fine without the popup by using
"lstSelectEvent". Lists are populated dynamically from DB in
frmOpenEvent. Following is my code to get controls of lists:

case frmOpenEvent:
                
        FrmDrawForm (frmP);
                        
        // CRE list...
        listP = GetObjectPtr(RSMasterCREList);
        getCREList(listP);
        LstSetSelection( listP, creArrayIndex );
                        
        // Companies list...
        listP = GetObjectPtr(RSMasterCompanyList);
        getCompaniesList(listP);
        LstSetSelection( listP, companyArrayIndex );

        handled = true;
        break;

case lstSelectEvent:
                
switch( eventP->data.lstSelect.listID )
{
        case RSMasterCREList:
                                
        creArrayIndex = LstGetSelection( GetObjectPtr(RSMasterCREList) );
        handled = true;
        break;
        
        case RSMasterCompanyList:
        
        companyArrayIndex = LstGetSelection( GetObjectPtr(RSMasterCompanyList) );
        handled = true;
        break;
}

Now, I just need to create a sort of wrapper on these lists of Popup
Trigger (pulldown menu). Can anybody help?

Thanks & Kind Regards,
Muhammad Omar

TechAges
http://www.TechAges.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