Georgi,
> Interesting what is this button's purpose? You have
> no opportunity to handle
> any events coming while you are in FrmDoDialog. If
> you want this button to
> act somehow different then the default in
> FrmDoDialog (closing the dialog)
> you should not use this API. You can use
> FrmPopupForm or write your own
> DoDialog function, which will let you handle the
> events.
> However if this button is just a place holder for
> later versions, you can
> replace it with other types of buttons (repeating).
> FrmDoDialog ends only
> when standard button is pushed.
I can't use FrmPopupForm since this is a second
configuraiton dialog in a hack. I am using
FrmDoDialog within my own function that specifies the
event handler as show below:
// init form
pForm = FrmInitForm(ActForm);
// set new form
FrmSetActiveForm(pForm);
// set alarm form event handler
FrmSetEventHandler(pForm, ActivationEventHandler);
// initialize and draw the form
ActivationInit(pForm);
FrmDrawForm(pForm);
// now wait for button to be pressed
do {
} while(FrmDoDialog(pForm) == ActDefaultButton);
// now clean up form
FrmEraseForm(pForm);
FrmDeleteForm(pForm);
FrmSetActiveForm(pCurrentForm);
When you stated that "FrmDoDialog ends only when
standard button is pushed", do you mean the default
button or any standard button?
Thanks,
Mike McCollister
__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards�
http://movies.yahoo.com/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/