Silverfrost Forums

Welcome to our forums

New ClearWin+ web browser control

12 Feb 2014 12:44 #13702

A new format code %wb has been added in order to provide web browser controls. It is available now for beta testing by downloading from http://www.silverfrost.com/beta/salflibc.exe or http://www.silverfrost.com/beta/clearwin64.exe.

Here is a sample program and screen clip...

!FTN95$WINAPP
program WebPage
 use clrwin$
 integer iw
 integer,external::cbForum,cbWeb 
 iw=winio$('%ww[no_border]%ca[New HTML]&') 
 iw=winio$('%pm[Back,Forward,History,Copy,Forum]&', &
         & 'wbGoBack', 'wbGoForward', 'wbHistory', 'wbCopy', cbForum)
 iw=winio$('%pv%60.30^wb[http://www.silverfrost.com]', cbWeb)
end

integer function cbForum() 
 use clrwin$
 integer r
 r = wbCommand$('http://forums.silverfrost.com')
 cbForum = 2
end function 

integer function cbWeb()
 use clrwin$
 character(len=256)::reason,url
 reason = clearwin_string$('CALLBACK_REASON')
 url    = clearwin_string$('CURRENT_URL')
 print*, reason(1:len_trim(reason)), ' = ', url(1:len_trim(url))
 cbWeb = 2
end function

http://www.silverfrost.com/beta/webpage.jpg

14 Feb 2014 1:30 #13708

Paul, This sample did not compile in my case. The error !FTN95$WINAPP *** Missing expression And when remove this line then it compiles but EXE could not start

Also, is it possible to post ZIP files for latest build libraries instead of EXE? EXEs are associated with the possibility if getting viruses and are very often blocked by the admins at work.

14 Feb 2014 7:45 #13710

Are you using the latest release of FTN95? If not then it would be necessary to translate the sample to use @ rather than $ etc.. You will also need a new clearwin.ins which I have now added to the download.

14 Feb 2014 1:16 #13715

Paul, Thanks, but I thought it is pretty recent, done update a months or two ago, but will look at updating again. /* Is it possible to implement FTN95 Update same one click automatic way as cellphones update their apps? I wrote many times that the update is a bit cumbersome, that the whole installation process is confusing, leaves the questions if you have done everything correctly, not self-explanatory even for those who have done that gazillion times for a quarter of century, let alone being novice-friendly or cool looking. Or may be the Clearwin+ itself checks for compatibility of all controls with FTN95 and informs about possible troublems? This check would not slow down most of controls since they do not have to be fast.

14 Feb 2014 3:44 #13717

Thanks for the suggestion. In the longer term we could do something for the main releases but not (I guess) for the beta releases.

Please login to reply.