Re: [lazarus] devel: Imaging, Mask vs. Alpha

2007-04-16 Thread Mattias Gaertner
On Mon, 16 Apr 2007 22:46:49 +0200 Marc Weustink <[EMAIL PROTECTED]> wrote: > Mattias Gaertner wrote: > > On Mon, 16 Apr 2007 11:20:55 +0200 > > Marc Weustink <[EMAIL PROTECTED]> wrote: > > > >> Continuing my TRawImageQuestion. > >> > >> While implementing cursors and imagelists, Paul and I start

Re: [lazarus] Maskedit and copyrighted material

2007-04-16 Thread Felipe Monteiro de Carvalho
The first patch about this is marked as: Revision 3216 - (view) (download) - [select for diffs] Added Mon Aug 19 15:15:20 2002 UTC (4 years, 7 months ago) by mattias File length: 39065 byte(s) added TMaskEdit from Tony And the later modifications look very small, just small adjustments, so we

Re: [lazarus] TCustomGrid and GridLineWidth property

2007-04-16 Thread Graeme Geldenhuys
On 4/17/07, Jesús Reyes A. <[EMAIL PROTECTED]> wrote: > Is GridLineWidth not implemented (yet published) or is there something > else I need to set to get it working under Lazarus? I have the > Yes, is not yet implemented, the true is that I never found a use for that, maybe you found it? if yo

Re: [lazarus] TCustomGrid not the same as Delphi

2007-04-16 Thread Graeme Geldenhuys
On 4/17/07, Jesús Reyes A. <[EMAIL PROTECTED]> wrote: > In Delphi's TCustomGrid the DrawCell() method is 'virtual abstract', > but in Lazarus it is virtual. It's necesary to change it to virtual abstract?, I initially thought that it could be used for some standard drawing but eventually found

Re: [lazarus] listview example cannot be loaded in the IDE on win64

2007-04-16 Thread Martin Schreiber
On Monday 16 April 2007 22.24, Vincent Snijders wrote: > If events are not executed when componentstate is csDesigning, then we > don't have this problem. > > But the LCL does raise events when component state is csDesigning, and > then this problem occurs. If we were to guard each OnXXX(Self) cal

Re: [lazarus] Delphi incompatibilities in TForm

2007-04-16 Thread Felipe Monteiro de Carvalho
Mark, could you point us to how to fix this? (Which is something much better to do rether then pointlessly arguing about this) What exactly is theming support? How does one implement it? Are there functions in Gtk to retrive the colors for the theme, and then you use them and set the color for th

Re: [lazarus] TCustomGrid and GridLineWidth property

2007-04-16 Thread Jesús Reyes A.
- Original Message - From: "Graeme Geldenhuys" <[EMAIL PROTECTED]> To: Sent: Monday, April 16, 2007 9:42 AM Subject: [lazarus] TCustomGrid and GridLineWidth property Hi, Is GridLineWidth not implemented (yet published) or is there something else I need to set to get it working unde

Re: [lazarus] TCustomGrid not the same as Delphi

2007-04-16 Thread Jesús Reyes A.
- Original Message - From: "Graeme Geldenhuys" <[EMAIL PROTECTED]> To: Sent: Monday, April 16, 2007 4:47 AM Subject: [lazarus] TCustomGrid not the same as Delphi Hi In Delphi's TCustomGrid the DrawCell() method is 'virtual abstract', but in Lazarus it is virtual. It's necesary t

Re: [lazarus] Looking for experience using Lazarus in programming education

2007-04-16 Thread Nataraj S Narayan
Hi Tom Mine is a case of implementing lazarus in an International School. But it was not for Education, but for Administration. I made front ends for MySQL backend using SQLDB using lazarus under Linux. The software was implemented on hard disk less thin client machines with linux LTSP server

Re: [lazarus] Looking for experience using Lazarus in programming education

2007-04-16 Thread Nataraj S Narayan
Hi Tom Mine is a case of implementing lazarus in an International School. But it was not for Education, but for Administration. I made front ends for MySQL backend using SQLDB using lazarus under Linux. The software was implemented on hard disk less thin client machines with linux LTSP server

