Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » TopWindow&PopUp, TrayIcon » ok and cancel button reversed on Linux
ok and cancel button reversed on Linux [message #42664] Thu, 27 March 2014 20:12 Go to next message
Alboni is currently offline  Alboni
Messages: 203
Registered: January 2012
Location: Deventer, Netherlands
Experienced Member
When I create a Layout with both an ok and cancel button on it then on Linux, they swap positions. On Windows it works fine.

for example:

Layout:
http://home.zonnet.nl/rproost/wc_layout.png


On Windows
http://home.zonnet.nl/rproost/wc_windows.png


On Linux
http://home.zonnet.nl/rproost/wc_linux.png
Re: ok and cancel button reversed on Linux [message #42671 is a reply to message #42664] Fri, 28 March 2014 09:16 Go to previous messageGo to next message
andreincx is currently offline  andreincx
Messages: 15
Registered: March 2014
Promising Member
There is KDE and Windows which have [OK] [Cancel] order, and Gnome and MacOS which have [Cancel] [OK]. U++ uses Gnome way of displaying buttons on Linux.

See SwapOKCancel_Write(true) in CtrlLib/ChGtk.cpp and ArrangeOKCancel(Ctrl& ok, Ctrl& cancel) in TopWindow.cpp.
Re: ok and cancel button reversed on Linux [message #42764 is a reply to message #42671] Wed, 02 April 2014 09:47 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13045
Registered: November 2005
Ultimate Member
andreincx wrote on Fri, 28 March 2014 04:16

There is KDE and Windows which have [OK] [Cancel] order, and Gnome and MacOS which have [Cancel] [OK]. U++ uses Gnome way of displaying buttons on Linux.

See SwapOKCancel_Write(true) in CtrlLib/ChGtk.cpp and ArrangeOKCancel(Ctrl& ok, Ctrl& cancel) in TopWindow.cpp.



Actually, I did not knew KDE displays them in Windows order. I guess we can adjust SwapOKCancel for KDE....
Re: ok and cancel button reversed on Linux [message #43014 is a reply to message #42764] Wed, 23 April 2014 10:46 Go to previous message
mirek is currently offline  mirek
Messages: 13045
Registered: November 2005
Ultimate Member
Hopefully fixed (I mean, OK is not swapped with Cancel in KDE anymore).
Previous Topic: Chameleon background/paper skinning for TopWindow
Next Topic: [Bug/please explain] TopWindow.Execute in loop
Goto Forum:
  


Current Time: Fri Jan 22 03:22:10 CET 2021

Total time taken to generate the page: 0.00982 seconds