Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » [Forms] Header layout problem caused by message icons
[Forms] Header layout problem caused by message icons [message #721641] Fri, 02 September 2011 12:11
Christophe Fondacci is currently offline Christophe FondacciFriend
Messages: 95
Registered: July 2009
Location: Paris
Hello all,

I got a little problem in my forms editor :
* My form has an image, set using ScrolledForm.setImage(myImage)
* I want big images on this main icons, so I chose 24x24 images
* Now I can also have messages on my form, set using code like :
final IMessageManager msgManager = form.getMessageManager();
msgManager.addMessage(marker, marker.getMessage(), marker, IMessageProvider.ERROR);

The problem is that it works, but when an error message is displayed, the header is reduced (because the form image is switched to the error icon which is 16x16), causing the whole form to scroll up. When the error is fixed, the 24x24 form image is restored and the whole form is scrolled down.

This is quite annoying for the user. One solution is to use 16x16 icon (but I really want bigger icons).

Is there any existing workaround for this ?

The long-term proper solution I can think of would be to add the message icons as decorators of the form image rather than replacement.

Thanks for your help and time,
Previous Topic:filtering comboviewer on linux and mac
Next Topic:[Forms] Header layout problem caused by message icons
Goto Forum:

Current Time: Mon Jun 25 02:52:17 GMT 2018

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

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

Back to the top