Re: [lazarus] Passing a procedure as a parameter

2006-04-25 Thread Ian bell
L505 wrote: @MyEventHandle Closer. Now I get this error: unit1.pas(200,69) Error: Incompatible type for arg no. 3: Got address of procedure(LongInt, LongWord);Register, expected procedure variable type of procedure(LongInt, LongWord) of object;Register It probably expects a method which

Re: [lazarus] Passing a procedure as a parameter

2006-04-25 Thread Matthijs Willemstein
Ian bell schreef Thanks for the detail. I find it really hard to get my head around OOP. It just seems to put barriers in the way of what I want to do. Can you think of any reason why it would want or need a procedure in this form? I guess the best advise we can give you is: Get a book on OO

Re: [lazarus] find the username

2006-04-25 Thread Michael Van Canneyt
On Mon, 24 Apr 2006, johnf wrote: Hi, How do I find the username? Getusername does not exist. On Linux. fpGetUID (baseunix or unix unit) gives you the user ID. You can then use getpwnam() from Libc to get the username, or scan /etc/passwd. Michael.

Re: [lazarus] Passing a procedure as a parameter

2006-04-25 Thread Matthijs Willemstein
Op DATE, AUTHOR schreef: Matthijs Willemstein Ian bell schreef Thanks for the detail. I find it really hard to get my head around OOP. It just seems to put barriers in the way of what I want to do. Can you think of any reason why it would want or need a procedure in this form? I guess the

Re: [lazarus] find the username

2006-04-25 Thread Graeme Geldenhuys
You can also read the environment variable USER or USERNAME. This is what I have done: -- {$IFDEF MSWINDOWS} function tiGetUserName : string; var userNameBuffer : array[0..255] of char; sizeBuffer : DWord; begin SizeBuffer := 256;

Re: [lazarus] ERRO

2006-04-25 Thread Joost van der Sluis
This error ocurr when install zeosdbo-6.5.1-alpha_cvs_13-10-2005 in lazaru 9.14 In Lazarus 9.10 don´t have problem. Anybody know what´s this? Can fixed it? Have some detail that I don´t know. This has nothing to do with your lazarus version, but with your fpc- version. This should be fixed

Re: [lazarus] Re: unicode lcl?

2006-04-25 Thread Flávio Etrusco
On 4/24/06, Mattias Gaertner [EMAIL PROTECTED] wrote: (...) - keyboard: This is not an unicode problem, but it relates: synedit does not translate special language keys. E.g. french accents. Isn't this a LCL bug/limitation? Win32 just sends WM_CHAR when the composition is finished, but LCL (at

[lazarus] THashedStringlist

2006-04-25 Thread Sam Washkansky
Hi guys Can anybody tell me which unit contains the lazarus or FPC implementation of a HashTable ? Delphi has a THashedStringlist class which is in the inifiles unit, but it's not in the corresponding unit in Lazarus. What implementations are there of the Hashed list in Lazarus if any?-- Sam

Re: [lazarus] Re: unicode lcl?

2006-04-25 Thread Mattias Gaertner
On Tue, 25 Apr 2006 06:53:29 -0300 Flávio Etrusco [EMAIL PROTECTED] wrote: On 4/24/06, Mattias Gaertner [EMAIL PROTECTED] wrote: (...) - keyboard: This is not an unicode problem, but it relates: synedit does not translate special language keys. E.g. french accents. Isn't this a LCL

Re: [lazarus] THashedStringlist

2006-04-25 Thread Mattias Gaertner
On Tue, 25 Apr 2006 12:02:38 +0200 Sam Washkansky [EMAIL PROTECTED] wrote: Hi guys Can anybody tell me which unit contains the lazarus or FPC implementation of a HashTable ? Delphi has a THashedStringlist class which is in the inifiles unit, but it's not in the corresponding unit in

Re: [lazarus] help on CGI app

2006-04-25 Thread Michael Van Canneyt
On Tue, 25 Apr 2006, Graeme Geldenhuys wrote: Hi, Is there any help / documentation on the cgiapp.pp unit? I want to know when to use things like AddResponseLn() compared to Writeln() etc. for generating html pages. I am trying to convert a GUI application (with a DB backend) to a web

Re: [lazarus] help on CGI app

