Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Size of a view part
Size of a view part [message #754511] Wed, 02 November 2011 20:25
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 9
Registered: July 2009
Junior Member

I have a RCP application (E4 application but i think my question concern about RCP 3.x too).

I have a view part. Displayed view part seems to have size 600 x 400 for example.
From my view part, I change the color of the background of parent composite of the view part.The color changes for entire area 600x400. Good !

I try to obtain size of my view part control by code.

- I try all methods of parent composite object like getBounds()... and values of Rectangle are 0
- I try windows API with getWindowRect(HWND parent.handle, Rect rect) but i have
the same result.

So, how to obtain x,y,width, height values of my view part control?

Previous Topic:swing2swt library
Next Topic:Application crashing due to packed plugin, can I unpack?
Goto Forum:

Current Time: Sun Jun 24 07:34:29 GMT 2018

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

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

Back to the top