Board index FlightGear Development

How to control the placement of a dialog on screen  Topic is solved

FlightGear is opensource, so you can be the developer. In the need for help on anything? We are here to help you.
Forum rules
Core development is discussed on the official FlightGear-Devel development mailing list.

Bugs can be reported in the bug tracker.

How to control the placement of a dialog on screen

Postby mhab » Sat Jun 29, 2013 1:27 pm

It seems to be a simple question, but I could not google any useful answer ...

Is there a way to control where a dialog pops up on screen ?

What I want to change is, where the "pushback" dialog pops up.
I made some keyboard shortcuts to handle the pushback, and now I would like to have the dialog pop up NOT in the screen center but somewhere in the upper left corner (near to the menubar)

Thanks for any help
Mike-DE
mhab
 
Posts: 410
Joined: Thu Apr 18, 2013 10:59 pm
Callsign: D-MIKE
Version: 2019.1.1
OS: Win10

Re: How to control the placement of a dialog on screen  

Postby Gijs » Sat Jun 29, 2013 1:37 pm

Sure, just add something like this to your dialog
Code: Select all
<x>5</x>
<y>-300</y>

See gui/dialogs/fps.xml for an example. This is explained in Docs/README.gui
Airports: EHAM, EHLE, KSFO
Aircraft: 747-400
User avatar
Gijs
Moderator
 
Posts: 9384
Joined: Tue Jul 03, 2007 2:55 pm
Location: Amsterdam/Delft, the Netherlands
Callsign: PH-GYS
Version: Git
OS: Windows 10


Return to Development

Who is online

Users browsing this forum: No registered users and 1 guest