Re: [lazarus] TXMLDocument help

2006-12-04 Thread Michael Van Canneyt
On Sun, 3 Dec 2006, Lee wrote: Hi, I am trying to get up to speed with the TXMLDocument object and it seems pretty straight forward. However, I am having a problem retrieving the text value of a node. Given the following simple xml: ?xml version=1.0 encoding=utf-8? settings

Re: [lazarus] Evaluate/Modify in Lazarus

2006-12-04 Thread Marc Weustink
luis filipe romao rodrigues wrote: Hello, I just started to use Lazarus. In delphi i could evalute ItemListBox.itemindex but in lazarus I get A parse error in expression, near `itemindex'. Is it possible to evalute object properties? I also tried ItemListBox^.itemindex. Debugging is

Re: [lazarus] [Patch] One more Lazarus Unicode Patch

2006-12-04 Thread Marc Weustink
Felipe Monteiro de Carvalho wrote: Reminder. Was the patch applied? I took a quick look and think not. Thanks for reminding me. Somehow I thought there was still a question open, but after rereading the tread it wasn't. I'll apply tonight. Marc

[lazarus] [patch] - IDE button order

2006-12-04 Thread Graeme Geldenhuys
Hi, Attached is another patch fixing a few more dialogs button orders (OK, Cancel buttons). Patch needs to be applied from the root Lazarus directory. Changes: * HelpManager dialog * Debug Options dialog * Help Options dialog Again Lazarus reordered a lot of properties, so the patch is bigger

Re: [lazarus] [patch] - IDE button order

2006-12-04 Thread Mattias Gaertner
On Mon, 4 Dec 2006 12:01:27 +0200 Graeme Geldenhuys [EMAIL PROTECTED] wrote: Hi, Attached is another patch fixing a few more dialogs button orders (OK, Cancel buttons). Patch needs to be applied from the root Lazarus directory. Changes: * HelpManager dialog * Debug Options dialog

Re: [lazarus] running preprocessor from lazarus

2006-12-04 Thread lazarus . mramirez
Quoting Michael Van Canneyt [EMAIL PROTECTED]: The problem is not so easy: the fpc commandline has only the project file on it. a simple pre-compile command without additional IDE functionality. A potential solution is that instead of calling the commandline fpc, he uses its own fpc

Re: [lazarus] Gambas

2006-12-04 Thread Al Boldi
Graeme Geldenhuys wrote: But still, your examples are great; can you give some links? Iterator, Visitor, Composite, Factory Method, Singleton and many more... Mediator and Observer: Code for tiOPF: http://sourceforge.net/projects/tiopf Model-GUI-Mediator code: As above, but in

Re: [lazarus] Gambas

2006-12-04 Thread Graeme Geldenhuys
On 12/4/06, Al Boldi [EMAIL PROTECTED] wrote: here is that the abstraction is pattern driven, which leads to a rigid structure bound by the pattern chosen. I guess the idea here is to push coders into a framework that forces them to abstract, much the same way Maybe we read the code

Re: [lazarus] Gambas

2006-12-04 Thread Cesar Romero
Do you know of any such framework? There are not many other publicly available OPF frameworks written in Object Pascal. http://code.google.com/p/jazz-sdk/source www.liws.com.br/wiki/English.php []s Cesar Romero _ To

[lazarus] Writing on Windows/Compiling on Linux

2006-12-04 Thread Lee
Hi all, If I'm writing my code on Windows and want to compile it on linux are there are other specifications I should be aware of other than what is listed here?: http://wiki.lazarus.freepascal.org/Cross_compiling I opened the lpi file for my project in notepad and noticed that it used

Re: [lazarus] [Patch] One more Lazarus Unicode Patch

2006-12-04 Thread Marc Weustink
Felipe Monteiro de Carvalho wrote: Reminder. Was the patch applied? I took a quick look and think not. Applied, r10296 Thanks. I've added some code to handle strings withgout null terminator passed to DrawText, ExtTextOut, GetTextExtentPoint (one cannot assign them to a string) However this

Re: SPAM-LOW: [lazarus] Writing on Windows/Compiling on Linux

2006-12-04 Thread Lee
Lee wrote: Hi all, If I'm writing my code on Windows and want to compile it on linux are there are other specifications I should be aware of other than what is listed here?: http://wiki.lazarus.freepascal.org/Cross_compiling I opened the lpi file for my project in notepad and noticed that

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

2006-12-04 Thread Tony Pelton
On 12/4/06, Lee [EMAIL PROTECTED] wrote: Michael Van Canneyt wrote: On Sun, 3 Dec 2006, Lee wrote: I've only used a couple of XML DOM/Libraries and each seems to work differently than this although its probably just semantics. fwiw, i've done quite a bit of XML work over the years in Java

Re: [lazarus] TXMLDocument help

2006-12-04 Thread Bisma Jayadi
The following code fails to print the values (NodeValue) to the console: var Doc: TXMLDocument; Node1, Node2: TDOMNode; i: Integer Begin Doc := TXMLDocument.create; if (FileExists('sys_info.xml')) then XMLREAD.ReadXMLFile(Doc, 'sys_info.xml'); Node1 := Doc.DocumentElement.FindNode('login');

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

2006-12-04 Thread Adrian Maier
On 12/5/06, Tony Pelton [EMAIL PROTECTED] wrote: On 12/4/06, Lee [EMAIL PROTECTED] wrote: Michael Van Canneyt wrote: On Sun, 3 Dec 2006, Lee wrote: I've only used a couple of XML DOM/Libraries and each seems to work differently than this although its probably just semantics. fwiw, i've