Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.

various form with browser

Post Reply
User avatar
salvadordf
Posts: 4056
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: various form with browser

Post by salvadordf »

Hi,
daylan.audrey wrote: Tue Jun 19, 2018 6:23 pm the user can open several tabs, however, when the second one opens, it no longer loads the page, needs to close it and open again ... Is there any configuration to use more than one form in the same application?
Use the TabBrowser demo as a template for your application. It loads multiple web pages without problems.
daylan.audrey wrote: Tue Jun 19, 2018 6:23 pm Another thing, is how to get the directory that saved the pdf, when the DisablePDFExtension property is set to True?
Use the TChromium.OnFileDialog event to run a file chooser dialog.

These are the original CEF code comments for that event :

Code: Select all

  ///
  // Called to run a file chooser dialog. |mode| represents the type of dialog
  // to display. |title| to the title to be used for the dialog and may be empty
  // to show the default title ("Open" or "Save" depending on the mode).
  // |default_file_path| is the path with optional directory and/or file name
  // component that should be initially selected in the dialog. |accept_filters|
  // are used to restrict the selectable file types and may any combination of
  // (a) valid lower-cased MIME types (e.g. "text/*" or "image/*"),
  // (b) individual file extensions (e.g. ".txt" or ".png"), or (c) combined
  // description and file extension delimited using "|" and ";" (e.g.
  // "Image Types|.png;.gif;.jpg"). |selected_accept_filter| is the 0-based
  // index of the filter that should be selected by default. To display a custom
  // dialog return true and execute |callback| either inline or at a later time.
  // To display the default dialog return false.
  ///
User avatar
salvadordf
Posts: 4056
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: various form with browser

Post by salvadordf »

daylan.audrey wrote: Tue Jun 19, 2018 6:58 pm First, thank you very much for the response ..
sorry, it would not be several tab's, it would be several forms and each of them with a different browser.
Then use the MDIBrowser demo or the ToolboxBrowser demo as a template for your application.
Post Reply