[lazarus] Reading an ascii value from a keypress

2007-02-25 Thread Dave Coventry
Hi, I'm using a Tmemo onKeyUp event to catch keyboard input (I need to catch function keys as well). Is there a simple way to get the ascii value of a key pressed using this event? For example, if the user types a '(', then key=57 which is ascii for '9'. I know that I can test the shift

Re: [lazarus] Reading an ascii value from a keypress

2007-02-25 Thread Gerald Pöttler
Not sure what you are trying to achieve, but there is not always a ASCII code for every key: try the following on a form with a memo field: you will see that pressing 'A' and shift + 'A' will give you two different character codes, but the same key code, whereas F1 will not give you a character

Re: [lazarus] Patch: debugger breakpoints

2007-02-25 Thread Marc Weustink
Yury Sidorov wrote: Hi, Here is a patch: * Set debugger breakpoint on main/entry point using decimal number. It fixes executing application without debug info under gdb. I encountered problems at least with gdb 6.0 for win32 bundled with Lazarus. It dont accept pascal hexadecimal string

Re: [lazarus] Patch: Clearing listview selection

2007-02-25 Thread Marc Weustink
Yury Sidorov wrote: From: Marc Weustink [EMAIL PROTECTED] Yury Sidorov wrote: Hello, Here is a patch which clears listview selection when assigning nil to Selected: ListView1.Selected:=nil; It is Delphi compatible. Currently AV is thrown in this case. Thanks applied, r10678 Thanks.

[lazarus] Carbon interface: Wiki for cooperation on implementation

2007-02-25 Thread Tom Gregorovic
Hi, I have added roadmap, bugs and compatibility issues concerning Carbon interface implementation to Wiki page http://wiki.lazarus.freepascal.org/Carbon_interface_internals. Feel free to add your notes and write down on what are you working on Carbon interface. Tom Gregorovic

Re: [lazarus] [patch] IDE and Designer

2007-02-25 Thread Marc Weustink
Graeme Geldenhuys wrote: Hi, Attached is a archive containing two patches. One for the IDE directory and one for the Designer directory. Changes: --- [designer.patch] * Fixed the button order and size of the aligncompsdlg unit [ide.patch] * Fixes the anchor property of

Re: [lazarus] Reading an ascii value from a keypress

2007-02-25 Thread Dave Coventry
Many thanks; yes that's exactly what I want. So I use the Form1.FormKeyPress to get the ascii values of the Keypress and the FormKeyUp to catch the other values from the F-Keys, etc? Gerald Pöttler wrote: Not sure what you are trying to achieve, but there is not always a ASCII code for every

Re: [lazarus] Patch for TDBImage and TDBMemo

2007-02-25 Thread Marc Weustink
Joost van der Sluis wrote: Hi all, The attached patch actually implements TDBImage and solves a problem with TDBMemo when a dataset is closed. Beware, it'll only work with sqldb from fpc 2.1.1, or maybe wit ZEOS/tDbf. The patch solves bugs 1739 and 1477. thanks, applied, r10681 Marc

Re: [lazarus] Patch for TDBImage and TDBMemo

2007-02-25 Thread Marc Weustink
Marc Weustink wrote: Joost van der Sluis wrote: Hi all, The attached patch actually implements TDBImage and solves a problem with TDBMemo when a dataset is closed. Beware, it'll only work with sqldb from fpc 2.1.1, or maybe wit ZEOS/tDbf. The patch solves bugs 1739 and 1477. PS, can you

Re: [lazarus] Ideas to implement AllocateHwnd

2007-02-25 Thread ik
Hi, Both X and Windows support such actions. On X you can create a window that it's entire porpose is to have events. And as you mentioned, Windows also support such thing. On Windows there is a usage of AllocateHwnd in order to have events for things such as System Tray. But my X programming

Re: Ideas to implement AllocateHwnd

2007-02-25 Thread Felipe Monteiro de Carvalho
I started implementing this on LCLIntf, but I am having a lot of trouble with type declarations. AllocateHWnd needs a parameter of type TWndProc = procedure (var Message: TLMessage) of object; But TWndProc is declared on controls, and no basic lcl unit uses controls, and if i add controls on

Re: Ideas to implement AllocateHwnd

2007-02-25 Thread Felipe Monteiro de Carvalho
I decided to attach a patch so others can better understand what I am talking about. No need to apply it. -- Felipe Monteiro de Carvalho allocatehwnd.patch Description: Binary data

Re: Ideas to implement AllocateHwnd

2007-02-25 Thread Al Boldi
Felipe Monteiro de Carvalho wrote: I started implementing this on LCLIntf, but I am having a lot of trouble with type declarations. AllocateHWnd needs a parameter of type TWndProc = procedure (var Message: TLMessage) of object; But TWndProc is declared on controls, and no basic lcl unit uses

Re: Ideas to implement AllocateHwnd

2007-02-25 Thread Felipe Monteiro de Carvalho
On 2/25/07, Al Boldi [EMAIL PROTECTED] wrote: The usual way to break circular references, is to add them to the uses clause of the implementation section. Here it won't work because I use that type on the interface. Latter I will try vincent´s idea ... now going out to eat a Doner Kebap =)

RE: [lazarus] WikiHelp

2007-02-25 Thread Pieter Valentijn
I tried to compile with Lazarus 0.9.20 B but i get uMain.pas(447,71) Error: identifier idents no member TextContent I cant see this property in the XML node. What version do you use? I downloaded synapse to het the HTTP part working. From analizing the source I can see it's a language problem.

Re: Ideas to implement AllocateHwnd

2007-02-25 Thread Florian Klaempfl
Felipe Monteiro de Carvalho schrieb: On 2/25/07, Al Boldi [EMAIL PROTECTED] wrote: The usual way to break circular references, is to add them to the uses clause of the implementation section. Here it won't work because I use that type on the interface. Latter I will try vincent´s idea ...

RE: [lazarus] Delphi for PHP

2007-02-25 Thread Pieter Valentijn
Me to I hate PHP as I cant program in it like in Delphi. I link osFinancials with OSCommerce and Vtiger now so it would be great to be able to create addons in PHP without missing my code inside :-) I would love to get my hands on a trail version to. Met vriendelijke groet, Pieter Valentijn

