Unable to create ICANVAS and TEXTMODEL | developer.brewmp.com Unable to create ICANVAS and TEXTMODEL | developer.brewmp.com

Developer

Unable to create ICANVAS and TEXTMODEL

Hi,

Iam trying to get my hands on widgets, iam able to draw a basic frmae with static lable control to it, however say if i want to display "123456" on the label it displays only 12, i have checked that the data is on heap and the ownership is with me, any reasons for this?? tried setting extent, width, height, flags like wrap text, doesnot work.

Also on one hand iam able to create instances of most of the objects but not AEECLSID_TEXTWIDGET and AEECLSID_CANVAS.

Text Widget i suppose the device has to have that or the OEM has to provide it as per documentation. (Correct me if Iam Wrong :) ), but canvas is both an interface and object and should be definitely available. But trying to create both of them gives me a ECLASSNOTSUPPORTED err....

Any help would be appreciated, stuck in the middle of nowhere :((

1. check the size of the Text string that you are using to set to the Static Widget.
2. Create Instance for TextWidget should work properly. Make sure you have included all the paths.( i mean its getting the .h but not the .c).
try to coppy the Widgets and Forms src Folders to the directory where your mif is..

1. check the size of the Text string that you are using to set to the Static Widget.
2. Create Instance for TextWidget should work properly. Make sure you have included all the paths.( i mean its getting the .h but not the .c).
try to coppy the Widgets and Forms src Folders to the directory where your mif is..

You want to create AEECLSID_DISPLAYCANVAS instead.
-Erik

You want to create AEECLSID_DISPLAYCANVAS instead.
-Erik