Font and alignment of title in static dialog | developer.brewmp.com Font and alignment of title in static dialog | developer.brewmp.com

Developer

Font and alignment of title in static dialog

Hi all,

I am using static dialog class to display errors in information in my application. I have set title text. But I am not able to set title image. I have used IFORM_SetTitleImage(). but title image is not set. anyone know how to set title image.

Moreover, am not able to change title font and title alignment. Is it possible to change it???

Thanks in advance,
Krishna

I was able to set title image using:
IImage *piImage = ISHELL_LoadImage(me->pIShell, "test.bmp");
(void)IFORM_SetTitleImage(me->piForm, piImage);
You can change the font and other properties using decorator widget. See "Title Widget Class" in API reference.

I was able to set title image using:
IImage *piImage = ISHELL_LoadImage(me->pIShell, "test.bmp");
(void)IFORM_SetTitleImage(me->piForm, piImage);
You can change the font and other properties using decorator widget. See "Title Widget Class" in API reference.

Thanks Atul,
I have taken title widget from dialog and then set image and font.
IFORM_GetWidget(messageScreen_, WID_TITLE,&titlewidget);
IWIDGET_SetBGImage(titlewidget, titleimage);
I want to know that dialog size is fixed or we can change that??
The size as it is mentioned in API Reference:
Preferred vertical Extent: 70% of the height of the root form's client rectangle Preferred horizontal Extent: 80% of the width of the root form's client rectangle
I have tried to set extent to different size but its not working.. Any idea???
Thanks in advance
krishna

Thanks Atul,
I have taken title widget from dialog and then set image and font.
IFORM_GetWidget(messageScreen_, WID_TITLE,&titlewidget);
IWIDGET_SetBGImage(titlewidget, titleimage);
I want to know that dialog size is fixed or we can change that??
The size as it is mentioned in API Reference:
Preferred vertical Extent: 70% of the height of the root form's client rectangle Preferred horizontal Extent: 80% of the width of the root form's client rectangle
I have tried to set extent to different size but its not working.. Any idea???
Thanks in advance
krishna

A form specifies its size by handling the FID_PREFRECT property in its event handler.
-Erik

A form specifies its size by handling the FID_PREFRECT property in its event handler.
-Erik