Board index FlightGear Development New features

Menubar at a different position

Discussion and requests for new features. Please note that FlightGear developers are volunteers and may or may not be able to consider these requests.

Menubar at a different position

Postby pommesschranke » Wed Jan 08, 2014 3:33 pm

because of the layout of my LCDs it would be nice to have the menubar not in the top left corner but in the top right or on the top in the middle.

at the moment this can not be done with a property / XML File, right ?

so I looked into:
/src/GUI/FGPUIMenuBar.cxx

_menuBar is a puMenuBar object.
it is shown or hidden by:
Code: Select all
 _menuBar->reveal();

and
Code: Select all
 _menuBar->hide();


reveal() does not take any X,Y coordinates, but draw(int dx, int dy) does.
I replaced reveal with draw -> no effect, then I removed the line completely:
Code: Select all
  if (_visible)
        {
        // _menuBar->draw(10,0);
        SG_LOG(SG_GENERAL, SG_INFO, " make menubar");
       // _menuBar->reveal();
        }
    else
        _menuBar->hide();


..no effect (but I can see my debug output)

I guess I have to search somewhere else.
pommesschranke
 
Posts: 1104
Joined: Sat Apr 27, 2013 7:58 pm
Location: EDLM & LJCE
Callsign: d-laser
IRC name: laserman
Version: git
OS: Linux Lubuntu 18.04

Return to New features

Who is online

Users browsing this forum: No registered users and 1 guest