Browser Object

In this category you can exchange your programming questions and solutions.
Post Reply
cvirus
Posts: 88
Joined: Tue Jan 12, 2010 8:33 pm

Browser Object

Post: # 1172Post cvirus
Mon Mar 17, 2014 7:47 pm

Hello Admin, is it possible to use browser object in FnxBasic?

Thanks

Marco
Site Admin
Posts: 246
Joined: Sat Sep 15, 2018 8:41 pm

Browser Object

Post: # 1173Post Marco
Sat Mar 22, 2014 4:10 pm

Can you go further with something like this?

best regards, marco

``get default browser
declare FindExecutable as "FindExecutableA" of "shell32.dll"
  lpFile As String
  lpDirectory As String
  lpResult As string byaddress
end declare

function getdefaultbrowser as string
  dim f as filestream
  f.open("htmpl.htm")
  f.close
  FindExecutable.lpfile="htmpl.htm"
  FindExecutable.lpDirectory=exepath
  FindExecutable.execute
  result=FindExecutable.lpresult
  kill "htmpl.htm"
end function

declare setparent as "SetParent" of user32
  par as integer
  child as integer
end declare

object myform as form
  object b as button
    caption="open browser"
    onclick=openb
  end object
  center
  showmodal
end object

sub openb
  run getdefaultbrowser
end sub

cvirus
Posts: 88
Joined: Tue Jan 12, 2010 8:33 pm

Browser Object

Post: # 1174Post cvirus
Sat Mar 22, 2014 5:21 pm

What i meant was, embebed browser in fnx app.

Post Reply