Re: beeps
George Walters wrote:
>
> I'm trying to discover why windows beeps when I "tab" through fields. It does
> not beep
> when I "arrow" throught fields and in my code there is no (apparent to me)
> difference
> between tabbing and arrowing. Look at this code
>
> <font color="#330033"></font>
> <font color="#0000FF">procedure </font><font
> color="#330033">keyPressProcessA(</font><font color="#FF00FF">integer
> </font><font color="#330033">self, </font><font color="#FF00FF">integer
> </font><font color="#330033">processId, </font><font color="#FF00FF">sequence
> </font><font color="#330033">arg)</font>
> <font color="#FF00FF"> integer </font><font color="#330033">keyCode,
> shift</font>
> <font color="#330033"></font>
> <font color="#330033"> keyCode = arg[1]</font>
> <font color="#330033"> shift = arg[2]</font>
> <font color="#330033"></font>
> <font color="#0000FF"> if </font><font color="#330033">keyCode = tab
> </font><font color="#0000FF">then </font><font color="#FF0055">-- make tab same
> as arrows</font>
> <font color="#0000FF"> if </font><font color="#330033">shift = 0
> </font><font color="#0000FF">then</font>
> <font color="#330033"> keyCode = downArrow</font>
> <font color="#0000FF"> else</font>
> <font color="#330033"> keyCode = upArrow</font>
> <font color="#0000FF"> end if</font>
> <font color="#0000FF"> end if</font>
> <font color="#330033"></font>
> <font color="#330033"> keyPressProcessB(self, processId, </font><font
> color="#993333">{</font><font color="#330033">keyCode,shift</font><font
> color="#993333">}</font><font color="#330033">)</font>
> <font color="#330033"></font>
> <font color="#0000FF">end procedure</font>
> <font color="#330033"></font>
The code snip was nice. But without the rest of the code I cant test it.
Mind posting a full short example including controls? I am not currently
familiar with what your calling "arrowing". I have always used tabs to
change focus. Arrows for me dont work =) sooo, you are likely talking
about something else than I am thinking of. I bet however you could
subclass the control to get what you want working.
Don Phillips - aka Graebel
National Instruments
mailto: eunexus @ yahoo.com
|
Not Categorized, Please Help
|
|