Re: [lazarus] unicode lcl?
Mattias Gaertner wrote: On Sun, 23 Apr 2006 23:10:58 +0330 roozbeh gholizadeh [EMAIL PROTECTED] wrote: Is there such a thing? and if not,any plans for this? First of all: 'unicode' is merely a table. The computer needs an encoding. The LCL supports UTF-8. So, yes, there is already a unicode LCL. Probably you want UTF-16 for wince. Maybe it's possible to use internally a type for unicode which is OS dependend. This requires a lot of code to be rewritten but it makes it possible to use native unicode type on platforms where utf-8 is uncommon. Becouse while i was trying to make wince interfaces work,i see lots of convertion to unicode,and it really makes these interfaces slow,which by the fact that all wince devices are rather slow,makes them inefficient. For example it is really pointless converting every tstrings to unicode when some actions to winceapi is required and so on. OTOH, using widestrings always is usually bloat. Even more considering that modern PDAs are clocked with 600 MHz having only 64 MB of RAM ... For TStrings the overhead is indeed high, although O(n). Do you have some ideas how to reduce the overhead? Mattias _ 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
Re: [lazarus] unicode lcl?
Florian Klaempfl wrote: Mattias Gaertner wrote: First of all: 'unicode' is merely a table. The computer needs an encoding. The LCL supports UTF-8. So, yes, there is already a unicode LCL. Probably you want UTF-16 for wince. Maybe it's possible to use internally a type for unicode which is OS dependend. This requires a lot of code to be rewritten but it makes it possible to use native unicode type on platforms where utf-8 is uncommon. How to solve streaming of component text then (LFM etc) ? Micha _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] unicode lcl?
Micha Nelissen wrote: Florian Klaempfl wrote: Mattias Gaertner wrote: First of all: 'unicode' is merely a table. The computer needs an encoding. The LCL supports UTF-8. So, yes, there is already a unicode LCL. Probably you want UTF-16 for wince. Maybe it's possible to use internally a type for unicode which is OS dependend. This requires a lot of code to be rewritten but it makes it possible to use native unicode type on platforms where utf-8 is uncommon. How to solve streaming of component text then (LFM etc) ? Well, data stored in files needs always conversion when working cross platform. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] unicode lcl?
Mattias Gaertner wrote: On Sun, 23 Apr 2006 23:10:58 +0330 roozbeh gholizadeh [EMAIL PROTECTED] wrote: Is there such a thing? and if not,any plans for this? First of all: 'unicode' is merely a table. The computer needs an encoding. The LCL supports UTF-8. So, yes, there is already a unicode LCL. IMO there is only a utf8 LCL. All communications with the widgetset classes should be utf8. What the widgetset internally does is a matter of the widgetset. Probably you want UTF-16 for wince. I don't think we should have different LCL encodings Becouse while i was trying to make wince interfaces work,i see lots of convertion to unicode,and it really makes these interfaces slow,which by the fact that all wince devices are rather slow,makes them inefficient. I don't know if the conversion is the problem here. I think widestrings in general are slow. Try to prospone conversions to widestrings after you've done string manipulations or assignments. For example it is really pointless converting every tstrings to unicode when some actions to winceapi is required and so on. What dou you mean by converting TStrings. There anren't not tha tmany controls passing TStrings. For TStrings the overhead is indeed high, although O(n). Do you have some ideas how to reduce the overhead? If the TStrings meant here are TMemoStrings, you could imo implement a TCEMemostings which has all text as widestring. The moment an individual line is accessed (usually in the LCL) this line is converted to UTF8. This way you don't have to convert the complete text each time. Marc _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] unicode lcl?
On Mon, 24 Apr 2006 09:07:55 +0200 Florian Klaempfl [EMAIL PROTECTED] wrote: Mattias Gaertner wrote: On Sun, 23 Apr 2006 23:10:58 +0330 roozbeh gholizadeh [EMAIL PROTECTED] wrote: Is there such a thing? and if not,any plans for this? First of all: 'unicode' is merely a table. The computer needs an encoding. The LCL supports UTF-8. So, yes, there is already a unicode LCL. Probably you want UTF-16 for wince. Maybe it's possible to use internally a type for unicode which is OS dependend. This requires a lot of code to be rewritten but it makes it possible to use native unicode type on platforms where utf-8 is uncommon. The .lfm files are a lesser problem. The strings will eventually be translated on the fly anyway. But what means internally? All public properties must have the same type on all platforms for 'Write once compile anywhere'. And it's not needed for say TEdit anyway, because drawing the new value costs much more, than the conversion. The only problem I see are the TStrings. Maybe someone can make some tests, how much overhead is created by the TStrings to UTF-16 conversion? Becouse while i was trying to make wince interfaces work,i see lots of convertion to unicode,and it really makes these interfaces slow,which bythe fact that all wince devices are rather slow,makes them inefficient. For example it is really pointless converting every tstrings to unicode when some actions to winceapi is required and so on. OTOH, using widestrings always is usually bloat. Even more considering that modern PDAs are clocked with 600 MHz having only 64 MB of RAM ... For TStrings the overhead is indeed high, although O(n). Do you have some ideas how to reduce the overhead? Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Re: unicode lcl?
On Sun, 23 Apr 2006 23:42:14 +0330, Mattias Gaertner [EMAIL PROTECTED] wrote: Is there such a thing? and if not,any plans for this? First of all: 'unicode' is merely a table. The computer needs an encoding. The LCL supports UTF-8. So, yes, there is already a unicode LCL. Probably you want UTF-16 for wince. Well i didnt get this? Delphi VCL also supports utf-8 and also utf-16 and utf-32 and utf-7 but it doesnt make it unicode vcl. check delphi newsgroup and see how peaple are demanding this for years.(and it seems to be ready in delphi 2007). All functions and procedures in lcl use ansistring,i dont think for label.caption := 'something' converting it from ansi to wide is always a good idea. I mean we have a lcl that label.caption is itself a property which reads and writes in widestring,also lazarus saves all strings in forms as unicode instead of ansi,thats the true unicode engine,just converting doesnt make sense,also with ansistring you can have just one local langauge,how can we have a label.caption which some part of its text is in russian,persian,english,japanese? this is only solved by true unicode lcl. Becouse while i was trying to make wince interfaces work,i see lots of convertion to unicode,and it really makes these interfaces slow,which by the fact that all wince devices are rather slow,makes them inefficient. For example it is really pointless converting every tstrings to unicode when some actions to winceapi is required and so on. For TStrings the overhead is indeed high, although O(n). Do you have some ideas how to reduce the overhead? Well i think creating a twidestring and twidestringlist is what we need. Also converting from unicode to ansi isnt what we can think as solution becouse in this conversion we lose datas!so it is not an approach,it's just pretending that we solved it. I have a unit which implements twidestring,and twidestringlist and also has a very decent speed,i think it is licensed under gpl,and i bet there are lots of other implementations that do this,maybe we can use them. roozbeh -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Re: unicode lcl?
roozbeh gholizadeh wrote: On Sun, 23 Apr 2006 23:42:14 +0330, Mattias Gaertner [EMAIL PROTECTED] wrote: Is there such a thing? and if not,any plans for this? First of all: 'unicode' is merely a table. The computer needs an encoding. The LCL supports UTF-8. So, yes, there is already a unicode LCL. Probably you want UTF-16 for wince. Well i didnt get this? utf-8 encoded unicode can be stored in ansistrings, that's the point and that's what the lcl does. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Installing packager
Installing it in another directory it works correctly. Thanks Jordi www.enotas.vip7.com 2006/4/21, Vincent Snijders [EMAIL PROTECTED]: ENotas editor de notas wrote: I have already proven to him, but it happens to me exactly the same Did you install in a new directory, i.e. not over (the remnants of ) anold installation?Vincent_To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subjectarchives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Lazarus in Google summer of code 2006 ?
Hello, I'm actually a student, and I'm interested in joining gsoc2006. As I'm also a lazarus' fan, i would like to know if you would be interested in becoming a mentor organization. Basically, mentor's review the student work throughout the summer, and receive 500$ if the project worked. More info can be found here : http://code.google.com/soc/mentorfaq.html If yes, what project would you like to see done for lazarus ? Would you be interested in a whole ressource editor intégrated into the ide or in a separate tool ? (icons/xpms/bmp/windows ressources/etc...) Lepidosteus _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Re: unicode lcl?
On Mon, 24 Apr 2006 10:43:28 +0330, Florian Klaempfl [EMAIL PROTECTED] wrote: Micha Nelissen wrote: Florian Klaempfl wrote: Mattias Gaertner wrote: First of all: 'unicode' is merely a table. The computer needs an encoding. The LCL supports UTF-8. So, yes, there is already a unicode LCL. Probably you want UTF-16 for wince. Maybe it's possible to use internally a type for unicode which is OS dependend. This requires a lot of code to be rewritten but it makes it possible to use native unicode type on platforms where utf-8 is uncommon. How to solve streaming of component text then (LFM etc) ? Well, data stored in files needs always conversion when working cross platform. So if using utf-8 is a case,you mean i return utf-8 data from tedit.text?or convert it to ansi? in this way how can user have an tedit with support for unicode? -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Re: unicode lcl?
On Mon, 24 Apr 2006 11:44:56 +0330 roozbeh gholizadeh [EMAIL PROTECTED] wrote: On Sun, 23 Apr 2006 23:42:14 +0330, Mattias Gaertner [EMAIL PROTECTED] wrote: Is there such a thing? and if not,any plans for this? First of all: 'unicode' is merely a table. The computer needs an encoding. The LCL supports UTF-8. So, yes, there is already a unicode LCL. Probably you want UTF-16 for wince. Well i didnt get this? Delphi VCL also supports utf-8 and also utf-16 and utf-32 and utf-7 but it doesnt make it unicode vcl. check delphi newsgroup and see how peaple are demanding this for years.(and it seems to be ready in delphi 2007). All functions and procedures in lcl use ansistring,i dont think for label.caption := 'something' converting it from ansi to wide is always a good idea. I mean we have a lcl that label.caption is itself a property which reads and writes in widestring,also lazarus saves all strings in forms as unicode instead of ansi,thats the true unicode engine,just converting doesnt make sense,also with ansistring you can have just one local langauge,how can we have a label.caption which some part of its text is in russian,persian,english,japanese? this is only solved by true unicode lcl. I still got the feeling, you think 'AnsiString' can not be UTF-8. More clear: UTF-8 is an 8bit encoding for the whole Unicode set. So russian, persian, english, japanese, arabic and klingon can be all in one UTF-8 AnsiString. Don't let you confuse by the pascal name 'AnsiString'. It is not Ansi, just 8-bit characters. About Delphi and newsgroups: Please take a closer look and tell concrete problems. The current unicode problems of the LCL are: - missing bidi in synedit (it has been started, but not finished) - many gtk1 fonts are non unicode fonts - many fonts are limited to a few languages. You have to search for fonts, that support russian, persian, english, japanese, arabic and chinese. - keyboard: This is not an unicode problem, but it relates: synedit does not translate special language keys. E.g. french accents. Becouse while i was trying to make wince interfaces work,i see lots of convertion to unicode,and it really makes these interfaces slow,which by the fact that all wince devices are rather slow,makes them inefficient. For example it is really pointless converting every tstrings to unicode when some actions to winceapi is required and so on. For TStrings the overhead is indeed high, although O(n). Do you have some ideas how to reduce the overhead? Well i think creating a twidestring and twidestringlist is what we need. Also converting from unicode to ansi isnt what we can think as solution becouse in this conversion we lose datas!so it is not an approach,it's just pretending that we solved it. We don't loose data. See the UTF-8 functions in the LCLProc unit. I have a unit which implements twidestring,and twidestringlist and also has a very decent speed,i think it is licensed under gpl,and i bet there are lots of other implementations that do this,maybe we can use them. GPL is not enough for the LCL. Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Lazarus in Google summer of code 2006 ?
On Mon, 24 Apr 2006, Lepidosteus wrote: Hello, I'm actually a student, and I'm interested in joining gsoc2006. As I'm also a lazarus' fan, i would like to know if you would be interested in becoming a mentor organization. Basically, mentor's review the student work throughout the summer, and receive 500$ if the project worked. More info can be found here : http://code.google.com/soc/mentorfaq.html We have already applied for mentorship. If yes, what project would you like to see done for lazarus ? Anything in the roadmap. Would you be interested in a whole ressource editor intégrated into the ide or in a separate tool ? (icons/xpms/bmp/windows ressources/etc...) I hope I speak for the whole Lazarus/FPC team when I say that as a separate tool, this would be great to have. The resource workshop from Colin Wilson could be adapted for this (he gave permission to the CrossFPC people), or you could make your own. Michael.
Re: [lazarus] Lazarus in Google summer of code 2006 ?
On 4/24/06, Michael Van Canneyt [EMAIL PROTECTED] wrote: On Mon, 24 Apr 2006, Lepidosteus wrote: Hello, I'm actually a student, and I'm interested in joining gsoc2006. As I'm also a lazarus' fan, i would like to know if you would be interested in becoming a mentor organization. Basically, mentor's review the student work throughout the summer, and receive 500$ if the project worked. More info can be found here : http://code.google.com/soc/mentorfaq.html We have already applied for mentorship. Do that mean you are one ? Or you are going to be one, or asked to be one, etc (i try to make up all my proposals before the starting date, and would like to know if i can spend a lot of time on this one) If yes, what project would you like to see done for lazarus ? Anything in the roadmap. Would you be interested in a whole ressource editor intégrated into the ide or in a separate tool ? (icons/xpms/bmp/windows ressources/etc...) I hope I speak for the whole Lazarus/FPC team when I say that as a separate tool, this would be great to have. Great ! Then supposing you get mentorship, you have my proposal The resource workshop from Colin Wilson could be adapted for this (he gave permission to the CrossFPC people), or you could make your own. I suppose i will do it on my own. Michael. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Lazarus in Google summer of code 2006 ?
On Mon, 24 Apr 2006, Lepidosteus wrote: On 4/24/06, Michael Van Canneyt [EMAIL PROTECTED] wrote: On Mon, 24 Apr 2006, Lepidosteus wrote: Hello, I'm actually a student, and I'm interested in joining gsoc2006. As I'm also a lazarus' fan, i would like to know if you would be interested in becoming a mentor organization. Basically, mentor's review the student work throughout the summer, and receive 500$ if the project worked. More info can be found here : http://code.google.com/soc/mentorfaq.html We have already applied for mentorship. Do that mean you are one ? Or you are going to be one, or asked to be one, etc (i try to make up all my proposals before the starting date, and would like to know if i can spend a lot of time on this one) We have asked to be one, but we did not get a reply yet. (the mail only left today) As soon as we know that mentorship was approved, I'm sure we'll contact the list and announce this. If yes, what project would you like to see done for lazarus ? Anything in the roadmap. Would you be interested in a whole ressource editor intégrated into the ide or in a separate tool ? (icons/xpms/bmp/windows ressources/etc...) I hope I speak for the whole Lazarus/FPC team when I say that as a separate tool, this would be great to have. Great ! Then supposing you get mentorship, you have my proposal We do :) The resource workshop from Colin Wilson could be adapted for this (he gave permission to the CrossFPC people), or you could make your own. I suppose i will do it on my own. That is how you prefer; Whatever makes the chances of success bigger is preferable :) Michael.
Re: [lazarus] Lazarus in Google summer of code 2006 ?
On Monday 24 April 2006 11:29, Michael Van Canneyt wrote: On Mon, 24 Apr 2006, Lepidosteus wrote: Hello, I'm actually a student, and I'm interested in joining gsoc2006. As I'm also a lazarus' fan, i would like to know if you would be interested in becoming a mentor organization. Basically, mentor's review the student work throughout the summer, and receive 500$ if the project worked. More info can be found here : http://code.google.com/soc/mentorfaq.html We have already applied for mentorship. If yes, what project would you like to see done for lazarus ? Anything in the roadmap. Would you be interested in a whole ressource editor intégrated into the ide or in a separate tool ? (icons/xpms/bmp/windows ressources/etc...) I hope I speak for the whole Lazarus/FPC team when I say that as a separate tool, this would be great to have. The resource workshop from Colin Wilson could be adapted for this (he gave permission to the CrossFPC people), or you could make your own. Michael. Although, a resource editor would be nice. I'd like to see QT and GTK2 completed first. John _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] reply on this mailing list
Hello, Something is wrong with the settings on this mailing list. I hit reply to thank some persons on a previous question of me and I got the mail myself direcly. so I checked the headers of the original mail I sent myself: From: Wilfried Mestdagh [EMAIL PROTECTED] Reply-To: Wilfried Mestdagh [EMAIL PROTECTED] To: lazarus@miraclec.com This means indeed that the reply go to the Reply-To: address instead of the mailing list. The Reply-to should be changed otherwise many people will have reply's in private mail instead of the mailing list. Or is there somthing I do miss ? -- rgds Wilfried http://www.mestdagh.biz _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Lazarus in Google summer of code 2006 ?
On 4/24/06, johnf [EMAIL PROTECTED] wrote: Although, a resource editor would be nice. I'd like to see QT and GTK2 completed first. Free software evolves when people stand up and help implement things. All contributions are welcome =) -- Felipe Monteiro de Carvalho _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] reply on this mailing list
On Mon, 24 Apr 2006 22:32:11 +0200 Wilfried Mestdagh [EMAIL PROTECTED] wrote: From: Wilfried Mestdagh [EMAIL PROTECTED] Reply-To: Wilfried Mestdagh [EMAIL PROTECTED] Yes, configure your mail application correctly. Micha _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Lazarus in Google summer of code 2006 ?
On Monday 24 April 2006 13:45, Felipe Monteiro de Carvalho wrote: On 4/24/06, johnf [EMAIL PROTECTED] wrote: Although, a resource editor would be nice. I'd like to see QT and GTK2 completed first. Free software evolves when people stand up and help implement things. All contributions are welcome =) -- Felipe Monteiro de Carvalho I'm learning as fast as I can. I'd love to help. But at this point I'm learning Linux, Pascal, and Lazarus. Small things still trip me up. Like yesterday I was looking at an enum and did not realize that is what it was. Kept right clicking for the def of the object only to be in the same place. Also I think the LCL is not explained very well. How about adding in comments - guys? John _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Passing a procedure as a parameter
I am trying to set up an event handler to be triggered by data appearing at a serial port by using AddEventHandler in LCLIntf. One of the paramters I need to pass is the procedure that is the event handler to be called. This is declared in AddEventHandler as AEventHandler: TWaitHandleEvent; and TWaitHandleEvent is declared as: TWaitHandleEvent = procedure(AData: PtrInt; AFlags: dword) of object; So I have my procedure procedure MyEventHandler(AData: PtrInt; AFlags: dWord); declared and defined. How do I pass it to AddEvent Handler. If I just pass its name I get a too many arguments error. Cheers Ian _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Passing a procedure as a parameter
On Mon, 24 Apr 2006 22:13:53 +0100 Ian bell [EMAIL PROTECTED] wrote: I am trying to set up an event handler to be triggered by data appearing at a serial port by using AddEventHandler in LCLIntf. One of the paramters I need to pass is the procedure that is the event handler to be called. This is declared in AddEventHandler as AEventHandler: TWaitHandleEvent; and TWaitHandleEvent is declared as: TWaitHandleEvent = procedure(AData: PtrInt; AFlags: dword) of object; So I have my procedure procedure MyEventHandler(AData: PtrInt; AFlags: dWord); declared and defined. How do I pass it to AddEvent Handler. If I just pass its name I get a too many arguments error. @MyEventHandle Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Lazarus in Google summer of code 2006 ?
On 4/24/06, johnf [EMAIL PROTECTED] wrote: On Monday 24 April 2006 13:45, Felipe Monteiro de Carvalho wrote: On 4/24/06, johnf [EMAIL PROTECTED] wrote: Although, a resource editor would be nice. I'd like to see QT and GTK2 completed first. The whole point of summer of code is to be able to finish the project. And let be honest, I never did such a backend, and don't think i can understand how it works and do it well in 2-3 months. You have the choice, either a bancal backend for QT, or a fully working resources editor. My choice is made. Free software evolves when people stand up and help implement things. All contributions are welcome =) And summer of code is great because it target students like me wich can do that instead of finding some 'random job' for the summer. -- Felipe Monteiro de Carvalho I'm learning as fast as I can. I'd love to help. But at this point I'm learning Linux, Pascal, and Lazarus. Small things still trip me up. Like yesterday I was looking at an enum and did not realize that is what it was. Kept right clicking for the def of the object only to be in the same place. Also I think the LCL is not explained very well. How about adding in comments - guys? John _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Identifier Completion problem
Using Lazarus 0.9.8 when I enter, for example, label1. instead of getting a list of possible completions I get a list of properties and functions followed by a series of vertical lines - and that's it. If I hover the mouse over any of the items a label appears saying dummy. Any ideas? Thanks. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Lazarus in Google summer of code 2006 ?
On Mon, 24 Apr 2006 14:14:48 -0700 johnf [EMAIL PROTECTED] wrote: On Monday 24 April 2006 13:45, Felipe Monteiro de Carvalho wrote: On 4/24/06, johnf [EMAIL PROTECTED] wrote: Although, a resource editor would be nice. I'd like to see QT and GTK2 completed first. Free software evolves when people stand up and help implement things. All contributions are welcome =) -- Felipe Monteiro de Carvalho I'm learning as fast as I can. I'd love to help. But at this point I'm learning Linux, Pascal, and Lazarus. Small things still trip me up. Like yesterday I was looking at an enum and did not realize that is what it was. Kept right clicking for the def of the object only to be in the same place. Also I think the LCL is not explained very well. How about adding in comments - guys? Sure. At the moment the help grows faster than the code. Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Identifier Completion problem
On Mon, 24 Apr 2006 22:19:06 +0100 piltdown [EMAIL PROTECTED] wrote: Using Lazarus 0.9.8 when I enter, for example, label1. instead of getting a list of possible completions I get a list of properties and functions followed by a series of vertical lines - and that's it. If I hover the mouse over any of the items a label appears saying dummy. Any ideas? No. Except that you should try a newer lazarus: 0.9.14. Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Identifier Completion problem
piltdown wrote: Using Lazarus 0.9.8 when I enter, for example, label1. instead of getting a list of possible completions I get a list of properties and functions followed by a series of vertical lines - and that's it. If I hover the mouse over any of the items a label appears saying dummy. How about Lazarus 0.9.14? Bram _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Passing a procedure as a parameter
Mattias Gaertner wrote: On Mon, 24 Apr 2006 22:13:53 +0100 Ian bell [EMAIL PROTECTED] wrote: I am trying to set up an event handler to be triggered by data appearing at a serial port by using AddEventHandler in LCLIntf. One of the paramters I need to pass is the procedure that is the event handler to be called. This is declared in AddEventHandler as AEventHandler: TWaitHandleEvent; and TWaitHandleEvent is declared as: TWaitHandleEvent = procedure(AData: PtrInt; AFlags: dword) of object; So I have my procedure procedure MyEventHandler(AData: PtrInt; AFlags: dWord); declared and defined. How do I pass it to AddEvent Handler. If I just pass its name I get a too many arguments error. @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 Ian _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Passing a procedure as a parameter
On Mon, 24 Apr 2006 22:56:43 +0100 Ian bell [EMAIL PROTECTED] wrote: 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 Your procedure needs to be part of a class. A method. Micha _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Passing a procedure as a parameter
@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 must be part of a class TSomeClass = class procedure Method1; end; var SomeClass1: TSomeClass; begin SomeClass1.create; // @SomeClass.Method1; --- use this SomeClass1.free; end. This happens when it expects procedure of object as opposed to a plain procedure or function not *of* an object. It is probably expecting this: TObjectProc = procedure(something: tsome) of object; versus a regular method: TRegularProc = procedure(something: tsome); _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] WEB-SERVICE
Hi folks, I want to know if have same solution to make a web-service with lazarus Like Delphi or have other solution to implement soap. Thanks, Cyro _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] ERRO
Hi folks, 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. Thanks. cyro Runtime error 210 at $00955d99 $00955d99 FPC_CHECK_OBJECT, line 468 of fpc/fpcbuild-2.0.2/fpcsrc/rtl/inc/generic.inc $008010c6 ZVARIANT_init line 1486 of src/core/ZVarian.pas (ZEUS) $0095290d fpc_initializeunits, line 593 of rtl/inc/system.inc $00401041 main, line 76 of lazarus.pp _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] find the username
Hi, How do I find the username? Getusername does not exist. On Linux. John _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives