BBjHtmlView::setUrl

Description

In BBj 7.00 and higher, this method sets the URL associated with this BBjHtmlView.

Syntax

Return Value

Method

void

setUrl(string url)

void

setUrl(string url, String loader)

Parameters

Variable

Description

url

The URL the BBjHtmlView control will load.

loader

In BBj 25.00 and higher, this optional app-loader.html can be used to embed local BUI or DWC apps in a Java Swing GUI Chromium BBjHtmlView container and have the embedded apps inherit the BBj license from the container.

Return Value

None.

Remarks

Sets the URL of the BBjHtmlView control.

Example

rem ' BBjHtmlView::setUrl

url$ = "https://en.wikipedia.org"

sysgui = unt
open (sysgui)"X0"
sysgui! = bbjapi().getSysGui()
window! = sysgui!.addWindow(50,50,800,600,"BBjHtmlView::setUrl",$00090083$)
window!.setCallback(window!.ON_CLOSE,"eoj")
window!.setCallback(window!.ON_RESIZE,"resize")
htmlview! = window!.addHtmlView(101,25,50,750,550,url$,$$)
htmlview!.setCallback(htmlview!.ON_PAGE_LOADED,"event")
htmlview!.setUrl(url$)
message! = window!.addStatusBar(99)
process_events

eoj:
release

resize:
  event! = sysgui!.getLastEvent()
  htmlview!.setSize(event!.getWidth()-50,event!.getHeight()-50)
return

event:
  event! = sysgui!.getLastEvent()
  msg$ = event!.getEventName()+" "+event!.getUrl()
  message!.setText(msg$)
return
Example Type: BBj

See Also

BBjAPI

BBjSysGui

BBjControl

BBjWindow

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.