Antonio Linares wrote: Fri Mar 21, 2025 10:44 pm
The WebView control covers all the window parent area so you can not use bRClicked
Use a javascript event called function that jumps to FWH using javascript SendToFWH()
If you provide function MiHtml() source code then we can help you to implement it
Antonio ,
a long time ago I used a simple html without the Twebview class, I connected to an html page that I had on a server, the page was formed as a dashboard with all the icons, if I pressed a button or the writings I could open the procedures that were in the program without using javascript, I have to find the example again and I'll show it to you
run also on local
look the video
I use a simply
activex
oActiveX := TActiveX():New( oWndBrowser, "Shell.Explorer" )
oActiveX:bOnEvent := { | event, aParams, pParams | EventInfo( event, aParams, pParams, oActiveX ) }
on Eventinfo I insert
Code: Select all | Expand
if ( "index.html" $ cParam .and. "#" $ cParam )
cCommand := SubStr( cParam, At( "#", cParam ) + 1 )
if !Empty( cCommand )
&cCommand
end if
sample on html
Code: Select all | Expand
<ul class="post-content-button">
<li class="post-contenido-button"><img src="img/gc_document_text_user.png" class="imagen"></li>
<li class="post-contenido-button"><font class="tituloboton"><a href="index.html#AppFacCli()">Añadir nueva factura</a></font></li>
</ul>
when I click on "Añadir nueva factura" I open the procedure index.html#AppFacCli()
I not Know TwebView or TwebView2 because I never use these object classes, exist a codeblock to insert as bonEvent ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour March-April 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