Re: [Lazarus] OI Checkboxes

2014-11-25 Thread Juha Manninen
On Tuesday, November 25, 2014, Vojtěch Čihák wrote: > If so, then it will never work properly. > It may never be perfect but it can be very close. I wrapped my mind around this issue last night and improved it a lot. Please test. Juha -- ___ Lazarus m

Re: [Lazarus] Testing UTF8 RTL for Windows

2014-11-25 Thread Sven Barth
Am 25.11.2014 22:09 schrieb "Hans-Peter Diettrich" : > > Mattias Gaertner schrieb: >> >> On Tue, 25 Nov 2014 13:10:26 +0100 >> Hans-Peter Diettrich wrote: > > >>> Unfortunately I cannot test Lazarus trunk since a long time, no answer on my request for assistance. >> >> >> ? > > > Since the introdu

Re: [Lazarus] OI Checkboxes

2014-11-25 Thread Juha Manninen
On Tuesday, November 25, 2014, FreeMan wrote: > How to do debug this, In IDE ? > There are at least 3 ways to debug Lazarus IDE. 1. Call DebugLn, the output can be seen in the same console you started Lazarus from (./lazarus). 2. Use command line GDB. 3. Inside Lazarus run project lazarus.lpi. I

Re: [Lazarus] OI Checkboxes

2014-11-25 Thread FreeMan
Sorry I did debug, Yes you right "AState: TPropEditDrawState" Astate no value? I usually, check parameter, if its set, check all items. I sawed pedsSelected and pedsFocused and I thinked its work, but no ? On 25-11-2014 22:12, FreeMan wrote: How to do debug this, In IDE ? On 25-11-2014 18:4

[Lazarus] Testing UTF8 RTL for Windows

2014-11-25 Thread Hans-Peter Diettrich
Mattias Gaertner schrieb: On Tue, 25 Nov 2014 13:10:26 +0100 Hans-Peter Diettrich wrote: Unfortunately I cannot test Lazarus trunk since a long time, no answer on my request for assistance. ? Since the introduction of the FPC Unicode branch I cannot build FPC and Lazarus any more on my s

Re: [Lazarus] UTF8 RTL for Windows

2014-11-25 Thread Hans-Peter Diettrich
Mattias Gaertner schrieb: On Tue, 25 Nov 2014 14:49:52 +0100 Felipe Monteiro de Carvalho wrote: On Tue, Nov 25, 2014 at 2:45 PM, Mattias Gaertner wrote: Retype "Char" to "String" and the compiler will bark. For example in Graphics. What about changing to WideChar then? If you mean unit

Re: [Lazarus] UTF8 RTL for Windows

2014-11-25 Thread Hans-Peter Diettrich
Mattias Gaertner schrieb: On Tue, 25 Nov 2014 13:10:26 +0100 Hans-Peter Diettrich wrote: [...] Maybe I don't understand the question, but it seems to me this is documented where static-, dynamic cp and rawbytestring are explained. More concrete questions: How can a user be sure that a strin

Re: [Lazarus] UTF8 RTL for Windows

2014-11-25 Thread Hans-Peter Diettrich
Mattias Gaertner schrieb: On Tue, 25 Nov 2014 11:53:00 +0100 Hans-Peter Diettrich wrote: [...] Correction: *This* Char type needs to be extended. Please specify. The ThousandSeparator type is "Char", which does not work with Russian in UTF-8. Well, at least if you want the non breakable sp

Re: [Lazarus] OI Checkboxes

2014-11-25 Thread FreeMan
How to do debug this, In IDE ? On 25-11-2014 18:47, Juha Manninen wrote: I guess you did not debug your patch anyhow. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] OI Checkboxes

2014-11-25 Thread Juha Manninen
On Wed, Nov 19, 2014 at 10:02 PM, Juha Manninen wrote: > One option is to use parentheses around the values, '(True)' and '(False)'. I implemented this one in r46989. It is kind of a compromise between the ideas. What do you think? Juha -- ___ Lazarus

