Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Combo Box Size
Combo Box Size [message #459771] Tue, 16 August 2005 07:07 Go to next message
Eclipse UserFriend
Originally posted by: nightblue99.yahoo.com

Hi;

When I want to increase the height of the Combo, it does not effect the
original size. This is design decision or there is another problem with me.

For example;

Combo combo = new Combo(...,...);
combo.setBounds(,,width,50);

then combo does not show the height 50.

Why?

Thanks in advance;
Re: Combo Box Size [message #459778 is a reply to message #459771] Tue, 16 August 2005 14:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sunil_kamath.nohotspammail.com

"nightblue" <nightblue99@yahoo.com> wrote in message
news:baa268d545f07fcecee70d1ba72e0abf$1@www.eclipse.org...
> Hi;
>
> When I want to increase the height of the Combo, it does not effect the
> original size. This is design decision or there is another problem with
> me.
>
> For example;
>
> Combo combo = new Combo(...,...);
> combo.setBounds(,,width,50);
>
> then combo does not show the height 50.
>
If this is on a Windows platform, read on, otherwise ignore.
Windows ignores combo box height settings.
This is because it has to ensure that there is enough height to display the
text as well as the caret.
The only way to change the height is to change the font.
Alternatively you can use CCombo.
---
Sunil
Re: Combo Box Size [message #460386 is a reply to message #459778] Wed, 24 August 2005 13:48 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
This is the behavior on all platforms. If it is not, please enter a bug
report.

"Sunil Kamath" <sunil_kamath@nohotspammail.com> wrote in message
news:ddsruc$clc$1@news.eclipse.org...
>
> "nightblue" <nightblue99@yahoo.com> wrote in message
> news:baa268d545f07fcecee70d1ba72e0abf$1@www.eclipse.org...
> > Hi;
> >
> > When I want to increase the height of the Combo, it does not effect the
> > original size. This is design decision or there is another problem with
> > me.
> >
> > For example;
> >
> > Combo combo = new Combo(...,...);
> > combo.setBounds(,,width,50);
> >
> > then combo does not show the height 50.
> >
> If this is on a Windows platform, read on, otherwise ignore.
> Windows ignores combo box height settings.
> This is because it has to ensure that there is enough height to display
the
> text as well as the caret.
> The only way to change the height is to change the font.
> Alternatively you can use CCombo.
> ---
> Sunil
>
>
Previous Topic:Can swt browser embed RealPlayer on Linux?
Next Topic:awt menubar in a rcp swt-awt wrapper frame
Goto Forum:
  


Current Time: Thu Apr 25 01:05:37 GMT 2024

Powered by FUDForum. Page generated in 0.03023 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top