Finally I found time to upgrade the lemur library from 1.10 to 1.11.
Unfortunately I run in some issues that I could not yet solve.
I have Buttons in my project that before upgrading had a highlight color (yellow) a press down behaviour and a command. I use “text buttons” and icon button = a picture you click on.
Now all my buttons dont react to mousemovements anymore. They show up as before, so font, size and pictures are loaded as expected but it seems they cant be reached for mouse activity.
The buttons (and containers used) are in my own style (forum) but resetting it to standard “glass” style did not solve the problem - it might be no issue of styling but of how I have architectured my GUI.
I have setup the button(s) and commands in general like that
ElementId id = new ElementId("button");
Button B1 = new Button("sometext",id,"OSG");
B1.setTextHAlignment(HAlignment.Left);
...
Command loosefocus = new Command(){
@Override
public void execute(Object source) {
GuiGlobals.getInstance().getFocusManagerState().setFocus(null);
}
};
Command<Button> openListbox = new Command<Button>() {
@Override
public void execute(Button source) {
getStateManager().attach(new LngSel_AppState()); --> open a new screen
}
};
B1.addCommands(Button.ButtonAction.Up, loosefocus);
B1.addCommands(Button.ButtonAction.Down, openListbox );
Containers and buttons are set like that
Container Rahmen = new Container(new ElementId("menu").child(Container.ELEMENT_ID));
Container cell1= new Container(new SpringGridLayout(Axis.X,Axis.Y,FillMode.Even,FillMode.Even));
Rahmen.addChild(Zelle1);
Cell1.addChild(B1);
I have already tried with
B1.addCommands(Button.ButtonAction.HighlightOn,openListbox);
the new implemented option in lemur.
Finally I also got rid of all Button commands and waited for the text highlight - that never came.
I also have a Draghandler on a Container (including non working buttons) that is not working anymore.
CursorEventControl.addListenersToSpatial(exitmain,new DragHandler());
called with
getState(PopupState.class).showPopup(exitmain, null);
So I feel it might also be an issue with PopUpState or with the new handling of mouse events.
Any help is appreciated