Re: [lazarus] Behavior of ClientToScreen in scrolling windows across different widget sets

2008-02-07 Thread Luiz Americo Pereira Camara
Marc Weustink wrote: Luiz Americo Pereira Camara wrote: While debugging scrolling bugs in LCL i found that ClientToScreen acts differently according to the widget set. These are the behaviors: 1) The returned value is related to the actual position, i.e., it does not consider the scroll

[lazarus] Behavior of ClientToScreen in scrolling windows across different widget sets

2008-02-06 Thread Luiz Americo Pereira Camara
While debugging scrolling bugs in LCL i found that ClientToScreen acts differently according to the widget set. These are the behaviors: 1) The returned value is related to the actual position, i.e., it does not consider the scroll offset. If you pass Point(0,0) the value will be the same

Re: [lazarus] Found serious bug in win32 interface #2

2008-01-30 Thread Luiz Americo Pereira Camara
Andrey Gusev wrote: * Mattias G#228;rtner [EMAIL PROTECTED] [Wed, 30 Jan 2008 18:45:57 +0100]: Zitat von Andrey Gusev [EMAIL PROTECTED]: --- interfaces/win32/win32callback.inc (revision 13905) +++ interfaces/win32/win32callback.inc (working copy) @@ -504,7 +504,7 @@ if (ControlDC = 0) or

[lazarus] How to load aRGBA data from a bitmap file using TLazIntfImage

2008-01-24 Thread Luiz Americo Pereira Camara
I need to load the data of bitmap files into a buffer in the RGBA format, but i'm somewhat lost. Reading the wiki and the source i got to the following code: procedure DumpMem(Data: PCardinal; Size: Integer); var i: Integer; Color: TRGBA; begin for i := 0 to Size - 1 do begin Color :=

Re: [lazarus] How to load aRGBA data from a bitmap file using TLazIntfImage

2008-01-24 Thread Luiz Americo Pereira Camara
Marco Alvarado wrote: You could try using TLazIntfImage.GetDataLineStart() instead. I think you can modify your code this way: ... for y := 0 to IntfImg.DataDescription.Height-1 do DumpMem(PCardinal(IntfImg.GetDataLineStart(y)), IntfImg.DataDescription.Width); ... Thanks, but i still get

Re: [lazarus] How to load aRGBA data from a bitmap file using TLazIntfImage

2008-01-24 Thread Luiz Americo Pereira Camara
wile64 wrote: Your image is in 24 bits, test load and then changing it to 32 bits It seems the best description for what i want is Init_BPP32_B8G8R8_BIO_TTB that gives me a 24bit depth with a 32bits per pixel, but still getting random values. Also tested Init_BPP24_B8G8R8_BIO_TTB. No luck.

Re: [lazarus] How to load aRGBA data from a bitmap file using TLazIntfImage

