Recent

Author Topic: ApplicationProperties UserInput while on ScrollBar Only Fires 160 Msg  (Read 8672 times)

Mike.Cornflake

  • Hero Member
  • *****
  • Posts: 1260
Re: ApplicationProperties UserInput while on ScrollBar Only Fires 160 Msg
« Reply #15 on: September 14, 2014, 11:48:03 pm »
:o i'm not worring in general i'm learning and if you want to help me
open the project provided and try to handle the list's scrolling your self  O:-)
I did.  Listbox scrolling is working just fine.  No need for any additional code.  That's why I was confused.

UPDATE: But if you're just doing this a learning exercise, then no problems :-)  Way to jump into the deep end though :-)   Follow the steps in the wiki article I posted to see all the messages, and don't forget to forward them all on...
« Last Edit: September 15, 2014, 12:08:30 am by Mike.Cornflake »
Lazarus Trunk/FPC Trunk on Windows [7, 10]
  Have you tried searching this forum or the wiki?:   http://wiki.lazarus.freepascal.org/Alternative_Main_Page
  BOOKS! (Free and otherwise): http://wiki.lazarus.freepascal.org/Pascal_and_Lazarus_Books_and_Magazines

Never

  • Sr. Member
  • ****
  • Posts: 409
  • OS:Win7 64bit / Lazarus 1.4
Re: ApplicationProperties UserInput while on ScrollBar Only Fires 160 Msg
« Reply #16 on: September 15, 2014, 12:14:12 am »
you did it by pressing the scrollbar's buttons
do it by detecting user's clicks and command the list as you wish
 if you do not want this
just see if you can tell when the user is scrolling using  a property or a methode of the control
Νέπε Λάζαρε λάγγεψων οξωκά ο φίλοσ'ς αραεύσε

Mike.Cornflake

  • Hero Member
  • *****
  • Posts: 1260
Re: ApplicationProperties UserInput while on ScrollBar Only Fires 160 Msg
« Reply #17 on: September 15, 2014, 12:49:07 am »
you did it by pressing the scrollbar's buttons
do it by detecting user's clicks and command the list as you wish

I don't understand  :(  What do you mean by "do it by detecting user's clicks and command the list as you wish"?   

You possibly mean you don't want the operating system to handle the scroll, you want to handle the scroll yourself based on user input.  If so, then you're going to have to write your own control.   That ListBox is a windows listbox (or it is under Windows).

Quote
if you do not want this just see if you can tell when the user is scrolling using  a property or a methode of the control

This control doesn't surface the Scrollbars events, so there is no easy way to do this.

And I'm back to asking why :)

If you're just learning, then the lesson here is you can't monitor whether this control is being scrolled or not.  Or more accurately, I don't know how.
 
If you're trying to do this because you have a need, then you can write your own (either fully customdrawn) or override the existing ListBox and patch this behaviour in (though I don't see anything relevant in TCustomListbox), or use an entirely different control.   

Until I know the reasons why, I'm unable to help further...  In fact, I think I'm already at the end of my usefulness here.
Lazarus Trunk/FPC Trunk on Windows [7, 10]
  Have you tried searching this forum or the wiki?:   http://wiki.lazarus.freepascal.org/Alternative_Main_Page
  BOOKS! (Free and otherwise): http://wiki.lazarus.freepascal.org/Pascal_and_Lazarus_Books_and_Magazines

Never

  • Sr. Member
  • ****
  • Posts: 409
  • OS:Win7 64bit / Lazarus 1.4
Re: ApplicationProperties UserInput while on ScrollBar Only Fires 160 Msg
« Reply #18 on: September 15, 2014, 01:01:52 am »
@Mike.Cornflake
Thank you very much for your efforts Mike  :'(
Νέπε Λάζαρε λάγγεψων οξωκά ο φίλοσ'ς αραεύσε

 

TinyPortal © 2005-2018