Re: [Lazarus] OI Checkboxes

2014-11-25 Thread Mattias Gaertner
On Tue, 25 Nov 2014 19:27:52 +0100 Sandro Cumerlato wrote: > I suggest to look in graphpropedits.pas. IMHO TBoolPropertyEditor should be > moved into this file. Huh? Abstract: This unit defines the property editors for graphic types. Mattias -- __

Re: [Lazarus] Need testers for the a new debugger

2014-11-25 Thread Mattias Gaertner
On Mon, 24 Nov 2014 11:48:38 +0100 Joost van der Sluis wrote: > On 11/22/2014 12:18 AM, Mattias Gaertner wrote: > > On Fri, 21 Nov 2014 23:08:00 + > > Martin Frb wrote: > > > >> [...] > >> So as far as the debugger goes, this would then be correctly following > >> the debug info. > > > > Fun

Re: [Lazarus] ODBC

2014-11-25 Thread Larry Dalton
Will try it Sent from my iPhone > On Nov 25, 2014, at 10:52, Marcos Douglas wrote: > >> On Tue, Nov 25, 2014 at 1:41 PM, Larry Dalton >> wrote: >> I can use the TDbf, but unless I don't know how to use it, I can't execute >> Sql statements. Am I wrong? > > The dbf is simple so, I don't need

Re: [Lazarus] OI Checkboxes

2014-11-25 Thread Sandro Cumerlato
I suggest to look in graphpropedits.pas. IMHO TBoolPropertyEditor should be moved into this file. Sandro On 25 November 2014 at 17:47, Juha Manninen wrote: > On Tue, Nov 25, 2014 at 5:25 PM, FreeMan > wrote: > > I attach my solution, this is work on my system, need test others. need > some >

Re: [Lazarus] OI Checkboxes

2014-11-25 Thread Vojtěch Čihák
Hi,   Do I understand correctly that currently - unselected row paints checkbox + caption via themes, while - selected row is regular TCheckBox ?   If so, then it will never work properly.   Vojtěch -- ___ Lazarus mailing list Lazarus@lists.lazarus.free

Re: [Lazarus] ODBC

2014-11-25 Thread Marcos Douglas
On Tue, Nov 25, 2014 at 1:41 PM, Larry Dalton wrote: > I can use the TDbf, but unless I don't know how to use it, I can't execute > Sql statements. Am I wrong? > The dbf is simple so, I don't need SQL more than I already use with the Filter property. For insert/update/delete, just use the DataSe

Re: [Lazarus] OI Checkboxes

2014-11-25 Thread Juha Manninen
On Tue, Nov 25, 2014 at 5:25 PM, FreeMan wrote: > I attach my solution, this is work on my system, need test others. need some > improve, text flicking still. I guess you did not debug your patch anyhow. The condition is never true, commenting out the Inc() line causes the same effect, and that m

Re: [Lazarus] ODBC

2014-11-25 Thread Larry Dalton
I can use the TDbf, but unless I don't know how to use it, I can't execute Sql statements. Am I wrong? Sent from my iPhone > On Nov 25, 2014, at 10:36, Marcos Douglas wrote: > >> On Tue, Nov 25, 2014 at 1:28 PM, Larry Dalton >> wrote: >> >> Is anyone successfully using Lazarus with .dbf fil

Re: [Lazarus] ODBC

2014-11-25 Thread Marcos Douglas
On Tue, Nov 25, 2014 at 1:28 PM, Larry Dalton wrote: > > Is anyone successfully using Lazarus with .dbf files connected by ODBC? > Sent from my iPhone I'm using TDbf component. Works fine. Marcos Douglas -- ___ Lazarus mailing list Lazarus@lists.lazar

[Lazarus] ODBC

2014-11-25 Thread Larry Dalton
Is anyone successfully using Lazarus with .dbf files connected by ODBC? Sent from my iPhone -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] UTF8 RTL for Windows

