Graeme Geldenhuys | 1 Feb 09:17
Picon
Gravatar

Re: LCL and custom keyboard layouts

On 31 January 2012 11:39, Mark Morgan Lloyd wrote:
>
> No. I don't want to simulate a keyboard, I want to be able to pick up an Alt
> or Meta shift so that if my keyboard was engraved like
> http://www.aplusdev.org/keyboard.html I could get the extra characters into
> editing controls as UTF-8.

I didn't follow this thread in detail, so if I got the wrong end of
the stick, please ignore this message.

I use "Programmer Dvorak" layout - which can be applied to any OS and
any keyboard - does this for me. No programming required from my side.
Programmer Dvorak supports many extra keys via Alt and Meta.

They original author of Programmer Dvorak supplies drivers or keyboard
layout profiles for Linux, Windows, Mac etc. So maybe you could learn
something from what he did? Just a thought.

http://www.kaufmann.no/roland/dvorak/

--

-- 
Regards,
  - Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://fpgui.sourceforge.net

--
_______________________________________________
(Continue reading)

Mark Morgan Lloyd | 1 Feb 09:38
Picon

Re: LCL and custom keyboard layouts

Graeme Geldenhuys wrote:
> On 31 January 2012 11:39, Mark Morgan Lloyd wrote:>> No. I don't want to simulate a keyboard, I want to be
able to pick up an Alt> or Meta shift so that if my keyboard was engraved like>
http://www.aplusdev.org/keyboard.html I could get the extra characters into> editing controls as UTF-8.
> I didn't follow this thread in detail, so if I got the wrong end ofthe stick, please ignore this message.
> I use "Programmer Dvorak" layout - which can be applied to any OS andany keyboard - does this for me. No
programming required from my side.Programmer Dvorak supports many extra keys via Alt and Meta.
> They original author of Programmer Dvorak supplies drivers or keyboardlayout profiles for Linux,
Windows, Mac etc. So maybe you could learnsomething from what he did? Just a thought.
> http://www.kaufmann.no/roland/dvorak/

Thanks, but there's still the issue there that it would need stuff 
installed outside of the single binary, and it's unclear whether it 
could originate 16-bit characters.

--

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

--
_______________________________________________
Lazarus mailing list
Lazarus <at> lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Koenraad Lelong | 1 Feb 10:40
Picon
Favicon

Re: Filtering on date with TDbf

On 31-01-12 13:55, Guionardo Furlan wrote:
> This code works in delphi?
> Comparing strings doesn´t work for dates, I guess.
> Using mm/dd/yyyy, "05/01/2012" is less/before than "05/02/2011"
>
...
Hi,

I don't want to compare "dates as strings", I want to compare dates with 
other dates, as dates. The thing is the filter in TDbf is a string. So 
how would I specify that filter if not as a string ?

In Lazarus I tried also
datum >= '2011-01-01'
datum >= "2011-01-01"
Same error : Index based on unknown field ">="
That's when I enter the filter with the TDbf active.
If I enter this with the TDbf closed, and then open the TDbf, the filter 
just disappears.

AFAIK, TDbf is has no SQL, so this can't be used. Besides, with Firebird
... where datum >= '5.9.2011'
is perfectly valid to have all dates from/including sept 5 2011, I just 
checked.

So, any other suggestions ?
Thanks for your replies.

Koenraad.

(Continue reading)

Reinier Olislagers | 1 Feb 10:52
Picon

Re: Filtering on date with TDbf

On 1-2-2012 10:40, Koenraad Lelong wrote:
> AFAIK, TDbf is has no SQL, so this can't be used. Besides, with Firebird
> ... where datum >= '5.9.2011'
> is perfectly valid to have all dates from/including sept 5 2011, I just
> checked.
PMFJI, but don't, please DON'T use this date notation. dd/mm/yy or
mm/dd/yy notations are often parsed depending on OS locale settings and
in any case ambiguous between e.g. US and Europeans.

As earlier suggested, try to be unambiguous in Firebird as well and use
'CCYY-MM-DD HH:NN:SS.nnnn' or 'YY-MM-DD HH:NN:SS.nnnn' (".nnnn" element
is optional).

> So, any other suggestions ?
> Thanks for your replies.
Sorry, no idea about the dbf filter...

Regards,
Reinier

--
_______________________________________________
Lazarus mailing list
Lazarus <at> lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Koenraad Lelong | 1 Feb 11:28
Picon
Favicon

Re: Filtering on date with TDbf

