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

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

Postby Rick Lipkin » Tue Mar 10, 2020 6:56 pm

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
Rick Lipkin
 
Posts: 2663
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

Postby karinha » Wed Mar 11, 2020 3:23 pm

Small samples? Code or Workshop.exe the best? Regards.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7794
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

Postby Rick Lipkin » Wed Mar 11, 2020 6:25 pm

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
Rick Lipkin
 
Posts: 2663
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

Postby karinha » Wed Mar 11, 2020 7:22 pm

Maybe:

Code: Select all  Expand view

// 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 - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7794
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

Postby carlos vargas » Thu Mar 12, 2020 5:11 pm

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)
User avatar
carlos vargas
 
Posts: 1719
Joined: Tue Oct 11, 2005 5:01 pm
Location: Nicaragua


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 42 guests