How many of the maximum control in a Dialog?

Post Reply
User avatar
dutch
Posts: 1395
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

How many of the maximum control in a Dialog?

Post by dutch »

Dear All,

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

Thanks&Regards,
Dutch
Last edited by dutch on Fri Jan 05, 2007 6:28 pm, edited 2 times in total.
User avatar
dutch
Posts: 1395
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Post 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
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Post 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
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Post 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
User avatar
dutch
Posts: 1395
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Post by dutch »

Dear James,

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

Best regards,
Dutch
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post 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.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
dutch
Posts: 1395
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Post by dutch »

I've got it.

Thanks for Enrico & Antonio,
Dutch
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Post 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
User avatar
dutch
Posts: 1395
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Post by dutch »

Dear James,

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

Best regards,
Dutch
User avatar
Manuel Valdenebro
Posts: 706
Joined: Thu Oct 06, 2005 9:57 pm
Location: Málaga-España

Post by Manuel Valdenebro »

Dutch,

Can you contact with me by email?
Un saludo

Manuel
Post Reply