Page 1 of 1

Height difference between combo and get?

PostPosted: Thu Jan 08, 2009 5:31 pm
by JC
Dear Antonio and friends,

Because the height value of combo is different between itself and another objects like get?
Image

Re: Height difference between combo and get?

PostPosted: Thu Jan 08, 2009 9:07 pm
by Antonio Linares
Júlio,

Is it a resource dialog ?

If yes, then set the same size for them, when you design it.

If you are coding it from source code (not using resources) then use the clause ... SIZE nWidth, nHeight to set the same desired size

Re: Height difference between combo and get?

PostPosted: Fri Jan 09, 2009 12:30 pm
by JC
>> Is it a resource dialog ?
>> If yes, then set the same size for them, when you design it.

Yes Antonio, it's a resource dialog. But when I set with the same height of a get, for example, the area of options for selections not appear when combo is clicked.

Re: Height difference between combo and get?

PostPosted: Fri Jan 09, 2009 12:32 pm
by Antonio Linares
Júlio,

You have to set the proper height for the combobox dropdown list in the resources.

Please review FWH\samples\combos.rc for an example.

Re: Height difference between combo and get?

PostPosted: Fri Jan 09, 2009 1:01 pm
by JC
Antonio,

I look the sample and set the same height between combo and get... But the difference still remains!
I know she is minimal. Maybe I being very detailed, but would be better if the two could have the same size
Image

Re: Height difference between combo and get?

PostPosted: Fri Jan 09, 2009 1:47 pm
by James Bott
Julio,

>I look the sample and set the same height between combo and get... But the difference still remains!

If you set the combobox height to be one unit smaller than the GET, does it then equal the GET when displayed?

James

Re: Height difference between combo and get?

PostPosted: Fri Jan 09, 2009 1:53 pm
by JC
>> If you set the combobox height to be one unit smaller than the GET, does it then equal the GET when displayed?

No James, the height of combo not exceed minimum size of 12... but the height displayed is always the same of this image!
When I enlarge this height, the area of selection displayed is biggest... but the size of height is always the same

Re: Height difference between combo and get?

PostPosted: Fri Jan 09, 2009 4:33 pm
by Antonio Linares
Júlio,

Windows automatically increases the height of the combobox so its bitmap can properly fit inside it.

Simply increase a little bit the height of the combobox and the get

Re: Height difference between combo and get?

PostPosted: Fri Jan 09, 2009 5:40 pm
by JC
There is only text in the combobox!
Indeed, I would to define the size of the combobox with the same size of get... which comes that default in Pelles.
But the combox not change!

Re: Height difference between combo and get?

PostPosted: Fri Jan 09, 2009 6:14 pm
by Antonio Linares
Júlio,

Windows automatically set the height of the combobox based on the combobox arrow bitmap. The one that you click to open the combobox

Re: Height difference between combo and get?

PostPosted: Fri Jan 09, 2009 6:26 pm
by James Bott
Júlio,

I think Antonio is right, the combox size fits the bitmap. So the solution is to make the GET larger.

Regards,
James

Re: Height difference between combo and get?

PostPosted: Fri Jan 09, 2009 6:29 pm
by JC
Outch!

Now I understanding you Antonio! The bitmap of arrow! Sorry for my negligence!
So, that's it!

Thank you very much! Really!!