Re: [lazarus] Behavior of ContextMenu

2007-02-06 Thread Marc Weustink
Luiz Americo Pereira Camara wrote: Marc Weustink wrote: Luiz Americo Pereira Camara wrote: I fixed the double fire of MouseUp event when using right mouse button under win32. See http://www.freepascal.org/mantis/view.php?id=8276. But one issue remained. If the Shift-F10 key is used both

Re: [lazarus] Behavior of ContextMenu

2007-02-06 Thread Marc Weustink
Luiz Americo Pereira Camara wrote: Marc Weustink wrote: Luiz Americo Pereira Camara wrote: Marc Weustink wrote: Luiz Americo Pereira Camara wrote: I fixed the double fire of MouseUp event when using right mouse button under win32. See http://www.freepascal.org/mantis/view.php?id=8276

Re: [lazarus] Carbon Canvas implementation dilemma

2007-02-05 Thread Marc Weustink
Tom Gregorovic wrote: Hi, I think over how to implement canvas for Carbon interface. There are two possibilities to use: QuickDraw or Quartz 2D. I want to consult it with you. Here is the list of disadvantages, I have found: QuickDraw - DC of Carbon controls must use Window Port - deprecated

Re: [lazarus] TexOut incompability

2007-02-05 Thread Marc Weustink
Vincent Snijders wrote: Mattias Gaertner schreef: On Mon, 05 Feb 2007 11:36:13 +0100 Vincent Snijders [EMAIL PROTECTED] wrote: Павел Ишенин schreef: Hello. I found one incompability with TCanvas.TextOut method: 1) In Delphi TCanvas.TextOut calls Windows.ExtTextOut wich fills bachground

Re: [lazarus] TexOut incompability

2007-02-05 Thread Marc Weustink
Vincent Snijders wrote: Marc Weustink schreef: Vincent Snijders wrote: Mattias Gaertner schreef: On Mon, 05 Feb 2007 11:36:13 +0100 Vincent Snijders [EMAIL PROTECTED] wrote: Павел Ишенин schreef: Hello. I found one incompability with TCanvas.TextOut method: 1) In Delphi TCanvas.TextOut

Re: [lazarus] Behavior of ContextMenu

2007-02-05 Thread Marc Weustink
Luiz Americo Pereira Camara wrote: I fixed the double fire of MouseUp event when using right mouse button under win32. See http://www.freepascal.org/mantis/view.php?id=8276. But one issue remained. If the Shift-F10 key is used both events will be called: MouseUp and DoContextMenu. I can fix it

Re: [lazarus] Tray Icon implementation on Mac OS X

2007-01-31 Thread Marc Weustink
Felipe Monteiro de Carvalho wrote: Ummm ... maybe we could provide 2 implementations, chosen by a property? Thinking of it, isn't the dock comparable to the taskbar/quicklaunch ? So showing it there is already something the user decides. So I think the trayicon should be implemented as

Re: [lazarus] Tray Icon implementation on Mac OS X

2007-01-31 Thread Marc Weustink
Felipe Monteiro de Carvalho wrote: On 1/31/07, Marc Weustink [EMAIL PROTECTED] wrote: Thinking of it, isn't the dock comparable to the taskbar/quicklaunch ? So showing it there is already something the user decides. Yes, but we need to provide a menu for the Dock. Windows/Linux apps don´t

Re: [lazarus] Tray Icon implementation on Mac OS X

2007-01-30 Thread Marc Weustink
Felipe Monteiro de Carvalho wrote: Hello, We were having a discussion about trayicon implementation on mac os x, but I decided to move it here, so anyone interrested on Mac OS X can contribute. Basically what happens is that the Qt interface improved, so the last thing missing for me to

Re: [lazarus] Looking for experience using Lazarus in programming education

2007-01-29 Thread Marc Weustink
Felipe Monteiro de Carvalho wrote: Also, how to hide the cursor? On Windows just do a: Windows.ShowCursor(boolNewState); Now, for Gtk I tryed a lot, for weeks, but didn´t have much success. Even found code on the web ... but just doesn´t work on my PC. FYI, I've a patch waiting (need to fix

Re: [lazarus] TXMLDocument from string

2007-01-26 Thread Marc Weustink
Tiziano_mk wrote: Vincent Snijders wrote: Tiziano_mk schreef: Michael Van Canneyt wrote: beg pardon, but in what units/package is TXMLDocument defined? In my FPC2.0.4 or Lazarus 0.9.19 I found nothing about that. Search, Find in files, Search in directory c:\lazarus\fpc\2.0.4\source and

Re: [lazarus] TStringGrid to replace TListBox in Messages window

