Copy link to clipboard
Copied
I used the code below to create a dialog first,g->qcCheckDialog is the reference to the 1st dialog
g->qcCheckDialog = sADMDialog->Create( message->d.self,"QCCheckDialog", DLG_QC_CheckList,
kADMTabbedFloatingDialogStyle, QCCheckDialogProc, nil );
if (error)
{
MessageBox(NULL, "Error In creating the dialog box", "LWTools", 0);
goto error;
}
positionCode=0x00000101;
error = sADMDialogGroup->SetDialogGroupInfo(g->qcCheckDialog,"QC Check List",positionCode );
if (error)
{
MessageBox(NULL, "Error : SetDialogGroupInfo", "LW Tools", 0);
goto error;
}
sADMDialog->Show( g->qcCheckDialog , false);
Next i used the code below to add a tabbed dialog to the previously created dialog.g->qcGuide is the refernce to the second dialog which i want to appear in a tabbed view.
g->qcGuide = sADMDialog->Create( message->d.self,"QCCheckDialog", DLG_QC_GUIDE,
kADMTabbedFloatingDialogStyle, QCGuideDialogProc, nil );
if (error)
{
MessageBox(NULL, "Error In creating the dialog box", "LW Tools", 0);
goto error;
}
positionCode=0x00000201;
error = sADMDialogGroup->SetDialogGroupInfo(g->qcGuide,"QC Check List",positionCode );
if (error)
{
MessageBox(NULL, "Error : SetDialogGroupInfo", "LW Tools", 0);
goto error;
}
sADMDialog->Show( g->qcGuide , false);
The above code works fine in CS2 but the same code does not work in CS3.Please advice
myRiaz
Copy link to clipboard
Copied
I assume in CS2 you get a pair of panels that are docked. What happens in CS3?
Copy link to clipboard
Copied
Hi,
Try to move the call to SetDialogGroupInfo() within the dialog init proc. It works for me.
Hope it helps.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more