Re: [Lazarus] tchart series zorder

2010-03-02 Thread Andrea Mauri
Il 02/03/2010 6.45, Alexander Klenin ha scritto: Use Series.ZPosition property. ZPosition is not what I'm looking for. Put a chart on a form then add a TLine serie. If you change the zposition the line is moved. I don't wanto to move the line I just want to see the line also if there is a

Re: [Lazarus] dbl click on a grid

2010-03-02 Thread Andrea Mauri
Il 01/03/2010 22.03, Hans-Peter Diettrich ha scritto: Check the clicked row in your event handler. If row = 3 and I click on a fixedrow the row property still remains 3. So how can I check that the dblclick is performed on a fixed row? My problem is that if the user click on the fixed row the

Re: [Lazarus] debug windows layout

2010-03-02 Thread Graeme Geldenhuys
Flávio Etrusco wrote: Graeme, we understand what you mean, (but) we just don't think there's an authoritative definition. On the contrary, Waldo Kitty hit the nail on the head. IBM and Microsoft defined the definition when they invented the idea of MDI for OS/2 and early Windows. So I would

Re: [Lazarus] Codebrowser, Search Identifier

2010-03-02 Thread Juha Manninen
Hi, My gtk2 theme does not show anything hilighted. I tried some others: none does. What gtk2 theme do you use? GTK2 style is ClearLooks here. I can set it under KDE settings. Strange difference between our GTKs. Anyway, the problem was not widget binding related this time. Both GTK2 and QT

Re: [Lazarus] debug windows layout

2010-03-02 Thread John
Graeme Geldenhuys wrote: Flávio Etrusco wrote: Graeme, we understand what you mean, (but) we just don't think there's an authoritative definition. On the contrary, Waldo Kitty hit the nail on the head. IBM and Microsoft defined the definition when they invented the idea of MDI for

Re: [Lazarus] debug windows layout

2010-03-02 Thread Flávio Etrusco
The trouble with this whole messy thread is that SDI and MDI are single / multiple DOCUMENT interfaces (not single / multiple windows).  When a single file is a single document displayed in a single form(eg a word processor file) then it is all pretty straight forward, much like Graeme has

Re: [Lazarus] RFC: remove StayOnTop for splash screen

2010-03-02 Thread Hans-Peter Diettrich
Martin schrieb: IMO the IDE should use an cache for the SynEdits, that must contain at least the currently active text file. More opened files can be parsed and added to the cache later, when they are really activated. When the systems runs out of memory, old entries can be removed from the

Re: [Lazarus] Lazarus MySQL 5.1

2010-03-02 Thread Marco van de Voort
On Mon, Mar 01, 2010 at 10:18:48PM -0600, Terry A. Haimann wrote: I upgraded my laptop to Fedora Core 12, which has MySQL 5.1.42 installed. I have installed the latest Lazarus RPM, which is 0.9.28.2 and FPC 2.2.4. My Lazarus App won't connect to the server. I have the

Re: [Lazarus] RFC: remove StayOnTop for splash screen

2010-03-02 Thread Flávio Etrusco
Can you (people) stop hijacking my thread? :-P On Tue, Mar 2, 2010 at 10:50 AM, Hans-Peter Diettrich drdiettri...@aol.com wrote: Martin schrieb: IMO the IDE should use an cache for the SynEdits, that must contain at least the currently active text file. More opened files can be parsed and

Re: [Lazarus] Lazarus MySQL 5.1

2010-03-02 Thread Henry Vermaak
On 2 March 2010 14:48, Marco van de Voort mar...@stack.nl wrote: On Mon, Mar 01, 2010 at 10:18:48PM -0600, Terry A. Haimann wrote: I upgraded my laptop to Fedora Core 12, which has MySQL 5.1.42 installed.  I have installed the latest Lazarus RPM, which is 0.9.28.2 and FPC 2.2.4.  My Lazarus

Re: [Lazarus] RFC: remove StayOnTop for splash screen