2006-04-25 Thread Graeme Geldenhuys
Hi Michael, On 25/04/06, Michael Van Canneyt [EMAIL PROTECTED] wrote: The web system was rewritten. I have published some articles about it in a german magazine. If you want I can send you the source code and the 2 articles. (they're in english) If you can send them to my email address that

Re: [lazarus] help on CGI app

2006-04-25 Thread Ian bell
Michael Van Canneyt wrote: On Tue, 25 Apr 2006, Graeme Geldenhuys wrote: Hi, Is there any help / documentation on the cgiapp.pp unit? I want to know when to use things like AddResponseLn() compared to Writeln() etc. for generating html pages. I am trying to convert a GUI application (with

Re: [lazarus] help on CGI app

2006-04-25 Thread Michael Van Canneyt
On Tue, 25 Apr 2006, Ian bell wrote: Michael Van Canneyt wrote: On Tue, 25 Apr 2006, Graeme Geldenhuys wrote: Hi, Is there any help / documentation on the cgiapp.pp unit? I want to know when to use things like AddResponseLn() compared to Writeln() etc. for generating html pages. I am

Re: [lazarus] find the username

2006-04-25 Thread johnf
On Tuesday 25 April 2006 02:40, Graeme Geldenhuys wrote: You can also read the environment variable USER or USERNAME. This is what I have done: -- {$IFDEF MSWINDOWS} function tiGetUserName : string; var userNameBuffer : array[0..255] of char;

[lazarus] [patch] improvements for buttons

2006-04-25 Thread darekm
hi in patch are small improvements for buttons now speedbuttons has transparent color property for speedbtn and small bugfix for toolbutton Darek Index: include/speedbutton.inc === --- include/speedbutton.inc (wersja

Re: [lazarus] [patch] improvements for buttons

2006-04-25 Thread Mattias Gaertner
On Tue, 25 Apr 2006 17:55:49 +0200 darekm [EMAIL PROTECTED] wrote: hi in patch are small improvements for buttons now speedbuttons has transparent color property for speedbtn and small bugfix for toolbutton Thanks. Applied. Mattias

Re: [lazarus] Re: new patches

2006-04-25 Thread Mattias Gaertner
On Mon, 24 Apr 2006 21:01:32 +0330 roozbeh gholizadeh [EMAIL PROTECTED] wrote: On Mon, 24 Apr 2006 00:42:39 +0330, Mattias Gaertner [EMAIL PROTECTED] wrote: On Sun, 23 Apr 2006 01:37:01 +0330 roozbeh gholizadeh [EMAIL PROTECTED] wrote: Here is another patch. makes labels,brushes

Re: [lazarus] Passing a procedure as a parameter

2006-04-25 Thread L505
Ian bell schreef Thanks for the detail. I find it really hard to get my head around OOP. It just seems to put barriers in the way of what I want to do. Can you think of any reason why it would want or need a procedure in this form? I guess the best advise we can give you is: Get a book

[lazarus] [patch] texout for gtk2

2006-04-25 Thread darekm
Hi as in subject work with UTF8 and color Darek PS. how to discover on runtime which widgetset is running Index: interfaces/gtk/gtklclintf.inc === --- interfaces/gtk/gtklclintf.inc (wersja 9179) +++

Re: [lazarus] [patch] tLabel on gtk2

2006-04-25 Thread darekm
Mattias Gaertner wrote: On Tue, 18 Apr 2006 21:15:26 +0200 darekm [EMAIL PROTECTED] wrote: Hi attached patch is fo tLabel under GTK2 paint for tLabel is invoked many times, because GTK2 has enabled rendering, painted tex show very bad after some piece of time. for multiline text

Re: [lazarus] [patch] tLabel on gtk2

2006-04-25 Thread Mattias Gaertner
On Tue, 25 Apr 2006 18:32:28 +0200 darekm [EMAIL PROTECTED] wrote: Mattias Gaertner wrote: On Tue, 18 Apr 2006 21:15:26 +0200 darekm [EMAIL PROTECTED] wrote: Hi attached patch is fo tLabel under GTK2 paint for tLabel is invoked many times, because GTK2 has enabled

Re: [lazarus] [patch] tLabel on gtk2

2006-04-25 Thread darekM
I'm not sure. With tmHeight I get the wrong values. Synedit moves all lines some pixels below and cuts the rest. GetTextHeight does not have this problem. Maybe there is another bug somewhere else. I fix this bug, with first line we should move only tmAscent (gtk_draw_text need base

[lazarus] Patch removes some unused variables

2006-04-25 Thread Luc Vigato
Index: F:/lazarus-svn/trunk/ide/helpfpcmessages.pas === --- F:/lazarus-svn/trunk/ide/helpfpcmessages.pas(revision 9183) +++ F:/lazarus-svn/trunk/ide/helpfpcmessages.pas(working copy) @@ -126,7 +126,6 @@ sl:

[lazarus] TVirtualStringTreeView

2006-04-25 Thread Bogusław Brandys
Hello, Please provide simple example project how to work with TVirtualStringTreeView under Lazarus.I want to set check boxes for each node but they do not appear. Is this control (Lazarus port of TVirtualTreeView) works on Lazarus 0.9.14 ? Regards Boguslaw

[lazarus] Patch: cleandirdlg

2006-04-25 Thread Luc Vigato
Changes: - OkButton and CancelButton have the same size - BorderStyle now dsDialog - Form is now centered on Screen Manny forms in Lazarus have a OK and Cancel button an many forms don't show uniform. Ok an Cancel buttons have different size. One time Ok button is on the right on an

Re: [lazarus] Passing a procedure as a parameter

2006-04-25 Thread Ian bell
Matthijs Willemstein wrote: Ian bell schreef Thanks for the detail. I find it really hard to get my head around OOP. It just seems to put barriers in the way of what I want to do. Can you think of any reason why it would want or need a procedure in this form? I guess the best advise we can

[lazarus] [patch] textOut on gtk2

2006-04-25 Thread darekm
Hi textOut once more and clipping (sometimes buttons are not refresh after tHint disappear Darek Index: interfaces/gtk/gtkwinapi.inc === --- interfaces/gtk/gtkwinapi.inc(wersja 9183) +++ interfaces/gtk/gtkwinapi.inc

Re: [lazarus] TVirtualStringTreeView

2006-04-25 Thread Christian U.
:pserver:[EMAIL PROTECTED]:/CVS/virtualtrees example example is the module thre rest the cvs root :p what exactly do you try ? i never have trye to use checkboxes when you can give me some more hints maybe i can fix the bug (if there is one) first step use the cvs version (some bugs are fixed

Re: [lazarus] [patch] textOut on gtk2

2006-04-25 Thread Jesus Reyes
--- darekm [EMAIL PROTECTED] escribió: Hi textOut once more and clipping (sometimes buttons are not refresh after tHint disappear Darek [snip] I also have a patch for GTK2 CreateFontIndirectEx, I simplified the function a little and added support for font names like

Re: [lazarus] TVirtualStringTreeView

2006-04-25 Thread Bogusław Brandys
Christian U. wrote: :pserver:[EMAIL PROTECTED]:/CVS/virtualtrees example example is the module thre rest the cvs root :p what exactly do you try ? i never have trye to use checkboxes when you can give me some more hints maybe i can fix the bug (if there is one) first step use the cvs version

Re: [lazarus] Lazarus in Google summer of code 2006 ?

2006-04-25 Thread lazarus . mramirez
Hi. http://code.google.com/soc/mentorfaq.html Ops, no money, sorry. If yes, what project would you like to see done for lazarus ? Dynamic package linking ? Would you be interested in a whole ressource editor intégrated into the ide or in a separate tool ? (icons/xpms/bmp/windows

[lazarus] Lazarus/FPC Foundation

2006-04-25 Thread lazarus . mramirez
Hi, everyone. I read a post about Google Summer of Code 2006 and Lazarus project resources, and I wonder, is there a Lazarus Foundation or FreePascal Foundation ? I have check both websites, and we have both (open source) communities, but legally speaking, I haven't found any foundation. In

[lazarus] new error from sqlDB?

2006-04-25 Thread johnf
Hi, I am using lazarus 0.9.15 04/25/06 no SVN revision number and FPC 04/25/06 2.1.1. I'm getting the following error: Project rasied exception class 'EvariantTypeCastError' with message could not convert variant type of (Empty) into type (OleStr) When I attempt to save data. This is a new

[lazarus] Hint: Parameter Sender not used

2006-04-25 Thread Alain Michaud
Hi, what does the following compiler message means? Hint: parameter Sender not used Is there something that I can do to improve my source code apart from just ignoring the message? Alain _ To unsubscribe: mail [EMAIL

RES: [lazarus] ERRO

2006-04-25 Thread hcbsm
Thanks, I try use Mysql component that came with Lazarus but don´t work, a believe that because my mysqlserver is 4.1 and that component need libmysql.dll 4.0 (that the message). In other way, I believe that may have some path to make the original package work with mysql4.1. Have some?

Re: [lazarus] TVirtualStringTreeView

2006-04-25 Thread Christian U.
Maybe it's a painting problem and checkboxes are there but not displayed ? Yes, it is i think the images for the checkboxes arent load thatas all i had some problems with the imagelists that hold those images in an earlyer lcl i think today this is no problem to use them again. i take a look at

Re: [lazarus] Hint: Parameter Sender not used

2006-04-25 Thread Alain Michaud
great: if (sender = nil)then begin end; that solves the problem. I like it. On the same idea, I usually wtite: ... myprocedure; var mystring : string; begin ... str(Myreal,mystring); ... but I get the warning: variable mystring does not seem to be initialized What is it that I am doing