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 Fondacci
Messages: 95
Registered: July 2009
Location: Paris
Member
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,
Christophe
http://www.nextep-softwares.com
Previous Topic:Problems using Editingsupport combined with Drag and Drop
Next Topic:Viewer, ISelection, and non-null-element contract
Goto Forum:
  


Current Time: Fri Sep 19 20:11:44 GMT 2014

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

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