2010-03-02 Thread Graeme Geldenhuys
Mattias Gaertner wrote: Then again. My PC is about 3 years old, with an average of 10 - 20 SynEdits, it takes 1 to 2 seconds of parsing. Opening a 100 files on loading of the IDE may be a legitimate action, and may have good reasons, and certainly can be justified by personal choise = but

Re: [Lazarus] RFC: remove StayOnTop for splash screen

2010-03-02 Thread Mattias Gaertner
On Tue, 02 Mar 2010 14:50:18 +0100 Hans-Peter Diettrich drdiettri...@aol.com wrote: Martin schrieb: IMO the IDE should use an cache for the SynEdits, that must contain at least the currently active text file. More opened files can be parsed and added to the cache later, when they are

Re: [Lazarus] RFC: remove StayOnTop for splash screen

2010-03-02 Thread Mattias Gaertner
On Tue, 02 Mar 2010 17:01:49 +0200 Graeme Geldenhuys graemeg.li...@gmail.com wrote: Mattias Gaertner wrote: Then again. My PC is about 3 years old, with an average of 10 - 20 SynEdits, it takes 1 to 2 seconds of parsing. Opening a 100 files on loading of the IDE may be a legitimate

Re: [Lazarus] RFC: remove StayOnTop for splash screen

2010-03-02 Thread Martin
On 02/03/2010 15:11, Mattias Gaertner wrote: On Tue, 02 Mar 2010 14:50:18 +0100 Hans-Peter Diettrichdrdiettri...@aol.com wrote: Martin schrieb: With multiple editor windows, the files must be kept (and parsed...) in their own pool, separate from the SynEdit viewers. Why do you think

[Lazarus] Raster image data in RGB24 or ARGB32

2010-03-02 Thread petr . kristan
Hi. I'am working on Cairo Canvas implementation and for implementing StretchDraw function I need to get RasterImage data in format RGB24 or ARGB32. CAIRO_FORMAT_ARGB32 each pixel is a 32-bit quantity, with alpha in the upper 8 bits, then red, then green, then blue. The 32-bit quantities are

Re: [Lazarus] Raster image data in RGB24 or ARGB32

2010-03-02 Thread Luiz Americo Pereira Camara
petr.kris...@epos.cz escreveu: Hi. I'am working on Cairo Canvas implementation and for implementing StretchDraw function I need to get RasterImage data in format RGB24 or ARGB32. CAIRO_FORMAT_ARGB32 each pixel is a 32-bit quantity, with alpha in the upper 8 bits, then red, then green,

Re: [Lazarus] debug windows layout

2010-03-02 Thread Hans-Peter Diettrich
John schrieb: If you think of the units as the documents, you can only relate the models to the source editor window, and it doesn't follow either model. Count the editor windows, that implement the user interface (access) to the documents. (Is that what TDI is ? Tabbed doc interface ?)

Re: [Lazarus] debug windows layout

2010-03-02 Thread Hans-Peter Diettrich
Flávio Etrusco schrieb: Well, back to another discussion. what about a poll (you see I like them :-P ) to make Lazarus a single-parent-window app regardless of fixing/finishing drag'n'dock? I don't like it, so I won't vote for it :-] DoDi -- ___

Re: [Lazarus] (Attn DoDi) multiply edit windows [Re: debug windows layout]

