Position and size of some windows not stored

4 posts / 0 new
Last post
dl2new
Position and size of some windows not stored

Since some time the size and position of some windows are not stored - after reopen CQRlog some windows have the wrong size and/or position (e.g. New QSO window, QSO list, DXCluster).
The config files 1cqrlog.cfg and cqrlog.cfg are only existing if the program is running.

I use Ubuntu 23.04 and CQRlog 2.6.0 (001) Gtk2.

Any ideas?
73 de Sven, DL2NEW

oh1kh
Position and size of some windows not stored

Hi Sven!
1cqrlog.cfg should exist only when Cqrlog is running and log1 is open.

Window sizes and positions width,height,top,left for windows New QSO window, QSO list, DXCluster can be found from sections (in same order) [Main] , [NewQSO], [frmDXCluster]
Note the that if you move or resize window new values are written at Cqrlog close, where also file disappears when contents are saved in log database. You should see different values caused by resize or move after restart of Cqrlog.

Check that 1cqrlog.cfg really disappears. If you have ever run Cqrlog as root (sudo) it might be that 1cqrlog.cfg has wrong ownership.

--
Saku
OH1KH

dl2new
Position and size of some windows not stored

Hi Saku,
thanks for the fast reply.
The file 1cqrlog.cfg disapeared if the program is closed. This was checked by me.
But where are the window positions stored? Which config file is used if the program starts?
73 de Sven, DL2NEW

oh1kh
Position and size of some windows not stored

Hi Sven!
Fine!
File disappears and contents are saved to database when Cqrlog close.
When it starts contents are taken from database and placed again to file. There is also copy of file contents in memory during runtime.
There are changes that are not written to file immediately, they exist only in memory. That is why Cqrlog should close properly.
During close the memory changes are written to file and file written to database.

Open file 1cqrlog.cfg with text editor. There are sections starting with section name in [ ] brackets.
Window sizes and positions width,height,top,left for windows New QSO window, QSO list, DXCluster can be found from sections [Main] , [NewQSO], [frmDXCluster]
Inside those sections you find:
Height=634
Width=808
Top=0
Left=160
NOTE: Numbers may be different!
Those are placing and size of window. Note that if you change them they do not appear immediately to 1cqrlog.cfg file. They exist only in memory.
Let's say you resize and move "qso list". If you close window from top rigtht corner "X" and then open it again from NewQSO/WIndow/Qso list it should appear to same place and size it was when closing.
That proves that values are stored in memory part of 1cqrlg.cfg correctly.
If you close Cqrlog then those memory values should go to file 1cqrlog.cfg and from that to #1st Log's database. That way configuration goes always with log. Every log can have own configuration.

If you open Cqrlog again, but only to "Database connect" window not opening log #1 (or any other logs) you can click log name to make it selected (highlighted) and pres button "Utils" and select there "configuration/export"
Give file name and save it.
Then open the log (assume it was #1) and you should find 1cqrlog.cfg again. Compare it and the file you saved with "configuration/export" . They should be equal as Cqrlog is just started and no changes are done.

--
Saku
OH1KH