Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Getting the "ClientArea" of an ExpandItem, i.e. knowing the trimmings
Getting the "ClientArea" of an ExpandItem, i.e. knowing the trimmings [message #1757969] Wed, 22 March 2017 12:32
Christian Rueck is currently offline Christian RueckFriend
Messages: 21
Registered: December 2009
Location: Germany
Junior Member
I am using an ExpandBar and I am explicitly setting the ExpandItem heights to give optimal room for the preferred size of its content. (I am not using the standard layouting as I want to be able to distribute the available height the way I want if there is not enough vertical space).

When I set the ExpandItem height to a specific height, the ExpandItem is resized. However it is not resized to the height that I asked for but to 1 less on Windows 7 and 2 less on Linux with GTK3. Is there some way of getting these values in a generic way?

If I look into the source code it seems that the ExpandItem is subtracting an internal BORDER attribute if the ExpandBar "isAppThemed()". Neither isAppThemed() nor BORDER is publicly accessible.

Also I wonder if this describes the whole problem as the BORDER is defined in a non platform specific package and I get different results on Windows and Linux.

I think the question is clear but if anyone thinks he can help if there was a sample code I could create one.
Previous Topic:How to listen to WindowSelectionChange event in Word using OleControlSite?
Next Topic:Getting the "ClientArea" of an ExpandItem, i.e. knowing the trimmings
Goto Forum:

Current Time: Wed Nov 14 00:05:03 GMT 2018

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

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

Back to the top