How to implement a scrolling message?

User avatar
nageswaragunupudi
Posts: 10721
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 8 times
Contact:

Re: How to implement a scrolling message?

Post by nageswaragunupudi »

This class is now available in FWH 19.03
Regards

G. N. Rao.
Hyderabad, India
User avatar
Silvio.Falconi
Posts: 7141
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 1 time

Re: How to implement a scrolling message?

Post by Silvio.Falconi »

Rao,
Good if you add the possibility to scroll also Images
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Horizon
Posts: 1325
Joined: Fri May 23, 2008 1:33 pm
Has thanked: 4 times

Re: How to implement a scrolling message?

Post by Horizon »

Hi Mr. Rao,

How can I disable border?
Regards,

Hakan ONEMLI

Harbour & MSVC 2022 & FWH 23.04
User avatar
ukoenig
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany
Contact:

Re: How to implement a scrolling message?

Post by ukoenig »

The test

@ 120,500 SCROLLMSG oMsg TEXT cText SIZE 300, 150 PIXEL OF oDlg2 ;
FONT oFont COLOR CLR_HRED, CLR_YELLOW SPEED 2
oMsg:lBox := .F.

-----------------

Add in scrolmsg.prg

DATA lBox INIT .t.

METHOD New( nRow, nCol, nWidth, nHeight, cText, oWnd, oFont, ;
nSpeed, nClrText, nClrBack, lHoriz, lPixels, lDesign, cVarName, lBox ) CLASS TScrollMsg

DEFAULT
...
...
lBox := .t.

METHOD Paint() CLASS TScrollMsg

if ::lBox
::oWnd:Box( ::nTop - 1, ::nLeft - 1, ::nBottom + 1, ::nRight + 1 )
endif

Image

regards
Uwe :D
Last edited by ukoenig on Fri Apr 26, 2019 7:16 pm, edited 1 time in total.
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
Horizon
Posts: 1325
Joined: Fri May 23, 2008 1:33 pm
Has thanked: 4 times

Re: How to implement a scrolling message?

Post by Horizon »

Thank you Uwe,

It works.
Regards,

Hakan ONEMLI

Harbour & MSVC 2022 & FWH 23.04
User avatar
Silvio.Falconi
Posts: 7141
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 1 time

Re: How to implement a scrolling message?

Post by Silvio.Falconi »

Working...just a little idea ( made with ximage) for scrolling images

Image
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
karinha
Posts: 7942
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil
Been thanked: 3 times
Contact:

Re: How to implement a scrolling message?

Post by karinha »

DSay también es compatible con el comando BLINKING. En este ejemplo de Master Nages, creo que todavía no tienes el comando BLINKING, nativo del clipper. Pero es super, lo es.

Saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Post Reply