how to put a Fon in Strikethrough

This forum is for eXpress++ general support.
Post Reply
Message
Author
User avatar
digitsoft
Posts: 451
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

how to put a Fon in Strikethrough

#1 Post by digitsoft »

hello Roger
You can tell me how to put a Fon in Strikethrough
Thank you.
Nolberto Paulino
Regards

User avatar
rdonnay
Site Admin
Posts: 4729
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: how to put a Fon in Strikethrough

#2 Post by rdonnay »

I don't know how to do this in Xbase parts using standard fonts.

If you want to display some text in a window you could use DCHTMLWINDOW and use the <strike> tag in the HTML.

Code: Select all

#INCLUDE "dcdialog.CH"

FUNCTION Main()

bHtml := {||MyHtml(oHtml)}
@ 0,0 DCHTMLWINDOW bHtml OBJECT oHtml SIZE 800,600 PIXEL ;
   RESIZE DCGUI_RESIZE_RESIZEONLY

@ 620,0 DCPUSHBUTTON CAPTION 'New HTML' SIZE 100,25 PIXEL ;
   ACTION {||DC_GetRefresh(GetList)}

DCGETOPTIONS RESIZE

DCREAD GUI FIT TITLE 'HTML Window' OPTIONS GetOptions

RETURN nil
* ----------
STATIC FUNCTION MyHtml( oHtml )

LOCAL cHtml
PRIVATE cTime := Time()

TEXT INTO cHtml
<html>
<body>
<h1>Hello New world!</h1>
<h2>The time is now &cTime</h2>
Don't look to the <strike>passed</strike> past.  <strike>Selebrate</strike> Celebrate the present.
</body>
</html>
ENDTEXT

RETURN cHtml
The eXpress train is coming - and it has more cars.

User avatar
digitsoft
Posts: 451
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

Re: how to put a Fon in Strikethrough

#3 Post by digitsoft »

thanks roger

rdonnay wrote:I don't know how to do this in Xbase parts using standard fonts.

If you want to display some text in a window you could use DCHTMLWINDOW and use the <strike> tag in the HTML.

Code: Select all

#INCLUDE "dcdialog.CH"

FUNCTION Main()

bHtml := {||MyHtml(oHtml)}
@ 0,0 DCHTMLWINDOW bHtml OBJECT oHtml SIZE 800,600 PIXEL ;
   RESIZE DCGUI_RESIZE_RESIZEONLY

@ 620,0 DCPUSHBUTTON CAPTION 'New HTML' SIZE 100,25 PIXEL ;
   ACTION {||DC_GetRefresh(GetList)}

DCGETOPTIONS RESIZE

DCREAD GUI FIT TITLE 'HTML Window' OPTIONS GetOptions

RETURN nil
* ----------
STATIC FUNCTION MyHtml( oHtml )

LOCAL cHtml
PRIVATE cTime := Time()

TEXT INTO cHtml
<html>
<body>
<h1>Hello New world!</h1>
<h2>The time is now &cTime</h2>
Don't look to the <strike>passed</strike> past.  <strike>Selebrate</strike> Celebrate the present.
</body>
</html>
ENDTEXT

RETURN cHtml
Nolberto Paulino
Regards

Post Reply