FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Height difference between combo and get?
Posts: 445
Joined: Thu Feb 21, 2008 11:58 AM
Height difference between combo and get?
Posted: Thu Jan 08, 2009 05:31 PM
Dear Antonio and friends,

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

JĂșlio CĂ©sar M. Ferreira

FWH 8.10 / xHB 1.1.0 / xDevStudio 0.72 / Pelles C 5.0.1 / SQLLIB 1.9
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Height difference between combo and get?
Posted: Thu Jan 08, 2009 09:07 PM

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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 445
Joined: Thu Feb 21, 2008 11:58 AM
Re: Height difference between combo and get?
Posted: Fri Jan 09, 2009 12:30 PM

>> 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.

Peace and lighting!

JĂșlio CĂ©sar M. Ferreira

FWH 8.10 / xHB 1.1.0 / xDevStudio 0.72 / Pelles C 5.0.1 / SQLLIB 1.9
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Height difference between combo and get?
Posted: Fri Jan 09, 2009 12:32 PM

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.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 445
Joined: Thu Feb 21, 2008 11:58 AM
Re: Height difference between combo and get?
Posted: Fri Jan 09, 2009 01:01 PM
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
Peace and lighting!

JĂșlio CĂ©sar M. Ferreira

FWH 8.10 / xHB 1.1.0 / xDevStudio 0.72 / Pelles C 5.0.1 / SQLLIB 1.9
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Height difference between combo and get?
Posted: Fri Jan 09, 2009 01:47 PM

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

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 445
Joined: Thu Feb 21, 2008 11:58 AM
Re: Height difference between combo and get?
Posted: Fri Jan 09, 2009 01:53 PM

>> 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

Peace and lighting!

JĂșlio CĂ©sar M. Ferreira

FWH 8.10 / xHB 1.1.0 / xDevStudio 0.72 / Pelles C 5.0.1 / SQLLIB 1.9
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Height difference between combo and get?
Posted: Fri Jan 09, 2009 04:33 PM

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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 445
Joined: Thu Feb 21, 2008 11:58 AM
Re: Height difference between combo and get?
Posted: Fri Jan 09, 2009 05:40 PM

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!

Peace and lighting!

JĂșlio CĂ©sar M. Ferreira

FWH 8.10 / xHB 1.1.0 / xDevStudio 0.72 / Pelles C 5.0.1 / SQLLIB 1.9
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Height difference between combo and get?
Posted: Fri Jan 09, 2009 06:14 PM

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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Height difference between combo and get?
Posted: Fri Jan 09, 2009 06:26 PM

JĂșlio,

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

Regards,
James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 445
Joined: Thu Feb 21, 2008 11:58 AM
Re: Height difference between combo and get?
Posted: Fri Jan 09, 2009 06:29 PM

Outch!

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

Thank you very much! Really!!

Peace and lighting!

JĂșlio CĂ©sar M. Ferreira

FWH 8.10 / xHB 1.1.0 / xDevStudio 0.72 / Pelles C 5.0.1 / SQLLIB 1.9

Continue the discussion