Groups > Application developers > Photoshop SDK > Create simple dialog window problem on Mac




Create simple dialog window problem on Mac

Create simple dialog window problem on Mac
Fri, 15 Feb 2008 03:28:35 -080
Hi developers!
I need your help. I can't create dialog window on Mac using ADM. It seems that
problem with .r file. This is resource file Example.r:

resource 'DLOG' (kExamplePanelDialogID, kExamplePanelName, purgeable) {
	{100, 200, 306, 406},
	1991, // floatZoomGrowProc
	visible,
	goAway,
	0x0,
	kExamplePanelDialogID,
	kExamplePanelName,
	0x0 // noAutoCenter
};

And this is my ADM call function in the project:

admDialogRef = sADMDialog->Create( message->d.self,"My Example",
kExamplePanelDialogID, kADMTabbedFloatingDialogStyle, DlgInit, nil, 0 );

ASErr ASAPI DlgInit(ADMDialogRef dlg)
{
 return noErr;
}

...

Post Reply
about | contact