forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

%WB issues with %IB
Goto page Previous  1, 2
 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+
View previous topic :: View next topic  
Author Message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7096
Location: Salford, UK

PostPosted: Wed Jun 09, 2021 9:50 am    Post subject: Reply with quote

Steve

I created a new html file via Plato, typed in "Hello World" and saved it. I used the file name in your program and it gives the default popup menu with access to print.

I don't know much about html but the resulting header may make all the difference...

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
Back to top
View user's profile Send private message AIM Address
steveDoyle



Joined: 04 Sep 2009
Posts: 103
Location: Manchester

PostPosted: Wed Jun 09, 2021 11:00 am    Post subject: Reply with quote

Hi Paul

I tried you suggestion on a Win XP and a Win 10 system with no luck.

your documentation states that %WB uses the MS internet explorer engine.
i tried switching from Chrome back to IE as the default engine to see if it would help but still no popup menu

thanks

steve
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7096
Location: Salford, UK

PostPosted: Wed Jun 09, 2021 12:03 pm    Post subject: Reply with quote

Steve

I am using Windows 10.

Here is my copy of your program...

Code:
winapp
PROGRAM TEST
! ============
IMPLICIT NONE
INCLUDE <windows.ins>
INTEGER IWIN,state
INTEGER OPEN_WEB
EXTERNAL OPEN_WEB

state = 4
IWIN = WINIO@('%CA@&', 'WB test')
IWIN = WINIO@('%ib&','tb_web',state,OPEN_WEB)
IWIN = WINIO@('%bx&',0.1d0)
IWIN = WINIO@('%^bt[wb_test]&', OPEN_WEB)
IWIN = WINIO@('%ff%3nl%cn%bt[OK]')
END

INTEGER FUNCTION OPEN_WEB()
! =========================
IMPLICIT NONE
CALL SHOW_URL_WEB('Report', 'C:\techsupport\HTMLsource1.htm')
OPEN_WEB = 2
END

SUBROUTINE SHOW_URL_WEB(CAPTION, TMPPATH)
! ========================
IMPLICIT NONE
INCLUDE <windows.ins>
CHARACTER*( * ) CAPTION, TMPPATH
INTEGER IWIN
IWIN = WINIO@('%CA@&', CAPTION)
IWIN = WINIO@('%80.35wb@&', TMPPATH)
IWIN = WINIO@('%ff%nl%cn%bt[OK]')
END

RESOURCES
tb_web  BITMAP "capture.bmp"


Here is my copy of the HTML file HTMLsource1.htm...

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=windows-1252" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 11.00.10570.1001"></HEAD>
<BODY>Hello World </BODY></HTML>
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+ All times are GMT + 1 Hour
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group