Frame setting for widgets
Could someone explain the Frame (left, top, right, bottom) setting for widgets? How are these values decided? I am running into an issue in my plug-in code where two UI controls (TreeViewWidget and StaticTextWidget) overlap over each other.
Explain in the context of the SDK sample WListBoxComposite.sdk
resource WLBCmpNodeWidget (kWLBCmpListElementRsrcID + index_enUS)
{
__FILE__, __LINE__,
kWLBCmpListParentWidgetId, kPMRsrcID_None, // WidgetId, RsrcId
kBindLeft | kBindRight, // Frame binding
Frame(0, 0, 194, 20), // Frame
kTrue, kTrue, // Visible, Enabled
"", // Panel name
{
WLBCmpEyeballWidget
(
kWLBCmpListElementEyeballWidgetID, kWLBCmpEyeBallIcon, kWLBCmpPluginID, // WidgetId, RsrcId
kBindLeft, // Frame binding
Frame(3,1,22,18) // Frame
kTrue, kTrue, // Visible, Enabled
kADBEIconSuiteButtonType,
),
WLBCmpPenWidget
(
kWLBCmpListElementPenWidgetID, kWLBCmpPenIcon, kWLBCmpPluginID, // WidgetId, RsrcId
kBindLeft, // Frame binding
Frame(25,1,44,18) // Frame
kTrue, kTrue, // Visible, Enabled
kADBEIconSuiteButtonType,
),
// Just a info-static text widget with about-box text view to get white bg.
WLBCmpTextWidget
(
kWLBCmpTextWidgetID, kPMRsrcID_None, // WidgetId, RsrcId
kBindLeft | kBindRight, // Frame binding
Frame(45,1,194,18) // Frame
kTrue, kTrue, kAlignLeft,kEllipsizeEnd,kTrue, // Visible, Enabled, ellipsize style, convert ampersands
"", // Initial text
0, // Associated widget for focus
kPaletteWindowSystemScriptFontId, // default font
kPaletteWindowSystemScriptHiliteFontId, // for highlight state.
),
}
};