|
Re: Swing discrepancies when using Rayo [message #1010900 is a reply to message #1010770] |
Mon, 18 February 2013 07:50   |
Eclipse User |
|
|
|
Urs,
Thanks for your elaborate questions!
The Rayo LAF was especially designed to look and feel "different" than those boring grey windows from the 90s. Window controls were rearranged or omitted intentionally to give the user a more clean and simple user interface. While the marketing departments likes this very much ("So simple, everyone can use it without teaching, you can't do anything wrong - and it's blue!"), it certainly limits the possibilites to the programmer. First, you usually do not programm any GUI code, but only "client model code" that is then mapped to the GUI automatically. This limits you to the possibilities the model offers. Second, not all of those model objects are supported by the Rayo LAF, because they would not fit in.
So, in short: Yes, the features you mentioned are not supported by Rayo out of the box (intentionally).
- Adding custom tool buttons that are not of type AbstractFormToolButton is not supported in Rayo. You could try to replace the default toolbar (com.bsiag.scout.rt.ui.swing.rayo.window.desktop.toolbar.RayoToolTabsBar) with your own implementation, although that looks a bit complex. The "Rayo way" would be to add a menu to the menu button, use a hotkey or use a "form tool button" (which displays a form on the right part of the main window where you can place any widget you like, including other buttons).
- Regarding the application icon: This is intentional, the Rayo style does not use icons in the title bar. However, you can tell Rayo not to draw the window borders on its own by setting scout.laf.useLafFrameAndDialog=false in config.ini. The window borders (including the title bar) are then rendered by the OS.
- Regarding the status bar: Rayo does not support a dedicated status bar. It uses the "inline status bar" in tables. It's the one that says "27 Objekte" in your screen shots. Usually the informations displayed there are directly linked to the contents of the table, so it would be kind of a misuse to display arbitrary information. I think there are also some limitations concering when this status is updated. If you want to try it, look for methods contaning the words "page populate status" (e.g. on IPage or AbstractTableField).
Beat
|
|
|
Re: Swing discrepancies when using Rayo [message #1010934 is a reply to message #1010900] |
Mon, 18 February 2013 08:58  |
Eclipse User |
|
|
|
Beat,
Thanks a lot for your clarifications. Setting scout.laf.useLafFrameAndDialog to false works and I can live with all the other limitations. It was more of a question, if I had missed something obvious to make those things work, but if they are not intended to, I'm fine with knowing that.
They way it looks at the moment, our application is going to be SWT based anyway, so this was more of a wrap-up question.
/urs
|
|
|
Powered by
FUDForum. Page generated in 0.04211 seconds