Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Create a tabbed dialog in CS3?

New Here ,
May 28, 2009 May 28, 2009

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

TOPICS
SDK
781
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Guide ,
May 28, 2009 May 28, 2009

I assume in CS2 you get a pair of panels that are docked. What happens in CS3?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 17, 2009 Jun 17, 2009
LATEST

Hi,

Try to move the call to SetDialogGroupInfo() within the dialog init proc. It works for me.

Hope it helps.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines