Re: [lazarus] Adding AllowFractionalPositioning to TCarbonDeviceContext

2007-11-04 Thread Colin Western
Felipe Monteiro de Carvalho wrote: Hi, I don't understand the issue. The Screen cannot display fractional character positions anyway, so why would this make any difference? There is a rather nice demo of how to do exactly that at:

Re: [lazarus] Win32 Version Information - .res file format

2006-11-29 Thread Colin Western
Lepidosteus wrote: On 11/29/06, Jouke Rensma <[EMAIL PROTECTED]> wrote: Just to save time (and effort :-) ) I was wondering if somebody around here maybe has a detailed description of the .res file format? http://lepidosteus.com/upload/1164827240_res32fmt.zip I don't even remember where I go

Re: GetFPImageReaderForFileExtension question for .jpg

2006-11-27 Thread Colin Western
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 to register a special class or do anything special? {$IFDEF UseSimpleJpeg} Add('jpg', 'Joint Picture Expert Group',TJpegImage); {

[lazarus] Suggested changes to help interface

2006-09-02 Thread Colin Western
The attached patch contains two possible changes to the help interface: 1. The URL handling is made more general, so that anchors (?) are handled as well as parameters (#). 2. Some changes to the method of searching for the html viewer: a. add firefox to the list b. add a specific location f

Re: [lazarus] can't compile FPC as of 05/26/06

2006-05-27 Thread Colin Western
Mattias Gaertner wrote: On Sat, 27 May 2006 11:07:01 +0100 Colin Western <[EMAIL PROTECTED]> wrote: johnf wrote: xpath.pp(1226,32) Error: function header doesn't match the forward declaration "class TXPathNodeSetVariable.TypeName:AnsiString" That has just been fix

[lazarus] exec-shield problems

2006-05-17 Thread Colin Western
I am encountering problems on Fedora Core 5, in that lazarus crashes on displaying some design time forms. The problem seems to be in the JITForms.pp the code arounf line 920: CodeTemplate:=MethodAddress('DoNothing'); CodeSize:=100; // !!! what is the real codesize of DoNothing? !!! GetMe

[lazarus] Combobox patch

2006-05-14 Thread Colin Western
I think OnChange should be triggered for a combo box when the selection changes - I certainly have several forms that rely on this. The attached patch should match the Delphi behavior Colin diff -wuNr lazarus/lcl/include/customcombobox.inc /dos/fpc/lazarus.w/lcl/include/customcombobox.inc --- la

Re: [lazarus] TApplication.HandleException

2006-05-08 Thread Colin Western
Mattias Gaertner wrote: On Sun, 07 May 2006 11:18:33 +0100 Colin Western <[EMAIL PROTECTED]> wrote: Can I suggest the following patch, which makes it easier to customize the Exception handling behavior (I only sometimes want a back trace) The backtrace must be written before, other

[lazarus] TApplication.HandleException

2006-05-07 Thread Colin Western
Can I suggest the following patch, which makes it easier to customize the Exception handling behavior (I only sometimes want a back trace) Colin diff -uNr lazarus/lcl/include/application.inc /dos/fpc/lazarus.w/lcl/include/application.inc --- lazarus/lcl/include/application.inc 2006-04-29 09:58:5

[lazarus] CustomEdit fixes

2006-05-07 Thread Colin Western
Two small fixes for CustomEdit: 1. After SetSelText, the cursor is left at the end of the new text 2. Setting the selection start on gtk1 cancels the selection which I believe are both the Delphi behaviour Colin diff -uNr lazarus/lcl/include/customedit.inc /dos/fpc/lazarus.w/lcl/include/customedit

Re: [lazarus] some questions about Lazarus

2006-05-04 Thread Colin Western
Felipe Monteiro de Carvalho wrote: On 5/3/06, dR <[EMAIL PROTECTED]> wrote: Hello, I have some questions about Lazarus. What is the status of drag-and-drop functionality? Is anyone working on it, and do you need help? I think noone is working on it and it needs to be implemented. Any help wou

[lazarus] Designer

2006-05-03 Thread Colin Western
The form designer crashes for me (under gtk1) if I try and use the Ctrl/Shift and arrows keys for moving controls. The attached patch fixes the problem for me. I am not sure if it is a bug in the gtk Key handling, but LM_KEYDOWN messages are never delivered to the designer if there is an edit c

[lazarus] TTreeNodes.Item

2006-04-30 Thread Colin Western
Delphi has TTreeNodes.Item[], but the LCL has TTreeNodes.Items[]. The attached patch changes this. Colin diff -uNr lazarus/ideintf/listviewpropedit.pp /dos/fpc/lazarus.w/ideintf/listviewpropedit.pp --- lazarus/ideintf/listviewpropedit.pp 2006-01-29 12:01:27.0 + +++ /dos/fpc/lazarus.w/

Re: [lazarus] Grids fixes

2006-03-05 Thread Colin Western
Jesus Reyes wrote: --- Colin Western <[EMAIL PROTECTED]> escribió: The attached fixes two problems I noticed that were exposed with a small display area for a grid: 1. A range check error if compiled with checks on I couldn't reproduce this problem (in linux) how

[lazarus] Menu fix

2006-03-04 Thread Colin Western
Under gtk1 on linux it is not possible to have an underscore character displayed. The attached patch fixes this Colin diff -uNr lazarus/lcl/interfaces/gtk/gtkproc.inc /dos/fpc/lazarus.w/lcl/interfaces/gtk/gtkproc.inc --- lazarus/lcl/interfaces/gtk/gtkproc.inc 2006-03-04 11:04:49.0 +

[lazarus] Grids fixes

2006-03-04 Thread Colin Western
The attached fixes two problems I noticed that were exposed with a small display area for a grid: 1. A range check error if compiled with checks on 2. A hang on scrolling two a particular cell if it is not possible to show all of the cell Colin diff -uNr lazarus/lcl/grids.pas /dos/fpc/lazarus

lazarus@miraclec.com

2006-01-05 Thread Colin Western
dannym wrote: Hi, Am Dienstag, den 03.01.2006, 22:17 + schrieb C Western: You might be interested in the attached fragment, which I posted to the mailing list a while back. It simulates the windows file Drag and drop calls using gtk calls. I would supply a patch to put it in the LCL, o

Re: [lazarus] Visual Form Inheritence

2005-11-24 Thread Colin Western
Mattias Gaertner wrote: On Thu, 24 Nov 2005 08:44:08 +0200 Graeme Geldenhuys <[EMAIL PROTECTED]> wrote: Hi What are the plans/roadmap for this feature? Probably not in 1.0. Is anybody working on this? Colin Western started some features. You can use ine

Re: [lazarus] Imagelist

2005-11-06 Thread Colin Western
Mattias Gaertner wrote: On Sun, 06 Nov 2005 10:14:17 + Colin Western <[EMAIL PROTECTED]> wrote: The attached patch fixes some imagelist problems I have found. With this applied I can use a form with imagelist taken from Delphi on gtk. Thanks. Applied. Thanks, bu

[lazarus] Imagelist

2005-11-06 Thread Colin Western
The attached patch fixes some imagelist problems I have found. With this applied I can use a form with imagelist taken from Delphi on gtk. Colin diff -uNr lazarus/ideintf/menuintf.pas /dos/fpc/lazarus.w/ideintf/menuintf.pas --- lazarus/ideintf/menuintf.pas 2005-10-06 22:08:04.0 +0100 +++

Re: [lazarus] Inherited forms

2005-11-06 Thread Colin Western
Mattias Gaertner wrote: On Sat, 05 Nov 2005 18:32:57 + Colin Western <[EMAIL PROTECTED]> wrote: [...] Is the attached anything like right for forcing the ancestor form to load? It works on the one form I tried... Well, it will work sometimes because of shee

Re: [lazarus] Inherited forms

2005-11-05 Thread Colin Western
Mattias Gaertner wrote: On Sat, 05 Nov 2005 12:32:22 + Colin Western <[EMAIL PROTECTED]> wrote: Mattias Gaertner wrote: On Sat, 05 Nov 2005 11:33:47 + Colin Western <[EMAIL PROTECTED]> wrote: To improve this I need the lfm files for the super class fo

Re: [lazarus] Inherited forms

2005-11-05 Thread Colin Western
Mattias Gaertner wrote: On Sat, 05 Nov 2005 11:33:47 + Colin Western <[EMAIL PROTECTED]> wrote: I attach a patch that provides some of the pieces needed to work with inherited forms. With the patch applied an inherited form will load without error, though the lfm file will be

Re: [lazarus] Inherited forms

2005-11-05 Thread Colin Western
Mattias Gaertner wrote: On Sat, 05 Nov 2005 11:33:47 + Colin Western <[EMAIL PROTECTED]> wrote: To improve this I need the lfm files for the super class form, but I am not sure how to get hold of them. 1. The IDE must find the uses clause in the unit. 2. Find all these un

[lazarus] Inherited forms

2005-11-05 Thread Colin Western
I attach a patch that provides some of the pieces needed to work with inherited forms. With the patch applied an inherited form will load without error, though the lfm file will be loaded as a text file, rather than display as a form. To improve this I need the lfm files for the super class for

[lazarus] Xinerama

2005-11-05 Thread Colin Western
I attach a patch to the Xinerama support in gtk1. Some recent changes had meant it no longer compiled as is, and I have added a choice between static and dynamic linking. I can get either to work on my Linux system, but neither seem to work on MAC OSX, but that seems to be a limitation of the A

Re: [lazarus] Messages in Windows

2005-08-29 Thread Colin Western
Michael Van Canneyt wrote: On Mon, 29 Aug 2005, Colin Western wrote: I think that on Linux/unix you should use the X windows message passing, so that you can talk between programs running on different machines. I have had a stab at this in the past, and I attach a draft version. Though not

Re: [lazarus] Messages in Windows

2005-08-29 Thread Colin Western
In windows, it's relatively easy: - Create a window handle with name appname_apphandle. (can be reduced to simply appname if only one instance will be running, see the thread about single instances for my suggestion about that) - Use this handle to send a message to with WM_COPY. On linu