2007-01-20 Thread Marc Weustink
Graeme Geldenhuys wrote: On 1/18/07, Steven Graham [EMAIL PROTECTED] wrote: I wonder if maybe a TListView might be better? :-) We can't, the TListView doesn't support any custom drawing at the moment. I just went through that whole exercise in my own project and started using TStringGrid

Re: [lazarus] TStringGrid to replace TListBox in Messages window

2007-01-20 Thread Marc Weustink
Mattias Gaertner wrote: On Fri, 19 Jan 2007 09:48:10 +0200 Graeme Geldenhuys [EMAIL PROTECTED] wrote: Thanks Jesus, On 1/19/07, Jesus Reyes [EMAIL PROTECTED] wrote: Anybody know if the TStringGrid can make sure that the selected row is in view? Yes it can. Excellent! Can you give a

Re: [lazarus] TStringGrid to replace TListBox in Messages window

2007-01-20 Thread Marc Weustink
Mattias Gaertner wrote: On Sat, 20 Jan 2007 13:29:31 +0100 Vincent Snijders [EMAIL PROTECTED] wrote: Graeme Geldenhuys schreef: On 1/20/07, Mattias Gaertner [EMAIL PROTECTED] wrote: Well, we could use TTreeView. It has working BeginUpdate/EndUpdate. It needs 0.4 secs for adding 10.000

Re: [lazarus] Lazarus AMD64 version bug ?

2007-01-18 Thread Marc Weustink
Michael Van Canneyt wrote: Hello, Clicking the middle mouse button in the Lazarus editor window crashes the IDE with a 'Segmentation fault' if it's compiled for AMD64. The IDE just exits, and prints Segmentation fault on the terminal. The exact same sources, compiled for i386 work fine,

[lazarus] SVN Keyboardhandling update

2007-01-10 Thread Marc Weustink
Hi, r10422 contains improvements (I hope) in keyboard handling. In the past, when a key was pressed/released the generated virtual keycode was lookued up based on the character gtk reported for the keypress. A major problem were keyboards where the same character could be constructed by

Re: [lazarus] [lcl internals] - keyboard handling

2007-01-05 Thread Marc Weustink
Giulio Bernardi wrote: Uhm... sorry but I need to be more verbose than what I already am :) In short: virtual keycodes for mac do not exist. The articles you reported might be misleading. I'll explain. On Macs, there is not a raw scancode and a virtual keycode. Or better, if they are two

Re: [lazarus] [lcl internals] - keyboard handling

2007-01-05 Thread Marc Weustink
Giulio Bernardi wrote: Last lines of the listing in this page show it: http://developer.apple.com/qa/qa2005/qa1446.html However, instead of doing all this stuff, we can receive the unicode character asking for kEventParamKeyUnicodes parameter in kEventRawKeyDown/Repeat/Up event, and the

Re: [lazarus] [lcl internals] - keyboard handling

2007-01-03 Thread Marc Weustink
Giulio Bernardi wrote: Hi, even looking at sources of various interfaces, I cannot really understand how the interface should behave in respect to lcl when handling keyboard events. I'll try to clear some things. (and I'll speak for gtk since I recently dived into it) Let's look at

Re: [lazarus] Rebuilding IDE with sqlite3 support

2007-01-03 Thread Marc Weustink
Mattias Gaertner wrote: Yes, the IDE checks and changes the package output directory to ~/.lazarus/lib/packagename/$(TargetCPU)-$(TargetOS)/ Although I must admit, that I hardly use that feature, so it is not tested well. I've heard some complaints about writing compiled packages to ro dirs

Re: [lazarus] Can't type [] {} in code editor under linux

2006-12-30 Thread Marc Weustink
Michael Van Canneyt wrote: On Sat, 30 Dec 2006, Marc Weustink wrote: Michael Van Canneyt wrote: On Fri, 29 Dec 2006, Jesus Reyes wrote: Both thanks for reporting. I've made some keyboard routines more strict. In the old situation a random key could get reported. Did you fix the issue

Re: [lazarus] Can't type [] {} in code editor under linux

2006-12-30 Thread Marc Weustink
Michael Van Canneyt wrote: On Sat, 30 Dec 2006, Marc Weustink wrote: Michael Van Canneyt wrote: On Sat, 30 Dec 2006, Marc Weustink wrote: Michael Van Canneyt wrote: On Fri, 29 Dec 2006, Jesus Reyes wrote: Both thanks for reporting. I've made some keyboard routines more strict

Re: [lazarus] comunicate with gdb from lazarus?

2006-12-29 Thread Marc Weustink
roozbeh gholizadeh wrote: Is there a way to comunicate with gdb through custom commands from lazarus? for example manually set breakpoints at addresses and ...? Short answer: nope. Long answer: Lazarus needs exactly to know what messages are send to gdb so it know where the responses belong

Re: [lazarus] Project raised exception class 'External: SIGSEGV'

