Differentiate input source for TTrackbar lazarus / 31-LCL ---------------------------------------------------------------------- wimpie · 2010-11-25 08:49 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 ---------------------------------------------------------------------- typo · 2010-11-25 10:47 I think you need to use a boolean variable to avoid executing your event handler when position is changed by code. ---------------------------------------------------------------------- wimpie · 2010-11-25 11:03 Thanks for the reply. I ended up disconnecting the event handler for the cases where the position is set by code.