Board index » delphi » Problems with TTrackBar
Calabetta
![]() Delphi Developer |
Wed, 16 Nov 2005 01:13:09 GMT
|
Calabetta
![]() Delphi Developer |
Wed, 16 Nov 2005 01:13:09 GMT
Problems with TTrackBar
When I click the mouse on the cursor of a TrackBar, at position=0, the
cursor moves, for exaample 2-4 positions. The OnChange event is raised, and I check this with a Thank you. |
Team
![]() Delphi Developer |
Thu, 17 Nov 2005 01:20:47 GMT
Re:Problems with TTrackBarQuoteIn article <3ed7921...@newsgroups.borland.com>, Calabetta wrote: dialog interrupts that and tends to foul up the debugging. Instead add diagnostic strings to a memo or use OutputDebugString to send them to the IDEs event log. Anyway: the trackbar does indeed have a problem, it fires the OnChange You can use the following trackbar derivative to fix the problem: unit FixedTrackbar; interface uses type procedure Register; implementation procedure Register; { TFixedTrackbar } procedure TFixedTrackbar.CNHScroll(var Message: TWMHScroll); procedure TFixedTrackbar.CNVScroll(var Message: TWMVScroll); end. -- |
Calabett
![]() Delphi Developer |
Sat, 19 Nov 2005 22:27:41 GMT
Re:Problems with TTrackBarQuotePeter Below (TeamB) wrote: the application. The behaviour seems to be the same. I do not have ShowMessage anymore, but the onEvent procedure does something else, like assign TBar.hint, text.caption, ... Does this too affect? In a test program, both types of object work fine. But when clicking out Thank you. Quote
|
Team
![]() Delphi Developer |
Sun, 20 Nov 2005 02:25:26 GMT
Re:Problems with TTrackBarQuoteIn article <3edcb14...@newsgroups.borland.com>, Calabetta wrote: of the OnChange event firing too often. The Pagesize property of the component controls how many unit the slider moves -- |