More than one widget
Hi, I'm a newbie in Indesign SDK (CPP), and I have one problem in my code: I can't add two widgets on panel (StaticTextWidget), this following code is my problem:
resource BscPnlPanelWidget(kSDKDefPanelResourceID + index_enUS)
{
__FILE__, __LINE__, // Localization macro
kBscPnlPanelWidgetID, // WidgetID
kPMRsrcID_None, // RsrcID
kBindNone, // Binding (0=none)
0, 0, 207, 295, // Frame: left, top, right, bottom.
kTrue, kTrue, // Visible, Enabled
kFalse, // Erase background
kInterfacePaletteFill, // Erase to color
kFalse, // Draw dropshadow
kBscPnlPanelTitleKey, // Panel name
{
StaticTextWidget
(
0, // WidgetId (default=0)
kSysStaticTextPMRsrcId, // RsrcId
kBindNone, // Frame binding
5, 10, 202, 27, // Frame: left, top, right, bottom.
kTrue, kTrue, // Visible, Enabled
kAlignLeft, kEllipsizeEnd, kTrue, // Alignment, ellipsize style, convert ampersands
"Add tool", // Initial text.
0 // No associated widget
),
StaticTextWidget
(
10, // WidgetId (default=0)
kSysStaticTextPMRsrcId, // RsrcId
kBindNone, // Frame binding
5, 80, 202, 27, // Frame: left, top, right, bottom.
kTrue, kTrue, // Visible, Enabled
kAlignLeft, kEllipsizeEnd, kTrue, // Alignment, ellipsize style, convert ampersands
"Properties", // Initial text.
0 // No associated widget
),
}
kBscPnlInternalPopupMenuNameKey // Popup menu name (internal)
};
How I can show all these widgets ?
Thanks