I need to make 2 changes to the code below.
1. The number 6 is now hardcoded, I need it to be the variable var->vdaysleft
2. The text Upgrade XXXXXXXXX and the text Continue to useXXXXXXX
needs to be buttons so I can control the events.
Thanks
Charlie Crimmel
'Date Created: 10-Dec-2009 08:36:06 AM
'Last Updated: 10-Dec-2009 08:36:06 AM
'Created By : E009933
'Updated By : E009933
'Create an XDialog dialog box to prompt for parameters.
DIM vdaysleft as P
dim vdaysleft.object as p
dim vdaysleft.class as c
DIM global vdaysleft as C
var->vdaysleft="6"
vdaysleft.class = "dhtmledit.dhtmledit"
DIM GLOBAL varC_result as C
DIM vdaysleft_html as c
vdaysleft_html = <<%html%
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html><head><title></title><link rel=stylesheet type=text/css
href="a5res:defaultStyle\(default)" media=screen><link rel=stylesheet
type=text/css href="a5res:defaultStyle\(default)" media=screen><link
rel=stylesheet type=text/css href="a5res:defaultStyle\(default)" media=screen>
<meta content="text/html; charset=unicode" http-equiv=Content-type><link
rel=stylesheet type=text/css href="a5res:defaultStyle\(default)" media=screen>
<meta name=GENERATOR content="MSHTML 8.00.6001.18852">
<style>
<!--
p { margin-top: 0; margin-bottom: 0 }
-->
</style>
</head>
<body>
<p align=center><font size=3 face=Arial>You have</font></p>
<p align=center><font size=3 face=Arial></font> </p>
<p align=center><font color=#ff0000 size=5
face=Arial><strong>6</strong></font></p><p align=center><font size=3 face=Arial></font> </p>
<p align=center><font size=3 face=Arial>days left on your 30 - day
subscription</font></p>
<p align=center><font size=3 face=Arial></font> </p>
<p align=center><font size=3 face=Arial>To upgrade or renew your license, please
select the following</font></p>
<p align=center> </p>
<p align=center><font size=3 face=Arial></font> </p>
<p align=center><font size=3 face=Arial>Upgrade BSE Accounting
License</font></p><p align=center><font size=3 face=Arial></font> </p><p align=center><font size=3 face=Arial></font> </p>
<p align=center><font size=3 face=Arial></font> </p>
<p align=center><font size=3 face=Arial>OR</font></p>
<p align=center><font size=3 face=Arial></font> </p>
<p align=center><font size=3 face=Arial>Continue using BSE Accounting in DEMO
Mode.</font></p></body></html>%html%
'Force the background color of the html text to be Win3D so that it blends in with the Xdialog box.
dim win3dcolor as c
win3dcolor = ui_color_format("win3d","#rhghbh")
vdaysleft_html = a5_html_background(vdaysleft_html,win3dcolor)
ok_button_label = "&OK"
cancel_button_label = "&Cancel"
Delete XdialogStyle
dim XDialogStyle as p
XDialogStyle.AccentColor = "White"
XDialogStyle.Color = "#51+102+255"
varC_result = ui_dlg_box("BSE Accounting",<<%dlg%
{Windowstyle=Gradient Horizontal Bottom}
{startup=init}
{region}
| {activex=80,25vdaysleft?.f.};
{endregion};
{line=1,0};
{region}
<*15=ok_button_label!OK> <15=cancel_button_label!CANCEL>
{endregion};
%dlg%,<<%code%
if a_dlg_button = "init" then
a_dlg_button = ""
vdaysleft.object.browsemode = .t.
vdaysleft.object.appearance = 0
vdaysleft.object.ScrollBars = .f.
on error goto vdaysleft_error
vdaysleft.object.documenthtml = vdaysleft_html
on error goto 0
vdaysleft.object.Refresh()
a_dlg_button = ""
end if
end
vdaysleft_error:
ui_msg_box("Error","Invalid URL or HTML content.",UI_STOP_SYMBOL)
end
%code%)
1. The number 6 is now hardcoded, I need it to be the variable var->vdaysleft
2. The text Upgrade XXXXXXXXX and the text Continue to useXXXXXXX
needs to be buttons so I can control the events.
Thanks
Charlie Crimmel
'Date Created: 10-Dec-2009 08:36:06 AM
'Last Updated: 10-Dec-2009 08:36:06 AM
'Created By : E009933
'Updated By : E009933
'Create an XDialog dialog box to prompt for parameters.
DIM vdaysleft as P
dim vdaysleft.object as p
dim vdaysleft.class as c
DIM global vdaysleft as C
var->vdaysleft="6"
vdaysleft.class = "dhtmledit.dhtmledit"
DIM GLOBAL varC_result as C
DIM vdaysleft_html as c
vdaysleft_html = <<%html%
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html><head><title></title><link rel=stylesheet type=text/css
href="a5res:defaultStyle\(default)" media=screen><link rel=stylesheet
type=text/css href="a5res:defaultStyle\(default)" media=screen><link
rel=stylesheet type=text/css href="a5res:defaultStyle\(default)" media=screen>
<meta content="text/html; charset=unicode" http-equiv=Content-type><link
rel=stylesheet type=text/css href="a5res:defaultStyle\(default)" media=screen>
<meta name=GENERATOR content="MSHTML 8.00.6001.18852">
<style>
<!--
p { margin-top: 0; margin-bottom: 0 }
-->
</style>
</head>
<body>
<p align=center><font size=3 face=Arial>You have</font></p>
<p align=center><font size=3 face=Arial></font> </p>
<p align=center><font color=#ff0000 size=5
face=Arial><strong>6</strong></font></p><p align=center><font size=3 face=Arial></font> </p>
<p align=center><font size=3 face=Arial>days left on your 30 - day
subscription</font></p>
<p align=center><font size=3 face=Arial></font> </p>
<p align=center><font size=3 face=Arial>To upgrade or renew your license, please
select the following</font></p>
<p align=center> </p>
<p align=center><font size=3 face=Arial></font> </p>
<p align=center><font size=3 face=Arial>Upgrade BSE Accounting
License</font></p><p align=center><font size=3 face=Arial></font> </p><p align=center><font size=3 face=Arial></font> </p>
<p align=center><font size=3 face=Arial></font> </p>
<p align=center><font size=3 face=Arial>OR</font></p>
<p align=center><font size=3 face=Arial></font> </p>
<p align=center><font size=3 face=Arial>Continue using BSE Accounting in DEMO
Mode.</font></p></body></html>%html%
'Force the background color of the html text to be Win3D so that it blends in with the Xdialog box.
dim win3dcolor as c
win3dcolor = ui_color_format("win3d","#rhghbh")
vdaysleft_html = a5_html_background(vdaysleft_html,win3dcolor)
ok_button_label = "&OK"
cancel_button_label = "&Cancel"
Delete XdialogStyle
dim XDialogStyle as p
XDialogStyle.AccentColor = "White"
XDialogStyle.Color = "#51+102+255"
varC_result = ui_dlg_box("BSE Accounting",<<%dlg%
{Windowstyle=Gradient Horizontal Bottom}
{startup=init}
{region}
| {activex=80,25vdaysleft?.f.};
{endregion};
{line=1,0};
{region}
<*15=ok_button_label!OK> <15=cancel_button_label!CANCEL>
{endregion};
%dlg%,<<%code%
if a_dlg_button = "init" then
a_dlg_button = ""
vdaysleft.object.browsemode = .t.
vdaysleft.object.appearance = 0
vdaysleft.object.ScrollBars = .f.
on error goto vdaysleft_error
vdaysleft.object.documenthtml = vdaysleft_html
on error goto 0
vdaysleft.object.Refresh()
a_dlg_button = ""
end if
end
vdaysleft_error:
ui_msg_box("Error","Invalid URL or HTML content.",UI_STOP_SYMBOL)
end
%code%)
Comment