Re: [SPAM] Re: [lazarus] madelbrot benchmark much faster

2008-01-03 Thread Sergei Gorelkin
willem wrote: 1 IF we take the mandelbrot paramet N = 5000 then Calculatepoint will be called 2500 times. andCalculatePoint pushes x*Step - 1.5,Cy on the stack. then it executes the statements of CalculatePoint and finally it pops a boolean from the stack. It does not do any push's and pop

Re: [lazarus] XML Config

2007-12-22 Thread Sergei Gorelkin
Igor Pokorny wrote: Thanks, it realy works. I am probably too old to understand such constructions, it's over of my imagination. I was certain objects in programming mirror the real world. Such construction is like to get married and to select a wife after a marriage. Strange In real world,

Re: [lazarus] Program Execute

2007-11-24 Thread Sergei Gorelkin
SteveG wrote: Anybody know of a way to use TProcess to call the default program in WinXP ? - eg call for test.pdf to be opened, and it opens it with Acrobat (or currently assigned program). I know that ShellExecute manages this, but trying to keep everything cross platform. Under Windows, y

Re: [lazarus] Dll Sync

2007-10-25 Thread Sergei Gorelkin
). If your application contains threading and LCL access, please try to provide a more complete example. Otherwise it is hard to guess what is going wrong. Sergei Sergei Gorelkin wrote: SteveG wrote: Could anyone tell me why the following code fails within a dll? Worked ok with Laz 9.14

Re: [lazarus] Dll Sync

2007-10-25 Thread Sergei Gorelkin
SteveG wrote: Could anyone tell me why the following code fails within a dll? Worked ok with Laz 9.14, but no longer with Laz 9.23 (WindowsXP) The same code works fine out of the dll - seems to want to sync with LCL thread I guess? > Access Violation at the 'doc.Appendchild(N);' line > > var

Re: [lazarus] lazxml #text nodes

2007-08-18 Thread Sergei Gorelkin
Marco van de Voort wrote: The question was more (since I'm not to deep into XML), if there was a true notation to linearise this. IOW if some character is used to signal nodevalue, or simply #text or so. You might want to use XPath mechanism, it probably supports the notations to distinguish

Re: [lazarus] TCustomForm.CreateNew

2007-08-03 Thread Sergei Gorelkin
Graeme Geldenhuys wrote: On 03/08/07, Graeme Geldenhuys <[EMAIL PROTECTED]> wrote: On 03/08/07, Christian Budde <[EMAIL PROTECTED]> wrote: constructor TCustomForm.CreateNew(AOwner: TComponent; Num : Integer); can anyone here explain me why it is there and what it stands for? Right now I don'

Re: [lazarus] Form designer code inside .pas unit

2007-07-23 Thread Sergei Gorelkin
Michael Van Canneyt wrote: On Mon, 23 Jul 2007, Sergei Gorelkin wrote: Michael Van Canneyt wrote: On Mon, 23 Jul 2007, Graeme Geldenhuys wrote: On 23/07/07, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: The .lfm file is not code. It's a resource, which you can replace at runt

Re: [lazarus] Form designer code inside .pas unit

2007-07-23 Thread Sergei Gorelkin
Michael Van Canneyt wrote: On Mon, 23 Jul 2007, Graeme Geldenhuys wrote: On 23/07/07, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: The .lfm file is not code. It's a resource, which you can replace at runtime. OK, I understand the resource part. It's components that have been streamed to a

Re: [lazarus] Working with XML: crosscompatibility

2007-06-30 Thread Sergei Gorelkin
issues - the Widestring-based reader is somewhat slower than current AnsiString-based. Nevertheless, if anyone is interested in incorporating these changes into Lazarus, I will send the patch. Best regards, Sergei Gorelkin _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives

Re: [lazarus] RTF backend for FPDoc.

2007-05-16 Thread Sergei Gorelkin
Wednesday, May 16, 2007, 3:12:36 PM, Michael wrote: >> Since fpDoc is able to produce nice html output, it can be used >> directly as chm source - without touching RTF at all. MVC> Yes, that would be the better way, of course. Hopefully .CHM understands MVC> style files, then... CHM is just an a

Re: [lazarus] RTF backend for FPDoc.

2007-05-16 Thread Sergei Gorelkin
Wednesday, May 16, 2007, 11:22:16 AM, Michael wrote: >> >> As far as I know chm files are html not rtf. MVC> Yes, but they must/can be generated by the microsoft help compiler from MVC> the same RTF source. .hlp is also a compiled format, with RTF as the source. It isn't exactly this way. The c

Re: [lazarus] New name for the win32 widget set?

2007-04-18 Thread Sergei Gorelkin
Wednesday, April 18, 2007, 6:05:19 PM, Graeme wrote: GG> On 4/18/07, Florian Klaempfl <[EMAIL PROTECTED]> wrote: >> >> Is it really gdi only? I guess you use at least gdi+ >> GDI sounds also some old fashined to me. >> GG> I'm no low level Windows expert, but isn't GDI+ only Win2000 (or was GG> t

Re: [lazarus] New name for the win32 widget set?

2007-04-18 Thread Sergei Gorelkin
Wednesday, April 18, 2007, 1:26:42 PM, Vincent wrote: VS> The only one I can think of is just "win", but that might be a bit short. 'win' is not shorter than 'gtk', and even 33% longer than 'qt' :-) Maybe 'mswin'? Or 'msw', like wxWidgets abbreviate Windows stuff. -- Best regards, Sergei ___

Re: [lazarus] Doing the Delphi 6 Text Editor Tutorial in Lazarus?

2007-04-05 Thread Sergei Gorelkin
Thursday, April 05, 2007, 1:55:29 PM, Marc wrote: MW> Tom Verhoeff wrote: >> I have some students who are trying to complete the Delphi 6 >> Text Editor tutorial using Lazarus. See e.g. Chapter 4 of >> >> >> >> They run into some problems.

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

2007-04-03 Thread Sergei Gorelkin
Tuesday, April 03, 2007, 10:43:50 AM, Graeme wrote: GG> Have a look at the fpGUI website. Those screenshots are a bit old, GG> but will give you a good idea. GG> Half those screenshots show the Windows 9x theme (under Linux), the GG> other half show the GFX backend doing painting. GG> http://o

Re: [lazarus] How to create or modify a .res file

2007-03-18 Thread Sergei Gorelkin
Saturday, March 17, 2007, 10:34:15 PM, Felipe wrote: >> and how I can modify an exist one FMdC> I think this is not possible. To modify a .res file you need to alter FMdC> it´s .rc source file and recompile it, which overwrites the old .res FMdC> file. .res files can be decompiled back into .rc

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

2007-03-06 Thread Sergei Gorelkin
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: >>> >>> aStyle := gtk

Re: [lazarus] LazDoc inside IDE escapes and tags

2007-02-22 Thread Sergei Gorelkin
Thursday, February 22, 2007, 11:07:19 AM, Graeme wrote: GG> Hi, GG> I thought I would try using the LazDoc editor which is built into the GG> IDE (not standalone lazde). Off the bat it seems to work really well, GG> but then I built my documentation to html. GG> All my "see also" links, the ta

Re: LazDoc or fpdoc issue

2007-02-13 Thread Sergei Gorelkin
Tuesday, February 13, 2007, 8:02:13 PM, Graeme wrote: GG> On 2/13/07, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: >> > Isn't such a check built into the xml or dom units so we could rather use >> > that? >> > A isEmptyElement() would be a handy function. :-) >> >> I'm sure it would be, remains

Re: [lazarus] PopUp Menu behavior on TTrayIcon

2007-01-30 Thread Sergei Gorelkin
Tuesday, January 30, 2007, 10:52:55 AM, Vincent wrote: VS> I see no problem with dragging: You drag with the left mouse button down, a popup VS> occurs when you do a right mouse click. Dragging with right mouse button may also be useful - in cases when application has several dragging options. A

Re: [lazarus] PopUp Menu behavior on TTrayIcon

2007-01-29 Thread Sergei Gorelkin
Tuesday, January 30, 2007, 4:17:38 AM, Felipe wrote: FMdC> I don't know what originates the problem ... probably something deep FMdC> into gtk 2 interface. I also noticed on lazarus apps the popup is FMdC> generally activated on MouseUp, and on general linux software FMdC> MouseDown seams to be ch

[lazarus] [patch] LCL TControl.HelpContext and HelpKeyword handling

2007-01-04 Thread Sergei Gorelkin
Hello, The attached patch corrects the behaviour of TControl.HelpContext and TControl.HelpKeyword handling: 1. When setting HelpKeyword or HelpContext properties, HelpType is automatically set to htKeyword or htContext accordingly. This corresponds to Delphi behavior and saves a couple of clicks

Re[2]: [lazarus] Project WiX opensource - make MSI from XML

2006-12-18 Thread Sergei Gorelkin
Monday, December 18, 2006, 7:20:37 PM, Marco van de Voort wrote: > What's the advantage of a .msi over a normal setup program? Well, certain features of msi are of course useful: - it is integrated into system and 'knows' about all software that it had installed and about its dependencies (like r

Re[2]: SPAM-LOW: [lazarus] TXMLDocument help

2006-12-06 Thread Sergei Gorelkin
Tuesday, December 05, 2006, 6:27:36 PM, Lee wrote: L> Thanks for the great feedback everyone. I noticed that the wiki does in L> fact show the "Delphi way" of accessing a node's text which kind of L> threw me off. I propose to add the following to the wiki under L> "Networking" under the Basic

Re[2]: [lazarus] Password hashing function

2006-11-24 Thread Sergei Gorelkin
Friday, November 24, 2006, 12:36:35 PM, Bram wrote: BK> A.J. Venter wrote: >> That seemed to work fine - except it turns out that MD5 is even LESS >> reliable >> than I thought, at least on small data. >> I had a bug report (and confirmed it) that you can log into anybody's >> account >> if y

[lazarus] How to substitute TBitmap.ScanLine?

2006-11-09 Thread Sergei Gorelkin
Hello, I have a procedure like this: procedure PaintIntoMemory(aWidth, aHeight, rowstride: Integer; aMemory: Pointer); It 'paints' some stuff into memory block described by its arguments, treating memory as RGB bitmap. Then, I want to draw the result on TCanvas. In Delphi, it is quite simp

Re[2]: [lazarus] More Unicode implementation details

2006-10-31 Thread Sergei Gorelkin
Tuesday, October 31, 2006, 8:33:40 PM, Felipe wrote: FMdC> Hey guys, I´m having trouble with basic unicode windows functions. FMdC> I created a very simple demo app that just creates an window. My FMdC> objective is to see a correct title on the window that should be FMdC> "fpGFX Window" FMdC> I

Re[4]: [lazarus] Windows Unicode implementation proposal

2006-10-27 Thread Sergei Gorelkin
Hello Felipe, Friday, October 27, 2006, 5:00:16 PM, Felipe wrote: FMdC> Proposal to unicode it: FMdC> function TGDIWindow.GetTitle: String; FMdC> var FMdC> l: Integer; FMdC> AnsiBuffer: array of Char; FMdC> WideBuffer: array of WideChar; FMdC> begin FMdC> if UnicodeEnabledOS then FMdC>

Re[2]: [lazarus] Windows Unicode implementation proposal

2006-10-27 Thread Sergei Gorelkin
Friday, October 27, 2006, 2:40:06 PM, Felipe wrote: FMdC> On 10/27/06, Sergei Gorelkin <[EMAIL PROTECTED]> wrote: >> Second, this particular API function - GetTextExtentPoint32() - can be >> used unconditionally with 'W' suffix, even on Windows9x. So this >>

Re: [lazarus] Windows Unicode implementation proposal

2006-10-27 Thread Sergei Gorelkin
Friday, October 27, 2006, 4:48:21 AM, Felipe wrote: FMdC> Hello, FMdC> I would like to create some official guidelines about how to implement FMdC> unicode support for win32 interface, so volunteers can base on those FMdC> to implement it and we get a uniform work. And I think that a good FMdC> e

Re[2]: [lazarus] UTF-8 vs Unicode - Could someone explain?

2006-10-20 Thread Sergei Gorelkin
Graeme Geldenhuys wrote: GG> Now this brings me to another point which makes no sense! Naming GG> convertion of functions. GG> Lets look at the following RTL function as an example: GG> * StrPos is used for 1 byte (8 bit) ANSI strings. GG> * AnsiStrPos is used for multi-byte (or is that 2 bytes