TSBUTTON is not getting focus in themed resource dialogs.

TSBUTTON is not getting focus in themed resource dialogs.

Postby RAMESHBABU » Tue Nov 18, 2008 9:46 am

Hi all

Has anybody faced this problem with TSBUTTON Class ?

If I use the TSBUTTON in a themed dialog from resources and if I
use tab button the focus is visible on all the dialog componenets except
the TSBUTTON. The dotted square is disappearing when the focus reaches to TSBUTTON. The is happening only the dialog is themed and it is from
resources.

Any solution please.

- Ramesh Babu P
User avatar
RAMESHBABU
 
Posts: 624
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India

Postby jrestojeda » Tue Nov 18, 2008 12:46 pm

Hola amigo,
Prueba asi:

Code: Select all  Expand view
   REDEFINE SBUTTON Btn3  ID 200 OF oDlg RESOURCE "ALTA" BRUSH oBrush1;
      ACTION ABMCli(oDbf,oLbx,oDlg,45);
      TOOLTIP "Agregar un nuevo cliente";
      PROMPT "Alta"+CHR(13)+"INS" TEXT 4 W97;
      FONT oFont1

   Btn3:bGotFocus :={|| Btn3:SetColor(AzulB),Btn3:refresh()}
   Btn3:bLostFocus:={|| Btn3:SetColor(Negro),Btn3:refresh()}


Nota: Negro y AzulB son colores RGB( , , ) previamente definidos.

Code: Select all  Expand view
Local Negro,AzulB
Negro:=RGB( , , ) // Color cuando no tiene foco.
AzulB:=RGB( , , ) // Color cuando tiene foco.


Espero te sirva.
Saludos desde Argentina, Esteban.
User avatar
jrestojeda
 
Posts: 601
Joined: Wed Jul 04, 2007 3:51 pm
Location: Buenos Aires - Argentina


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 101 guests