Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2002-11

New Bug - TMemo Keys

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michal Bukovjan
to Danie Brink: The following does not work. TMemo's Events OnKeyDown, OnKeyPress and possibly OnKeyUp.…
Danie Brink wrote 5 lines
The following does not work. TMemo's Events OnKeyDown, OnKeyPress and possibly OnKeyUp.

Fixed in CVS - hopefully this will keep working for other controls as well. Tested TComboBox, TEdit, TMemo. TListBox is another story and will be a little complicated to achieve key events (i.e. did not and does not work as of now).

Michal

Reply by email

Danie Brink

The following does not work.
TMemo's Events

OnKeyDown, OnKeyPress
and possibly OnKeyUp.

TMemo's proeprty
MaxLength - Control continues to accept input.

Reply by email

Michal Bukovjan
to Danie Brink
Danie Brink wrote 5 lines
The following does not work. TMemo's proeprty MaxLength - Control continues to accept input.

Fixed this in CVS. I:

- added/published MaxLength property for Memo
- all Maxlength props now default to -1, as in Delphi/Kylix
- Memo's MaxLength should actually work now
- Edit's Memo will not work for MaxLength = 0 (will work for any value

0, if 0 it continues accept input). To fix this, we would have to

ditch GTK property and do it Memo's way (where 0 should work as well). Me personally find MaxLength=0 a little weird, and this effect can be accomplished in a different way (i.e. Enabled:= false).

Have fun,

Michal

Reply by email