Re: [lazarus] GTK2 and ComboBox problem - correction

2007-04-16 Thread Andrew Haines
pineal wrote: > On Tuesday 17 April 2007 00:48, Andrew Haines wrote: >> I use Gentoo >> >> My gtk version is 2.10.11 >> >> do you use lazarus from svn or a snapshot? >> >> Andrew > > svn. > > I updated today, recompiled, but the same problem remains. > ok, I've just now added a bit of code about

Re: [lazarus] GTK2 and ComboBox problem - correction

2007-04-16 Thread pineal
On Tuesday 17 April 2007 00:48, Andrew Haines wrote: > I use Gentoo > > My gtk version is 2.10.11 > > do you use lazarus from svn or a snapshot? > > Andrew svn. I updated today, recompiled, but the same problem remains. ned. _

Re: [lazarus] Delphi incompatibilities in TForm

2007-04-16 Thread Giuliano Colla
Flávio Etrusco ha scritto: 2) Delphi Form has a Bitmap property which allows to set a background image on the form, while Lazarus does not. What version is it? I vaguely remember seeing this on a very recent version of Delphi (probably Turbo Delphi Explorer), but in Delphi7 there isn't any suc

Re: [lazarus] Delphi incompatibilities in TForm

2007-04-16 Thread Giuliano Colla
Lord Satan ha scritto: On Mon, 16 Apr 2007 23:58:30 +0200 "Graeme Geldenhuys" <[EMAIL PROTECTED]> wrote: Forcing all GTK applications to always use the theming colors is *not* always the developers desire. In this case the developer has the option to use an application

Re: [lazarus] Delphi incompatibilities in TForm

2007-04-16 Thread Lord Satan
On Tue, 17 Apr 2007 01:50:14 +0200 "Graeme Geldenhuys" <[EMAIL PROTECTED]> wrote: > On 4/17/07, Lord Satan <[EMAIL PROTECTED]> wrote: > > > > > Forcing all GTK applications to always use the theming colors is *not* > > > always the developers desire. > > > > In this case the developer has the opti

Re: [lazarus] Delphi incompatibilities in TForm

2007-04-16 Thread Graeme Geldenhuys
On 4/17/07, Lord Satan <[EMAIL PROTECTED]> wrote: > Forcing all GTK applications to always use the theming colors is *not* > always the developers desire. In this case the developer has the option to use an application specific appname.gtkrc file to override the standard theme and use his own.

Re: [lazarus] GTK2 and ComboBox problem - correction

2007-04-16 Thread Andrew Haines
pineal wrote: > On Monday 16 April 2007 23:14, Andrew Haines wrote: >> What version of gtk2 are you using? here they work okay. >> >> Andrew > > Hi Andrew, > > The library version is 2.8.9-1. > > What distro are you using? > I use Gentoo My gtk version is 2.10.11 do you use lazarus from svn

Re: [lazarus] Delphi incompatibilities in TForm

2007-04-16 Thread Graeme Geldenhuys
On 4/17/07, Marc Weustink <[EMAIL PROTECTED]> wrote: > Forcing all GTK applications to always use the theming colors is *not* > always the developers desire. Forcing ppl to not use their theme either! Our issue came into play when we tested under both Linux and Windows. We moved away from Del

Re: [lazarus] GTK2 and ComboBox problem - correction

