FLTK logo

[fltk.general] Re: Pass HTML string to Fl_Browser or Fl_Browser for display

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Pass HTML string to Fl_Browser or Fl_Browser for display Anmol Mishra Apr 20, 2020  
 
Thanks for the answers. The Fl_Help_View value() method did the trick.

On Monday, April 20, 2020 at 2:49:43 AM UTC+5:30, Anmol Mishra wrote:
Hi. The load methods for both Fl_Browser  and Fl_Browser  require a file based input.
I am linking FLKT into an app where I want to include a license file.

const char *licenseData =
#include "test.txt"
;
 

In the text file I do this:

R"(Line 1
Line 2
Line 3
Line 4
Line 5
Line 6)"

Is there a way I can pass this string directly to the browser ??

 help->load (licenseData);

or

browser->load (licenseData);

--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/1475a2f6-294e-4036-9dbb-fb3480eb8dd0%40googlegroups.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.