On Sat, 14 Jan 2006 13:44:03 +0100 Martin Smat <[EMAIL PROTECTED]> wrote:
> rainer wrote: > > >gtk has many similar problems. I tried lazarus and fpc snapshot 20060110 > >on kanotix (konoppix clone / KDE), ubuntu (GNOME), kubuntu (KDE) and > >suse 10.0 (KDE and GNOME). > > > >Exept on suse / GNOME many items including the text inside the editor > >disappears from time to time. > > > >On suse / GNOME speed buttons disappear when the mouse is moved over > >that part of panel and sometimes labels disappear, when the mouse is > >moved over them. The IDE crashes from time to time. > > > >Rainer Hamann > > > > > I asked because I'm preparing a patch for speedbuttons to shift the > image one pixel right and down when pushed. This feature is dependent on > used interface. This behavior is only for Win32 interface, GTK does not > shift images on pushed buttons. > So I added new procedure to TWSSpeedButton and override it in > TWin32WSSpeedButton where I uncommented the command for registration of > this class: RegisterWSComponent(TCustomSpeedButton, TWin32WSSpeedButton); > After compiling everything seems to work well but my question is if I > have to uncomment the registration command in GTK interface where this > method is not implemented (there is no image shift). Why do you need a method in the gtk interface for this? Why not add a flag method TWSSpeedButton.GetPaintStyle(out DownOffset: TPoint); with default value 0,0 and overriden in TWin32WSSpeedButton with 2,2 (or whatever offset)? Mattias > > Martin. > > >>Hi, > >> > >>when I comment the command RegisterWSComponent(TCustomBitBtn, > >>TWin32WSBitBtn); in file win32wsbuttons.pp in win32 interface, Lazarus > >>crashes. > >>How is then possible that GTK2 interface is working (I suppose it is > >>working, did not try) and has this command commented out? > >> > >>Martin. > >> > >>_________________________________________________________________ > >> To unsubscribe: mail [EMAIL PROTECTED] with > >> "unsubscribe" as the Subject > >> archives at http://www.lazarus.freepascal.org/mailarchives > >> > >> > > > >_________________________________________________________________ > > To unsubscribe: mail [EMAIL PROTECTED] with > > "unsubscribe" as the Subject > > archives at http://www.lazarus.freepascal.org/mailarchives > > > > > > > > _________________________________________________________________ > To unsubscribe: mail [EMAIL PROTECTED] with > "unsubscribe" as the Subject > archives at http://www.lazarus.freepascal.org/mailarchives _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives