Re: [lazarus] Another icons for Lazarus

2007-11-04 Thread Paul Ishenin
wile64 пишет: 2007/10/26, Felipe Monteiro de Carvalho [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: I was taking a look at the TTrayIcon icon, and its barely visible under Windows Vista. Maybe a new TTrayIcon icon could be made =P please thanks, -- Felipe Monteiro de

[lazarus] Proposing a new TCanvas property such as AllowFractionalPositioning

2007-11-04 Thread Tobias Giesen
Hello, after considering everything I believe that we need a new property in TCanvas. Custom controls that can't work with fractional positioning would have to set the property to false after the canvas is created. By default it would be true. Does that sound good? Should I do it? I don't think

Re: [lazarus] Proposing a new TCanvas property such as AllowFractionalPositioning

2007-11-04 Thread Mattias Gaertner
On Sun, 04 Nov 2007 10:03:07 +0100 Tobias Giesen [EMAIL PROTECTED] wrote: Hello, after considering everything I believe that we need a new property in TCanvas. Custom controls that can't work with fractional positioning would have to set the property to false after the canvas is created.

Re: [lazarus] Proposing a new TCanvas property such as AllowFractionalPositioning

2007-11-04 Thread Tobias Giesen
AFAIK other widgetsets have fractionals too and you don't need a parameter. OK then we'll call the new property AllowCarbonFractionalPositioning - either implement scale factors for TCanvas - or add TextOut/TextExtent/... functions with floats to TCanvas. Sounds like long-term solutions ...

Re: [lazarus] Proposing a new TCanvas property such as AllowFractionalPositioning

2007-11-04 Thread Mattias Gaertner
On Sun, 04 Nov 2007 12:04:08 +0100 Tobias Giesen [EMAIL PROTECTED] wrote: AFAIK other widgetsets have fractionals too and you don't need a parameter. OK then we'll call the new property AllowCarbonFractionalPositioning - either implement scale factors for TCanvas - or add

Re: [lazarus] Proposing a new TCanvas property such as AllowFractionalPositioning

2007-11-04 Thread Michael Van Canneyt
On Sun, 4 Nov 2007, Tobias Giesen wrote: AFAIK other widgetsets have fractionals too and you don't need a parameter. OK then we'll call the new property AllowCarbonFractionalPositioning - either implement scale factors for TCanvas - or add TextOut/TextExtent/... functions with

Re: [lazarus] Proposing a new TCanvas property such as AllowFractionalPositioning

2007-11-04 Thread Mattias Gaertner
On Sun, 4 Nov 2007 12:46:29 +0100 (CET) Michael Van Canneyt [EMAIL PROTECTED] wrote: On Sun, 4 Nov 2007, Tobias Giesen wrote: AFAIK other widgetsets have fractionals too and you don't need a parameter. OK then we'll call the new property AllowCarbonFractionalPositioning

Re: [lazarus] Proposing a new TCanvas property such as AllowFractionalPositioning

2007-11-04 Thread Michael Van Canneyt
On Sun, 4 Nov 2007, Mattias Gaertner wrote: On Sun, 4 Nov 2007 12:46:29 +0100 (CET) Michael Van Canneyt [EMAIL PROTECTED] wrote: On Sun, 4 Nov 2007, Tobias Giesen wrote: AFAIK other widgetsets have fractionals too and you don't need a parameter. OK then we'll call

Re: [lazarus] Proposing a new TCanvas property such as AllowFractionalPositioning

2007-11-04 Thread Mattias Gaertner
On Sun, 4 Nov 2007 13:33:06 +0100 (CET) Michael Van Canneyt [EMAIL PROTECTED] wrote: On Sun, 4 Nov 2007, Mattias Gaertner wrote: On Sun, 4 Nov 2007 12:46:29 +0100 (CET) Michael Van Canneyt [EMAIL PROTECTED] wrote: On Sun, 4 Nov 2007, Tobias Giesen wrote: AFAIK

Re: [lazarus] Proposing a new TCanvas property such as AllowFractionalPositioning

2007-11-04 Thread Tobias Giesen
a new property could make everybody happy _today_. And everybody unhappy in the future because it is very ad-hoc Not necessarily. If we make it general and generally useful, it can be quite a good thing. So I agree, the word Carbon should not appear in the property name.

Re: [lazarus] Proposing a new TCanvas property such as AllowFractionalPositioning

2007-11-04 Thread Michael Van Canneyt
On Sun, 4 Nov 2007, Mattias Gaertner wrote: On Sun, 4 Nov 2007 13:33:06 +0100 (CET) Michael Van Canneyt [EMAIL PROTECTED] wrote: On Sun, 4 Nov 2007, Mattias Gaertner wrote: On Sun, 4 Nov 2007 12:46:29 +0100 (CET) Michael Van Canneyt [EMAIL PROTECTED] wrote:

Re: [lazarus] Proposing a new TCanvas property such as AllowFractionalPositioning

2007-11-04 Thread Mattias Gaertner
On Sun, 4 Nov 2007 14:27:55 +0100 (CET) Michael Van Canneyt [EMAIL PROTECTED] wrote: On Sun, 4 Nov 2007, Mattias Gaertner wrote: On Sun, 4 Nov 2007 13:33:06 +0100 (CET) Michael Van Canneyt [EMAIL PROTECTED] wrote: On Sun, 4 Nov 2007, Mattias Gaertner wrote: On

Re: [lazarus] Proposing a new TCanvas property such as AllowFractionalPositioning

2007-11-04 Thread Mattias Gaertner
On Sun, 04 Nov 2007 14:17:07 +0100 Tobias Giesen [EMAIL PROTECTED] wrote: a new property could make everybody happy _today_. And everybody unhappy in the future because it is very ad-hoc Not necessarily. If we make it general and generally useful, it can be quite a good thing. So I agree,

Re: [lazarus] Proposing a new TCanvas property such as AllowFractionalPositioning

2007-11-04 Thread Michael Van Canneyt
On Sun, 4 Nov 2007, Mattias Gaertner wrote: On Sun, 4 Nov 2007 14:27:55 +0100 (CET) Michael Van Canneyt [EMAIL PROTECTED] wrote: On Sun, 4 Nov 2007, Mattias Gaertner wrote: On Sun, 4 Nov 2007 13:33:06 +0100 (CET) Michael Van Canneyt [EMAIL PROTECTED] wrote:

[lazarus] Adding AllowFractionalPositioning to TCarbonDeviceContext

2007-11-04 Thread Tobias Giesen
Hello, if we add the property to TCarbonDeviceContext, is that accessible from a custom component in a reasonable way? Would Phil be willing to change a property in TCarbonDeviceContext using the appropriate typecasts? Fractional positioning should never be turned off globally for the

Re: [lazarus] Proposing a new TCanvas property such as AllowFractionalPositioning

2007-11-04 Thread Mattias Gaertner
On Sun, 4 Nov 2007 15:09:45 +0100 (CET) Michael Van Canneyt [EMAIL PROTECTED] wrote: [...] - either implement scale factors for TCanvas - or add TextOut/TextExtent/... functions with floats to TCanvas. [...] Depends on POV. You need something like

Re: [lazarus] Carbon Widgetset: character spacing problems

2007-11-04 Thread Tobias Giesen
Phil wrote: There's probably quite a lot going on here. Tomas is actually passing a total of 8 options, including options to turn off kerning, to use rounded text metrics instead of fractional, and others, as well as disabling fractional spacing in the rendering of the line. Hi Phil, could

Re: [lazarus] Adding AllowFractionalPositioning to TCarbonDeviceContext

2007-11-04 Thread Mattias Gaertner
On Sun, 04 Nov 2007 15:15:41 +0100 Tobias Giesen [EMAIL PROTECTED] wrote: Hello, if we add the property to TCarbonDeviceContext, is that accessible from a custom component in a reasonable way? Would Phil be willing to change a property in TCarbonDeviceContext using the appropriate

Re: [lazarus] I need examples of SQLite

2007-11-04 Thread Luiz Americo Pereira Camara
Daniel Rincón García wrote: I am trying to execute the examples but I obtain the next errors: http://i12.tinypic.com/526id0j.jpg http://i15.tinypic.com/2lmrm9t.jpg http://i15.tinypic.com/2lmrm9t.jpg http://i2.tinypic.com/536k4l5.jpg http://i9.tinypic.com/6g8t7ur.jpg What is the problem?

Re: [lazarus] I need examples of SQLite

2007-11-04 Thread Daniel Rincón García
Yes, I translated to sqlite3ds. The sqliteminimal example works correctly but the 3dcompare example do not works. I did not change dumpdata.pas to use sqlite3ds. How I do it? Thanks. This occurs when you try to open a non db file. Do you translated to sqlite3ds? Do you also changed

Re: [lazarus] Adding AllowFractionalPositioning to TCarbonDeviceContext

2007-11-04 Thread Tobias Giesen
You can add for example function SetFontFractionalPositioning(DC: HDC; UseFractionalPositioning: boolean): boolean; to carboncanvas.pp Thanks, Mattias! I will propose a new patch based on this sugestion. Then SynEdit and Philip would have to use it, because I think the default should

Re: [lazarus] Adding AllowFractionalPositioning to TCarbonDeviceContext

2007-11-04 Thread Felipe Monteiro de Carvalho
The topic seams to need more discussion before being implemented, so I think it should not be implemented before 0.9.24 thanks, -- Felipe Monteiro de Carvalho _ To unsubscribe: mail [EMAIL PROTECTED] with

Re: [lazarus] Adding AllowFractionalPositioning to TCarbonDeviceContext

2007-11-04 Thread Giuliano Colla
Mattias Gaertner ha scritto: On Sun, 04 Nov 2007 15:15:41 +0100 Tobias Giesen [EMAIL PROTECTED] wrote: Hello, if we add the property to TCarbonDeviceContext, is that accessible from a custom component in a reasonable way? Would Phil be willing to change a property in TCarbonDeviceContext

Re: [lazarus] I need examples of SQLite

2007-11-04 Thread Luiz Americo Pereira Camara
Daniel Rincón García wrote: Yes, I translated to sqlite3ds. The sqliteminimal example works correctly but the 3dcompare example do not works. I did not change dumpdata.pas to use sqlite3ds. How I do it? replace TSqliteDataset by TSqlite3Dataset and sqliteds by sqlite3ds Luiz

Re: [lazarus] Adding AllowFractionalPositioning to TCarbonDeviceContext

2007-11-04 Thread Tobias Giesen
There's a Font property, Pitch ... fpfixed That sounds promising. I would like to try and submit a patch which disables the fractional spacing only when the Pitch is fpfixed. Then Philip can try if his component still works. I read somewhere that if TCarbonDeviceContext.BeginTextRender was

Re: [lazarus] Adding AllowFractionalPositioning to TCarbonDeviceContext

2007-11-04 Thread Vincent Snijders
Tobias Giesen schreef: There's a Font property, Pitch ... fpfixed That sounds promising. I would like to try and submit a patch which disables the fractional spacing only when the Pitch is fpfixed. Then Philip can try if his component still works. I read somewhere that if

RE: [lazarus] Adding AllowFractionalPositioning to TCarbonDeviceContext

2007-11-04 Thread Hess, Philip J
I agree with Giuliano, so add me to the ranks of the horrified. TFont.Pitch doesn't appear to be used in any LCL or Carbon widgetset logic, so that might work. Please be sure to document in the patch that this is used only as a switch and has nothing to do with mono vs proportional spaced

Re: [lazarus] Adding AllowFractionalPositioning to TCarbonDeviceContext

2007-11-04 Thread Tobias Giesen
Hi Phil and others, I think if we only make careful amendments to carboncanvas.pp and nowhere else, then nobody needs to be horrified any more. I did not see your screenshots! I can confirm that the text won't look identical to the buttons even with my changes, but that is not so important. It

Re: [lazarus] Adding AllowFractionalPositioning to TCarbonDeviceContext

2007-11-04 Thread Felipe Monteiro de Carvalho
Hi, I don't understand the issue. The Screen cannot display fractional character positions anyway, so why would this make any difference? My current guess is that the adequate position is being truncaded rather then rounded, and that would cause in the worse case a 1 pixel difference from where

Re: [lazarus] Announcement: Poll about required windows version for Lazarus

2007-11-04 Thread zaher dirkey
What is the oldest Windows version you run Lazarus on This Ask for to customers or to developers (We)?. BTW, I still have customers using Win98SE and that make me test my project in Win98 before release it, but in fact i like to force them to use WinXP, for that i voted WinXP. On Nov 1, 2007

Re: [lazarus] Announcement: Poll about required windows version for Lazarus

2007-11-04 Thread Vincent Snijders
zaher dirkey schreef: What is the oldest Windows version you run Lazarus on This Ask for to customers or to developers (We)?. It is for developers, so on which OS do you run lazarus. Not for users, then the question would be: on which OS do you want to run LCL applications, or something

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: http://antigrain.com/research/font_rasterization/index.html

Re: [lazarus] Adding AllowFractionalPositioning to TCarbonDeviceContext

2007-11-04 Thread Mattias Gaertner
On Sun, 4 Nov 2007 20:43:29 +0100 Felipe Monteiro de Carvalho [EMAIL PROTECTED] wrote: Hi, I don't understand the issue. The Screen cannot display fractional character positions anyway, so why would this make any difference? Yes, it can - with antialising. gtk/pango knows fractional

Re: [lazarus] Adding AllowFractionalPositioning to TCarbonDeviceContext

2007-11-04 Thread willem
In my opinion lazarus should be delphi compatible. I know of other users who will switch to lazarus if 100 % compatibility is achieved. regards Giuliano Colla schreef: Mattias Gaertner ha scritto: On Sun, 04 Nov 2007 15:15:41 +0100 Tobias Giesen [EMAIL PROTECTED] wrote: Hello, if we add

Re: [lazarus] Adding AllowFractionalPositioning to TCarbonDeviceContext

2007-11-04 Thread Mattias Gaertner
On Sun, 04 Nov 2007 18:29:40 +0100 Giuliano Colla [EMAIL PROTECTED] wrote: Mattias Gaertner ha scritto: On Sun, 04 Nov 2007 15:15:41 +0100 Tobias Giesen [EMAIL PROTECTED] wrote: Hello, if we add the property to TCarbonDeviceContext, is that accessible from a custom component

Re: [lazarus] Adding AllowFractionalPositioning to TCarbonDeviceContext

2007-11-04 Thread Mattias Gaertner
On Sun, 04 Nov 2007 23:51:48 +0100 willem [EMAIL PROTECTED] wrote: In my opinion lazarus should be delphi compatible. I got the feeling my example was misunderstood. The example shows, how to extend the carbon intf and access it from an LCL application. This way the LCL is kept Delphi

Re: [lazarus] Adding AllowFractionalPositioning to TCarbonDeviceContext

2007-11-04 Thread Giuliano Colla
Hess, Philip J ha scritto: I agree with Giuliano, so add me to the ranks of the horrified. TFont.Pitch doesn't appear to be used in any LCL or Carbon widgetset logic, so that might work. Please be sure to document in the patch that this is used only as a switch and has nothing to do with mono

Re: [lazarus] Adding AllowFractionalPositioning to TCarbonDeviceContext

2007-11-04 Thread Giuliano Colla
Mattias Gaertner ha scritto: On Sun, 04 Nov 2007 18:29:40 +0100 Giuliano Colla [EMAIL PROTECTED] wrote: [...] There's a Font property, Pitch, which is intended exactly for this purpose. Its possible values are fpdefault (i.e. use the font pitch as defined in the font itself), fpfixed