Article # 394, added by Geoworks, historical record
| first | previous | index | next | last |

Specifying the height or size of a dynamic list object.




Q. How can I specify number of items to show in a scrollable GenDynamicList
   or the height of GenDynamicList window (thus specify # of items to show
   indirectly)?

A. You need to use HINT_INITAL_SIZE like this:

   HINT_INITIAL_SIZE = {
       0,
       ( SST_LINES_OF_TEXT | 4 ),
       4
   };

   This will specify that the dynamic list show 4 items. When you change
   the "4" in the second line, be sure to change the "4" in the third
   line as well, since that second 4 tells the geometry manager how
   many items to display.