2008-01-24 Thread Luiz Americo Pereira Camara
Luiz Americo Pereira Camara wrote: Should i pass the width, height when init datadescription? This does not help. I hardcoded width and height to 2 and got the same result. Luiz _ To unsubscribe: mail [EMAIL PROTECTED

Re: [lazarus] Lazarus compiled with GTK2 [part 1 of 2]

2008-01-23 Thread Luiz Americo Pereira Camara
Paul Ishenin wrote: Luiz Americo Pereira Camara wrote: Gtk2 is in fact slower than Gtk1, every one agree, but LCL/Gtk2 application are much slower than other Gtk2 applications Is it possible to profile gtk2 lcl application and find what cause this slowleness? Who can do? I'll take a look

Re: [lazarus] Lazarus compiled with GTK2 [part 1 of 2]

2008-01-23 Thread Luiz Americo Pereira Camara
Damien Gerard wrote: On Jan 22, 2008, at 10:20 PM, Marc Weustink wrote: Luiz Americo Pereira Camara wrote: Marc Weustink wrote: Graeme Geldenhuys wrote: On 22/01/2008, Giuliano Colla [EMAIL PROTECTED] wrote: I gather that someone is already using GTK2, but I believe that he's not much

Re: [lazarus] Lazarus compiled with GTK2 [part 1 of 2]

2008-01-22 Thread Luiz Americo Pereira Camara
Marc Weustink wrote: Graeme Geldenhuys wrote: On 22/01/2008, Giuliano Colla [EMAIL PROTECTED] wrote: I gather that someone is already using GTK2, but I believe that he's not much demanding in terms of graphic appearance. My customers would run after me with a hammer if I'd dare to show them

Re: [lazarus] Introduction

2008-01-20 Thread Luiz Americo Pereira Camara
Lord Satan wrote: On Sun, 20 Jan 2008 22:33:53 +0200 Graeme Geldenhuys [EMAIL PROTECTED] wrote: I still think having a custom Object Pascal written toolkit for Lazarus is the way to go. The LCL would have progressed and stabilized much faster if the Lazarus developers did that from the

Re: [lazarus] why sometime TLHTTPClientComponent can not get data?

2008-01-14 Thread Luiz Americo Pereira Camara
Marc Weustink wrote: ik wrote: On Jan 14, 2008 3:59 AM, wfifi [EMAIL PROTECTED] wrote: thanks ido wireshark is a great tool, i attach a log, found data is got, but Component's status not change. I've read your code again (and looked at the log), I noticed this:

Re: [lazarus] why sometime TLHTTPClientComponent can not get data?

2008-01-14 Thread Luiz Americo Pereira Camara
Marc Weustink wrote: You are casting a pointer as a string... The way to convert PChar to a string is to use the function StrPas Only if you use shortstrings. When using ansistrings you can cast a PChar in to a string like: String(SomePchar) With ansistrings you seldom (or never) need

Re: [lazarus] why sometime TLHTTPClientComponent can not get data?

2008-01-14 Thread Luiz Americo Pereira Camara
Marc Weustink wrote: Luiz Americo Pereira Camara wrote: Marc Weustink wrote: You are casting a pointer as a string... The way to convert PChar to a string is to use the function StrPas Only if you use shortstrings. When using ansistrings you can cast a PChar in to a string like: String

Re: [lazarus] RSS for the subversion repository

2008-01-06 Thread Luiz Americo Pereira Camara
Damien Gerard wrote: It seems the RSS for the subversion repository does not work anymore since the 07/12/26. (http://www.freepascal.org/feeds/lazarussvn.rss) I have got a 404 not found. It is really usefull :) May be has it been moved somewhere else ? Try this link

Re: [lazarus] New homepage and documentation for TSqlite3Dataset

2007-12-20 Thread Luiz Americo Pereira Camara
Damien Gerard wrote: On Dec 20, 2007, at 12:14 AM, Luiz Americo Pereira Camara wrote: Damien Gerard wrote: On Dec 19, 2007, at 9:23 PM, Luiz Americo Pereira Camara wrote: I updated the sqlite4fpc homepage adding documentation and some tutorials. As a bonus i also added some features

[lazarus] New homepage and documentation for TSqlite3Dataset

2007-12-19 Thread Luiz Americo Pereira Camara
I updated the sqlite4fpc homepage adding documentation and some tutorials. As a bonus i also added some features. See http://www.geocities.com/camara_luiz/ Luiz _ To unsubscribe: mail [EMAIL PROTECTED] with

Re: [lazarus] New homepage and documentation for TSqlite3Dataset

2007-12-19 Thread Luiz Americo Pereira Camara
Damien Gerard wrote: On Dec 19, 2007, at 9:23 PM, Luiz Americo Pereira Camara wrote: I updated the sqlite4fpc homepage adding documentation and some tutorials. As a bonus i also added some features. See http://www.geocities.com/camara_luiz/ Under Ubuntu : May be $ sudo apt-get

Re: [lazarus] Class to store pointer values indexed by pointers

2007-12-08 Thread Luiz Americo Pereira Camara
Mattias Gaertner wrote: On Fri, 07 Dec 2007 22:52:29 -0300 Luiz Americo Pereira Camara [EMAIL PROTECTED] wrote: I need a class that stores a pointer value indexed by a pointer. It should provide a way to retrieve the value using the indexed value. I know TMap from Maps unit. There's

[lazarus] Class to store pointer values indexed by pointers

2007-12-07 Thread Luiz Americo Pereira Camara
I need a class that stores a pointer value indexed by a pointer. It should provide a way to retrieve the value using the indexed value. I know TMap from Maps unit. There's another class that comes with fpc/lazarus? Luiz _ To

Re: [lazarus] Class to store pointer values indexed by pointers

2007-12-07 Thread Luiz Americo Pereira Camara
Mattias Gaertner wrote: On Fri, 07 Dec 2007 22:52:29 -0300 Luiz Americo Pereira Camara [EMAIL PROTECTED] wrote: I need a class that stores a pointer value indexed by a pointer. It should provide a way to retrieve the value using the indexed value. I know TMap from Maps unit. There's

Re: [lazarus] New bitmap :-)

2007-12-06 Thread Luiz Americo Pereira Camara
Paul Ishenin wrote: wile64 wrote: I may be stupid but what is the difference between TPageControl and TNoteBook exactly ? TNoteBook is some obsoleted win 3.1 control. In current lazarus implementation TNotebook has about the same implementation as TPageControl. All difference is in how

Re: [lazarus] SQLite 3 datetime and timestamp

2007-12-03 Thread Luiz Americo Pereira Camara
Luca Olivetti wrote: En/na Roberto Padovani ha escrit: When the project I'm working on is finished, I'll strip everything from the source code and only leave a detailed tutorial for using sqlite without visual components. FWIW to do that you can also use sqlite3 directly (or with a thin

Re: [lazarus] SQLite 3 datetime and timestamp

2007-12-03 Thread Luiz Americo Pereira Camara
Roberto Padovani wrote: Now, about assumptions. in sqlite3ds there is the assumption that BOOLEAN fields are stored as 1 or 0. In fact, to recover a db that had TRUE and FALSE, I made a new class where I changed ftBool to fString. In this way I could read them, parse them and then write them

Re: [lazarus] SQLite 3 datetime and timestamp

2007-12-02 Thread Luiz Americo Pereira Camara
Roberto Padovani wrote: Hi all! two things: 1) a (possible) improvement to sqlite3ds; 2) the old problem with dates and time 1) I found a sqlite database that uses the TIMESTAMP data type, but this is not directly supported by the Tsqlite3Dataset written by Luiz. I added the if-else checks in