2014-11-25 Thread Frederic Da Vitoria
2014-11-25 14:45 GMT+01:00 Mattias Gaertner : > On Tue, 25 Nov 2014 11:53:00 +0100 > Hans-Peter Diettrich wrote: > > >[...] > > > Correction: *This* Char type needs to be extended. > > > > Please specify. > > The ThousandSeparator type is "Char", which does not work with > Russian in UTF-8. Well,

Re: [Lazarus] OI Checkboxes

2014-11-25 Thread FreeMan
IMO this is not from themes, I tested more in 4 themes. I'm use "air for netbooks" I tested in "air", "oxygen" "Tibanna" and I forget names more two, I deleted. viewing not changed.Always non selected row's square lines 1-2 pixcels down, but text is normal. I tested in "Windows decoration"(My k

Re: [Lazarus] UTF8 RTL for Windows

2014-11-25 Thread Felipe Monteiro de Carvalho
On Tue, Nov 25, 2014 at 3:14 PM, Mattias Gaertner wrote: >> What about changing to WideChar then? > > If you mean unit Graphics: It checks for ASCII characters. So a change > to WideChar would add implicit conversions without any gain. > > In case of ThousandSeparator: > That would probably be suf

Re: [Lazarus] UTF8 RTL for Windows

2014-11-25 Thread Mattias Gaertner
On Tue, 25 Nov 2014 14:49:52 +0100 Felipe Monteiro de Carvalho wrote: > On Tue, Nov 25, 2014 at 2:45 PM, Mattias Gaertner > wrote: > > Retype "Char" to "String" and the compiler will bark. For example in > > Graphics. > > What about changing to WideChar then? If you mean unit Graphics: It chec

Re: [Lazarus] UTF8 RTL for Windows

2014-11-25 Thread Felipe Monteiro de Carvalho
On Tue, Nov 25, 2014 at 2:45 PM, Mattias Gaertner wrote: > Retype "Char" to "String" and the compiler will bark. For example in > Graphics. What about changing to WideChar then? -- Felipe Monteiro de Carvalho -- ___ Lazarus mailing list Lazarus@lists

Re: [Lazarus] UTF8 RTL for Windows

2014-11-25 Thread Mattias Gaertner
On Tue, 25 Nov 2014 11:53:00 +0100 Hans-Peter Diettrich wrote: >[...] > > Correction: *This* Char type needs to be extended. > > Please specify. The ThousandSeparator type is "Char", which does not work with Russian in UTF-8. Well, at least if you want the non breakable space instead of the nor

Re: [Lazarus] UTF8 RTL for Windows

2014-11-25 Thread Mattias Gaertner
On Tue, 25 Nov 2014 13:10:26 +0100 Hans-Peter Diettrich wrote: >[...] > > Maybe I don't understand the question, but it seems to me this is > > documented where static-, dynamic cp and rawbytestring are explained. > > More concrete questions: > > How can a user be sure that a string parameter i

Re: [Lazarus] UTF8 RTL for Windows

2014-11-25 Thread Hans-Peter Diettrich
Mattias Gaertner schrieb: On Mon, 24 Nov 2014 22:15:29 +0100 Hans-Peter Diettrich wrote: [...] The Delphi (and FPC) encoding model allows for strings of different static (declared) and dynamic (true content) encoding, see the special handling of RawByteString (Wiki). So far it's not a good

Re: [Lazarus] UTF8 RTL for Windows

2014-11-25 Thread Hans-Peter Diettrich
Mattias Gaertner schrieb: On Mon, 24 Nov 2014 22:53:44 +0100 Hans-Peter Diettrich wrote: Graeme Geldenhuys schrieb: How is ThousandSeparator and DecimalSeparator supposed to work it TFormatSettings? If you switched the RTL to UTF-8 or UTF-16 a Russian thousand separator (4-byte non-breaking

Re: [Lazarus] OI Checkboxes

2014-11-25 Thread Juha Manninen
On Tue, Nov 25, 2014 at 12:45 PM, Vojtěch Čihák wrote: > This is not Linux-Qt related, this is Oxygen related. Other themes work OK. > Hardcoding 1 or 2 pixels is IMO not good idea, it may cause troubles > elsewhere. > [...] It is good to have somebody who understands the issue. :) > However, I

Re: [Lazarus] OI Checkboxes

2014-11-25 Thread Juha Manninen
On Tue, Nov 25, 2014 at 12:56 PM, zeljko wrote: > IMO, problem is that OI checkboxes height is hardcoded. No, I have changed it to use AutoSize instead. It partially solved the serious redraw issue on Windows. See issue http://bugs.freepascal.org/view.php?id=22347 and r46880. Regards, Juha --

Re: [Lazarus] OI Checkboxes

2014-11-25 Thread Vojtěch Čihák
I found one more issue with Linux-Qt. This one is not Oxygen related. When the row in OI is selected, Caption is written 1 or 2 pixels higher than in non selected row. The checkbox itself is OK. Vojtěch ___ Lazarus mailing list Lazarus@lists.lazarus.fr

Re: [Lazarus] OI Checkboxes

2014-11-25 Thread Juha Manninen
On Tue, Nov 25, 2014 at 11:33 AM, FreeMan wrote: > Thank you Sandor & Juha, In Linux QT widgetset, color combobox is working > now. But we forget real problem :) > [pic] > Chekbox's square lines need to 1 or 2 pixcel more to up, if row not > selected. (if ARow <> FItemIndex then) > I don't have