2007-04-16 Thread pineal
On Monday 16 April 2007 23:14, Andrew Haines wrote: > What version of gtk2 are you using? here they work okay. > > Andrew Hi Andrew, The library version is 2.8.9-1. What distro are you using? ned. _ To unsubscribe: mail [EMAI

Re: [lazarus] [Major Bug] Mantis is case sensitive when doing searches!

2007-04-16 Thread Graeme Geldenhuys
On 4/17/07, Marc Weustink <[EMAIL PROTECTED]> wrote: Fixed. The database was configured with a default collation of utf8_bin. This means that every table and every string field defaults to a case sensitive sorting. With the result that the LIKE operator also becomes case sensitive (I didn't fin

Re: [lazarus] Delphi incompatibilities in TForm

2007-04-16 Thread Lord Satan
On Mon, 16 Apr 2007 23:58:30 +0200 "Graeme Geldenhuys" <[EMAIL PROTECTED]> wrote: > Forcing all GTK applications to always use the theming colors is *not* > always the developers desire. In this case the developer has the option to use an application specific appname.gtkrc file to override the s

Re: [lazarus] Delphi incompatibilities in TForm

2007-04-16 Thread Marc Weustink
Graeme Geldenhuys wrote: > On 4/16/07, Marc Weustink <[EMAIL PROTECTED]> wrote: >> >> That it doesn't work for you doesn't mean that it is a bad choice. It >> was choosen this way, since setting the color would destroy normal >> theming, so the bitmap background of forms would become invisible. >>

Re: [lazarus] [Major Bug] Mantis is case sensitive when doing searches!

2007-04-16 Thread Marc Weustink
Graeme Geldenhuys wrote: > On 4/16/07, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: >> >> > Could somebody please disable the case sensitivity! >> >> I think you should post this on the mantis forums :-) > > Ah, ok. So it's not just a setup issue on the freepascal.org website, > but rather a bu

Re: [lazarus] GTK2 and ComboBox problem - correction

2007-04-16 Thread Andrew Haines
pineal wrote: > I have found now that it is only within the IDE Object Inspector that the > combobox will not show its contents. Comboboxes within my application work as > expected. > > ned. > > _ > To unsubscribe: mail [EMAIL

Re: [lazarus] Delphi incompatibilities in TForm

2007-04-16 Thread Graeme Geldenhuys
On 4/16/07, Marc Weustink <[EMAIL PROTECTED]> wrote: That it doesn't work for you doesn't mean that it is a bad choice. It was choosen this way, since setting the color would destroy normal theming, so the bitmap background of forms would become invisible. Then why give use the choice of a Co

Re: [lazarus] Delphi incompatibilities in TForm

2007-04-16 Thread Marc Weustink
Graeme Geldenhuys wrote: > On 4/16/07, Alexsander Rosa <[EMAIL PROTECTED]> wrote: >> IIRC, it's because the "design choice" was to let the Window Manager >> choose the color. > > That would be a very 'bad design choice' then. Sure, get the default > color from the Window Manager, but always allow

Re: [lazarus] Delphi incompatibilities in TForm

2007-04-16 Thread Flávio Etrusco
2) Delphi Form has a Bitmap property which allows to set a background image on the form, while Lazarus does not. What version is it? I vaguely remember seeing this on a very recent version of Delphi (probably Turbo Delphi Explorer), but in Delphi7 there isn't any such property... Cheers, Flávi

Re: [lazarus] Delphi incompatibilities in TForm

2007-04-16 Thread Graeme Geldenhuys
On 4/16/07, Giuliano Colla <[EMAIL PROTECTED]> wrote: 1) TForm.Color property sicks stubbornly to clBtnFace, whatever you do. Setting a different Color triggers a repaint, but the form is painted with the default color. What is weird is that if you put a component such as a Panel on the form and

Re: [lazarus] Delphi incompatibilities in TForm

2007-04-16 Thread Graeme Geldenhuys
On 4/16/07, Alexsander Rosa <[EMAIL PROTECTED]> wrote: IIRC, it's because the "design choice" was to let the Window Manager choose the color. That would be a very 'bad design choice' then. Sure, get the default color from the Window Manager, but always allow the user to override those if neede

Re: [lazarus] [Major Bug] Mantis is case sensitive when doing searches!

2007-04-16 Thread Graeme Geldenhuys
On 4/16/07, Jesus Reyes <[EMAIL PROTECTED]> wrote: This feature was already requested: http://www.freepascal.org/mantis/view.php?id=8499 Jesus Reyes A. Thanks Jesus, but from the other replies, it seems best if this was reported to the Mantis developers and not the freepascal.org's mantis si

Re: [lazarus] devel: Imaging, Mask vs. Alpha

2007-04-16 Thread Marc Weustink
Mattias Gaertner wrote: > On Mon, 16 Apr 2007 11:20:55 +0200 > Marc Weustink <[EMAIL PROTECTED]> wrote: > >> Continuing my TRawImageQuestion. >> >> While implementing cursors and imagelists, Paul and I start to get >> confused. It appears that Mask and Alpha are treated as equal while >> in fact

