Changing TForm.Caption lazarus / 31-LCL ---------------------------------------------------------------------- wschulte · 2012-12-09 08:57 Seeing my forms caption didn't change I did some research and got to this topic: http://lazarus.freepascal.org/index.php/topic,15836.msg856 83.html#msg85683. It describes roughly the same problem, but mine was 100% reproducable. Better even: iI made a simple program: 1 form, one TEdit, one TButton. All it does is updating the forms caption to the value in the edit-box when the button is pressed. Looks simple. And .. it didn't work  . Though the task-bar icon showed the updated caption ! All tricks I could think of (ProcessMessages after an Update, Repaint etc.). didn't change a thing. What was I running: Lazarus 1.0.2 with FreePascal 2.6.0 on an Ubuntu 11.04 installation, all amd64. Being in the process of changing from an Ubuntu 11.04 to Xubuntu 12.04 (amd64) I got a brainwave  : I ran exactly the same program on an XUbuntu 12.04 installation and .. it worked flawlessly  . Cute .. then .. ah I had an i386 Ubuntu 11.04 too as a virtual machine. Ok, I made the same program there (same installation but all i386) and tried .. and it ran flawlessly again. All this leads to the impression that the problem with the form caption not updating lies somewhere in the window-manager and not in the Lazarus LCL: same program runs well on a more modern 64 bit installation but not on an older one. But I saw the same problem was reported also for Windows (sadly not stating whether it is 64 bit or 32 bit; see the above mentioned thread). Now this leaves me with a few puzzles: is this problem bound to a certain architecture (64 bit) or to a specific distro of the windowmanager ? As far as I looked all Linux distroos I saw are GTK2 based, but the Windows aint ....anybody aware in more detail where the problem is located ? I don't have the skills to find it out exactly, but it is quite a nasty problem (I noticed it when I used the forms caption to display the currently loaded file .. next file loading didn't show in the forms caption) I don't have a workaround for the 64 bit Ununtu 11.04, but I was migrating anyway .. but hope this helps  people out there. I spent a lot of time in finding out why my program seemed to be faulty but wasn't. ---------------------------------------------------------------------- Fred vS · 2012-12-09 12:51 Quote iI made a simple program: 1 form, one TEdit, one TButton. Could you give us that code ? ---------------------------------------------------------------------- wschulte · 2012-12-10 16:59 Of course I can give the code. I t is enclosed. in captst. Just compile in an Ubuntu 11.04 64bit how the caption doesn't get updated, though it doe sin the taskbar, while it does in Xubuntu 12.04 64bit. Compile it on a Ubuntu 11.04 32bit and it runs and updates the caption just fine. ---------------------------------------------------------------------- JuhaManninen · 2012-12-10 20:28 It does not sound like a typical 64-bit issue. I guess the Ubuntu desktop (Gnome or Unity or whatever) causes it and there is some other difference with library versions etc. in the 64-bit system. Here it works well on a 64-bit Mint Linux + KDE, using both QT and GTK2 bindings. Juha ---------------------------------------------------------------------- wschulte · 2012-12-14 21:25 Hi Juha, I did some further research when you quoted QT. Got QT interface on the machine, compiled for QT and .. no, the the forms caption doesn't update on the 64bit system, but it does on the 32bit system Another problem I discovered was solved: a scrollbar from a listbox disappeared behind a PageControl (when there are tabs on it), but not the listbox itself. See the example in the attachment. Compiling it for GTK2 makes the scrollbar disappear for the portion thats overlapping with the pagecontrol (on an 64bit and 32bit Ubuntu 11.04), while compiling for QT doesn't make the scrollbar disappear. All with all the caption thing is still bothering me for the moment. The scrollbar issue seems solved. When I got some time tomorrow I will try an Ubuntu 12.04 with Unity (and discard it again; somehow I cant get used to unity). I will let you know. ---------------------------------------------------------------------- Blaazen · 2012-12-14 22:08 Do I understand well that you tried Lazarus+Qt (with libQt4pas.so) in Unity? I use KDE4 and I have not such problems. Scrollbars are known problem in Unity, AFAIK issue are still open. http://bugs.freepascal.org/view.php?id=19266 ---------------------------------------------------------------------- BigChimp · 2012-12-15 08:10 Quote from: wschulte on December 10, 2012, 05:59:20 pmOf course I can give the code. I t is enclosed. in captst. Just compile in an Ubuntu 11.04 64bit how the caption doesn't get updated, though it doe sin the taskbar, while it does in Xubuntu 12.04 64bit. Compile it on a Ubuntu 11.04 32bit and it runs and updates the caption just fine. Works fine and changes the caption of the form on Debian unstable x64 using Xfce. Was compiled for Gtk2. I suspect it's something in Ubuntu. ---------------------------------------------------------------------- wschulte · 2012-12-15 15:35 Hi all, Ok had a Ubuntu12.04 32bit and 64 bit installation to try ity. Both with Unity. Everything is normal there: forms caption updates, scrollbars are visible. All in a build for gtk2 as well as qt4. So I will not bother as it looks like a problem associated typically with the Ubuntu 11.04 installation, which I will leave soon anyway. Not a gtk2 problem .. I wasn't aware of the scrollbars-problems in Unity, but I didn't see them in this little test. But as said earlier, Unity is not an option for me.