Re: [lazarus] Lazarus v0.9.25 r13078M with gtk 2 (screen flicker)

2007-11-30 Thread Luiz Americo Pereira Camara
Graeme Geldenhuys wrote: Hi, I haven't tried Lazarus compiled with GTK2 in months and thought I would give it a go. Compiling went fine. Running Lazarus though, the screens (any dialog windows I open) redraw quite slow. Also scrolling the editor window up or down with the mouse causes serious

Re: [lazarus] Tips for lazarus projects and Subversion

2007-11-22 Thread Luiz Americo Pereira Camara
Mattias Gaertner wrote: On Thu, 22 Nov 2007 11:51:36 +0100 Luca Olivetti [EMAIL PROTECTED] wrote: En/na Mattias Gaertner ha escrit: .lfm files: no .lrs files: it depends. It is recommended to keep them. Why? Cannot they be automatically generated from the lfm? And I

Re: [lazarus] Tips for lazarus projects and Subversion

2007-11-22 Thread Luiz Americo Pereira Camara
Damien Gerard wrote: I had some headaches after adding lrs to svn repositories. Definitely i don't add lrs and lps files to my svn repositories. I agree with lps due to it contains about the session. So it should be added into a repository. Like .res and now I have nice commits. And I

Re: [lazarus] Tips for lazarus projects and Subversion

2007-11-21 Thread Luiz Americo Pereira Camara
Vincent Snijders wrote: Damien Gerard schreef: I use SVn with my projects in lazarus. I added the file project.lpi. This file is sent nearly at each commit and always provides conflicts with others team members. However I believe the file is needed due to there are some settings for the

Re: Fw: Re[2]: [lazarus] Plots

2007-11-20 Thread Luiz Americo Pereira Camara
Vasily I. Volchenko wrote: Thanks. This is a good start. Luiz -Original Message- From: Vasily I. Volchenko [EMAIL PROTECTED] To: Luiz Americo Pereira Camara [EMAIL PROTECTED] Date: Tue, 20 Nov 2007 17:44:51 +0300 Subject: Re[2]: [lazarus] Plots Hi, Thanks, i got the packages

[lazarus] Recent gtk CreatePatternBrush implementation

2007-11-14 Thread Luiz Americo Pereira Camara
@Paul Recently, landed in svn an implementation of CreatePatternBrush for gtk. I'd like to point that for some time a patch fixing the creation of pattern brushes through CreateBrushIndirect is available in mantis (see: http://www.freepascal.org/mantis/view.php?id=8814) It has some

Re: [lazarus] Recent gtk CreatePatternBrush implementation

2007-11-14 Thread Luiz Americo Pereira Camara
Paul Ishenin wrote: Luiz Americo Pereira Camara wrote: function CreatePatternBrush(hbmp:HBITMAP):HBRUSH; var Log: TLogBrush; begin with Log do begin lbColor := 0; lbHatch := hbmp; lbStyle := BS_PATTERN; Result := CreateBrushIndirect(Log); end; end; I warry in this case about

Re: [lazarus] I need examples of SQLite

2007-11-04 Thread Luiz Americo Pereira Camara
Daniel Rincón García wrote: I am trying to execute the examples but I obtain the next errors: http://i12.tinypic.com/526id0j.jpg http://i15.tinypic.com/2lmrm9t.jpg http://i15.tinypic.com/2lmrm9t.jpg http://i2.tinypic.com/536k4l5.jpg http://i9.tinypic.com/6g8t7ur.jpg What is the problem?

Re: [lazarus] I need examples of SQLite

2007-11-04 Thread Luiz Americo Pereira Camara
Daniel Rincón García wrote: Yes, I translated to sqlite3ds. The sqliteminimal example works correctly but the 3dcompare example do not works. I did not change dumpdata.pas to use sqlite3ds. How I do it? replace TSqliteDataset by TSqlite3Dataset and sqliteds by sqlite3ds Luiz

Re: [lazarus] Multiple targets

2007-11-02 Thread Luiz Americo Pereira Camara
Mattias Gaertner wrote: On Fri, 02 Nov 2007 13:56:31 -0300 Luiz Americo Pereira Camara [EMAIL PROTECTED] wrote: 2)Make units packages/projects optional according to widgetset. Concrete situation: LCL extensions package has a unit (OleUtils) that implements TOLEStream. It only makes sense

Re: [lazarus] Multiple targets

2007-11-02 Thread Luiz Americo Pereira Camara
Luiz Americo Pereira Camara wrote: # There is no real need for conditional options for units Maybe there's already a solution to this case and i'm missing something. In fact, i already found a workaround that i implemented in another package. I added a dummy unit to the package that uses

Re: [lazarus] Multiple targets

