Recent

Author Topic: Tlistbox is moving when resizing  (Read 13965 times)

Wanagen

  • New Member
  • *
  • Posts: 30
Tlistbox is moving when resizing
« on: April 03, 2007, 01:40:40 am »
Hi.
I've got some little problems at design time using Linux Mandriva 2007.0

With default project and just one tlistbox.

Lazarus 0.9.22 :
when i try to resize the tlistbox with the mouse, the top and left position change +1 each at each step. And when i resize this tlistbox, if i move the mouse too fast, the tlistbox border is no longer following the mouse cursor.

Lazarus 0.9.20 :
same problem.

Lazarus 0.9.18:
Works perfectly, not changing the top and left position and the tlistbox border always follow the mouse cursor.

All three Lazarus were rebuilt with Free Pascal Compiler version 2.0.4 [2006/08/20] for i386 and gtk2 widgettype.

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2671
RE: Tlistbox is moving when resizing
« Reply #1 on: April 03, 2007, 11:57:11 am »
Ehm, did you report this problem for 0.9.20 ?
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Wanagen

  • New Member
  • *
  • Posts: 30
RE: Tlistbox is moving when resizing
« Reply #2 on: April 03, 2007, 12:43:18 pm »
I've not used Lazarus 0.9.20 for linux before. I've downloaded it just to verify if there was the same problem as in 0.9.22.

as i typed that i done another test.

The problem is only with gtk2. With gtk1 all work correctly but that's not a solution.
I can't try with qt or gnome because i haven't got the appropriate libraries.

well continuing tests ...(Lazarus 0.9.22 + gtk2)

Same problem with TListBox, TColorListBox and TFileListBox.
No problem with TCheckListBox.( no font control )

In the editor when i just click it's ok but if i try to select some words the end of the selection go 1 or 2 line down under the mouse cursor. (depending of the font i use) I try all the fonts and the same thing go wrong.

Wanagen

  • New Member
  • *
  • Posts: 30
Tlistbox is moving when resizing
« Reply #3 on: April 05, 2007, 07:03:02 am »
Well, i've got now the good libraries to try in qt4.
libqt4intf.so compile correctly and i had copied it in /usr/lib
Lazarus compile (clean all) correctly but when i launch it it give me this before quit :

Code: [Select]

[root@WIDECLOSE-BOSS ~]# lazarus
TApplication.IconChanged - TODO: convert this message...no implementation in gtk or win32
TWidgetSet.InitializeCriticalSection Not implemented yet
TWidgetSet.EnterCriticalSection Not implemented yet
TWidgetSet.LeaveCriticalSection Not implemented yet
Note: environment config file not found - using defaults
NOTE: miscellaneous options file not found - using defaults
NOTE : fichier de configuration codetools non trouvé. Valeurs par défaut utilisées.
NOTE: help options config file not found - using defaults
QPainter::begin: Widget painting can only begin as a result of a paintEvent
TMainIDE.DoNewProject A
TMainIDE.DoNewEditorFile A NewFilename=
[TCustomFormEditor.CreateComponent] Class='TForm'
TMainIDE.DoNewEditorFile end unit1.pas
[FORMS.PP] ExceptionOccurred
  Sender=EAccessViolation
  Exception=Access violation
  Stack trace:
  $B7634A92  CODEEXPLOPTS_finalize,  line 104 of debugoptionsfrm.pas
  $081BBB86  TQTMENU__ADDACTION,  line 2776 of qtwidgets.pas
  $081B446E  TQTWSMENUITEM__CREATEHANDLE,  line 215 of qtwsmenus.pp
  $08165446  TMENUITEM__CREATEHANDLE,  line 122 of ./include/menuitem.inc
  $081663A3  TMENUITEM__HANDLENEEDED,  line 555 of ./include/menuitem.inc
  $081666AC  TMENUITEM__INSERT,  line 672 of ./include/menuitem.inc
  $0820F79A  TIDEMENUSECTION__UPDATEMENUSTRUCTURE,  line 1018 of menuintf.pas
  $0820F7CA  TIDEMENUSECTION__UPDATEMENUSTRUCTURE,  line 1027 of menuintf.pas
  $082100CA  TIDEMENUSECTION__ITEMVISIBLEACTIVECHANGED,  line 1140 of menuintf.pas
  $082100C2  TIDEMENUSECTION__ITEMVISIBLEACTIVECHANGED,  line 1136 of menuintf.pas
  $0821048B  TIDEMENUSECTION__INSERT,  line 1207 of menuintf.pas
  $082103B2  TIDEMENUSECTION__ADDLAST,  line 1196 of menuintf.pas
  $0820E373  REGISTERIDEMENUCOMMAND,  line 8597 of menuintf.pas
  $0820E3D1  REGISTERIDEMENUCOMMAND,  line 8597 of menuintf.pas
  $080B036F  TMAINIDEBASE__UPDATEWINDOWSMENU,  line 979 of mainbase.pas
  $08083F00  TMAINIDE__SETUPSTARTPROJECT,  line 1708 of main.pp
  $08081DC8  TMAINIDE__STARTIDE,  line 1138 of main.pp
