Hello,
Silly question: Is it possible to create a WebViewGadget with the DialogXML lib?
Has this feature also been included in version 6.10b1?
Thanks.
WebViewGadget and DialogXML library
WebViewGadget and DialogXML library
If my English syntax and lexicon are incorrect, please bear with Google translate and DeepL. They rarely agree with each other!
Except on this sentence...
Except on this sentence...
Re: WebViewGadget and DialogXML library
It didn't work when I tried "webview" in the XML.
You can add it manually to a dialog with a little bit of work:
You can add it manually to a dialog with a little bit of work:
Code: Select all
#Dialog = 0
#XML = 0
Procedure OnContainerResized()
ResizeGadget(1, #PB_Ignore, #PB_Ignore, GadgetWidth(0), GadgetHeight(0))
EndProcedure
XML$ = "<window id='#PB_Any' name='test' text='test' minwidth='320' minheight='240' flags='#PB_Window_ScreenCentered | #PB_Window_SystemMenu | #PB_Window_SizeGadget'>" +
" <container id='0' flags='#PB_Container_BorderLess'/>" +
"</window>"
If ParseXML(#XML, XML$) And XMLStatus(#XML) = #PB_XML_Success
If CreateDialog(#Dialog) And OpenXMLDialog(#Dialog, #XML, "test")
BindGadgetEvent(0, @OnContainerResized(), #PB_EventType_Resize)
OpenGadgetList(0)
WebViewGadget(1, 0, 0, 320, 240)
CloseGadgetList()
Define html$ = ~"<html><head></head><body><p style=\"color:blue;\">WebView</p></body></html>"
SetGadgetText(1, html$)
Repeat
Event = WaitWindowEvent()
Until Event = #PB_Event_CloseWindow
EndIf
EndIfRe: WebViewGadget and DialogXML library
@wombats
Thanks for your response .
I know your tip
I had hope/I'm still hoping that a member of the team will come and tell us that this was planned before the final release.
Thanks for your response .
I know your tip
Unfortunately, I tried too with no result.wombats wrote: It didn't work when I tried "webview" in the XML.
I had hope/I'm still hoping that a member of the team will come and tell us that this was planned before the final release.
If my English syntax and lexicon are incorrect, please bear with Google translate and DeepL. They rarely agree with each other!
Except on this sentence...
Except on this sentence...
Re: WebViewGadget and DialogXML library
I will add it, thanks
Re: WebViewGadget and DialogXML library
Disclaimer : Message for adults and children over 6 years
Somebody lied to me? Does Santa really exist?
Merci Fred et l'équipe.
Excellentes fêtes de fin d'année.
If my English syntax and lexicon are incorrect, please bear with Google translate and DeepL. They rarely agree with each other!
Except on this sentence...
Except on this sentence...

