BBjHtmlView::getClientType

Description

In BBj 19.00 and higher, this method returns the client type for this BBjHtmlView control.

Syntax

Return Value

Method

string

getClientType()

Parameters

None.

Return Value

Returns the client type for the BBjHtmlView control ("Browser" (BUI or DWC), "Swing" (basic HTML 3.2), "Chromium").

Example

rem ' BBjHtmlView::getClientType

sysgui = unt
open (sysgui)"X0"
sysgui! = bbjapi().getSysGui()
url$ = "https://en.wikipedia.org"
window! = sysgui!.addWindow(50,50,900,650,url$,$00090083$)
window!.setCallback(window!.ON_CLOSE,"eoj")
window!.setCallback(window!.ON_RESIZE,"resize")
htmlview! = window!.addHtmlView(101,25,25,850,600,html$)
htmlview!.setUrl(url$)
clientType$ = htmlview!.getClientType(err=*next)
clientVersion$ = htmlview!.getClientVersion(err=*next)
clientInfo$ = clientType$+" "+clientVersion$
status! = window!.addStatusBar(99)
status!.setText(clientInfo$)
process_events

eoj:
  release
resize:
  event! = sysgui!.getLastEvent()
  w = event!.getWidth()
  h = event!.getHeight()
  htmlview!.setSize(w-50,h-50)
return
Example Type: BBj

See Also

BBjAPI

BBjSysGui

BBjControl

BBjWindow

BBjHtmlView

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