statusbar INS and richtextbox problem

statusbar INS and richtextbox problem

Post by am9l » Sat, 05 Jun 2004 11:16:02


Running VB6(SP5) with Win98

The statusbar control includes sbrINS which toggles when the INSERT key is pressed, displaying the state of the INSERT key in a panel. It toggles whenever the key is pressed, no matter which control has focus. However the RichtextBox insert/overwrite ability requires that the RTB control has focus when the INSERT key is pressed in order to change states. Therefore if the INSERT key is pressed when the RTB does not have focus the statusbar INS display becomes out of sync with the RTB's insert state, incorrectly displaying the INSERT state of the RTB control.
 
 
 

statusbar INS and richtextbox problem

Post by Mike » Sat, 05 Jun 2004 11:36:34


pressed, displaying the state of the INSERT key in a panel. It toggles
whenever the key is pressed, no matter which control has focus. However the
RichtextBox insert/overwrite ability requires that the RTB control has focus
when the INSERT key is pressed in order to change states. Therefore if the
INSERT key is pressed when the RTB does not have focus the statusbar INS
display becomes out of sync with the RTB's insert state, incorrectly
displaying the INSERT state of the RTB control.

I can't say I have experience with this situation, but I wouldn't say it's a
bug. You just have to code for it.

Mike