MSGINFO with scrollbars
- Otto
- Posts: 6403
- Joined: Fri Oct 07, 2005 7:07 pm
- Has thanked: 24 times
- Been thanked: 2 times
- Contact:
MSGINFO with scrollbars
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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
- nageswaragunupudi
- Posts: 10721
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Been thanked: 8 times
- Contact:
Re: MSGINFO with scrollbars
Please try
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
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
- nageswaragunupudi
- Posts: 10721
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Been thanked: 8 times
- Contact:
Re: MSGINFO with scrollbars
Please try
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
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
- Otto
- Posts: 6403
- Joined: Fri Oct 07, 2005 7:07 pm
- Has thanked: 24 times
- Been thanked: 2 times
- Contact:
Re: MSGINFO with scrollbars
Dear Mr. Rao,
Thank you. It is working fine.
Font is small, and I think we need also horizontal scrolling.
Do you add this to FW.
Best regards,
Otto
Thank you. It is working fine.
Font is small, and I think we need also horizontal scrolling.
Do you add this to FW.
Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
- nageswaragunupudi
- Posts: 10721
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Been thanked: 8 times
- Contact:
Re: MSGINFO with scrollbars
We can provide an option to specify a font.
If you think it would be useful, we can include in FWH after further refining it.
Horizontal scrolling may be not necessary because the text is wrapped to fit the width of the dialog.
If you think it would be useful, we can include in FWH after further refining it.
Horizontal scrolling may be not necessary because the text is wrapped to fit the width of the dialog.
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
- Otto
- Posts: 6403
- Joined: Fri Oct 07, 2005 7:07 pm
- Has thanked: 24 times
- Been thanked: 2 times
- Contact:
Re: MSGINFO with scrollbars
Dear Mr. Rao,
I think it would be very useful.
At the same time, we should have a modal box with the same syntax for mod harbor. Maybe MsgInfo in mod is working this way, I test it.
Fwlog would also be great if it were adapted for mod harbour.
And it doesn't quite fit here, but a quick output of ARRAYs in mod harbour like xbrowser () would be helpful.
Best regards,
Otto
I think it would be very useful.
At the same time, we should have a modal box with the same syntax for mod harbor. Maybe MsgInfo in mod is working this way, I test it.
Fwlog would also be great if it were adapted for mod harbour.
And it doesn't quite fit here, but a quick output of ARRAYs in mod harbour like xbrowser () would be helpful.
Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
- Silvio.Falconi
- Posts: 7133
- Joined: Thu Oct 18, 2012 7:17 pm
- Been thanked: 1 time
Re: MSGINFO with scrollbars
Nages,Otto,
is it possible to make a horizontal scroll with obviously small bitmaps (jpg, png) and alternate with text?
In the past I tried to do a small class but then I couldn't
![Image](https://i.postimg.cc/x8Kt2f1S/saa.png)
sample png
![Image](https://i.postimg.cc/L4CzJgG0/BOSCH.png)
![Image](https://i.postimg.cc/Bv48YJdK/BROTHER.png)
![Image](https://i.postimg.cc/G29mVtzH/CANON.png)
is it possible to make a horizontal scroll with obviously small bitmaps (jpg, png) and alternate with text?
In the past I tried to do a small class but then I couldn't
![Image](https://i.postimg.cc/x8Kt2f1S/saa.png)
sample png
![Image](https://i.postimg.cc/L4CzJgG0/BOSCH.png)
![Image](https://i.postimg.cc/Bv48YJdK/BROTHER.png)
![Image](https://i.postimg.cc/G29mVtzH/CANON.png)
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
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
- Otto
- Posts: 6403
- Joined: Fri Oct 07, 2005 7:07 pm
- Has thanked: 24 times
- Been thanked: 2 times
- Contact:
Re: MSGINFO with scrollbars
Dear Mr. Rao,
can we have a parameter to tell msginfo that it should be centered in the calling window/dialog or screen?
Thank you in advance
Otto
can we have a parameter to tell msginfo that it should be centered in the calling window/dialog or screen?
Thank you in advance
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
- nageswaragunupudi
- Posts: 10721
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Been thanked: 8 times
- Contact: