Skip navigation
Currently Being Moderated

[CS3] How to add multiple panels in a single FR

Jun 17, 2008 8:45 PM

Fellow Developers,

I have tried every other way to try adding a 2nd panel definition to a single fr - no luck. Here is what I did.

//==================================================================== ============
// PanelList definition.
//==================================================================== ============
resource PanelList (kSDKDefPanelResourceID)
{
{
// 1st panel in the list
kSDKDefPanelResourceID,
kGINPluginID,
isResizable,
kGINPanelWidgetActionID,
kGINPanelTitleKey,
"",item in a second place
0.0,
0,0,
c_Panel,

// 2nd panel in the list
kGINDocPanelPanelWidgetResourceID,
kGINPluginID,
notResizable,
kGINDocPanelPanelWidgetActionID,
kGINDocPanelPanelTitleKey,
"",
0.0,
0,0,
c_Panel
}
};

resource GINPanelWidget(kSDKDefPanelResourceID + index_enUS)
{
...
}

resource GINDocPanelPanelWidget(kGINDocPanelPanelWidgetResourceID + index_enUS)
{
...
}

In ID.h
#define kGINDocPanelPanelWidgetResourceID 720 // random number

Code builds but I get an assert complaining about missing resource with id = 720.

All the included samples in SDK illustrate single panels.

Appreciate any help. Thanks
CG
 
Replies
  • Currently Being Moderated
    Jul 22, 2008 11:07 AM   in reply to (Carl_Green)
    I'm having the exact same issue, only my error message is: "PanelMgr::CreatePanel - could not load panel from plugin MYPLUGINNAME.PLN with rsrc id 5000"

    I'm assuming that it's possible to program multiple palettes, and that I'm missing completely obvious.

    Thanks.
     
    |
    Mark as:
  • Currently Being Moderated
    Jul 23, 2008 12:26 AM   in reply to (Carl_Green)
    You are trying to merge two panel resource with SDK PanelList. Instead create a separate panelist for each panel resource -

    resource PanelList (kGINDocPanelPanelWidgetResourceID)
    {

    // 2nd panel in the list
    kGINDocPanelPanelWidgetResourceID,
    kGINPluginID,
    notResizable,
    kGINDocPanelPanelWidgetActionID,
    kGINDocPanelPanelTitleKey,
    "",
    0.0,
    0,0,
    c_Panel

    };

    Hope this helps !!

    - Amit Gupta
    MetaDesign Solutions
     
    |
    Mark as:
  • Currently Being Moderated
    Aug 9, 2008 4:08 AM   in reply to (Carl_Green)
    Hello Amit gupta
    I am also creating a panel using the .fr file and I've added the panels in the list as u assisted in the separate panellists. but im also getting the same error as of charlene burke. can u tell what is the issue?
    Thanks
    Regards,
    MS Chaudhary
     
    |
    Mark as:
  • Currently Being Moderated
    Aug 10, 2008 7:49 AM   in reply to (Carl_Green)
    Do you have a LocaleIndex resource with the ID specified in the PanelList?
    Is the boss class for your custom resource type correctly defined in the classes resource?

    Dirk
     
    |
    Mark as:
  • Currently Being Moderated
    Aug 10, 2008 8:11 PM   in reply to (Carl_Green)
    Hello Dirk
    can u please show me the skelton that how can i define the localindex and panellist.
    What actually i want to do is to define a palette with two panels in it with my plugin.
    Thanks for your support
    Regards,
    MS Chaudhary
     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (1)