Re: [lazarus] listview example cannot be loaded in the IDE on win64

2007-04-16 Thread Vincent Snijders
Martin Schreiber schreef: On Monday 16 April 2007 19.17, Mattias Gaertner wrote: On Mon, 16 Apr 2007 14:56:01 +0200 Does this mean during streaming Assigned(OnClick) is true? Yes. But then you need "if [csReading,csWriting]*ComponentState=[] then ", don't you? For events which are trigger

Re: [lazarus] listview example cannot be loaded in the IDE on win64

2007-04-16 Thread Mattias Gaertner
On Mon, 16 Apr 2007 21:35:32 +0200 Martin Schreiber <[EMAIL PROTECTED]> wrote: > On Monday 16 April 2007 19.17, Mattias Gaertner wrote: > > On Mon, 16 Apr 2007 14:56:01 +0200 > > > > > > Does this mean during streaming Assigned(OnClick) is true? > > > > > > Yes. > > > > But then you need "if [csRe

Re: [lazarus] Delphi incompatibilities in TForm

2007-04-16 Thread Felipe Monteiro de Carvalho
On 4/16/07, Alexsander Rosa <[EMAIL PROTECTED]> wrote: IIRC, it's because the "design choice" was to let the Window Manager choose the color. I don´t think so. The default colors (like clBtnFace) are already reserved for the Window Manager. Setting to clGreen for example should always make it g

Re: [lazarus] Delphi incompatibilities in TForm

2007-04-16 Thread Alexsander Rosa
IIRC, it's because the "design choice" was to let the Window Manager choose the color. 2007/4/16, Giuliano Colla <[EMAIL PROTECTED]>: Trying to convert to Lazarus Delphi projects, I stumbled in quite a number of incompatibilities. Let's start with TForm. 1) TForm.Color property sicks stubbornly

Re: [lazarus] Delphi incompatibilities in TForm

2007-04-16 Thread Felipe Monteiro de Carvalho
On 4/16/07, Giuliano Colla <[EMAIL PROTECTED]> wrote: 1) TForm.Color property sicks stubbornly to clBtnFace, whatever you do. TForm.Color is not implemented on Gtk or gtk2 interfaces. I once tryed to implement it, but it´s quite a huge mess, and I couldn´t make it work. TForm.Color works at le

Re: [lazarus] listview example cannot be loaded in the IDE on win64

2007-04-16 Thread Martin Schreiber
On Monday 16 April 2007 19.17, Mattias Gaertner wrote: > On Mon, 16 Apr 2007 14:56:01 +0200 > > > > Does this mean during streaming Assigned(OnClick) is true? > > > > Yes. > > But then you need "if [csReading,csWriting]*ComponentState=[] then ", > don't you? > For events which are triggered while

[lazarus] Delphi incompatibilities in TForm

2007-04-16 Thread Giuliano Colla
Trying to convert to Lazarus Delphi projects, I stumbled in quite a number of incompatibilities. Let's start with TForm. 1) TForm.Color property sicks stubbornly to clBtnFace, whatever you do. Setting a different Color triggers a repaint, but the form is painted with the default color. What is

Re: [lazarus] GTK2 and ComboBox problem - correction

2007-04-16 Thread pineal
I have found now that it is only within the IDE Object Inspector that the combobox will not show its contents. Comboboxes within my application work as expected. ned. _ To unsubscribe: mail [EMAIL PROTECTED] with

[lazarus] Maskedit and copyrighted material

2007-04-16 Thread Marc Weustink
Hi, Today it got into my attention that the MaskEdit implementation in the LCL was purely based on copyrighted material (the diff was shocking small). As a result I removed the code and replaced it with a bare minimum implementation so atleast the LCL kept compiling. Please ppl. when suppplying p

[lazarus] GTK2 and ComboBox problem