TApplication.HandleException Access violation
  Stack trace:
  $B7634A92  CODEEXPLOPTS_finalize,  line 104 of debugoptionsfrm.pas
  $081BBB86  TQTMENU__ADDACTION,  line 2776 of qtwidgets.pas
  $081B446E  TQTWSMENUITEM__CREATEHANDLE,  line 215 of qtwsmenus.pp
  $08165446  TMENUITEM__CREATEHANDLE,  line 122 of ./include/menuitem.inc
  $081663A3  TMENUITEM__HANDLENEEDED,  line 555 of ./include/menuitem.inc
  $081666AC  TMENUITEM__INSERT,  line 672 of ./include/menuitem.inc
  $0820F79A  TIDEMENUSECTION__UPDATEMENUSTRUCTURE,  line 1018 of menuintf.pas
  $0820F7CA  TIDEMENUSECTION__UPDATEMENUSTRUCTURE,  line 1027 of menuintf.pas
  $082100CA  TIDEMENUSECTION__ITEMVISIBLEACTIVECHANGED,  line 1140 of menuintf.pas
  $082100C2  TIDEMENUSECTION__ITEMVISIBLEACTIVECHANGED,  line 1136 of menuintf.pas
  $0821048B  TIDEMENUSECTION__INSERT,  line 1207 of menuintf.pas
  $082103B2  TIDEMENUSECTION__ADDLAST,  line 1196 of menuintf.pas
  $0820E373  REGISTERIDEMENUCOMMAND,  line 8597 of menuintf.pas
  $0820E3D1  REGISTERIDEMENUCOMMAND,  line 8597 of menuintf.pas
  $080B036F  TMAINIDEBASE__UPDATEWINDOWSMENU,  line 979 of mainbase.pas
  $08083F00  TMAINIDE__SETUPSTARTPROJECT,  line 1708 of main.pp
  $08081DC8  TMAINIDE__STARTIDE,  line 1138 of main.pp
TWidgetSet.InitializeCriticalSection Not implemented yet
TWidgetSet.EnterCriticalSection Not implemented yet
TWidgetSet.LeaveCriticalSection Not implemented yet
TWidgetSet.InitializeCriticalSection Not implemented yet
TWidgetSet.EnterCriticalSection Not implemented yet
TWidgetSet.LeaveCriticalSection Not implemented yet
TWidgetSet.InitializeCriticalSection Not implemented yet
...
200 times same lines
...
TWidgetSet.InitializeCriticalSection Not implemented yet
TWidgetSet.EnterCriticalSection Not implemented yet
TWidgetSet.LeaveCriticalSection Not implemented yet
TWidgetSet.InitializeCriticalSection Not implemented yet
TWidgetSet.EnterCriticalSection Not implemented yet
TWidgetSet.LeaveCriticalSection Not implemented yet
TWidgetSet.InitializeCriticalSection Not implemented yet
TWidgetSet.EnterCriticalSection Not implemented yet
TWidgetSet.LeaveCriticalSection Not implemented yet
TApplication.HandleException: there was another exception during showing the first exception
  Stack trace:
  $00000000
  $08112539  TCUSTOMCONTROL__PAINTWINDOW,  line 127 of ./include/customcontrol.inc
  $08102D10  TWINCONTROL__PAINTHANDLER,  line 3002 of ./include/wincontrol.inc
  $08105D7B  TWINCONTROL__WMPAINT,  line 4710 of ./include/wincontrol.inc
  $0811247E  TCUSTOMCONTROL__WMPAINT,  line 107 of ./include/customcontrol.inc
  $08058360
  $0810C1FE  TCONTROL__WNDPROC,  line 1526 of ./include/control.inc
  $08103C1A  TWINCONTROL__WNDPROC,  line 3478 of ./include/wincontrol.inc
  $0810B0B4  TCONTROL__PERFORM,  line 981 of ./include/control.inc
  $08105E3A  TWINCONTROL__WMPAINT,  line 4743 of ./include/wincontrol.inc
  $0811247E  TCUSTOMCONTROL__WMPAINT,  line 107 of ./include/customcontrol.inc
  $08058360
  $0810C1FE  TCONTROL__WNDPROC,  line 1526 of ./include/control.inc
  $08103C1A  TWINCONTROL__WNDPROC,  line 3478 of ./include/wincontrol.inc
  $081B8E3B  TQTWIDGET__SLOTPAINT,  line 1019 of qtwidgets.pas
  $081B8778  TQTWIDGET__EVENTFILTER,  line 655 of qtwidgets.pas
  $B7EB9E95  CODEEXPLOPTS_finalize,  line 104 of debugoptionsfrm.pas
