Hi-Lite a radio button or checkbox to show Tab Order Cursor

Post Reply
User avatar
Rick Lipkin
Posts: 2397
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Hi-Lite a radio button or checkbox to show Tab Order Cursor

Post by Rick Lipkin »

To All

I have multiple check boxes and radio buttons in my forms, however when you TAB thru the form and the cursor hits a radio or check box you do not see the cursor. has any one come up with a way to hi-lite a checkbox or a radio button to visually show that the cursor is on one of those controls ?

http://img4.imagetitan.com/img.php?imag ... hilite.jpg

Image



Thanks
Rick Lipkin
User avatar
karinha
Posts: 4882
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: Hi-Lite a radio button or checkbox to show Tab Order Cursor

Post by karinha »

Small samples? Code or Workshop.exe the best? Regards.
João Santos - São Paulo - Brasil
User avatar
Rick Lipkin
Posts: 2397
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: Hi-Lite a radio button or checkbox to show Tab Order Cursor

Post by Rick Lipkin »

João


I am looking for some code that when the cursor tabs into a radio button or a check box there is a way to highlight the control ( frame ) to visually let the user know where the cursor is located .. Now, when a user tabs thru the form .. it disappears when the cursor moves into a radio button or a check box ..

Thanks
Rick Lipkin
User avatar
karinha
Posts: 4882
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: Hi-Lite a radio button or checkbox to show Tab Order Cursor

Post by karinha »

Maybe:

Code: Select all

// Testing three states checkboxes - \samples\TESTCHK3.PRG
// Sample developed by EMG

#include "Fivewin.ch"

FUNCTION MAIN()

   LOCAL oDlg
   LOCAL oChk, lChk, nChk := 0

   SkinButtons()

   DEFINE DIALOG oDlg

   #define BM_GETCHECK 240
   #define BM_SETCHECK 241

   @ 1, 1 CHECKBOX oChk VAR lChk OF oDlg                        ;
      ON CLICK ( oChk:SendMsg( BM_SETCHECK, ( nChk + 1 ) % 3 ), ;
      nChk := oChk:SendMsg( BM_GETCHECK ) )

   #define BS_AUTO3STATE 6

   oChk:nStyle = NOR( WS_CHILD, WS_VISIBLE, WS_TABSTOP, BS_AUTO3STATE )

   @ 3, 1 BUTTON "&Close" ACTION oDlg:End()

   ACTIVATE DIALOG oDlg CENTERED

RETURN NIL
 
João Santos - São Paulo - Brasil
User avatar
carlos vargas
Posts: 1421
Joined: Tue Oct 11, 2005 5:01 pm
Location: Nicaragua

Re: Hi-Lite a radio button or checkbox to show Tab Order Cursor

Post by carlos vargas »

is a windows problems, please enable alt key subscript.
sorry for my bad english. i show a screenshot of my config.
Image
Salu2
Carlos Vargas
Desde Managua, Nicaragua (CA)
Post Reply