Usenet.com

www.Usenet.com

Group Index

Comp Thread Archive from Usenet.com

<-- __Chronological__ --> <-- __Thread__ -->

Re: is it wrong pointer to a dialog box



Hello 

You want to change the tittle of a dialog box with does not exist in
memory when you change it.

What do you do:


> void display_Dialog(ULong fpos)
> {
> DialogBox *db;
> sprintf(msg,"FilePos=%ld",fpos);
> 
create dialogbox from resource
> db=mdlDialog_create(NULL,NULL,RTYPE_DialogBox,(int)DIALOGID_MsgBoxOK,FALSE);
> if(db)
> {
change this dialogbox in memory
> mdlWindow_titleSet(db,"File position");

open a modal dialog from resource (another copy) and diplsy it
> mdlDialog_openMessageBox(DIALOGID_MsgBoxOK,msg,MSGBOX_ICON_INFORMATION);
>  or mdlDialog_openInfoBox(msg); 
> }


what to do in my opnion:
1: set a timer function
2: open the message box
3: let te expire timer change the tittle of the dialog


Greetings Olaf



<-- __Chronological__ --> <-- __Thread__ -->


Usenet.com



Please check out one of the premium Usenet Newsgroup Service Providers below for access to Usenet.