I'm not sure what your problem is - can't you resize the panels at all or are the resized panels not properly drawn? As Jürgen already stated the resize widget is no longer supported/needed for panels, only for dialogs (take a look at the porting guide doc, p. 35 and following.) In short, remove your resize widgets and define your panel in the panellsit resource definition as "isResizable".Then define the panel's widgets framebindings accordingly. Note that you pobably will have to use some other framebinding-option than "kBindAll" for Listboxes etc ( you can combine then with the or operator "|" (i.e. kBindLeft|kBindTop for binding left and top) to prevent other widgets to draw over or get drawn over by your listboxes. Code snippet:
//this way we'll start with a single palette containing both panels
//they can be separated by user via drag&drop
resource PanelList (kSDKDefPanelResourceID)
{
{
// 1st panel in the list
kSDKDefPanelResourceID, // Resource ID for this panel (use SDK default rsrc ID)
kMYPluginID, // ID of plug-in that owns this panel
isResizable,//notResizable or isResizable,
kMyFirstPanelWidgetActionID, // Action ID to show/hide the panel
kMyFirstProjectPanelTitleKey, // Shows up in the Window list.
"Main:kMyPanelListTitleKey:kMyPanelMenu",//:kMyProjectPanelTitleKey", // Alternate menu path of the form "Main:Foo" if you want your palette menu item in a second place
0.0, // Alternate Menu position Alternate Menu position for determining menu order
0,0, // Rsrc ID, Plugin ID for a PNG icon resource to use for this palette
c_Panel,
// 2nd panel in the list
kMyScndManagerPanelID, // Resource ID for this panel
kMyPluginID, // ID of plug-in that owns this panel
isResizable,//notResizable,//isResizable,
kMyScndProjectPanelWidgetActionID, // Action ID to show/hide the panel
kMyScndPanelTitleKey,// Shows up in the Window list.
"Main:kALPanelListTitleKey:kALPanelMenu",//:kALJobPanelTitleKey", // Alternate menu path of the form "Main:Foo" if you want your palette menu item in a second place
0.0, // Alternate Menu position Alternate Menu position for determining menu order
0,0, // Rsrc ID, Plugin ID for a PNG icon resource to use for this palette
c_Panel
}
};
/* PanelView definition.
*/
resource MyFirstProjectPanelWidget (kSDKDefPanelResourceID) //+ index_enUS)
{
__FILE__,
__LINE__, // Localization macro
kMyFirstProjectPanelWidgetID, // WidgetID
kPMRsrcID_None, // RsrcID
kBindNone, // Binding (0=none)
Frame(20,5,291,511) // Frame: left, top, right, bottom.
kTrue,
kTrue, // Visible, Enabled
kFalse, // Erase background
kInterfacePaletteFill, // Erase to color
kFalse, // Draw dropshadow
kMyFirstProjectPanelTitleKey, // Panel name
{
StaticTextWidget
(
0, // WidgetId (default=0)
kSysStaticTextPMRsrcId, // RsrcId
kBindTop|kBindLeft, // Frame binding //used for resizing,
[...]