Hi everyone,
I just spent half a day tampering with the ADMDialog suit trying to create
a modal dialog for an automation plugin. Problem was that my dialog was
created but never shown, it just stayed invisible (yet still catched button
events).
Now obviously this has something to do with visual studio (version %26gt; 6.0) and the *.rc files (automatically) created. Following is the resource definition that is auto-created by visual studio:
16001 DIALOGEX 0, 0, 189, 120
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION
CAPTION ''An example Plugin''
FONT 8, ''MS Sans Serif'', 0, 0, 0x0
BEGIN
This won't work with the ADMDialogSuite DoModal(). Change the
''DIALOGEX'' to ''DIALOG DISCARDABLE'' and delete the enumeration
after the font def (including the '',''), so it looks like this:
16001 DIALOG DISCARDABLE 0, 0, 393, 154
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION ''An example Plugin''
FONT 8, ''MS Sans Serif''
BEGIN
Now, the dialog will just show fine. I found the solution in the illustrator forum, here is the original post:
http://www.adobeforums.com/cgi-bin/webx/.3bbbaae1
-Marc
Modal Dialog %26 ADM: Visual Studio Bug...
One would really think that by 2007 ADM would support DIALOGEX resources.... This same issue has been biting me, with the additional issue that LISTBOX with multi-select support only seems to be available with DIALOGEX.
I'm continuing to prod at ADM and the resources. I'll post an update here if I figure out a way to get it working.
Subscribe to:
Post Comments
(Atom)
No comments:
Post a Comment