2006-12-29 Thread Marc Weustink
Dave Coventry wrote: Hi, I've declared a Global TBitmap (BufferBitMap) and instantiated it in the OnCreate method of my Form1. I've changed the size of BufferBitMap in the OnResize method of the Form1 and I get the following error: Project raised exception class 'External: SIGSEGV' Can

Re: [lazarus] Lazarus build fails ?

2006-12-28 Thread Marc Weustink
Marc Weustink wrote: Michael Van Canneyt wrote: Updated lazarus. Compiled. Everything seems to compile fine. But Lazarus fails to start: home: ./lazarus [FORMS.PP] ExceptionOccurred ... What can I do to fix this ? I just ran into it myself, it seems I forgot to add a check. I'm fixing

Re: [lazarus] Fullscreen?

2006-12-26 Thread Marc Weustink
Felipe Monteiro de Carvalho wrote: Maybe we should move SetWindowFullScreen to LCLIntf? Then someone could add implementations for non-gtk targets in the future. Maybe implement is as TForm.WindowState. Marc _ To

Re: [lazarus] Graphics32?

2006-12-26 Thread Marc Weustink
Fabio H Souza wrote: Which is the state of the conversion project of the Graphics32 for the Lazarus? Which project ? Marc Where I find the source already converted? How I can contribute in this project? I need this (Graphics32) to convert my Delphi application for the Lazarus...

Re: [lazarus] Listview related question

2006-12-22 Thread Marc Weustink
George Lober wrote: Hello List, I have seen some programs where the Listview column headers have a down arrow head glyph, which if you click on you get a drop-down list, like a ComboBox built into the header. A very useful function I think. Searching on the net with something like delphi

Re: [lazarus] Font names shown in the respective font

2006-12-13 Thread Marc Weustink
Mattias Gaertner wrote: On Mon, 11 Dec 2006 21:44:29 +0200 George Birbilis [EMAIL PROTECTED] wrote: Ignoring the font dialog since it's another thing (it has preview which covers the needs of the user a bit), the font name property editor (it shows a drop-down list, could show an owner-drawn

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

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: [lazarus] SelectDirectoryDialog on win64

2006-11-29 Thread Marc Weustink
Giulio Bernardi wrote: I'm answering both to Vincent and Marc in this mail: To Vincent: No luck with -gh and -dMSG_DEBUG :\. -gh is not reliable, since after windows exceptions, a lot of access violations occour, so a lot of data isn't deallocated because of exceptions being raised. Tracing

Re: [lazarus] TStaticText.TabOrder

2006-11-29 Thread Marc Weustink
Felipe Monteiro de Carvalho wrote: On 11/28/06, Marc Weustink [EMAIL PROTECTED] wrote: A statictext is a TWinControl descendant, it has a handle and can be focussed. If it can be focussed, it can have a tabstop and thus a taborder (maybe to focus a bound focuscontrol) Why would anyone want

Re: [lazarus] TStaticText.TabOrder

2006-11-29 Thread Marc Weustink
Felipe Monteiro de Carvalho wrote: On 11/28/06, Marc Weustink [EMAIL PROTECTED] wrote: Why someone would prefer to use a statictext instead of a TLabel, I don't know. From Delphi help: Description The TStaticText component functions like TLabel, except that it descends from TWinControl

Re: [lazarus] SelectDirectoryDialog on win64

2006-11-29 Thread Marc Weustink
Giulio Bernardi wrote: A complicating sideeffect on win64 is that executables(/dlls ?) can be called from within the WOW32 context. So multiply your story with WOW/nonWOW and we have more places where it can go wrong. AFAIK, it's not possible for a 64 bit binary to load 32 bit code. The two

Re: [lazarus] TStaticText.TabOrder

2006-11-29 Thread Marc Weustink
Vincent Snijders wrote: Felipe Monteiro de Carvalho schreef: On 11/29/06, Marc Weustink [EMAIL PROTECTED] wrote: Not publising it causes delphi incompatebilities. I just tested on Delphi, and the caption receives focus, but there is no visual indication that it has focus. A rather horrible

Re: GetFPImageReaderForFileExtension question for .jpg

2006-11-28 Thread Marc Weustink
Mattias Gaertner wrote: On Mon, 27 Nov 2006 23:36:03 +0100 (CET) Michael Van Canneyt [EMAIL PROTECTED] wrote: On Mon, 27 Nov 2006, Alexandre Leclerc wrote: 2006/11/27, Alexandre Leclerc [EMAIL PROTECTED]: Hi all, I don't know why but the function is returning no reader for .jpg. Do I need

Re: GetFPImageReaderForFileExtension question for .jpg

2006-11-28 Thread Marc Weustink
[EMAIL PROTECTED] wrote: Normally when using the package (jpegforlazarus or images4lazarus), the IDE adds the unit to program source and thus the lazjpeg unit is used. Now we are at the topic, last weekend I was demonstrating with a jpeg in a TPicture. When loading the image in the IDE, the

Re: GetFPImageReaderForFileExtension question for .jpg

2006-11-28 Thread Marc Weustink
[EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: Normally when using the package (jpegforlazarus or images4lazarus), the IDE adds the unit to program source and thus the lazjpeg unit is used. Now we are at the topic, last weekend I was demonstrating with a jpeg in a TPicture. When

Re: [lazarus] TStaticText.TabOrder

2006-11-28 Thread Marc Weustink
[EMAIL PROTECTED] wrote: Can somebody explain me, what is the puprose of having TStaticText.TabOrder? (and a tabstop I hope) A statictext is a TWinControl descendant, it has a handle and can be focussed. If it can be focussed, it can have a tabstop and thus a taborder (maybe to focus a bound

Re: [lazarus] win32 debugger crashes sqlite

2006-11-27 Thread Marc Weustink
Johannes Nohl wrote: Dear list, I'm using sqlite (Version 2) component (TSQliteDataset) within lazarus. My code ist like this: SQLiteDataset1.FileName := 'xy.db'; SQLiteDataset1.TableName := 'settings'; with SQLiteDataset1 do begin SQL := 'SELECT name, value FROM settings;'; Open; //

Re: [lazarus] Attaching TControl.Parent to an out of process window

2006-11-27 Thread Marc Weustink
Al Boldi wrote: Question: Using [ form2.parent:=form1; ] attaches form2 to form1 in-process. What is needed to attach TControl.Parent to an out of process window? What do you want to do ? Marc _ To unsubscribe: mail [EMAIL

Re: [lazarus] Attaching TControl.Parent to an out of process window

2006-11-27 Thread Marc Weustink
Al Boldi wrote: Marc Weustink wrote: Al Boldi wrote: Question: Using [ form2.parent:=form1; ] attaches form2 to form1 in-process. What is needed to attach TControl.Parent to an out of process window? What do you want to do ? Integrate two separate apps into one window. Personally I

Re: [lazarus] how to make and submit patch for lazarus on win

2006-11-23 Thread Marc Weustink
Graeme Geldenhuys wrote: On 11/22/06, Sergey Kamenskiy [EMAIL PROTECTED] wrote: I have problem. I don`t have regular direct internet, so i can`t use svn. I have some snapshot and my reworked version of it. may i use patch program to make patch for you? Sergey Kamenskiy. Sergey, I think they

[lazarus] Freepascal and Lazarus at the Dutch HCC dagen

2006-11-23 Thread Marc Weustink
Hi, Just to let you know that Freepascal and Lazarus are present at the Dutch HCC dagen the coming 3 days at the PascalGG stand. Marco, Joost and I will be there. CU, Marc Location (Dutch) http://www.delphigg.nl/Hcc/HalAlleStands.html

Re: [lazarus] fpGUI, fpGFX and fpIMG projects have moved

2006-11-19 Thread Marc Weustink
Al Boldi wrote: Felipe Monteiro de Carvalho wrote: On 11/19/06, Al Boldi [EMAIL PROTECTED] wrote: Great! You know, making things thread-safe is really not that difficult; what's important is to keep it in mind from the beginning, and avoid things like global vars/dependencies, which is a big

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

2006-11-19 Thread Marc Weustink
Felipe Monteiro de Carvalho wrote: I would like to suggest applying this patch as is and latter another patch which fixes the problem you pointed can be created, when a suitable fix is found. This patch doesn´t introduce the problem. no, but we keep it extending. Just remove all use of

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

2006-11-17 Thread Marc Weustink
Felipe Monteiro de Carvalho wrote: Hi, I am sending the patch to the mailling list just in case there is a need to discuss it. Now TForm.Caption, TEdit.Text and TButton.Caption should all work correctly with unicode. TLabel.Caption doesn´t work perfectly. It shows the text followed by some

Re: [lazarus] WinCE Patch

2006-11-16 Thread Marc Weustink
Christian Ulrich wrote: I will apply the TApplication part (because I don't have any problems with that and Marc looked at it too) and if Felipe says ok, I will the wince part too. ok, maybe i was a littli bit to nervous, but first time i send the patch 3 days nobody has reacted. as you know.

Re: [lazarus] WinCE Patch

2006-11-16 Thread Marc Weustink
Christian Ulrich wrote: Vincent wrote: I found a little time to look at this patch. First: I doubt the general usefulness of having the applicationtype as member of TApplicationProperties. TApplicationProperties are part of a from, which is created at its earliest *after* the call to

Re: Patch: AsyncCallQueue - queue is not called in good order

2006-11-16 Thread Marc Weustink
Alexandre Leclerc wrote: Who is responsible of maintaining TApplication? (For patch feedback/apply?) IIRC asynccallqueue was implemented by Micha. But, you don't have to bug devels in private. All devels read this list. Marc 2006/11/14, Alexandre Leclerc [EMAIL PROTECTED]: This patch

Re: [lazarus] More Unicode implementation details

2006-11-13 Thread Marc Weustink
Felipe Monteiro de Carvalho wrote: Hello, Here is my first patch. I checked that Window Titles work correct with UTF-8 if you recompile win32 with WindowsUnicodeSupport I also checked that titles work correctly with Ansi if you don?t set that define Marc, please review this. I

Re: [lazarus] WinCE Patch

2006-11-11 Thread Marc Weustink
Felipe Monteiro de Carvalho wrote: On 11/10/06, Christian Ulrich [EMAIL PROTECTED] wrote: Yes i agree. Can anyone implement this in twidgetset ? I will make an new implementation for wince interface. Vincent, Mark, Mattias, do you agree with this implementation? It should be trivial to add

Re: [lazarus] [PATCH] gtk2 listview images

2006-11-10 Thread Marc Weustink
Sebastian Kraft wrote: Am Sonntag, 5. November 2006 14:03 schrieb Sebastian Kraft: Hi, this patch should correct gtk2wscustomlistview.inc so that listview now shows images from an imagelist. What about this? Has anyone looked into. Not yet If there's something wrong with it please

Re: [lazarus] new qt patches

2006-11-10 Thread Marc Weustink
zeljko wrote: I have to resend this mail (sended this morning) because it seem that qt mailing list doesn't work. Anyway here is LCL qt update. QT ppl, whats the status of this one ? Marc _ To unsubscribe: mail [EMAIL

Re: [lazarus] 0.9.20 released

2006-11-09 Thread Marc Weustink
Søren Ager wrote: On 2006-11-09 08:59, Mattias Gaertner wrote: I downloaded and installed the .deb (on top of 0.9.18) - but is still says 0.9.18 in the caption and about? Cosmetic bug or wrong version? Did you download an install the lazarus_0.9.20-0_i386.deb? I will double check. Yes I did

Re: [lazarus] WinCE Patch

2006-11-09 Thread Marc Weustink
Vincent Snijders wrote: Felipe Monteiro de Carvalho schreef: Just to complete: Since PocketPC and smartphones are more popular then HandheldPC I would propose that the default be having no (or few) window styles, and you can set a define if you want HandheldPC mode. Why not use a property

Re: [lazarus] 0.9.20 released

2006-11-08 Thread Marc Weustink
Vincent Snijders wrote: Alexandre Leclerc schreef: 2006/11/8, Mattias Gaertner [EMAIL PROTECTED]: The Lazarus team is glad to announce the 0.9.20 release. This release is based on fpc 2.0.4. I can't get the debugger to work (i.e. stop on break points). Is it a known issue? I don't have

Re: [lazarus] More Unicode implementation details

2006-10-31 Thread Marc Weustink
Vincent Snijders wrote: Felipe Monteiro de Carvalho schreef: Hello, Here is my first patch. I checked that Window Titles work correct with UTF-8 if you recompile win32 with WindowsUnicodeSupport I also checked that titles work correctly with Ansi if you don´t set that define Marc, please

Re: [lazarus] More Unicode implementation details

2006-10-31 Thread Marc Weustink
Felipe Monteiro de Carvalho wrote: On 10/31/06, *Marc Weustink* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: For a start I thinkk the patch looks OK If you guys want to apply with ifdefs, you can use the patch already sent. I'll talk to Vincent first. Maybe he has some cons I

Re: [lazarus] Lazarus and DOT Net

2006-10-30 Thread Marc Weustink
George Birbilis wrote: If we could have Lazarus support many compilers via plugin packages, it would be cool, cause one could create wrappers for both Chrome and Borland's Object Pascal compilers for .NET You more or less already can. Go to the compiler options, last tab. Change the Compiler

Re: [lazarus] rookie problem: exception class 'External: SIGSEGV

2006-10-29 Thread Marc Weustink
Hugo wrote: Felipe Monteiro de Carvalho wrote: On 10/28/06, Hugo [EMAIL PROTECTED] wrote: Do i have to uninstall GTK No How do I know what environment Lazarus is using? Thanks I think we can be sure it´s using win32 and the problem isn´t GTK. Can you start Lazarus from the command line

Re: [lazarus] lazarus 0.9.18 on Mandriva 2007

2006-10-29 Thread Marc Weustink
Vincent Snijders wrote: Felipe Monteiro de Carvalho schreef: On 10/28/06, Mattias Gaertner [EMAIL PROTECTED] wrote: This might sound, as if switching the default interface for unix from gtk1 to gtk2 depends on the Win32 UTF-8 support. This is wrong. The devels are already using gtk1 with

Re: [lazarus] ActiveX component

2006-10-29 Thread Marc Weustink
Mattias Gaertner wrote: Is there an ActiveX component for lazarus or can someone create one for the fpc units? Ehm... shouldn't we wait with those wasps after we have released 1.0 ? Marc _ To unsubscribe: mail [EMAIL

Re: [lazarus] Windows Unicode implementation proposal

2006-10-28 Thread Marc Weustink
Felipe Monteiro de Carvalho wrote: On 10/27/06, Marc Weustink [EMAIL PROTECTED] wrote: WideSize := Utf8ToUnicode(nil, ButtonCaption, 0); WideText := GetMem(WideSize * 2); Are you sure about the 2 here ? I wouldn't rely on that. As I wrote in another mail, Utf8ToUnicode should return

Re: [lazarus] Windows Unicode implementation proposal

2006-10-27 Thread Marc Weustink
Felipe Monteiro de Carvalho wrote: Hello, I would like to create some official guidelines about how to implement unicode support for win32 interface, so volunteers can base on those to implement it and we get a uniform work. And I think that a good example to create a guideline is by an

Re: [lazarus] Problem with UTF8 in ubuntu 6.06

2006-10-26 Thread Marc Weustink
Graeme Geldenhuys wrote: Just curious.. In the FAQ it says: This warning message indicates that your locale enconding is set to utf-8. If you are using Gtk 1 this can be a serious problem and prevent the correct working of Lazarus or software created with Lazarus. The serious problem is that

Re: [lazarus] error messages while starting lazarus

2006-10-26 Thread Marc Weustink
Graeme Geldenhuys wrote: I followed the FAQ to set the locale without the .UTF-8 as I use Lazarus with Gtk1. Here is the content of the start script. - export LC_CTYPE=en_ZA export LANG=en_ZA export LANGUAGE=en_ZA /opt/lazarus/startlazarus - This is

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

2006-10-20 Thread Marc Weustink
Graeme Geldenhuys wrote: Thanks Marc, It was a real informative explanation, and helped a lot. Now lets see if I understood it correctly. :-) AnsiStrings are 1 byte wide and WideStrings are 2 byte wide. Fixed. The delphi WideStrings are the same as used by MS in their Wide functions, being

Re: [lazarus] Windows Unicode strategy

2006-10-20 Thread Marc Weustink
Felipe Monteiro de Carvalho wrote: On 10/15/06, Borut Maricic [EMAIL PROTECTED] E, I´m sorry to say but I can immediatly see that your code breaks Win98 support for the ANSI version of win32 widgetset. Osss. It seams that me and Marc were very wrong!! Simply using Wide functions

Re: [lazarus] Windows Unicode strategy

2006-10-20 Thread Marc Weustink
Felipe Monteiro de Carvalho wrote: On 10/20/06, Marc Weustink [EMAIL PROTECTED] wrote: In fact, the Wide functions exist under any Win9x OS. I know what I saw, so I'm not to sure about that statement. But the important thing is that they exist, even if empty on win 95, so you don't need

Re: [lazarus] Lazarus and DOT Net

2006-10-17 Thread Marc Weustink
Nataraj S Narayan wrote: Hi Why is it that every body and anything got a Dot Net version? Since it is a hype. And the general idea is, if you don't follow it now you may miss the future Even Borland's got a dot net enabled Delphi coming it seems. Some say that Microsoft got Dot net idea

Re: [lazarus] Windows Unicode strategy

2006-10-16 Thread Marc Weustink
Borut Maricic wrote: All Unicode related code must remain under IFDEFs, not contaminating the ANSI version of Win32 widgetset because Unicode code is experimental, and we are approaching 1.0, and if we don´t isolate it, we may break Win32 interface, or delay 1.0 by introducing bugs. (Like the

Re: [lazarus] Windows Unicode strategy

2006-10-16 Thread Marc Weustink
Felipe Monteiro de Carvalho wrote: On 10/16/06, Marc Weustink [EMAIL PROTECTED] wrote: IMO there are 2 ways to solve this: 1) make 2 separate widgetstes. Im' not really pro this since it is hard to maintain and causes a lot of duplicate code. We don't want the same ifdef mess we have with gtk1

Re: [lazarus] Windows Unicode strategy

2006-10-16 Thread Marc Weustink
Felipe Monteiro de Carvalho wrote: On 10/16/06, Marc Weustink [EMAIL PROTECTED] wrote: No, on windows they work with ansi, on linux it it is just what is specified a s LANG. No conversion is made. But if you consider that the IDE won't run correctly on linux with utf-8, in reality we only

Re: [lazarus] window handles

2006-10-15 Thread Marc Weustink
Graeme Geldenhuys wrote: On 14/10/06, Marc Weustink [EMAIL PROTECTED] wrote: Personally I would go for a handle per widget (but I like native controls). Uh? painting is clipped for childs.. messages are passed the handle.. enable/disable are handled (disabled wil receive no messages

Re: [lazarus] window handles

2006-10-14 Thread Marc Weustink
Graeme Geldenhuys wrote: Hi, This is not directly related to Lazarus, but thought the developers here know widget sets, so might be able to answer this. In fpGUI, I create one window handle per form (window) and is shared by all widgets on that form. LPTK (another widget set written in

Re: [lazarus] TSplitter or TPairSplitter

2006-10-10 Thread Marc Weustink
Mattias Gaertner wrote: On Mon, 9 Oct 2006 11:56:34 +0200 Sebastian Kraft [EMAIL PROTECTED] wrote: Hello... Which one should I use? TSplitter or TPairsplitter? I like the look and feel of TPairsplitter but as far as I know it is only a temporary replacement for TSplitter and doesn't work

Re: [lazarus] TSplitter or TPairSplitter

2006-10-10 Thread Marc Weustink
Sebastian Kraft wrote: Thanks... I worked a bit on the DrawSplitter function. I finally got the style I was looking for. Here's a screenshot: http://www.hey-you-freaks.de/splitter4.png If you like this style too, i may try to implement a option in object inspector that allows to choose one of

Re: [lazarus] TSplitter or TPairSplitter

2006-10-10 Thread Marc Weustink
Sebastian Kraft wrote: Am Dienstag, 10. Oktober 2006 11:12 schrieb Marc Weustink: Sebastian Kraft wrote: Thanks... I worked a bit on the DrawSplitter function. I finally got the style I was looking for. Here's a screenshot: http://www.hey-you-freaks.de/splitter4.png If you like this style

Re: [lazarus] How not to break on handled exceptions?

2006-10-10 Thread Marc Weustink
Alexandre Leclerc wrote: Hi all, I added exceptions for the debuger to ignore them because I handle them... and it works great. Now if the exception is not handled, will the debugger break (this is what I want)? If fact, is there a way to tell the debugger that if an exception is handled (try

Re: [lazarus] TSplitter or TPairSplitter

2006-10-10 Thread Marc Weustink
Mattias Gaertner wrote: On Tue, 10 Oct 2006 15:48:57 +0200 Marc Weustink [EMAIL PROTECTED] wrote: Sebastian Kraft wrote: Am Dienstag, 10. Oktober 2006 11:12 schrieb Marc Weustink: Sebastian Kraft wrote: Thanks... I worked a bit on the DrawSplitter function. I finally got the style I

Re: [lazarus] Confused by component arrays

2006-10-05 Thread Marc Weustink
Felipe Monteiro de Carvalho wrote: Hello, I was implementing TMenu for Qt, when I got a little confused by component arrays. On the file menu.inc I see this: procedure TMenu.CreateHandle; var i: integer; begin FItems.Handle := TWSMenuClass(WidgetSetClass).CreateHandle(Self); // initiate

Re: [lazarus] Need ideas: Visual Form inheritance

2006-10-05 Thread Marc Weustink
Mattias Gaertner wrote: On Wed, 04 Oct 2006 13:38:03 +0200 Marc Weustink [EMAIL PROTECTED] wrote: Mattias Gaertner wrote: On Wed, 04 Oct 2006 12:46:27 +0200 Marc Weustink [EMAIL PROTECTED] wrote: Mattias Gaertner wrote: On Wed, 04 Oct 2006 11:29:51 +0200 Marc Weustink [EMAIL PROTECTED

Re: [lazarus] Need ideas: Visual Form inheritance

2006-10-05 Thread Marc Weustink
Mattias Gaertner wrote: On Thu, 05 Oct 2006 10:45:25 +0200 Marc Weustink [EMAIL PROTECTED] wrote: [...] Modified needs to be modified :) procedure Modified; begin SendBeginModificationToAllBeginEndObeservers; SendModifiedNotificationToAllModifiedObeservers

Re: [lazarus] Need ideas: Visual Form inheritance

2006-10-04 Thread Marc Weustink
Mattias Gaertner wrote: On Wed, 04 Oct 2006 11:29:51 +0200 Marc Weustink [EMAIL PROTECTED] wrote: Mattias Gaertner wrote: On Wed, 4 Oct 2006 09:27:03 +0200 Graeme Geldenhuys [EMAIL PROTECTED] wrote: Changing a property can change various others as well. For example changing the Width can

Re: [lazarus] Need ideas: Visual Form inheritance

2006-10-04 Thread Marc Weustink
Mattias Gaertner wrote: On Wed, 04 Oct 2006 12:46:27 +0200 Marc Weustink [EMAIL PROTECTED] wrote: Mattias Gaertner wrote: On Wed, 04 Oct 2006 11:29:51 +0200 Marc Weustink [EMAIL PROTECTED] wrote: Mattias Gaertner wrote: On Wed, 4 Oct 2006 09:27:03 +0200 Graeme Geldenhuys [EMAIL PROTECTED

Re: [lazarus] LCL Message

2006-10-02 Thread Marc Weustink
Felipe Monteiro de Carvalho wrote: On 10/1/06, Marc Weustink [EMAIL PROTECTED] wrote: When a user clicks on the ListBox once, holds down the button pushed and changes the selected item, many OnClick events are generated. The same if he uses the keyboard to change the selected item. Yes

Re: [lazarus] LCL Message

2006-10-02 Thread Marc Weustink
Felipe Monteiro de Carvalho wrote: On 10/2/06, Marc Weustink [EMAIL PROTECTED] wrote: Depending on the key (not just anykay), maybe yes. For instance a enter on a button generates a click. That´s a good point. I tested this on delphi and you get the click when you release the button. If we

Re: [lazarus] Need ideas: Visual Form inheritance

2006-10-02 Thread Marc Weustink
Graeme Geldenhuys wrote: To add to that, I suggested to Mattias using something like the Observer pattern, but I find it difficult to see how we could trigger the Notify event of the Subject (ancestor form), with so many places that the ancestor form can be modified form. So this might not be

Re: [lazarus] LCL Message

2006-10-02 Thread Marc Weustink
Felipe Monteiro de Carvalho wrote: On 10/2/06, Marc Weustink [EMAIL PROTECTED] wrote: Don't think so. It's maybe a limitation of the implementation for Qt, but for GTK we had the same problem. There we also track the mousebuttons to see if they were pressed. If so then click, otherwise

Re: [lazarus] LCL Message

2006-10-01 Thread Marc Weustink
Luis R. Hilario B. wrote: LM_SELCHANGE send OnSelectionChange and next OnClick, but not only in Qt also in GTK. Bug or feature? partly. Delphi send an onclick if the selction changes by a user event. We try to be compatible with that. AFAIK, a OnSelectionChange is sent always. Marc

Re: [lazarus] LCL Message

2006-10-01 Thread Marc Weustink
Felipe Monteiro de Carvalho wrote: On 10/1/06, Marc Weustink [EMAIL PROTECTED] wrote: Delphi send an onclick if the selction changes by a user event. Is there a reason why this is like that} AFAIK, a OnSelectionChange is sent always. So how can our widgetset tell LCL only to send

Re: [lazarus] LCL Message

2006-10-01 Thread Marc Weustink
Felipe Monteiro de Carvalho wrote: On 10/1/06, Luis R. Hilario B. [EMAIL PROTECTED] wrote: But I agree not to change that, because Qtwidgetset should work the same as Gtkwidgetset, etc., although be an error. Somewhere I read that Wine emulated windows bug by bug. It seams to me that we

Re: [lazarus] New Version of Lazarus (FPC 2.0.4)

2006-09-28 Thread Marc Weustink
Bisma Jayadi wrote: Is v.0.9.18 based on FPC 2.0.4? Yes. Why there's no official news or press release about 0.9.18? I found this new version after I visit Lazarus download link, but I can't find any news regarding this on the Lazarus main page. The start of this thread: Mattias Gaertner

Re: Lazarus bug report

2006-09-28 Thread Marc Weustink
Christian Ulrich wrote: Marc Weustink wrote: Christian Ulrich wrote: and maybe an forum integrated as in freepascal site, but thats no main task i think. Why do you think moving the forum is easy ? Marc I donsend have sayed thats easy to move the forum but registering dont work

Re: [lazarus] avoiding multi-instance detection

2006-09-28 Thread Marc Weustink
Graeme Geldenhuys wrote: On 28/09/06, John vd Waeter [EMAIL PROTECTED] wrote: Problem when program crashes. File is not deleted. Maybe refresh file every 5 minutes or so, put a timestamp in it. If timestamp older then 5 minutes, program appearantly crashed, new instance may start. John

Re: Lazarus bug report

2006-09-27 Thread Marc Weustink
Christian Ulrich wrote: and maybe an forum integrated as in freepascal site, but thats no main task i think. Why do you think moving the forum is easy ? Marc _ To unsubscribe: mail [EMAIL PROTECTED] with

Re: [lazarus] new translations

2006-09-26 Thread Marc Weustink
Vincent Snijders wrote: A.J. Venter schreef: Why not just *.af.po? Are there other (incompatible) version of Afrikaans besides af_ZA? Surprizingly yes :) There are six official af locales: af_ZA af_NA (Using N$ as currency for example) af_BW (Currency BWP - uses French-style date writing)

<    1   2   3   4   5   6   >