I'm using the WebView with DashBoard and I would like to refresh the page with F5 from the browse, but through a button, I tried to use it, and it has no effect on the button, if I click with the mouse and then press F5 ok, it works.
HB_KeyPut(VK_F5)
- Code: Select all Expand view
* ========================================================================
METHOD TaskBI() CLASS TVSisrevBI /* botão de refresh F5 do Browse */
* ========================================================================
local oGrpDash, oButDash
TASKGROUP oGrpDash PROMPT "Dashboard" WATERMARK MARCA_DAGUA BITMAP "grafico"
@ 4, 10 BTNBMP oButDash PROMPT "Atualizar" SIZE 120,35 LEFT ;
RESOURCE "chart" 2007
oButDash:bAction := {|| ::oFld:aDialogs[1]:SetFocus(),;
HB_KeyPut(VK_F5) ,;
::oFld:aDialogs[1]:refresh() }
ENDTASKGROUP
return nil