|[Forms] Header layout problem caused by message icons [message #721642]
||Fri, 02 September 2011 08:13
| Christophe Fondacci
Registered: July 2009
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,
Powered by FUDForum
. Page generated in 0.72737 seconds