Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
LCL
»
Differentiate input source for TTrackbar
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
IRC channel
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
StringGrid Merge cellules
by
dsiders
[
Today
at 09:44:02 am]
TGroupBox WMPaint ...
by
Espectr0
[
Today
at 08:48:48 am]
Open the project director...
by
GetMem
[
Today
at 07:12:26 am]
Better look for coding
by
edgarrod71
[
Today
at 05:27:58 am]
[Solved] Outbox of My Mes...
by
Fred vS
[
Today
at 02:51:46 am]
MDB: list all tables
by
SymbolicFrank
[March 20, 2023, 09:23:25 pm]
Crear dll en lazarus para...
by
BlueIcaro
[March 20, 2023, 07:41:01 pm]
NBPages in TabControl... ...
by
polpero
[March 20, 2023, 07:28:59 pm]
Amount in words
by
alpine
[March 20, 2023, 06:43:52 pm]
From Linux MX to Windows ...
by
pentilisea
[March 20, 2023, 04:55:07 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Differentiate input source for TTrackbar (Read 2906 times)
wimpie
New Member
Posts: 32
Differentiate input source for TTrackbar
«
on:
November 25, 2010, 09:49:20 am »
Hi
How do one know whether a trackbar's Position property was changed from code (trackbar.position := xx) or from the GUI (using mouse or keyboard). I need to take different actions depending on this
Logged
typo
Hero Member
Posts: 3051
Re: Differentiate input source for TTrackbar
«
Reply #1 on:
November 25, 2010, 11:47:42 am »
I think you need to use a boolean variable to avoid executing your event handler when position is changed by code.
«
Last Edit: November 25, 2010, 12:48:59 pm by typo
»
Logged
LazarusBrasil.Org
wimpie
New Member
Posts: 32
Re: Differentiate input source for TTrackbar
«
Reply #2 on:
November 25, 2010, 12:03:24 pm »
Thanks for the reply. I ended up disconnecting the event handler for the cases where the position is set by code.
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
LCL
»
Differentiate input source for TTrackbar
TinyPortal
© 2005-2018