2007-11-02 Thread Luiz Americo Pereira Camara
Mattias Gaertner wrote: On Fri, 02 Nov 2007 18:59:26 -0300 Luiz Americo Pereira Camara [EMAIL PROTECTED] wrote: Luiz Americo Pereira Camara wrote: # There is no real need for conditional options for units Maybe there's already a solution to this case and i'm missing something

Re: [lazarus] Multiple targets

2007-11-02 Thread Luiz Americo Pereira Camara
Mattias Gaertner wrote: On Fri, 02 Nov 2007 21:53:52 -0300 Luiz Americo Pereira Camara [EMAIL PROTECTED] wrote: Luiz Americo Pereira Camara wrote: The VirtualTreeView package is a lot big, even when zipped. I'll try to create a smaller dummy package and will send to you. I

Re: [lazarus] Drawing Strategy in Carbon Lazarus

2007-10-11 Thread Luiz Americo Pereira Camara
James Chandler Jr wrote: Hi Giuliano The Carbon Lazarus works great with invalidate and the OnPaint events, as far as I've been able to tell. Mac double-buffering on the screen well-guarantees no flicker. And it is true that invalidate can be called multiple times before the event loop gets

Re: [lazarus] IDE, start once, open files

2007-09-12 Thread Luiz Americo Pereira Camara
Mattias Gaertner wrote: https://svn.bountysource.com/luipack/trunk/uniqueinstance If someone knows a way to hook in LCL message loop to be called more frequently than OnIdle or wants to implement a separeted thread i'm accepting patches. Contrary to windows there are far less messages

Re: [lazarus] IDE, start once, open files

2007-09-11 Thread Luiz Americo Pereira Camara
Luca Olivetti wrote: En/na Mattias Gärtner ha escrit: Is there already a cross platform component for applications to check if it is already running and if yes then pass some commands to the already application? For example clicking on files in the file browser should not open a second

Re: [lazarus] IDE, start once, open files

2007-09-11 Thread Luiz Americo Pereira Camara
Luca Olivetti wrote: En/na Luiz Americo Pereira Camara ha escrit: It's working here both under win32 and linux (testraw and testcomponent programs). Using fpc 220, Ubuntu Feisty Faw, recent lazarus svn. I assure you that I could lauch various copies of my program. I used fpc 2.0.4, maybe

Re: [lazarus] Lazarus on one window (aka SDI)

2007-09-11 Thread Luiz Americo Pereira Camara
Graeme Geldenhuys wrote: It is SO bad that I have gotten in the habit of using a dedicated virtual desktop just for Lazarus. I would definitely be in favor of a single window design. Someone else that thinks like I do. I actually use 4 virtual desktops. One for Lazarus, Firefox, Mozilla

[lazarus] Advanced unit dependency tree tool

2007-09-10 Thread Luiz Americo Pereira Camara
I'm looking for a tool that builds a complete unit dependency tree for object pascal. By complete i mean that not only the info unit1 uses unit2 is given but also the functions used . Something like unit1 uses functions foo and bar from unit2. The tool can be for Delphi or Lazarus Any help

[lazarus] Performance of 24bit bitmap in 32bit color display

2007-09-02 Thread Luiz Americo Pereira Camara
In a recent thread i discussed with Marc the alpha bitmap design, and was pointed that would be no performance penalty if a 24bit bitmap is used in a 32bit color display since the number of bytes per pixel would be equal. Initially i agreed but i found that this info is incorrect. A 24bit

Re: [lazarus] TBitmap performance after alpha channel support (Was:Graphics dont work)

2007-08-30 Thread Luiz Americo Pereira Camara
Marc Weustink wrote: Luiz Americo Pereira Camara wrote: Luiz Americo Pereira Camara wrote: The problem is that StretchMaskBlt is calling AlphaBlend and somehow this is not working. It seems that TBitmap will have alpha channel by default (or at least LCL recognizes as having) when running

Re: [lazarus] TBitmap performance after alpha channel support (Was:Graphics dont work)

2007-08-30 Thread Luiz Americo Pereira Camara
Marc Weustink wrote: This solution would bring another performance penalty, when using 32bit color display, since each time a BitBlt/StretchBlt is called a color conversion (three times when using mask) will be done. It also breaks the PixelFormat = pfDevice (the default) idea of having the

Re: [lazarus] TBitmap performance after alpha channel support (Was:Graphics dont work)

2007-08-30 Thread Luiz Americo Pereira Camara
Luiz Americo Pereira Camara wrote: - The lower levels functions will be optimized. This would reduce the size/complexity of StretchMaskBlt helping in the maintainability/code quality since it will not be a handle all function Now there is one function, otherwise you have to maintain 2

Re: [lazarus] Graphics dont work

