views:

24

answers:

0

One of my forms requires special handling for two of its mnemonics which are attached to one control ("In" and "Out" UltraLabels with an UltraTrackBar in between). One possible solution is to override ProcessMnemonic() in a manner like so: (I can only include pseudocode)

// For each control c in the form
// - If the control is visible and the input character is a mnemonic, then:
// -- If the control is the Out label, zoom out and return true
// -- Else, if the control is the In label, zoom in and return true
// -- Else, return base.ProcessMnemonic(charCode)
// Return false

base.processMnemonic() always returns false when called here. How do I get my ProcessMnemonic() method to follow the default behavior of ProcessMnemonic() for all of the mnemonics except for the ones which zoom in and out? In other words, what does the default ProcessMnemonic() method actually do - and how can I mimic that behavior?