Note: GetTextBuf is overridden for: X�_�,i_
[FORMS.PP] ExceptionOccurred
[FORMS.PP] ExceptionOccurred
[root@WIDECLOSE-BOSS ~]#


Then it's not a solution.

...

Bad luck for me.
When i try to compile Lazarus with gnome widgettype :

Code: [Select]

Before this point there is no error.

Free Pascal Compiler version 2.0.4 [2006/08/20] for i386
Copyright (c) 1993-2006 by Florian Klaempfl
Target OS: Linux for i386
Compiling interfaces.pp
Compiling gnomeint.pp
Compiling /usr/lib/lazarus-0.9.22/lcl/interfaces/gtk/gtkdef.pp
Compiling /usr/lib/lazarus-0.9.22/lcl/interfaces/gtk/gtkint.pp
Compiling /usr/lib/lazarus-0.9.22/lcl/interfaces/gtk/gtkfontcache.pas
Compiling /usr/lib/lazarus-0.9.22/lcl/interfaces/gtk/gtkproc.pp
Compiling /usr/lib/lazarus-0.9.22/lcl/interfaces/gtk/gtkwinapiwindow.pp
Compiling /usr/lib/lazarus-0.9.22/lcl/interfaces/gtk/gtkglobals.pp
Compiling /usr/lib/lazarus-0.9.22/lcl/interfaces/gtk/gtkextra.pp
Compiling /usr/lib/lazarus-0.9.22/lcl/interfaces/gtk/gtkwsprivate.pp
Compiling /usr/lib/lazarus-0.9.22/lcl/interfaces/gtk/gtkmsgqueue.pp
Compiling /usr/lib/lazarus-0.9.22/lcl/interfaces/gtk/gtkwsarrow.pp
Compiling /usr/lib/lazarus-0.9.22/lcl/interfaces/gtk/gtkwsbuttons.pp
Compiling /usr/lib/lazarus-0.9.22/lcl/interfaces/gtk/gtk1wsprivate.pp
Compiling /usr/lib/lazarus-0.9.22/lcl/interfaces/gtk/gtkwscontrols.pp
Compiling /usr/lib/lazarus-0.9.22/lcl/interfaces/gtk/gtkwscalendar.pp
Compiling /usr/lib/lazarus-0.9.22/lcl/interfaces/gtk/gtkwschecklst.pp
Compiling /usr/lib/lazarus-0.9.22/lcl/interfaces/gtk/gtkwscomctrls.pp
Compiling /usr/lib/lazarus-0.9.22/lcl/interfaces/gtk/gtkwsdialogs.pp
Compiling /usr/lib/lazarus-0.9.22/lcl/interfaces/gtk/gtkwsextctrls.pp
Compiling /usr/lib/lazarus-0.9.22/lcl/interfaces/gtk/gtkwsforms.pp
Compiling /usr/lib/lazarus-0.9.22/lcl/interfaces/gtk/gtkwsgrids.pp
Compiling /usr/lib/lazarus-0.9.22/lcl/interfaces/gtk/gtkwsmenus.pp
Compiling /usr/lib/lazarus-0.9.22/lcl/interfaces/gtk/gtkwspairsplitter.pp
Compiling /usr/lib/lazarus-0.9.22/lcl/interfaces/gtk/gtkwsspin.pp
Compiling /usr/lib/lazarus-0.9.22/lcl/interfaces/gtk/gtkwsstdctrls.pp
gtkwinapi.inc(3347,2) Note: User defined: : compare TGtkWidgetSet.EnumFontFamilies with gtkproc.FillScreenFonts
gnomeint.pp(252,54) Error: Incompatible type for arg no. 3: Got "PGdkPixmap", expected "PPGdkBitMap"
gnomeint.pp(271,11) Error: Identifier not found "RaiseException"
gnomeint.pp(271,50) Error: Illegal expression
gnomeint.pp(273,11) Error: Identifier not found "RaiseException"
gnomeint.pp(273,56) Error: Illegal expression
gnomeint.pp(304) Fatal: There were 5 errors compiling module, stopping
TExternalToolList.Run Exception: gnomeint.pp(304) Fatal: There were 5 errors compiling module, stopping
GTKWindowStateEventCB :TPromptDialog new_window_state=0 changed_mask=1
GTKWindowStateEventCB :TPromptDialog 0 [RMVDStPr]
TMainIDE.DoBuildLazarus: Build Lazarus without linking failed.


