Thought this story might amuse you..
When you're doing a Settings dialog and have there several GenItemGroup
lists that all have same values (eg. Yes/No) you might get the idea of
reusing some objects.. You can't, it will crash the system - even when
only of one the GenItemGroups is actually used == the object definition
is enough to bring the system down.. but only at run-time. Weird.
So you'll have to do separate duplicated items for each list.
--jouni miettunen
@visMoniker Option1Title = "Title 1";
@object GenInteractionClass Option1 =
{
GI_visMoniker = @Option1Title;
GI_comp = @Option1Group;
}
@object GenItemGroupClass Option1Group =
{
GI_comp = @ItemNo, @ItemYes;
GIGI_selection = ID_NO;
HINT_ITEM_GROUP_MINIMIZE_SIZE;
HINT_ITEM_GROUP_DISPLAY_CURRENT_SELECTION;
}
@visMoniker Option2Title = "Option 2";
@object GenInteractionClass Option2 =
{
GI_visMoniker = @Option2Title;
GI_comp = @Option2Group;
}
@object GenItemGroupClass Option2Group =
{
GI_comp = @ItemNo, @ItemYes;
GIGI_selection = ID_NO;
HINT_ITEM_GROUP_MINIMIZE_SIZE;
HINT_ITEM_GROUP_DISPLAY_CURRENT_SELECTION;
}