MSGINFO with scrollbars
Posted: Wed Jul 07, 2021 6:30 am
Hello friends,
Is there a ready to go MSGINFO with scrollbars available?
Best regards,
Otto
Is there a ready to go MSGINFO with scrollbars available?
Best regards,
Otto
www.FiveTechSoft.com
https://forums.fivetechsupport.com/
Code: Select all | Expand
#include "fivewin.ch"
function Main()
local cText, oDlg, oGet, oBtn
cText := MEMOREAD( "testmsg3.prg" )
MsgInfo2( MEMOREAD( "testmsg3.prg" ), "testmsg3.prg" )
? "Done"
return nil
function MsgInfo2( cText, cTitle, nWidth, nHeight )
local oDlg
DEFAULT cTitle := "Attention", nWidth := 300, nHeight := 200
DEFINE DIALOG oDlg SIZE nWidth, nHeight PIXEL TRUEPIXEL TITLE cTitle
@ 20, 20 GET oGet VAR cText MEMO SIZE nWidth - 40, nHeight - 90 PIXEL OF oDlg READONLY NOBORDER ;
COLOR CLR_BLACK, oDlg:nClrPane
@ nHeight - 40,( nWidth / 2 ) - 50 BUTTON "OK" SIZE 100,28 PIXEL OF oDlg ACTION oDlg:End()
ACTIVATE DIALOG oDlg CENTERED
return nil
Code: Select all | Expand
#include "fivewin.ch"
function Main()
local cText, oDlg, oGet, oBtn
cText := MEMOREAD( "testmsg3.prg" )
MsgInfo2( MEMOREAD( "testmsg3.prg" ), "testmsg3.prg" )
? "Done"
return nil
function MsgInfo2( cText, cTitle, nWidth, nHeight )
local oDlg
DEFAULT cTitle := "Attention", nWidth := 300, nHeight := 200
DEFINE DIALOG oDlg SIZE nWidth, nHeight PIXEL TRUEPIXEL TITLE cTitle
@ 20, 20 GET oGet VAR cText MEMO SIZE nWidth - 40, nHeight - 90 PIXEL OF oDlg READONLY NOBORDER ;
COLOR CLR_BLACK, oDlg:nClrPane
@ nHeight - 40,( nWidth / 2 ) - 50 BUTTON "OK" SIZE 100,28 PIXEL OF oDlg ACTION oDlg:End()
ACTIVATE DIALOG oDlg CENTERED
return nil
Otto wrote:Dear Mr. Rao,
I think it would be very useful.