Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » CExtGridCellSlider scroll event Collapse All
Subject Author Date
Offer Har Nov 9, 2006 - 2:33 PM

Hi,
I want to catch the event when the slider is scrolled, not when the cell is left.
Thanks.

Technical Support Nov 10, 2006 - 11:36 AM

There is a virtual method OnInplaceControlWindowProc() in the CExtGridCell class. It is spying on the window procedure of the in-place editor (which is a slider for CExtGridCellSlider) and returns true if the Windows message has been handled by the cell object. So you can override this method to handle any message from the in-place slider control.

Offer Har Nov 10, 2006 - 11:40 AM

Thanks, will try this.

Another question regarding slider cell:

I see that when not active cell, the cell displays a number. Is it possible to display a slider?
I have something like a TV tunes - contrast, brightness etc. and numbers are really meaningless.

Technical Support Nov 15, 2006 - 12:50 PM

We just added a new class CExtGridCellInplaceSlider, which implements both a slider and a scroll bar in a grid cell. Please download the updated version of the ProfUIS_Controls sample. Please note the CExtGridCellInplaceSlider class is a windowless control (does not consume HWND handles at all), which means you can safely instantiate any number of CExtGridCellInplaceSlider grid cells at any given time.

Offer Har Nov 15, 2006 - 2:53 PM

Looks great!

Offer Har Nov 15, 2006 - 1:12 PM

Thanks,
One question - will i be able to get an event/callback/derive my own class and get to know each change in the slider (not only when the cell is left.)

Technical Support Nov 16, 2006 - 9:21 AM

You can override the CExtGridCellInplaceSlider::ScrollPosSet() virtual method which is called to change the scroll position.

Offer Har Nov 16, 2006 - 9:30 AM

Can I download the CExtGridCellInplaceSlider from the ftp site?

Technical Support Nov 16, 2006 - 1:40 PM

Yes, CExtGridCellInplaceSlider is already there.

Offer Har Nov 17, 2006 - 11:41 AM

Thanks,
Works great!