Text widget and Forms | developer.brewmp.com Text widget and Forms | developer.brewmp.com

Developer

Text widget and Forms

Is it not possible to simply attach a text widget into a form like a static widget?
COZ i tried this and it didn't show me any widget untill i did this

// get the device bitmap
nErr = IDISPLAY_GetDeviceBitmap(me->pIDisplay, &pib);
if (SUCCESS != nErr) {
return nErr;
}

// set the root container extent, and get display canvas
{
AEEBitmapInfo biDevice;
(void)IBITMAP_GetInfo(pib, &biDevice, sizeof(biDevice));
SETAEERECT(&(me->rcRoot), 0, 0, (short) biDevice.cx, (short) biDevice.cy);
nErr = ISHELL_CreateInstance(me->pIShell, AEECLSID_DISPLAYCANVAS, (void**)&(me->piCanvas));
if (SUCCESS != nErr) {
IBITMAP_Release(pib);
return nErr;
}
}

nErr = IDISPLAYCANVAS_SetDisplay((IDisplayCanvas*)(void *)me->piCanvas, me->pIDisplay);
if (SUCCESS != nErr) {
return nErr;
}

IROOTCONTAINER_SetCanvas(me->picRoot, me->piCanvas, &(me->rcRoot));
nErr = ISHELL_CreateInstance(me->pIShell, AEECLSID_STATICWIDGET, (void **)&(me->piwText));
if (SUCCESS != nErr) {
return nErr;
}

After which i attach it works ..

You shouldn't need all that. There must be some other problem.
-Erik

You shouldn't need all that. There must be some other problem.
-Erik