Hi,
this is a code snippet for MDL.
If you wnat to change any content in the Default Message Box Dialog, this snippet would help.
int showMessageDialog(char* title,char *okcaption,char *cancelcaption,char *text,int icon) {
DialogBox *db=mdlDialog_create(NULL,NULL,RTYPE_DialogBox,(int)DIALOGID_MsgBoxOKCancel,FALSE) ;
if(db) {
//CHANGE THE ELEMENTS
mdlWindow_titleSet(db,title);
mdlDialog_itemSetLabel (db,3,okcaption);
mdlDialog_itemSetLabel (db,4,cancelcaption);
mdlDialog_itemsSynch(db);
}
ret=mdlDialog_openMessageBox (DIALOGID_MsgBoxOKCancel,text,icon);
You've posted a question in a blog. A blog is usually where you publish comments. The MicroStation Programming Forum would be a better place to post a question.
Hi again,
some research brought up the following solution which I like to share with you:
Stefan.