2007-04-16 Thread pineal
I'm running the latest svn Lazarus compiled for GTK2 under KDE on a PCLinuxOS platform. Recently, I don't know when (I've been developing server side stuff) the combobox no longer displays its drop down list, ANY combo box, those I put in my applications and those used within the IDE, none disp

Re: [lazarus] devel: Imaging, Mask vs. Alpha

2007-04-16 Thread Mattias Gaertner
On Mon, 16 Apr 2007 11:20:55 +0200 Marc Weustink <[EMAIL PROTECTED]> wrote: > Continuing my TRawImageQuestion. > > While implementing cursors and imagelists, Paul and I start to get > confused. It appears that Mask and Alpha are treated as equal while > in fact they are each others inverse. (An

Re: [lazarus] listview example cannot be loaded in the IDE on win64

2007-04-16 Thread Mattias Gaertner
On Mon, 16 Apr 2007 14:56:01 +0200 Martin Schreiber <[EMAIL PROTECTED]> wrote: > On Monday 16 April 2007 10.32, Mattias Gaertner wrote: > > > It is no more necessary in MSEide version 1.2. In 1.0 I used > > > "code" to hold the method lookup number. In 1.2 "code" and "data" > > > are swapped befor

Re: [lazarus] [Major Bug] Mantis is case sensitive when doing searches!

2007-04-16 Thread Jesus Reyes
--- Marc Weustink <[EMAIL PROTECTED]> escribió: > Graeme Geldenhuys wrote: > > Hi, > > > > Why is Mantis case sensitive for searches This is not a good > idea > > and a lot of bug reports will be missed or not found. This will > also > > be the cause of a lot of duplicate bug reports. > >

Re: [lazarus] devel: Imaging, Mask vs. Alpha

2007-04-16 Thread Micha Nelissen
Marc Weustink wrote: > While implementing cursors and imagelists, Paul and I start to get > confused. It appears that Mask and Alpha are treated as equal while in > fact they are each others inverse. (An 1 in a mask means that this part > of the image is masked, not drawn, where for alpha a 1 means

[lazarus] TCustomGrid and GridLineWidth property

2007-04-16 Thread Graeme Geldenhuys
Hi, Is GridLineWidth not implemented (yet published) or is there something else I need to set to get it working under Lazarus? I have the Options setup in the grid as mentioned by the Delphi help. I tested this on a TStringGrid dropped on a Form as well is in my custom calendar component that d

Re: [lazarus] [Major Bug] Mantis is case sensitive when doing searches!

2007-04-16 Thread Graeme Geldenhuys
On 4/16/07, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > Could somebody please disable the case sensitivity! I think you should post this on the mantis forums :-) Ah, ok. So it's not just a setup issue on the freepascal.org website, but rather a bug in Mantis itself. [How the hell did th

Re: [lazarus] listview example cannot be loaded in the IDE on win64

2007-04-16 Thread Martin Schreiber
On Monday 16 April 2007 10.32, Mattias Gaertner wrote: > > It is no more necessary in MSEide version 1.2. In 1.0 I used "code" > > to hold the method lookup number. In 1.2 "code" and "data" are > > swapped before/after streaming. > > Does this mean during streaming Assigned(OnClick) is true? > Yes.

[lazarus] TCustomGrid not the same as Delphi

2007-04-16 Thread Graeme Geldenhuys
Hi In Delphi's TCustomGrid the DrawCell() method is 'virtual abstract', but in Lazarus it is virtual. I'm busy porting a custom component we created that was based on TCustomGrid under Delphi 7 & Kylix 3 to Lazarus. As I mentioned the DrawCell was abstract under Delphi, but yet it does painting

Re: [lazarus] listview example cannot be loaded in the IDE on win64

2007-04-16 Thread Joost van der Sluis
On Mon, 2007-04-16 at 09:02 +0200, Mattias Gaertner wrote: > On Mon, 16 Apr 2007 08:49:53 +0200 > Mattias Gaertner <[EMAIL PROTECTED]> wrote: > > > > The trick itself is easy: > > TMethod contains two pointers: code (the address) and data (the > > TObject). Normally you assign both and everything

Re: [lazarus] listview example cannot be loaded in the IDE on win64

2007-04-16 Thread Mattias Gaertner
On Mon, 16 Apr 2007 10:07:15 +0200 Martin Schreiber <[EMAIL PROTECTED]> wrote: > Mattias Gaertner wrote: > > > Of course this trick works only for methods, not procedures. > > > > There are two alternatives: > > 1. set all events to nil and extend TReader and friends to use some > > highly sophi

Re: [lazarus] [Major Bug] Mantis is case sensitive when doing searches!

2007-04-16 Thread Graeme Geldenhuys
On 4/16/07, Marc Weustink <[EMAIL PROTECTED]> wrote: Can you report this in mantis ? No problem, but where? mantisbt.org(creators of Mantis - is this a issue with the Mantis application) or freepascal.org's Mantis ("Mantis" project selected - just a setup issue) Regards, - Graeme

Re: [lazarus] [Major Bug] Mantis is case sensitive when doing searches!

2007-04-16 Thread Michael Van Canneyt
On Mon, 16 Apr 2007, Graeme Geldenhuys wrote: > Hi, > > Why is Mantis case sensitive for searches This is not a good idea > and a lot of bug reports will be missed or not found. This will also > be the cause of a lot of duplicate bug reports. > > Could somebody please disable the case se

Re: [lazarus] After compiling and debugging my app, sometimes (randomly) a failure pops up.

2007-04-16 Thread Bram Kuijvenhoven
Pelle ten Cate wrote: Dank je, Marco. Still I don't know how to apply this command, just entering it on the gdb commandline gives me a "Target 'None' cannot support this command.". If I open gdb with the executable filename as first argument, it gives the same error, but then Target 'exec' is me

Re: [lazarus] [Major Bug] Mantis is case sensitive when doing searches!

2007-04-16 Thread Marc Weustink
Graeme Geldenhuys wrote: Hi, Why is Mantis case sensitive for searches This is not a good idea and a lot of bug reports will be missed or not found. This will also be the cause of a lot of duplicate bug reports. Could somebody please disable the case sensitivity! Can you report this in

Re: [lazarus] devel: TRawImage questions

2007-04-16 Thread Marc Weustink
Mattias Gaertner wrote: On Mon, 16 Apr 2007 00:40:08 +0200 Marc Weustink <[EMAIL PROTECTED]> wrote: Hi, I'm currently reworking/verifying TLazIntfImage/TRawImage and ran into sume questions. Since the devel list is down. I'll ask it here. 1)What is the purpose of CreateBitmapFromRawImage ? Wh

[lazarus] devel: Imaging, Mask vs. Alpha

2007-04-16 Thread Marc Weustink
Continuing my TRawImageQuestion. While implementing cursors and imagelists, Paul and I start to get confused. It appears that Mask and Alpha are treated as equal while in fact they are each others inverse. (An 1 in a mask means that this part of the image is masked, not drawn, where for alpha

[lazarus] [Major Bug] Mantis is case sensitive when doing searches!

2007-04-16 Thread Graeme Geldenhuys
Hi, Why is Mantis case sensitive for searches This is not a good idea and a lot of bug reports will be missed or not found. This will also be the cause of a lot of duplicate bug reports. Could somebody please disable the case sensitivity! Example search to show the problem using the foll

Re: [lazarus] listview example cannot be loaded in the IDE on win64

2007-04-16 Thread Martin Schreiber
Mattias Gaertner wrote: > Of course this trick works only for methods, not procedures. > > There are two alternatives: > 1. set all events to nil and extend TReader and friends to use some > highly sophisticated method lookup. > 2. Do it like msegui and add a > not (csdesigning in componentstat

Re: [lazarus] listview example cannot be loaded in the IDE on win64

2007-04-16 Thread Mattias Gaertner
On Mon, 16 Apr 2007 08:49:53 +0200 Mattias Gaertner <[EMAIL PROTECTED]> wrote: > On Mon, 16 Apr 2007 08:01:07 +0200 > Vincent Snijders <[EMAIL PROTECTED]> wrote: > > > Mattias Gaertner schreef: > > > On Sun, 15 Apr 2007 23:01:28 +0200 > > > Vincent Snijders <[EMAIL PROTECTED]> wrote: > > > > > >>