The order of your arguments is wrong.  Switch the stdFont and 3.  The error
is saying you're supplying an int where it expects a fontID.

Err LstNewList (void **formPP, UInt16 id, Coord x,
Coord y, Coord width, Coord height, FontID font,
Int16 visibleItems, Int16 triggerId)

--
Tim

"salil khanwalkar" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
> I want to create a dynamic popup list when the user taps on a text field.
Then show that list ,extract the selected value and display it in the text
field.
>
> This is my code for creating a dynamic list...
> UInt16 trgID = 10;
> LstNewList((void**)FrmProductMasterForm,1603,10,10,50,50,3,stdFont,trgID);
>
> 1603 is the resource ID of a list that i created using the constructor.
>
> I get the following error..
> Error   : illegal implicit conversion from 'int' to
> 'fontID'
> Starter.cpp line 873
LstNewList((void**)FrmProductMasterForm,1603,10,10,50,50,3,stdFont,trgID);
>
> What am i doing wrong.
>
> Thanks and regards,
> Salil.
>
>



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

Reply via email to