Article # 551, added by Geoworks, historical record
| first |
previous |
index |
next |
last |
Sizing and positioning a FFileSelector object.
Q. I have problems positioning and sizing a FileSelector and text edit object in the same GenInteraction. The file selector is not wide enough. It should be as wide as parent. I tried HINT_EXPAND_WIDTH_TO_FIT_PARENT, but it did not help. A. There are two parts to this problem. First, to expand the width of the file selector, use HINT_FILE_SELECTOR_FILE_LIST_WIDTH. This will specify the width to make the file selector (in average character-widths). You will have to try different numbers to see which looks best for your specific needs. The other problem is that the parent does not have the hints HINT_EXPAND_HEIGHT_TO_FIT_PARENT and HINT_EXPAND_WIDTH_TO_FIT_PARENT so it is not expanding to fit its parent. If you add those hints to the grouping interaction, it will also expand. Q. MyShowXBox position is unstable. I want to fix the position to middle and bottom of Interaction. A. HINT_FULL_JUSTIFY_CHILDREN_VERTICALLY will take care of placing MyShowXBox at the bottom of SelectXGroup (the GenInteraction). You can add HINT_CENTER_CHILDREN_HORIZONTALLY to make MyShowXBox position to the middle (horizontally) of the GenInteraction.