[Gambas-bugtracker] Bug #2346: Form.Border and Form.Top
bugtracker at gambaswiki.org
bugtracker at gambaswiki.org
Fri Aug 13 21:25:17 CEST 2021
http://gambaswiki.org/bugtracker/edit?object=BUG.2346&from=L21haW4-
Bruce STEERS reported a new bug.
Summary
-------
Form.Border and Form.Top
Type : Bug
Priority : Medium
Gambas version : Unknown
Product : Unknown
Description
-----------
I'm getting a headache with a program.
It does the following....
Has an option to show/hide the window title bar (Border)
I also uses Settings.Read() / Write() to save/restore window position.
Gambas is not giving the correct top position in some cases.
the window "Looks" fine with the postion and size before saving the data but on program restert the postion is wrong.
I'll attach a very simple test app that saves/restores position and has a checkbox to turn border off or on.
Problem is hard to explain.
A good test with the following app is to run it, show the border , hide the border, then close program and open again.
It will be placed the titlebar height too high
System information
------------------
[System]
Gambas=3.16.90 c05f26cb1 (test)
OperatingSystem=Linux
Kernel=5.10.0-7-amd64
Architecture=x86_64
Distribution=<hostname> 11.0
Desktop=MATE
Font=Cantarell,11
Scale=8
Theme=menta
Language=en_GB.UTF-8
Memory=3820M
[Libraries]
Cairo=libcairo.so.2.11600.0
Curl=libcurl.so.4.7.0
DBus=libdbus-1.so.3.19.13
GDK2=libgdk-x11-2.0.so.0.2400.33
GDK3=libgdk-3.so.0.2404.20
GStreamer=libgstreamer-1.0.so.0.1804.0
GTK+2=libgtk-x11-2.0.so.0.2400.33
GTK+3=libgtk-3.so.0.2404.20
OpenGL=libGL.so.1.7.0
Poppler=libpoppler.so.102.0.0
QT5=libQt5Core.so.5.15.2
SDL=libSDL-1.2.so.0.11.4
SQLite=libsqlite3.so.0.8.6
[Environment]
CLUTTER_BACKEND=x11
CLUTTER_IM_MODULE=ibus
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
DESKTOP_AUTOSTART_ID=10ec4a11847237a00162888127683858700000078750001
DESKTOP_SESSION=mate
DISPLAY=:0
GB_GUI=gb.gtk3
GDMSESSION=mate
GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
GTK_IM_MODULE=ibus
GTK_MODULES=gail:atk-bridge:canberra-gtk-module
GTK_OVERLAY_SCROLLING=0
HOME=<home>
LANG=en_GB.UTF-8
LANGUAGE=en_GB.UTF-8
LC_ALL=en_GB.UTF-8
LOGNAME=<user>
MATE_DESKTOP_SESSION_ID=this-is-deprecated
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
PWD=<home>
QT_ACCESSIBILITY=1
QT_AUTO_SCREEN_SCALE_FACTOR=0
QT_IM_MODULE=ibus
QT_SCALE_FACTOR=1
SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/7875,unix/<hostname>:/tmp/.ICE-unix/7875
SHELL=/bin/bash
SHLVL=0
SSH_AGENT_PID=7968
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
TZ=:/etc/localtime
USER=<user>
XAUTHORITY=<home>/.Xauthority
XDG_CURRENT_DESKTOP=MATE
XDG_DATA_DIRS=/usr/share/mate:/usr/local/share/:/usr/share/
XDG_GREETER_DATA_DIR=/var/lib/lightdm/data/<user>
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_CLASS=user
XDG_SESSION_DESKTOP=mate
XDG_SESSION_ID=5
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1
XDG_SESSION_TYPE=x11
XDG_VTNR=7
XMODIFIERS=@im=ibus
_=/usr/bin/gambas3
More information about the Bugtracker
mailing list