2007-08-29 Thread Luiz Americo Pereira Camara
wile64 wrote: 2007/8/29, Luiz Americo Pereira Camara [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: wile64 wrote: example : FImagePaint is a TBitmap create with FImagePaint := TBitmap.Create; Try to define the height and width of the bitmap I repeat that all

Re: [lazarus] TBitmap performance after alpha channel support (Was:Graphics dont work)

2007-08-29 Thread Luiz Americo Pereira Camara
Luiz Americo Pereira Camara wrote: The problem is that StretchMaskBlt is calling AlphaBlend and somehow this is not working. It seems that TBitmap will have alpha channel by default (or at least LCL recognizes as having) when running in a display with 32bit color under win32. Looking

Re: [lazarus] Graphics dont work

2007-08-28 Thread Luiz Americo Pereira Camara
Marc Weustink wrote: wile64 wrote: Hello, I create an bitmap and draw with functions RoundRect, Rectangle, FillRect, TextRect, Ellipse, CopyRect. After install snapshot Lazarus-0.9.23-fpc-2.0.4-20070827 dont work in win32, work in gtk and gtk2. with Lazarus-0.9.23-fpc-2.0.4-20070809 work

Re: [lazarus] Broken SVN

2007-08-26 Thread Luiz Americo Pereira Camara
Marc Weustink wrote: Luiz Americo Pereira Camara wrote: Christian U. wrote: TLazInfImage dont support AutoCreateMask anymore in actual SVN wich breaks the Virtualtrees Support. Also no transparency works in any Lazarus Image Type I can confirm this. I reported two bugs: 9501 and 9502

Re: [lazarus] Problem developing TCustomLabel descendant (and change proposition)

2007-08-16 Thread Luiz Americo Pereira Camara
Mattias Gaertner wrote: On Tue, 07 Aug 2007 14:12:19 -0300 Luiz Americo Pereira Camara [EMAIL PROTECTED] wrote: As a change to a properly implementation i would propose to add a virtual method (DoMeasureTextPosition) to retrieve the TextLeft and TextTop values (see TCustomLabel.Paint

[lazarus] Release of two new controls (TToggleLabel, TMenuButton)

2007-08-12 Thread Luiz Americo Pereira Camara
Today i released two open source LCL controls: TToggleLabel: a label that can switch between two states with visual feedback (similar to what gtk has) TMenuButton: a SpeedButton that integrates with a PopupMenu. I found similar controls in Firefox, Eclipse based apps (RSSOwl beta), camtasia

Re: [lazarus] Problems with TListView (Win32)

2007-08-04 Thread Luiz Americo Pereira Camara
Razvan Adrian Bogdan wrote: I feel ListView isn't completed (other controls have issues too but not that much), at least under gtk i get warnings about things, i was wondering if VirtualTreeView might do the job, last time i checked it had painting issues, like header not being painted. Try

Re: [lazarus] Problems with TListView (Win32)

2007-08-04 Thread Luiz Americo Pereira Camara
Luiz Americo Pereira Camara wrote: Razvan Adrian Bogdan wrote: I feel ListView isn't completed (other controls have issues too but not that much), at least under gtk i get warnings about things, i was wondering if VirtualTreeView might do the job, last time i checked it had painting issues

Re: [lazarus] Working on my components again

2007-07-21 Thread Luiz Americo Pereira Camara
Tony Maro wrote: I got a Google Alert that said someone was having trouble finding my components for Lazarus. I changed my blog software and never finished migrating all my old links over. I've just thrown up the first page that posts my tmpack of components:

Re: [lazarus] Unicode support and fonts

2007-07-16 Thread Luiz Americo Pereira Camara
Felipe Monteiro de Carvalho wrote: On 7/16/07, ik [EMAIL PROTECTED] wrote: Have you set the font family to unicode ? Default font families are usually latin1 (or your system setting). And how can I set that? (never heard about this) Use the Font dialog component to select a font and set its

Re: [lazarus] Working with XML: crosscompatibility

2007-07-04 Thread Luiz Americo Pereira Camara
Alvise Nicoletti wrote: Luiz Americo Pereira Camara ha scritto: Alvise Nicoletti wrote: Hi... I have to parse xml both with Lazarus on linux (server) and Delphi on Windows (client). Actually, with Lazarus, I'm using the DOM, ReadXML, WriteXML units. Is there something that I can use

[lazarus] Virtual Treeview port preview release

2007-07-01 Thread Luiz Americo Pereira Camara
Today i released a preview release of the new port of Virtual Treeview based in version 4.5.1 for those that want to test it. For info about the port, how install, know issues see https://luipack.bountysource.com/wiki/virtualtreeview . Feel free to do bug reports. Luiz

Re: [lazarus] Virtual Treeview port preview release

2007-07-01 Thread Luiz Americo Pereira Camara
zeljko wrote: On Sunday 01 July 2007 13:56, Luiz Americo Pereira Camara wrote: Today i released a preview release of the new port of Virtual Treeview based in version 4.5.1 for those that want to test it. For info about the port, how install, know issues see https://luipack.bountysource.com

Re: [lazarus] Working with XML: crosscompatibility

2007-06-28 Thread Luiz Americo Pereira Camara
Alvise Nicoletti wrote: Hi... I have to parse xml both with Lazarus on linux (server) and Delphi on Windows (client). Actually, with Lazarus, I'm using the DOM, ReadXML, WriteXML units. Is there something that I can use in Delphi with the same code? Or, otherwise, is there some XML

[lazarus] Useless code in win32intf?

2007-06-18 Thread Luiz Americo Pereira Camara
Maybe i missed something but what's the meaning of the following code, found in win32callback.inc:710 if lWinControl.ClassName = 'TPairSplitter' then P := P; Luiz _ To unsubscribe: mail [EMAIL PROTECTED] with

Re: [lazarus] win32 snapshots with gdb 6.6

2007-06-18 Thread Luiz Americo Pereira Camara
Vincent Snijders wrote: Hi, I want to inform you that since a couple of days, the lazarus snapshots come with gdb 6.6 instead of gdb 6.0. Are you using the binary found in http://sourceforge.net/project/showfiles.php?group_id=2435package_id=82724release_id=190586 ? I use the svn and

Re: [lazarus] Combo.OnClick

2007-06-18 Thread Luiz Americo Pereira Camara
Joao Morais wrote: OnClick doesn't mean exactly a click, you have OnMouseDown to accompish this. OnClick means that the user sent information to the control, and this doesn't happen when he open a combo (not usually). Did you tried OnSelect? Luiz

Re: [lazarus] sqlite components

2007-06-14 Thread Luiz Americo Pereira Camara
Luca Olivetti wrote: En/na Luiz Americo Pereira Camara ha escrit: See as a balance between features/code size. Sure, that's a good trade off. One has just to know the peculiarities of this dataset and where it diverges from the standard dataset behaviour (btw: why did you implement

Re: [lazarus] sqlite components

2007-06-11 Thread Luiz Americo Pereira Camara
Luca Olivetti wrote: Hello, I'm writing an embedded application that will need a small database (no more than a couple thousand records), and I though sqlite could do it. It probably won't have any graphical interface, so I don't need all the goodies of a TDataset descendant, OTOH I like

Re: [lazarus] Store a utf-16 file in a lazarus resource file

2007-05-25 Thread Luiz Americo Pereira Camara
Paul Ishenin wrote: Luiz Americo Pereira Camara wrote: I want to store a utf-16 encoded file in a Lazarus resource file and than load as a Stream. I already did the first step (create the lrs file with lazres) now i want to load the file in a stream. Does someone know how i can do

[lazarus] Store a utf-16 file in a lazarus resource file

2007-05-24 Thread Luiz Americo Pereira Camara
I want to store a utf-16 encoded file in a Lazarus resource file and than load as a Stream. I already did the first step (create the lrs file with lazres) now i want to load the file in a stream. Does someone know how i can do that? Luiz

[lazarus] ANN: Release of ATBinHex port

2007-05-19 Thread Luiz Americo Pereira Camara
Today i released the first version of ATBinHex LCL port. ATBinHex (see original component http://atorg.net.ru/delphi/atbinhex.htm) is a viewer that can be view a file in Ansi, Binary, HEX and Unicode (UTF-16LE) modes. More info and download at https://luipack.bountysource.com/ Luiz

Re: Object Inspector crash, and other interesting stuff

2007-05-16 Thread Luiz Americo Pereira Camara
Mattias Gaertner wrote: I have tested this more thoroughly now. I have just had a complete crash of IDE after bringing up the colors list in the OI and scrolling from the last in the list (upon opening) to the first. The screen froze momentarily and then the IDE closed. Hmm. This works

Re: Object Inspector crash, and other interesting stuff

2007-05-16 Thread Luiz Americo Pereira Camara
Luiz Americo Pereira Camara wrote: Mattias Gaertner wrote: I have tested this more thoroughly now. I have just had a complete crash of IDE after bringing up the colors list in the OI and scrolling from the last in the list (upon opening) to the first. The screen froze momentarily

Re: [lazarus] Printer.Canvas.TextStyle.Alignment=taRightJustify = Argument can't be assigned to

2007-05-16 Thread Luiz Americo Pereira Camara
Burkhard Carstens wrote: Am Mittwoch, 16. Mai 2007 16:35 schrieb fedorax: Hello, I just make a new svn update and i've a little problem: using: Printer.Canvas.TextStyle.Alignment=taRightJustify; return this error: cheques.pas(210,35) Error: Argument can't be assigned to Did something

Re: [lazarus] execute multiple sql statements

2007-05-14 Thread Luiz Americo Pereira Camara
tanila wrote: hello all, is it possible to execute multiple sql statement with TSQLite3Dataset ? I tried to create a sqlite database with multiple tables. The SQL File looks like this: create table if not exists users (USR_ID integer auto_increment primary key, USR_NAME VARCHAR(30) not null,

Re: [lazarus] Possible typo in GTKDialogRealizeCB

2007-04-13 Thread Luiz Americo Pereira Camara
Vincent Snijders wrote: Luiz Americo Pereira Camara schreef: In the cited function (gtkcallback.inc) there's a dead code: if (Data=nil) then ; I haven't looked at the code, but sometimes this constructs are used to suppress 'parameter Data not used' hints. You are right

Re: [lazarus] Possible typo in GTKDialogRealizeCB

2007-04-13 Thread Luiz Americo Pereira Camara
Vincent Snijders wrote: Felipe Monteiro de Carvalho schreef: On 4/13/07, Vincent Snijders [EMAIL PROTECTED] wrote: I haven't looked at the code, but sometimes this constructs are used to suppress 'parameter Data not used' hints. Is supressing a hint really that important that we need useless

[lazarus] Possible typo in GTKDialogRealizeCB

2007-04-12 Thread Luiz Americo Pereira Camara
In the cited function (gtkcallback.inc) there's a dead code: if (Data=nil) then ; Luiz _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at

Re: [lazarus] History of the widget set design?

2007-04-02 Thread Luiz Americo Pereira Camara
Micha Nelissen wrote: Burkhard Carstens wrote: However, with win32/gtk LCL this is even worse... seems like one never knows, whether an event was fired before or after .. These are all bugs. The developer interface should be as consistent as possible, yet the look and feel for the

Re: [lazarus] History of the widget set design?

2007-04-02 Thread Luiz Americo Pereira Camara
Luiz Americo Pereira Camara wrote: An example of a widgetset that looks good is eLiquid from Pixel editor. In this interview ( http://www.linuxinterviews.com/index.php?option=com_contenttask=viewid=14Itemid=2 ) the Pixel developer considered Open Source eLiquid. The main concern

Re: [lazarus] Document editing (doc, rtf) and/or interfacing with external editors

2007-03-29 Thread Luiz Americo Pereira Camara
Razvan Adrian Bogdan wrote: On 3/29/07, Florian Klaempfl [EMAIL PROTECTED] wrote: Razvan Adrian Bogdan schrieb: Win only is enough for now but Lazarus doesn't support ActiveX (COM) It does? Florian i don't understand what you mean, does Laz have an ActiveX importer of some sort that i don't

Re: [lazarus] Document editing (doc, rtf) and/or interfacing with external editors

2007-03-29 Thread Luiz Americo Pereira Camara
Luiz Americo Pereira Camara wrote: Razvan Adrian Bogdan wrote: On 3/29/07, Florian Klaempfl [EMAIL PROTECTED] wrote: Razvan Adrian Bogdan schrieb: Win only is enough for now but Lazarus doesn't support ActiveX (COM) It does? Florian i don't understand what you mean, does Laz have

Re: [lazarus] AllocateHWnd

2007-03-14 Thread Luiz Americo Pereira Camara
Vincent Snijders wrote: Felipe Monteiro de Carvalho schreef: On 3/13/07, Luiz Americo Pereira Camara [EMAIL PROTECTED] wrote: Just one tip maybe would be better to dereference PMethod after assigned check in the Callback proc Ok, didn´t think about it. Reattaching the patch, which

Re: [lazarus] AllocateHWnd

2007-03-13 Thread Luiz Americo Pereira Camara
Felipe Monteiro de Carvalho wrote: Forgot to attach the patch =) Just one tip maybe would be better to dereference PMethod after assigned check in the Callback proc Method := PMethod^; //- if PMethod is nil there would be problems if Assigned(PMethod) then Method(Msg) as alternative

Re: [lazarus] AllocateHWnd

2007-03-13 Thread Luiz Americo Pereira Camara
Vincent Snijders wrote: One thing I noted is that on Delphi, the WndProc will normally have a call to DefWindowProc, and this is obviously Windows only. So, to keep compatibility with Delphi, every WndProc used with AllocateHWnd would need to have a IFDEF Windows, with a call to DefWindowProc

Re: [lazarus] AllocateHWnd

2007-03-13 Thread Luiz Americo Pereira Camara
Luiz Americo Pereira Camara wrote: Felipe Monteiro de Carvalho wrote: Forgot to attach the patch =) Just one tip maybe would be better to dereference PMethod after assigned check in the Callback proc Method := PMethod^; //- if PMethod is nil there would be problems if Assigned(PMethod

Re: [lazarus] Patch - Small Cleanup and Possible bug

2007-03-10 Thread Luiz Americo Pereira Camara
Mattias Gaertner wrote: Probably should be like that: aStyle := gtk_widget_get_style(Widget); if aStyle=nil then begin aStyle := GetStyle(lgsButton); If aStyle = nil then aStyle := GetStyle(lgsGTK_Default); end; Applied for readability. Thanks. Speaking in

Re: [lazarus] Code Readability [Was: Patch - Small Cleanup and Possible bug]

2007-03-10 Thread Luiz Americo Pereira Camara
Luiz Americo Pereira Camara wrote: Mattias Gaertner wrote: Probably should be like that: aStyle := gtk_widget_get_style(Widget); if aStyle=nil then begin aStyle := GetStyle(lgsButton); If aStyle = nil then aStyle := GetStyle(lgsGTK_Default); end; Applied

Re: [lazarus] Patch - Small Cleanup and Possible bug

2007-03-06 Thread Luiz Americo Pereira Camara
Vincent Snijders wrote: Luiz Americo Pereira Camara schreef: 1 - Attached patch remove some redundant checks in gtk intf. 2 - Some lines above (in TGtkWidgetSet.DrawFrameControl) there's this code: aStyle := gtk_widget_get_style(Widget); if aStyle=nil then aStyle := GetStyle

Re: [lazarus] Patch - Small Cleanup and Possible bug

2007-03-06 Thread Luiz Americo Pereira Camara
Sergei Gorelkin wrote: Tuesday, March 06, 2007, 10:14:10 PM, Luiz wrote: LAPC Vincent Snijders wrote: Luiz Americo Pereira Camara schreef: 1 - Attached patch remove some redundant checks in gtk intf. 2 - Some lines above (in TGtkWidgetSet.DrawFrameControl) there's this code

Re: [lazarus] Deleting ListBox items

2007-03-05 Thread Luiz Americo Pereira Camara
Arí Ricardo Ody wrote: I have a ListBox with four Items(for example). Suppose third item selected (ListBox1.Items [2]). When I run the method showed below program has different behavior: In windows it deletes the ListBox1.Items [2] (as expected). After the end of method execution, ListBox1

Re: [lazarus] compiling sqlite3laz package

2007-03-02 Thread Luiz Americo Pereira Camara
tanila wrote: hello all, i have the following message compiling sqlite3laz-package: /home/tanila/lazarus/components/sqlite/sqlitecomponenteditor.pas(179,52) Error: Illegal type conversion: enumeration type to TObject This code is ugly and i plan to rewrite ASAP. As a workaround try to do

Re: [lazarus] [lazarus-dev] TCanvas.Rectangle

2007-02-15 Thread Luiz Americo Pereira Camara
Vicnent Snijders wrote: Hi, A bug was reported that TCanvas.Rectangle is incompatible to Delphi, but somebody suggested that this was rather a Delphi bug. For the complete story see: http://www.freepascal.org/mantis/view.php?id=8342 In a note I wrote: The canvas routines in Delphi are

[lazarus] Problem to add a component at design time

2007-02-08 Thread Luiz Americo Pereira Camara
I am creating a package that has a design time component. It originally used the Resize method to paint the window. After the component is dropped an error is given and the component is not added to the form. I tried to change from Resize to DoOnResize without success. See callstack below:

Re: [lazarus] Behavior of ContextMenu

2007-02-07 Thread Luiz Americo Pereira Camara
Vincent Snijders wrote: Marc Weustink schreef: If it was a message we created to handle something ourselves, then I see, but in this case an existing, then there is no problem Thanks, Luiz. I applied the (slightly modified) patch. Thanks. I was aware of the problem sending a lager record

Re: [lazarus] Behavior of ContextMenu

2007-02-06 Thread Luiz Americo Pereira Camara
Marc Weustink wrote: Luiz Americo Pereira Camara wrote: Marc Weustink wrote: Luiz Americo Pereira Camara wrote: I fixed the double fire of MouseUp event when using right mouse button under win32. See http://www.freepascal.org/mantis/view.php?id=8276. But one issue remained. If the Shift

Re: [lazarus] TBitmap.ScanLine - API Propose

2007-02-06 Thread Luiz Americo Pereira Camara
Mattias Gaertner wrote: On Mon, 05 Feb 2007 09:52:50 -0300 Luiz Americo Pereira Camara [EMAIL PROTECTED] wrote: Mattias Gaertner wrote: - Should i implement GetCurrentObject? IMO it would be better to improve TBitmap. Currently TBitmap uses GetObject, so

Re: [lazarus] Behavior of ContextMenu

2007-02-06 Thread Luiz Americo Pereira Camara
Marc Weustink wrote: Luiz Americo Pereira Camara wrote: Marc Weustink wrote: Luiz Americo Pereira Camara wrote: Marc Weustink wrote: Luiz Americo Pereira Camara wrote: I fixed the double fire of MouseUp event when using right mouse button under win32. See http://www.freepascal.org/mantis

Re: [lazarus] TBitmap.ScanLine

2007-02-05 Thread Luiz Americo Pereira Camara
Mattias Gaertner wrote: On Sun, 04 Feb 2007 22:28:19 -0200 Luiz Americo [EMAIL PROTECTED] wrote: Mattias Gaertner escreveu: I started a new thread, because this has nothing to do with the decision QuickDraw or Quartz. On Sun, 4 Feb 2007 21:21:15 +0100 Pieter Valentijn [EMAIL

Re: [lazarus] TBitmap.ScanLine

2007-02-05 Thread Luiz Americo Pereira Camara
Mattias Gaertner wrote: - Should i implement GetCurrentObject? IMO it would be better to improve TBitmap. Currently TBitmap uses GetObject, so implementing it will also benefit TBitmap. I'll take a look and keep you informed. Luiz

Re: [lazarus] TBitmap.ScanLine

2007-02-05 Thread Luiz Americo Pereira Camara
Mattias Gaertner wrote: On Mon, 05 Feb 2007 09:19:28 -0300 Luiz Americo Pereira Camara [EMAIL PROTECTED] wrote: Mattias Gaertner wrote: On Sun, 04 Feb 2007 22:28:19 -0200 Luiz Americo [EMAIL PROTECTED] wrote: Mattias Gaertner escreveu: I started a new thread

  1   2   >