Lazarus
Home
Forum
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Using the Lazarus IDE
»
General
»
OnKeyPress/OnChange
Downloads
Daily Snapshots
FAQ
Wiki
Bugtracker
IRC channel
Developer Blog
Follow us on Twitter
Mailing List
Free pascal
Other languages
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
About donations (wiki)
Bookstore
Lazarus, the complete guide
Search
Advanced search
« previous
next »
Print
Pages: [
1
]
Author
Topic: OnKeyPress/OnChange (Read 1986 times)
cybertom
New member
Posts: 7
OnKeyPress/OnChange
«
on:
August 16, 2005, 02:55:13 pm »
Hi, i am using lazarus with Linux Kernel 2.6 (SuSE 9.3)
I have Problems on using this Actions: OnKeyPress, OnChange(Tedit field)
The procedures are not called. Why??
Is this a general Problem?
A Problem on my Computer only?
Or a Problem with Lazarus on Linux?
Can somebody test it and just tell me what happens??????????
Perhaps by creating a litle Aplication:
Form1,edit1, lable1.
Action: OnKeyPress(Form1)
begin
lable1.caption:='Key Pressed';
end;
Action: OnChange(edit1)
begin
lable1.caption:='Edit1 changed to: '+edit1.text;
end;
Logged
eric
Jr. Member
Posts: 94
RE: OnKeyPress/OnChange
«
Reply #1 on:
August 17, 2005, 11:06:33 am »
It works fine here on SuSE 9.3. With your little test application you will never see the caption 'Key Pressed' because it will immediately be overwritten by the OnChange event. Try having two separate labels to view the two events separately. Also note that OnKeyPress only responds to printable characters.
I presume that your misspelling of 'label' is just a typo in your message.
Eric
Logged
cyber-tom
Guest
OnKeyPress/OnChange
«
Reply #2 on:
August 18, 2005, 09:47:51 am »
well, i compiled it for Windows, and it runs like i expektet-
I have a very old platform here (Suse 9.3) and Pentium II 350 Mhz.
Perhaps I try at home again on Linux (SuSE 9.2- Kernel 2.6 smp Petium4 3.0gh-HT an 1gb RAM)
I just thought, that it is a special Problem on this old Plattform.
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Using the Lazarus IDE
»
General
»
OnKeyPress/OnChange
Recent
Q about capabilities of t...
by
mdlueck
[
Today
at 06:30:59 pm]
Cross Compile
by
Leledumbo
[
Today
at 05:23:05 pm]
TaChart ternary plot func...
by
wp
[
Today
at 05:08:44 pm]
Stable database?
by
BigChimp
[
Today
at 03:27:28 pm]
Lazarus 0.9.30.4 released
by
felipemdc
[
Today
at 03:08:45 pm]
Colored cells of a string...
by
paskal
[
Today
at 02:34:31 pm]
writeln fails to output t...
by
jack616
[
Today
at 02:18:10 pm]
[SOLVED] How to install l...
by
HexNihilo
[
Today
at 01:24:54 pm]
libUSB under win32
by
helloa
[
Today
at 01:20:01 pm]
[SOLVED] How to make a pu...
by
paskal
[
Today
at 01:14:38 pm]