Hello David,

> I have X items, where X can be any number between 1 & 20 - user definable.
> 
> I want to make a dialog box with X checkboxes in it, but I don't know until the user 
>defines 
> X, how many there will be. The object is for the user to be able to select which of 
>these X 
> items will be used in the next step.

I'm sure you've figured out that the "calling ..." syntax of a "dialog" statement 
allows your own 
initialisation sub to be called. This is where add/removal of dialog items, such as 
your checkboxes, 
can be made. However, to the best of my knowledge, there is no way (apart from using 
the 
Windows API) to alter the size of a MB dialog once it's been created. So, you may need 
to make 
some form of calculation of height/width when the dialog command is issued. 

An alternative approach, which may be slightly more consistent for the user, is to 
always show 
those 20 options but list them as "undefined" and disable the checkboxes. This way the 
user is 
reminded that there is capacity for extra user-fields, etc.

Regards,
Warren Vick
Europa Technologies Ltd, U.K.
www.europa-tech.com
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

Reply via email to