Article # 572, added by Geoworks, historical record
| first |
previous |
index |
next |
last |
Mixing sizing hints in a single object.
Q. Here's an object I'm defining. It's not sizing correctly. I want it to expand the height to fit the parent, but it's not working. @object FFileSelectorClass MyFileSelection = { GFSI_destination = process; GFSI_notificationMsg = MSG_MY_PROCESS_UPDATE_X; ATTR_GEN_FILE_SELECTOR_CREATOR_MATCH = { MY_LIST_ITEM_TOKEN, 0 }; ATTR_FFS_DOCUMENT_DIR = MY_LIST_DIRECTORY; HINT_EXPAND_HEIGHT_TO_FIT_PARENT; HINT_FIXED_SIZE = { SST_PIXELS | 0, 127 }; } A. Are you sure you want to use HINT_FIXED_SIZE? Did you mean to use HINT_MAXIMUM_SIZE instead? The reason I ask is you set up HINT_FIXED_SIZE to fix the height at 127 pixels (because SST_PIXELS is the default) and then used HINT_EXPAND_HEIGHT_TO_FIT_PARENT, which will have no effect because the HINT_FIXED_SIZE height setting will override the expand height hint.