RE: [lazarus] StrToDate error

2007-02-25 Thread Michael Van Canneyt
On Sun, 25 Feb 2007, Pieter Valentijn wrote: Should be easy. Function MyStrToDate(Astr : String) : TDateTime ; Begin Astr := StringReplace(Astr,'-',DateSeparator,[rfReplaceAll]); Astr := StringReplace(Astr,'/',DateSeparator,[rfReplaceAll]); result := StrTodate(Astr); End; This

Re: [lazarus] WikiHelp

2007-02-25 Thread Christian Ulrich
I tried to compile with Lazarus 0.9.20 B but i get uMain.pas(447,71) Error: identifier idents no member TextContent I cant see this property in the XML node. What version do you use? I use 0.9.21 most dayly actual svn and an own build fpc 2.1.1 mostly not older than an month ... Is there in

Re: [lazarus] MPL and Lazarus

2007-02-25 Thread Graeme Geldenhuys
As far as I know, the MPL and GPL is not compatible. Not sure how MPL compares against LGPL or Modified LGPL. A dual license will be needed to make it compatible with Lazarus. Graeme. On 2/24/07, Felipe Monteiro de Carvalho [EMAIL PROTECTED] wrote: Hello, I read on a old thread that MPL

Re: Ideas to implement AllocateHwnd

2007-02-25 Thread Sönmez Kartal
Hi, As I know, European people didn't know Döner and/or similar foods until Turkish people move there. Regards Florian Klaempfl wrote: Felipe Monteiro de Carvalho schrieb: On 2/25/07, Al Boldi [EMAIL PROTECTED] wrote: The usual way to break circular references, is to add them to the uses

RE: [lazarus] StrToDate error

2007-02-25 Thread Pieter Valentijn
:-0 Is it? I never know. I think it should come from the system locale. In that case this routine still works. I gess the hardest part is the MM-DD- against DD-MM-. I have seen that theres anly 3 combinations posible in Delphi. DD-MM- MM-DD- And -MM-DD Where - is anny date

Re: Ideas to implement AllocateHwnd

2007-02-25 Thread Felipe Monteiro de Carvalho
On 2/25/07, Vincent Snijders [EMAIL PROTECTED] wrote: I think you can fix this, by declaring TWndProc in LCLType and have in controls just Ummm ... almost. Then I cannot make the declaration on LCLType, because it doesn´t have LMessages on the uses clause, and it can´t have because LMessages

RE: [lazarus] WikiHelp

2007-02-25 Thread Pieter Valentijn
I tried iNode.NodeValue but its not what I need. I will have to get up to speed on the SVN pulling of Laz. Im working hard on the new interface for Stock items in OSF si I can get rid of this ttable components and speed up thing. Some people have 1+ items and are now waiting to long for the

RE: [lazarus] StrToDate error

2007-02-25 Thread Michael Van Canneyt
On Sun, 25 Feb 2007, Pieter Valentijn wrote: :-0 Is it? I never know. I think it should come from the system locale. It should, yes. In that case this routine still works. Normally, yes. I gess the hardest part is the MM-DD- against DD-MM-. I have seen that theres anly 3

Re: [lazarus] StrToDate error

2007-02-25 Thread Michael Van Canneyt
On Sun, 25 Feb 2007, Jeff Steinkamp wrote: And thus is the problem with trying to internationalize a software product where data, in text format, can be passed back and forth easily. The space character for a date separator is not part of the enumerated set. It is '-' or '/' for the short

Re: Ideas to implement AllocateHwnd

2007-02-25 Thread Felipe Monteiro de Carvalho
The best I managed to get so far, is only declaring TLCLWndMethod on InterfaceBase, and then using this same type on LCLIntf. -- Felipe Monteiro de Carvalho _ To unsubscribe: mail [EMAIL PROTECTED] with

RE: [lazarus] Delphi for PHP

2007-02-25 Thread nataraj narayan
Hi I use webERP for my organisation. This is in PHP. Is this project sort of embedding PHP code in Lazarus? I would prefer to code in Lazarus only, but sadly i need to jump to and fro now. regards Nataraj -- Original Message -- From: Pieter Valentijn

[lazarus] OT: Döner was Re: Ideas to implemen t AllocateHwnd

2007-02-25 Thread Florian Klaempfl
Sönmez Kartal schrieb: Hi, As I know, European people didn't know Döner and/or similar foods until Turkish people move there. From http://en.wikipedia.org/wiki/D%C3%B6ner_kebab Today, döner kebab is typically served as a kind of sandwich in pita (flat bread). This type of döner kebab has

Re: [lazarus] OT: Döner was Re: Ideas to implement AllocateHwnd

2007-02-25 Thread ali
Hi Döner and Lazarus People, Döner part of iskender and brand name http://www.kebapciiskender.com.tr/ in year 1867. M.Ali VARDAR Sönmez Kartal schrieb: Hi, As I know, European people didn't know Döner and/or similar foods until Turkish people move there. From