Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » 1.1RC3: images in ToolBar
1.1RC3: images in ToolBar [message #93210] Fri, 13 June 2008 08:06 Go to next message
Enrico Zanaga is currently offline Enrico ZanagaFriend
Messages: 50
Registered: July 2009
Member
This is a multi-part message in MIME format.
--------------000703080807060903090108
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Hi all,

when I've a ToolBar with images only tool items and drop down buttons,
the last drop down button gets out of the Shell.

Probably there's something wrong in tool item bounds calculation?

In the attached code snippet the image is 16x16, and the last drop down
button isn't visible.

Thanks,
Enrico


--------------000703080807060903090108
Content-Type: application/octet-stream;
name="src.zip"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="src.zip"

UEsDBBQAAAAIAINuezYltIMGOAEAAD0BAAAIAAAAaWNvbi5naWaNj98vAgEc wL9tRrPQFKWk
3cRuOsNZQ83EKWk55ceQYWG0edDirXpojSxLMlM3O9ftVgujrT8B06x5Mf4A m/kDvHk67j/o
8/Z5+3wmJq2DQx4pSOEDBHiez6Fd2hAgIdAGYJ2z6iMi03HDKmP0Zq2GaA2R aGJLMUtCsX87
7UohC2k0Xz4NFuZvysm713MP3bPB9G2z/TvcwG522N8NPgz29BBoh0fqqESf lOjES+Ys3AJR
OeRG8LgE4nXAdmryRvzeThRnp1JiUVoipuUyRtGcUas4BPlPgspAfqtEADhg gghPUO02Uz4b
popT3E+jq96gLH999j4fUrWWNycWK1xIH8w6SYSFb/e144kIK2UHZubda0OL pA7tUC+Sba3j
DrtmzDkzR+JLyytr9s0tb5LwXwavyFEw/QFQSwMEFAAAAAgAhZjMOBd7OgI0 AwAACgsAAAwA
AABSYXBUZXN0LmphdmGdVl9v2jAQf5/U7+DyZDYUUfpHkyqk0RZaJEpQyFZp L1WID7DkxFHs
QNHW7z47DkkgpCv4wbHPv7vfne07hwYRjyXi8cICn9FIgBWvpbWIvWhJf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sBAhQAFAAAAAgAhZjMOBd7OgI0 AwAACgsAAAwA
AAAAAAAAAAAgAAAAXgEAAFJhcFRlc3QuamF2YVBLBQYAAAAAAgACAHAAAAC8 BAAAAAA=
--------------000703080807060903090108--
Re: 1.1RC3: images in ToolBar [message #93225 is a reply to message #93210] Fri, 13 June 2008 08:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ifurnadjiev.innoopract.com

Hi Enrico,

maybe your problem is the same as reported in bug 233139.

Best,
Ivan

Enrico Zanaga wrote:
> Hi all,
>
> when I've a ToolBar with images only tool items and drop down buttons,
> the last drop down button gets out of the Shell.
>
> Probably there's something wrong in tool item bounds calculation?
>
> In the attached code snippet the image is 16x16, and the last drop
> down button isn't visible.
>
> Thanks,
> Enrico
>
Re: 1.1RC3: images in ToolBar [message #93269 is a reply to message #93225] Fri, 13 June 2008 09:59 Go to previous message
Enrico Zanaga is currently offline Enrico ZanagaFriend
Messages: 50
Registered: July 2009
Member
Yes it is, thanks Ivan!

I've added a comment to the bug and a simple workaround.
I report here the comment:


truncation happens if the tool bar has image-only items. If adding text
with setText, buttons are not truncated.

I find a workaround: subclassing ToolItem and override getWidth to
return (super.getWidth() + 2).
It seems to work for images only tool bar.
Code snippet here:

class MyToolBar {

....constructors here...

protected void checkSubclass() {}

public int getWidth() {
return (super.getWidth() + 2);
}

}


Enrico



Ivan Furnadjiev ha scritto:
> Hi Enrico,
>
> maybe your problem is the same as reported in bug 233139.
>
> Best,
> Ivan
>
> Enrico Zanaga wrote:
>> Hi all,
>>
>> when I've a ToolBar with images only tool items and drop down buttons,
>> the last drop down button gets out of the Shell.
>>
>> Probably there's something wrong in tool item bounds calculation?
>>
>> In the attached code snippet the image is 16x16, and the last drop
>> down button isn't visible.
>>
>> Thanks,
>> Enrico
>>
Previous Topic:1.1RC3: Control.toDisplay wrong calculation
Next Topic:Exception handling in RAP
Goto Forum:
  


Current Time: Fri Apr 26 15:53:32 GMT 2024

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

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

Back to the top