Page 1 of 1

How many of the maximum control in a Dialog?

PostPosted: Fri Jan 05, 2007 6:12 pm
by dutch
Dear All,

I would like to know the limitation of the maximum controls in one dialog.

Thanks&Regards,
Dutch

PostPosted: Fri Jan 05, 2007 6:26 pm
by dutch
Dear All,

I've found the limitation of the controls in one dialog is 255. If I have more than 255 controls one Dialog, how do I go?

Thanks&Regards,
Dutch

PostPosted: Fri Jan 05, 2007 6:36 pm
by James Bott
Dutch,

>If I have more than 255 controls one Dialog, how do I go?

I suggest changing your design. 255 controls on one dialog is too complicated for most users (me too). I would break up the dialog into folders.

James

PostPosted: Fri Jan 05, 2007 11:22 pm
by Enrico Maria Giordano
dutch wrote:I've found the limitation of the controls in one dialog is 255. If I have more than 255 controls one Dialog, how do I go?


That limitation is only for Win16. Go for Win32.

EMG

PostPosted: Sat Jan 06, 2007 10:16 am
by dutch
Dear James,

The controls are created on the fly, depend on customer data
Image

Best regards,
Dutch

PostPosted: Sat Jan 06, 2007 11:04 am
by Antonio Linares
Dutch,

Windows 16 bits applications controls are limited to 255. You should port your app to 32 bits using FWH in order to use more controls.

PostPosted: Sat Jan 06, 2007 6:08 pm
by dutch
I've got it.

Thanks for Enrico & Antonio,
Dutch

PostPosted: Sat Jan 06, 2007 6:09 pm
by James Bott
Dutch,

Well it seems there is an exception to every rule. I have never seen a screen like yours before. I was envisioning 255 GETs, checkboxes, etc.

Congradulations on a unique idea, and I like the fact that you have used color and graphics to display lots of information on the screen at once.

I do wonder why they are not all in numeric order? Perhaps they are laid out according to the floor plan?

I'm afraid that your best solution is going to be 32bits as Enrico and Antionio already suggested. There are lots of other reasons for going to 32bits too.

James

PostPosted: Sun Jan 07, 2007 3:23 pm
by dutch
Dear James,

Thanks for your compliment. I think about it as all of your recommendation.

Best regards,
Dutch

PostPosted: Sun Jan 07, 2007 7:24 pm
by Manuel Valdenebro
Dutch,

Can you contact with me by email?