Hello everybody,
I'm trying to dynamically create controls in a notification handler. I
have an application that display a standard form, then broadcast a
custom notification to tell all registered app to create their controls
(like a plugins mecanism). I'm stuck because FrmNewLabel does
, then broadcast a
custom notification to tell all registered app to create their controls
(like a plugins mecanism). I'm stuck because FrmNewLabel does not work
(I don't know about other controls). It simply returns a NULL ptr and
did not create the control.
If I use FrmNewLabel in the main
gamepower111 [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
FrmNewLabel (frmP, 1500,labelCaption , 30,30, stdFont) ;
You have to call FrmDrawForm to get the label redrawn. Or you could try
hiding and then showing it again. I've heard that the dynamic UI on PalmOS
is a bit
Great! Now i decide to use WinEraseRectangle and WinDrawChars to do my
task...
Thanks Alan!
fan
Alan Ingleby [EMAIL PROTECTED] дÈëÏûÏ¢ÐÂÎÅ
:[EMAIL PROTECTED]
gamepower111 [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
yes, WinDrawChars() is a good and easy way. but I have to
gamepower111 [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
yes, WinDrawChars() is a good and easy way. but I have to change the data
while the data has been updated. do you have a good suggestion of this?
Try WinEraseRectangle, then another WinDrawChars...
Or...
Can't you just use
PROTECTED]
FrmNewLabel (frmP, 1500,labelCaption , 30,30, stdFont) ;
You have to call FrmDrawForm to get the label redrawn. Or you could try
hiding and then showing it again. I've heard that the dynamic UI on
PalmOS
is a bit unstable, so why not just use WinDrawChars(Hello,5,30,30) to do
Hi everyone,
I used the following codes to create a label dynamicly, but why the lable
didnt appear on the form?
FormType *frmP = FrmGetActiveForm();
char* labelCaption = hello;
FrmNewLabel (frmP, 1500,labelCaption , 30,30, stdFont) ;
thanks.
fan
--
For information on using
hi all,
I am trying to dynamically create a form and 7 labels. The first 6 labels
are properly created and displayed. Code snippet is given below:
label=FrmNewLabel(dynForm,ID,textP,x,y,font);
if(label != 0){
index=0;
index = FrmGetObjectIndex(dynForm,ID);
FrmShowObject(dynForm,index