Because the height value of combo is different between itself and another objects like get?
JĂșlio CĂ©sar M. Ferreira
FWH 8.10 / xHB 1.1.0 / xDevStudio 0.72 / Pelles C 5.0.1 / SQLLIB 1.9
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
>> 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.
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.
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
>> 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
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
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!
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
JĂșlio,
I think Antonio is right, the combox size fits the bitmap. So the solution is to make the GET larger.
Regards,
James
Outch!
Now I understanding you Antonio! The bitmap of arrow! Sorry for my negligence!
So, that's it!
Thank you very much! Really!!