Article # 313, added by Geoworks, historical record
| first |
previous |
index |
next |
last |
GenBoolean in dialog gives UI_GEOMETRY_WIDTH_TOO_LARGE error
Q. I keep getting UI_GEOMETRY_WIDTH_TOO_LARGE on the two GenBooleans in the following listing: @chunk TCHAR HelloListTitle[] = "Boolean Group"; @object ComplexMonikerClass HelloListBox = { ComplexMoniker = GenInteractionClass; CMI_topText = @HelloListTitle; CMI_iconBitmap = CMB_WARNING_TITLE_ICON; CMI_textStyle = TS_ITALIC; CMI_fontSize = FOAM_NORMAL_FONT_SIZE; GI_comp = @HelloBooList; GII_visibility = GIV_POPUP; GII_attrs = @default | GIA_NOT_USER_INITIATABLE; GII_type = GIT_PROPERTIES; ATTR_COMPLEX_MONIKER_PLACE_BITMAP_AT_LEFT; HINT_PLACE_MONIKER_TO_LEFT; HINT_PLACE_MONIKER_ABOVE; HINT_EXPAND_HEIGHT_TO_FIT_PARENT; HINT_EXPAND_WIDTH_TO_FIT_PARENT; HINT_COMPLEX_MONIKER_DONT_DRAW_SEPARATOR; } @object GenBooleanGroupClass HelloBooList = { GI_visMoniker = "Colors:"; GI_comp = @HelloBoo1, @HelloBoo2; } @object GenBooleanClass HelloBoo1 = { GI_visMoniker = "Red"; GBI_identifier = C_RED; } @object GenBooleanClass HelloBoo2 = { GI_visMoniker = "Blue"; GBI_identifier = C_BLUE; } Their sizes are over 16,000 points wide. The boolean group object is 0,0,-32768,-32768. If I move the boolean group from the dialog to the primary it works okay. What am I doing wrong? A. It's extremely likely that GenBooleans only work when you have a proper properties box (which means at least that you have HINT_CENTER_CHILDREN_ON_MONIKERS on the top interaction). The other thing to check is that the dialog containing HelloListBox is of type GIV_DIALOG and not GIV_POPUP.