FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour TSBUTTON is not getting focus in themed resource dialogs.
Posts: 654
Joined: Fri Oct 21, 2005 05:54 AM
TSBUTTON is not getting focus in themed resource dialogs.
Posted: Tue Nov 18, 2008 09: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
Posts: 601
Joined: Wed Jul 04, 2007 03:51 PM
TSBUTTON is not getting focus in themed resource dialogs.
Posted: Tue Nov 18, 2008 12:46 PM
Hola amigo,
Prueba asi:

   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.

Local Negro,AzulB
Negro:=RGB( , , ) // Color cuando no tiene foco.
AzulB:=RGB( , , ) // Color cuando tiene foco.


Espero te sirva.
Saludos desde Argentina, Esteban.
Ojeda Esteban Eduardo.

Buenos Aires - Argentina.

FWH - PellesC - DBF/CDX - ADS - Gloriosos .Bat - MySql - C# .net - FastReport

Skype: jreduojeda

Continue the discussion