2010-03-02 Thread Hans-Peter Diettrich
Martin schrieb: How far are you with multiply edit windows? Don't ask me, I'm not familiar with the current IDE interfaces and layout management :-( AFAIR the ElasticSite demo demonstrates the available docking features, including persistence. What remains to do is the integration of

Re: [Lazarus] RFC: remove StayOnTop for splash screen

2010-03-02 Thread Hans-Peter Diettrich
Mattias Gaertner schrieb: I don't see how people can navigate a hundred files. Lazarus has only shortcuts for the first ten. And for the window menu you need a big screen with a tiny font. The many include files are a mess, WRT editor notebook(s). I already thought of a two-layer structure,

Re: [Lazarus] (Attn DoDi) multiply edit windows [Re: debug windows layout]

2010-03-02 Thread Martin
On 02/03/2010 15:26, Hans-Peter Diettrich wrote: Martin schrieb: How far are you with multiply edit windows? Don't ask me, I'm not familiar with the current IDE interfaces and layout management :-( It sounded for a moment you started on the IDE integration. I just wanted to make sure we

Re: [Lazarus] RFC: remove StayOnTop for splash screen

2010-03-02 Thread JoshyFun
Hello Lazarus-List, Tuesday, March 2, 2010, 2:54:05 AM, you wrote: MG I did that. Now it does not appear in gprof any more. Saves a few MG percents. I doubt someone will notice. My experiences with gprof in Windows shows me that it is almost useless for this kind of tests. As it is a pooling

Re: [Lazarus] RFC: remove StayOnTop for splash screen

2010-03-02 Thread Mattias Gaertner
On Tue, 2 Mar 2010 19:21:02 +0100 JoshyFun joshy...@gmail.com wrote: Hello Lazarus-List, Tuesday, March 2, 2010, 2:54:05 AM, you wrote: MG I did that. Now it does not appear in gprof any more. Saves a few MG percents. I doubt someone will notice. My experiences with gprof in Windows

Re: [Lazarus] RFC: remove StayOnTop for splash screen

2010-03-02 Thread JoshyFun
Hello Lazarus-List, Tuesday, March 2, 2010, 7:33:33 PM, you wrote: that involves only a few seconds results in a non real time distribution which will change a lot simply by removing or adding one line of code. MG I use it under Linux with lot of success for single threaded apps. MG It takes

Re: [Lazarus] Lazarus MySQL 5.1

2010-03-02 Thread Marco van de Voort
On Tue, Mar 02, 2010 at 02:59:12PM +, Henry Vermaak wrote: seems to have fallen from the air, connecting to nothing ? I presume it comes from here (in mysql.inc): const mysqllib = 'libmysqlclient.'+sharedsuffix; {$IF DEFINED(mysql50)} mysqlvlib = mysqllib+'.15';

Re: [Lazarus] tchart reticule mode

2010-03-02 Thread Geoffray
Le Lundi 01 Mars 2010 15:24:46, Andrea Mauri a écrit : dear Alexander, using the last svn I have problems with reticulemode property. If I set it to True every time I click on a chart the reticule is drawn and does not disappear. To reproduce it just enable reticule mode on a chart with at

Re: [Lazarus] tchart reticule mode

2010-03-02 Thread Alexander Klenin
On Wed, Mar 3, 2010 at 05:52, Geoffray jeff.levass...@free.fr wrote: Le Lundi 01 Mars 2010 15:24:46, Andrea Mauri a écrit : dear Alexander, using the last svn I have problems with reticulemode property. If I set it to True every time I click on a chart the reticule is drawn and does not

Re: [Lazarus] UTF-8 string recognition

2010-03-02 Thread Robin Hoo
Hi, Antonio Pls check the function I used for check UTF8 string. Hope it helpful function IsUTF8(UnknownStr:string):boolean; var i:Integer; begin if length(UnknownStr)=0 then exit(true); i:=1; while ilength(UnknownStr) do begin // ASCII if (UnknownStr[i]

Re: [Lazarus] Lazarus MySQL 5.1

2010-03-02 Thread Terry A. Haimann
I have tried this and it doesn't work. waldo kitty wrote: On 3/1/2010 23:18, Terry A. Haimann wrote: I upgraded my laptop to Fedora Core 12, which has MySQL 5.1.42 installed. I have installed the latest Lazarus RPM, which is 0.9.28.2 and FPC 2.2.4. My Lazarus App won't connect to the server. I

Re: [Lazarus] Lazarus MySQL 5.1

2010-03-02 Thread Terry A. Haimann
How do I do this in Lazarus? Marco van de Voort wrote: On Tue, Mar 02, 2010 at 02:59:12PM +, Henry Vermaak wrote: seems to have fallen from the air, connecting to nothing ? I presume it comes from here (in mysql.inc): const mysqllib = 'libmysqlclient.'+sharedsuffix;

Re: [Lazarus] Lazarus MySQL 5.1

2010-03-02 Thread waldo kitty
On 3/2/2010 18:34, Terry A. Haimann wrote: I have tried this and it doesn't work. in what way it doesn't work?? do you get an error or a complete failure with nothing indicating what went wrong? FWIW: it doesn't work is pretty poor for an analysis to work from :P ;) waldo kitty wrote: On

Re: [Lazarus] tchart reticule mode

2010-03-02 Thread Geoffray
Le Mardi 02 Mars 2010 23:06:09, Alexander Klenin a écrit : Do you mean zoom rectangle is not drawn for you? I can't reproduce that. Exactly. I'm using Qt. After some test there's no bug when using GTK widget set. This happen with Qt but I can't test something else than GTK and Qt. --

Re: [Lazarus] RFC: remove StayOnTop for splash screen

2010-03-02 Thread Hans-Peter Diettrich
Graeme Geldenhuys schrieb: Can't we implement vertical tabs by default to platforms that support them? I know Windows can't because they use this pretty dumb idea of making text vertical too. Maybe a custom written/drawn LCL PageControl is needed for IDE use only - then all platforms can enjoy

Re: [Lazarus] (Attn DoDi) multiply edit windows [Re: debug windows layout]

2010-03-02 Thread Hans-Peter Diettrich
Martin schrieb: How far are you with multiply edit windows? Don't ask me, I'm not familiar with the current IDE interfaces and layout management :-( It sounded for a moment you started on the IDE integration. I just wanted to make sure we don't fo the same thing. It doesn't make sense

Re: [Lazarus] RFC: remove StayOnTop for splash screen

2010-03-02 Thread Hans-Peter Diettrich
Flávio Etrusco schrieb: With multiple editor windows, the files must be kept (and parsed...) in their own pool, separate from the SynEdit viewers. Why? Because no file can be assigned to a single SynEdit. I just don't understand what you mean. The SynEdits should *perform* edit commands,

Re: [Lazarus] RFC: remove StayOnTop for splash screen

2010-03-02 Thread Hans-Peter Diettrich
Mattias Gaertner schrieb: With multiple editor windows, the files must be kept (and parsed...) in their own pool, separate from the SynEdit viewers. Why do you think this is needed? For simplicity, when multiple SynEdits can show the same file. AFAIK I'm the only one that has provided

Re: [Lazarus] RFC: remove StayOnTop for splash screen

2010-03-02 Thread Graeme Geldenhuys
Mattias Gaertner wrote: Or maybe use a treeview so the open files can be grouped, for example by directory or files in the project, files in a package, ... For me at least, it isn't important to know if units are in different directories or packages instead of project. The important part is

Re: [Lazarus] RFC: remove StayOnTop for splash screen

2010-03-02 Thread Graeme Geldenhuys
Hans-Peter Diettrich wrote: A List- or ComboBox would do that everywhere. Since the pages are all of the same type (SynEdit), it's not necessary to use complicated paged controls for the documents. Yes, a listbox will work perfectly and something like that already exists. See my reply to

Re: [Lazarus] UTF-8 string recognition

2010-03-02 Thread Mattias Gaertner
On Wed, 3 Mar 2010 07:24:35 +0800 Robin Hoo robin.hoo...@gmail.com wrote: Hi, Antonio Pls check the function I used for check UTF8 string. Hope it helpful You combine a IsText (no special characters in #0-#31) and IsUTF8 - good idea. function IsUTF8(UnknownStr:string):boolean; Maybe

Re: [Lazarus] Lazarus MySQL 5.1

2010-03-02 Thread Mattias Gaertner
On Tue, 02 Mar 2010 17:37:46 -0600 Terry A. Haimann te...@haimannonline.com wrote: How do I do this in Lazarus? Project / Project Options / Compiler / Other [...] Try passing -XLAlibmysqlclient.so.15=libsqlclient.so.16 and pray. Mattias -- ___