On 01-02-12 10:52, Reinier Olislagers wrote:
> On 1-2-2012 10:40, Koenraad Lelong wrote:
>> AFAIK, TDbf is has no SQL, so this can't be used. Besides, with Firebird
>> ... where datum>= '5.9.2011'
>> is perfectly valid to have all dates from/including sept 5 2011, I just
>> checked.
> PMFJI, but don't, please DON'T use this date notation. dd/mm/yy or
> mm/dd/yy notations are often parsed depending on OS locale settings and
> in any case ambiguous between e.g. US and Europeans.
>
> As earlier suggested, try to be unambiguous in Firebird as well and use
> 'CCYY-MM-DD HH:NN:SS.nnnn' or 'YY-MM-DD HH:NN:SS.nnnn' (".nnnn" element
> is optional).

Hi,

For me one thing is clear now and hopefully really unabiguous : I'm 
going to use 'CCYY-MM-DD HH:NN:SS.nnnn' or 'YY-MM-DD HH:NN:SS.nnnn' (and 
without time-info if this is not needed).

I have long searched how to represent dates in an sql-select. Finally I 
just copied the date from a select *, where the date is returned as 
5.9.2011 for sept 5, 2011.
I don't think I will forget this now ;-)

Unfortunately, this does not help with the tdbf.

Thanks,

Koenraad.
(Continue reading)

Alexander Shishkin | 1 Feb 13:43
Picon

Re: SynInfoView

Another issue: tooltip now disappears after "begin" inside routine and 
not shown if caret is in routines` "var" section.

--
_______________________________________________
Lazarus mailing list
Lazarus <at> lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Alexander Shishkin | 1 Feb 13:47
Picon

Re: SynInfoView

01.02.2012 16:43, Alexander Shishkin пишет:
> Another issue: tooltip now disappears after "begin" inside routine and
> not shown if caret is in routines` "var" section.
>
more precise: tooltip disappears when caret is "scrolled off" from screen.

--
_______________________________________________
Lazarus mailing list
Lazarus <at> lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Martin | 1 Feb 14:04
Picon

Re: SynInfoView

On 01/02/2012 12:47, Alexander Shishkin wrote:
> 01.02.2012 16:43, Alexander Shishkin пишет:
>> Another issue: tooltip now disappears after "begin" inside routine and
>> not shown if caret is in routines` "var" section.
>>
> more precise: tooltip disappears when caret is "scrolled off" from 
> screen.

this is currently intended. Needs to be configurable.

But also needs a fix (which is why it changed).
Previously the hith stayed, not only if the caret srolled out (on the 
top) but even if the "end" scrolled out. that was nonsense imho.

I'll have to do some speed improvements first. Try caret movements (hold 
down key) at the end of a 10000 line unit...

--
_______________________________________________
Lazarus mailing list
Lazarus <at> lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Alexander Shishkin | 1 Feb 14:17
Picon

Re: SynInfoView

01.02.2012 17:04, Martin пишет:
> On 01/02/2012 12:47, Alexander Shishkin wrote:
>> 01.02.2012 16:43, Alexander Shishkin пишет:
>>> Another issue: tooltip now disappears after "begin" inside routine and
>>> not shown if caret is in routines` "var" section.
>>>
>> more precise: tooltip disappears when caret is "scrolled off" from
>> screen.
>
> this is currently intended. Needs to be configurable.
>
> But also needs a fix (which is why it changed).
> Previously the hith stayed, not only if the caret srolled out (on the
> top) but even if the "end" scrolled out. that was nonsense imho.
>
>
> I'll have to do some speed improvements first. Try caret movements (hold
> down key) at the end of a 10000 line unit...
>

Yes. its really slow.

--
_______________________________________________
Lazarus mailing list
Lazarus <at> lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Martin | 1 Feb 14:21
Picon

Re: SynInfoView

On 01/02/2012 13:17, Alexander Shishkin wrote:
> 01.02.2012 17:04, Martin пишет:
>> On 01/02/2012 12:47, Alexander Shishkin wrote:
>>> 01.02.2012 16:43, Alexander Shishkin пишет:
>>>> Another issue: tooltip now disappears after "begin" inside routine and
>>>> not shown if caret is in routines` "var" section.
>>>>
>>> more precise: tooltip disappears when caret is "scrolled off" from
>>> screen.
>>
>> this is currently intended. Needs to be configurable.
>>
>> But also needs a fix (which is why it changed).
>> Previously the hith stayed, not only if the caret srolled out (on the
>> top) but even if the "end" scrolled out. that was nonsense imho.
>>
>>
>> I'll have to do some speed improvements first. Try caret movements (hold
>> down key) at the end of a 10000 line unit...
>>
>
> Yes. its really slow.

I simply re used an old bit of code, that had a diff purpose...

--
_______________________________________________
Lazarus mailing list
Lazarus <at> lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
(Continue reading)


Gmane