FiveWin Power : New Scroll Msg class

FiveWin Power : New Scroll Msg class

Postby karinha » Fri Mar 17, 2023 4:01 pm

Como hago esto usando RECURSOS del WorkShop.exe?

Code: Select all  Expand view  RUN

// C:\FWH..\SAMPLES\DSAY2.PRG

#Include "FiveWin.ch"

FUNCTION Main()


   LOCAL cText := MemoRead( "c:\fwh\samples\maria01.prg" )
   LOCAL oDlg, oMsg, oFont, oBold

   DEFINE FONT oFont NAME "LUCIDA CONSOLE" SIZE 0,-14
   DEFINE FONT oBold NAME "VERDANA" SIZE 0,-32

   DEFINE DIALOG oDlg SIZE 800, 500 PIXEL TRUEPIXEL

   oDlg:lHelpIcon := .F.

   @ 100,100 SCROLLMSG "FiveWin Power : New Scroll Msg class" ;
      SIZE 600, 40 PIXEL OF oDlg                              ;
      FONT oBold COLOR CLR_BLACK, CLR_HGREEN HORIZONTAL       ;
      SPEED 1

   @ 200,100 SCROLLMSG oMsg TEXT cText SIZE 600, 200 PIXEL OF oDlg ;
      FONT oFont COLOR CLR_HRED, CLR_YELLOW SPEED 1

   ACTIVATE DIALOG oDlg CENTERED

   RELEASE FONT oFont, oBold

RETURN NIL

// FIN
 


Gracias.

Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7831
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: FiveWin Power : New Scroll Msg class

Postby cmsoft » Fri Mar 17, 2023 11:08 pm

En la definicion no tiene un REDEFINE

Igualmente puedes hacerlo por la misma clase
Code: Select all  Expand view  RUN

#Include "FiveWin.ch"

FUNCTION Main()


   LOCAL cText := MemoRead( "c:\fwh21\samples\dsay2.prg" )
   LOCAL oDlg, oMsg1, oMsg2, oFont, oBold

   DEFINE FONT oFont NAME "LUCIDA CONSOLE" SIZE 0,-14
   DEFINE FONT oBold NAME "VERDANA" SIZE 0,-32

   DEFINE DIALOG oDlg RESOURCE "ABMS"

   oDlg:lHelpIcon := .F.

   //REDEFINE PANEL oMsg1 ID 4001 OF oDlg NOBORDER
   //REDEFINE PANEL oMsg2 ID 4002 OF oDlg NOBORDER

   /*@ 100,100 SCROLLMSG "FiveWin Power : New Scroll Msg class" ;
      SIZE 600, 40 PIXEL OF oDlg                              ;
      FONT oBold COLOR CLR_BLACK, CLR_HGREEN HORIZONTAL       ;
      SPEED 1

   @ 200,100 SCROLLMSG oMsg TEXT cText SIZE 600, 200 PIXEL OF oDlg ;
      FONT oFont COLOR CLR_HRED, CLR_YELLOW SPEED 1*/

   oMsg1 := TScrollMsg():New( 0, 0, 600, 40, "FiveWin Power : New Scroll Msg class",;
             oDlg, oBold, 1, ;
             CLR_BLACK, CLR_HGREEN, .T.,.T., ;
             .F. )
   oMsg2 := TScrollMsg():New( 0, 0, 600, 200, cText,;
             oDlg, oFont, 1, ;
             CLR_HRED, CLR_YELLOW, .F.,.T., ;
             .F. )

   oMsg1:nId := 4001
   oMsg2:nId := 4002

   ACTIVATE DIALOG oDlg CENTERED

   RELEASE FONT oFont, oBold

RETURN NIL
 

Y el RC
Code: Select all  Expand view  RUN

ABMS DIALOG DISCARDABLE 6, 18, 366, 198
STYLE WS_POPUP|DS_MODALFRAME|WS_CAPTION|WS_SYSMENU|WS_VISIBLE
CAPTION "SCROLL MSG"
FONT 8, "Tahoma"
{
  CONTROL "", 4001, "Static", WS_GROUP, 12, 8, 336, 36
  CONTROL "", 4002, "Static", WS_GROUP, 12, 52, 340, 136
}
 
User avatar
cmsoft
 
Posts: 1291
Joined: Wed Nov 16, 2005 9:14 pm
Location: Mercedes - Bs As. Argentina

Re: FiveWin Power : New Scroll Msg class

Postby karinha » Sat Mar 18, 2023 1:46 pm

Perfecto César.

Muchas gracias.

Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7831
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 47 guests