Re: [Lazarus] OOP basics - 2

2010-04-14 Thread Marco Alvarado
Just an idea. It would be useful to have something like PHP's include_once, but with the functionality of "uses". For example, instead of inserting the whole content of the included file, it could break it at interface and implementation keywords, and insert each block in the corresponding sections

Re: [Lazarus] This project needs help

2010-03-09 Thread Marco Alvarado
I took the same decision as Graeme after Delphi 7 was dead, then tried C++... nah, tried C#... nah, tried Actionscript... well, this one gave me some money, but nah, it's horrible to work with it and see what non-programmers do with it; so I returned years later and decided to continue my projects

Re: [Lazarus] Problems with accented characters

2010-03-07 Thread Marco Alvarado
> You have some example to replace the text in real time using this package? Sorry, I don't have an example like that, but the example listed on the page seems simple enough: s := TUTF8Scanner.Create(Memo1.text); s.FindChars := 'öäü'; repeat case s.FindIndex(s.Next) of {ö} 0: s.Replace('oe

Re: [Lazarus] Problems with accented characters

2010-03-07 Thread Marco Alvarado
Hello Silvio! > On Sun, Mar 7, 2010 at 7:29 PM, Silvio Clecio wrote: >> I'm trying to create a function to replace accented characters by single >> characters, e.g: Try the UTF8-Tools units: http://wiki.lazarus.freepascal.org/Theodp At the end of the page there is an example "Case demo" on rep

Re: [Lazarus] off-topic RSA-SHA1

2010-02-24 Thread Marco Alvarado
Hello! In this page you can find a lot of good sources: http://www.efg2.com/Lab/Library/Delphi/MathFunctions/Cryptography.htm Regards! -Marco 2010/2/24 "Arí Ricardo Ody" : > I know that this matter is totally out of topic but I'm really in trouble. > > I'm needing to generate RSA-SHA1 hash co

Re: [Lazarus] Compiling out debugln() calls

2010-01-19 Thread Marco Alvarado
Hello Brad, I'm also interested on this, and would like to contribute with some thoughts. First, I have tried to remove all the debugln() and similar calls from the LCL, but it's a lot of work manually... it's not as simple as recursive search and replace. I have found that removing a few of them

Re: [Lazarus] LCL and DLLs, initializing the widget set safely?

2009-12-09 Thread Marco Alvarado
Ok, I made one last test to load designed forms and works too. Here is the whole experiment for you guys to check (660KB): http://gamelix.com/demos/lazarus/nplugin/nplugin.7z The original Delphi 7 component by Andrei N. Kashin is there, my fixes are in directories prueba/ and prueba_lfm/ To test

Re: [Lazarus] LCL and DLLs, initializing the widget set safely?

2009-12-09 Thread Marco Alvarado
ound. Lazarus rules!! -Marco 2009/12/9 Mattias Gaertner : > On Wed, 9 Dec 2009 09:33:32 +0100 > "Gerard N/A" wrote: > >> On Tue, Dec 8, 2009 at 11:39 PM, Marco Alvarado >> wrote: >> > I'm really happy to inform that I solved the bug, and now I have a &g

Re: [Lazarus] LCL and DLLs, initializing the widget set safely?

2009-12-08 Thread Marco Alvarado
I'm really happy to inform that I solved the bug, and now I have a working version of LCL 0.9.28.2 in DLL. It seems the fix might not be difficult for someone who understands the LCL's internals. I'll explain what I did hoping someone could work on it. Somehow an instance of TApplication is being

[Lazarus] LCL and DLLs, initializing the widget set safely?

2009-12-08 Thread Marco Alvarado
I'm trying to create a dll with an LCL form, and found that is not working. After looking around I found several posts that say LCL is not working in DLL, like: http://www.mail-archive.com/laza...@miraclec.com/msg16490.html I traced down the problem, and it seems the widget set is not being initia

[Lazarus] How to add custom fields to Version Info resource section?

2009-12-06 Thread Marco Alvarado
Hello! I need to add a few custom fields to my application's version info. On Lazarus 0.9.29 beta, I tried doing it with Project > Project Options... > Version Information, but there is no way to add custom fields. Then I tried modifing the .rc file, like: 1 VERSIONINFO FILEVERSION 0,0,0,0 PRODU

[Lazarus] Problem with OpenGLContext's mouse events

2009-11-25 Thread Marco Alvarado
Hello! I'm making an application for MacOS X and Windows that uses OpenGLContext. The 3D rendering is working perfectly in both platforms, my problem is with the mouse events in Mac. For example, whenever I click on the window, OnMouseDown is triggered only the first time. If I keep clicking, it