FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour strikethrough font
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
strikethrough font
Posted: Fri Jul 29, 2022 08:31 AM

Hi,

There is a SAY control. I need to change the font of this control to crossed out. How can I do this ?

Posts: 1344
Joined: Wed Nov 16, 2005 09:14 PM
Re: strikethrough font
Posted: Fri Jul 29, 2022 12:02 PM
Code (fw): Select all Collapse
#include "fivewin.ch"


FUNCTION Main()
local oForm, oFont, oSay, oGet, nValue := 0, oBot2
DEFINE FONT oFont NAME "TAHOMA" SIZE 0,-11.5 STRIKEOUT
DEFINE DIALOG oForm TITLE "Letra Tachada" FROM 05,15 TO 13,70
@ 05,05 SAY oSay PROMPT "Texto tachado:" SIZE 60,10 PIXEL FONT oFont  OF oForm
@ 05,70 GET oGet VAR nValue PICTURE "9999" PIXEL OF oForm RIGHT 
@ 20,40 BUTTON oBot2 PROMPT "&Boton" OF oForm SIZE 30,10 ACTION oForm:End()  PIXEL
ACTIVATE DIALOG oForm CENTER ON INIT oGet:SetFocus()

RETURN nil
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: strikethrough font
Posted: Fri Jul 29, 2022 03:19 PM

Thanks to CMSOFT, but I was asking a little bit about the wrong thing. I am interested in changing the font of an already existing SAY during operation, not during installation (). That's exactly what I can't do :(

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: strikethrough font
Posted: Fri Jul 29, 2022 04:49 PM
When you want to srikeout,
Code (fw): Select all Collapse
oSay:SetFont( oSay:oFont:StrikeOut( .t. ) )
oSay:Refresh()
Regards



G. N. Rao.

Hyderabad, India

Continue the discussion