Any suggest ?

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Tlistbox is moving when resizing
« Reply #4 on: April 05, 2007, 09:30:10 am »
the gnome error has been fixed.

For QT, only compile the LCL for qt, but not Lazarus, because the QT widget set interface is not ready for use by such a complex application as Lazarus.

Wanagen

  • New Member
  • *
  • Posts: 30
Tlistbox is moving when resizing
« Reply #5 on: April 05, 2007, 10:57:05 am »
same error compiling lazarus 0.9.23 with gnome widgettype

Code: [Select]

Compiling /usr/lib/lazarus-0.9.23/lcl/interfaces/gtk/gtkwsstdctrls.pp
gtkwinapi.inc(3351,2) Note: User defined: : compare TGtkWidgetSet.EnumFontFamilies with gtkproc.FillScreenFonts
gnomeint.pp(252,54) Error: Incompatible type for arg no. 3: Got "PGdkPixmap", expected "PPGdkBitMap"
gnomeint.pp(271,11) Error: Identifier not found "RaiseException"
gnomeint.pp(271,50) Error: Illegal expression
gnomeint.pp(273,11) Error: Identifier not found "RaiseException"
gnomeint.pp(273,56) Error: Illegal expression
gnomeint.pp(291,48) Error: Wrong number of parameters specified
gnomeint.pp(304) Fatal: There were 6 errors compiling module, stopping
TExternalToolList.Run Exception: gnomeint.pp(304) Fatal: There were 6 errors compiling module, stopping

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Tlistbox is moving when resizing
« Reply #6 on: April 05, 2007, 12:23:40 pm »
Sorry, I confused that error for another error. Please submit a bug report.

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Tlistbox is moving when resizing
« Reply #7 on: April 05, 2007, 04:03:51 pm »
On a second thought, you don't need to create a bug report for the compilation failure with gnome.

We will remove the gnome interface shortly from Lazarus.

The gnome interface was only a simple extension of the gtk 1 interface with some dialogs. Those dialogs are now part of gtk2. The gnome interface was not maintained anymore and is broken for more than six months without anybody noticing or complaining (you are the first).

Wanagen

  • New Member
  • *
  • Posts: 30
Tlistbox is moving when resizing
« Reply #8 on: April 06, 2007, 01:52:13 am »
Thanks.

So i have to rebuild Lazarus 0.9.23 with gtk1 or Lazarus 0.9.18 with gtk2 to draw listbox and to select text correctly.

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2671
Tlistbox is moving when resizing
« Reply #9 on: April 11, 2007, 05:01:42 pm »
Yes, and report it as bug (if it is not already reported)
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Wanagen

  • New Member
  • *
  • Posts: 30
Tlistbox is moving when resizing
« Reply #10 on: April 12, 2007, 01:30:49 am »
OK selecting text work correctly with Lazarus 0.9.23-20070412

I've reported for tlistbox problem.

Wanagen

  • New Member
  • *
  • Posts: 30
Tlistbox is moving when resizing
« Reply #11 on: June 28, 2007, 03:58:21 am »
Well,
with last daily snapshot (20070628) resizing tlistbox work correctly.

The 3 bugs i reported are still in "acknowledged" mode.
Must i write a note to modify the status to "resolved" ?

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2671
Tlistbox is moving when resizing
« Reply #12 on: July 03, 2007, 06:11:33 pm »
iirc, you can close yuor own bugs (if not, leave a note)
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

 

TinyPortal © 2005-2018