Re: [Lazarus] OI Checkboxes

2014-11-25 Thread zeljko
On 11/25/2014 11:45 AM, Vojtěch Čihák wrote: This is not Linux-Qt related, this is Oxygen related. Other themes work OK. Hardcoding 1 or 2 pixels is IMO not good idea, it may cause troubles elsewhere. I tested ThemeServices.GetDetailSize and it gives the same output for tbCheckBoxCheckedDisabled,

Re: [Lazarus] OI Checkboxes

2014-11-25 Thread Vojtěch Čihák
This is not Linux-Qt related, this is Oxygen related. Other themes work OK. Hardcoding 1 or 2 pixels is IMO not good idea, it may cause troubles elsewhere. I tested ThemeServices.GetDetailSize and it gives the same output for tbCheckBoxCheckedDisabled, tbCheckBoxCheckedNormal and tbCheckBoxCheck

Re: [Lazarus] OI Checkboxes

2014-11-25 Thread FreeMan
Thank you Sandor & Juha, In Linux QT widgetset, color combobox is working now. But we forget real problem :) Chekbox's square lines need to 1 or 2 pixcel more to up, if row not selected. (if ARow <> FItemIndex then) On 23-11-2014 16:43, Sandro Cumerlato wrote: I cannot test the QT widgetset,

Re: [Lazarus] UTF8 RTL for Windows

2014-11-25 Thread Michael Schnell
On 11/24/2014 10:15 PM, Hans-Peter Diettrich wrote: I'm missing documentation for working safely (and efficiently) with such irregular strings, most probably none of the FPC (and Delphi) developers ever noticed how users are left alone with this problem :-( Hmm. In the fpc-devel, lazarus-de

Re: [Lazarus] Maybe a bug: click on TImage behind another control with SetShape

2014-11-25 Thread Frederic Da Vitoria
2014-11-22 13:40 GMT+01:00 Fabio Luis Girardi : > Polyline is a different control. The area of line is the area of the > control, other area will be full transparent and must pass the events to > controls behind. If you click on line, the click must be fired on Polyline > object, otherwise, it mus

Re: [Lazarus] UTF8 RTL for Windows

2014-11-25 Thread Graeme Geldenhuys
On 2014-11-24 23:13, Mattias Gaertner wrote: > In case of the new LCL mode we can extend the "LCL Unicode support" page. I don't know if that is the correct place though. The "not implemented yet" features affect other toolkits, console and web applications too, not just LCL based ones. So for no