PDA

View Full Version : Modified text box help vid inside


junioreq
02-22-2010, 02:16 PM
Well, I'm a big fan of having exact values being known. So, I thought I would modify the text box to show up for mouse drag. That worked BUT, How do I get it to disapear when i'm either not hovered over a control, or click on another control?

Here is an example of what I'm trying to do:

http://screencast.com/t/MWFhN2MwZ

BTW: Even that circle highlighting is very cool!

EDIT: All I did was put PromptUserInput(); in the iknobmulti, We are also given: mDisablePrompt = true; But, how do I find if the pointer is on or off of the knob to disable the prompt?

~Rob.

cc_
02-24-2010, 12:57 AM
The way I'd do this is start with a control like the panreadout in my ISubject.h example, but by default set the control to hidden.

Then I'd make a control derived from IKnobMulti and overide the mouse down method to unhide the readout before calling IKnobMulti's mouse down method. Similarly override the mouse up method to hide the readout again.