Height difference between combo and get?

Height difference between combo and get?

Postby JC » Thu Jan 08, 2009 5:31 pm

Dear Antonio and friends,

Because the height value of combo is different between itself and another objects like get?
Image
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
User avatar
JC
 
Posts: 445
Joined: Thu Feb 21, 2008 11:58 am
Location: Brazil

Re: Height difference between combo and get?

Postby Antonio Linares » Thu Jan 08, 2009 9: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Height difference between combo and get?

Postby JC » 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
User avatar
JC
 
Posts: 445
Joined: Thu Feb 21, 2008 11:58 am
Location: Brazil

Re: Height difference between combo and get?

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Height difference between combo and get?

Postby JC » Fri Jan 09, 2009 1: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
Image
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
User avatar
JC
 
Posts: 445
Joined: Thu Feb 21, 2008 11:58 am
Location: Brazil

Re: Height difference between combo and get?

Postby James Bott » Fri Jan 09, 2009 1: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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Height difference between combo and get?

Postby JC » Fri Jan 09, 2009 1: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
User avatar
JC
 
Posts: 445
Joined: Thu Feb 21, 2008 11:58 am
Location: Brazil

Re: Height difference between combo and get?

Postby Antonio Linares » Fri Jan 09, 2009 4: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Height difference between combo and get?

Postby JC » Fri Jan 09, 2009 5: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
User avatar
JC
 
Posts: 445
Joined: Thu Feb 21, 2008 11:58 am
Location: Brazil

Re: Height difference between combo and get?

Postby Antonio Linares » Fri Jan 09, 2009 6: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Height difference between combo and get?

Postby James Bott » Fri Jan 09, 2009 6: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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: Height difference between combo and get?

Postby JC » Fri Jan 09, 2009 6: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
User avatar
JC
 
Posts: 445
Joined: Thu Feb 21, 2008 11:58 am
Location: Brazil


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 77 guests