Is it possible to view ActiveX controls on a page before I allow it to run? - activex

A website is trying to run ActiveX controls. Is there any way I can look at them before I decide whether or not to run allow them?

In order to render itself, an ActiveX control/component needs to run.
So, no, it is impossible to get a "preview" of an ActiveX control without running it.

Related

MAUI Blazor - Use Webview as component

I have a MAUI .NET6 application with blazor pages and components, and I would like to display a kind of web browser inside a page, in order to display some internet content.
I tried to use the BlazorWebView, but I couldn't figure out how to use a XAML component inside a blazor component.
For now I have an iframe, but some internet content is blocked. I would like to have like a real browser.
Have you some ideas how to achieve this ?
You cannot embed XAML inside of Razor pages. Whenever you are inside of a BlazorWebView you will need to find a "web way" to fix whatever you're doing. So that would indeed be an iframe or something like that.
Another way around it would be to navigate to a .NET MAUI native page and show a WebView on that, but seeing how you describe things, that is not what you want.

How to suppress ActiveX warning dialogs in TEmbeddedWB?

In a Delphi XE8 VCL Form project using TEmbeddedWB, in EmbeddedWB1 for security reasons I set both DontExecuteActiveX and DontDownloadActiveX properties to True:
I have also disabled dialog-boxes in EmbeddedWB1 by setting EmbeddedWB1.DialogBoxes.DisableAll to True:
However, when I navigate to a page like:
https://www.iplocation.net/
or:
http://www.hostip.info/
I still get ActiveX warning dialog boxes:
One or more ActiveX controls could not be displayed because either: 1)
Your current security settings prohibit running ActiveX controls on
this page, or 2) You have blocked a publisher of one of the controls.
As a result, the page might not display correctly.
So how can I suppress these dialog boxes?
Locate Your EmbeddedWB component -> Events -> OnScriptError:
fill these lines here:
continuescript:=true;
showdialog:=false;
It's much better that turnin on "Silent" mode, some webpages not loading correctly with "Silent:=True" parameter...
Hope it helps

How to show Find/Replace Dialog on SpreadsheetGear workbook?

How can I show from code SpreadsheetGear dialogs like Find/Replace?
There is WorkbookDesigner form which has most of those dialogs in main menu, but how can I implement it myself?
The "Find and Replace" dialog is not part of SpreadsheetGear's public API and so cannot be instantiated from code. Developers using Windows Forms have been able to "hack" this since a keyboard shortcut does exist to launch this dialog from the WinForms WorkbookView. This has been done by sending a Ctrl+F keystroke to the WorkbookView, using something like the following:
workbookView.Focus();
System.Windows.Forms.SendKeys.Send("^f");
WPF doesn't support this model since it is part of Windows Forms. However, it appears that using System.Windows.Forms.SendKeys.SendWait("^f") might work instead, but I make no guarantees of this.
Generally speaking, if a particular "dialog", such as the Find and Replace dialog, is not listed in the SpreadsheetGear.Windows.Forms namespace, then it is not available to instantiate from code.

opening default browser with delphi at specific position

I want to open a web page at default browser at a specific position and also open another webpages at that one, not new task of that browser. maybe user opens new task of that browser but by clicking a button in my delphi program the selected web page have to open at first one. is that possible? my company wants me to program such thing BUT I do not know how to do. I really appricate any help. thanks.
There are instructions here to open the default browser, but you may even be able to "run" a url, as you can from the Windows run command. You then need to retain the handle of that process so that you can do something with it.
To open a web page at a particular point you would ideally use a named anchor in the page, ie, the bit after a hash: http://www.w3schools.com/TAGS/tryit.asp?filename=tryhtml_a_name If you don't have control of the page and there are no named anchors you could try scrolling: How to scroll the scrollbar in external application via WinAPI?

Display Flash Web Widget in a Delphi form

I would like to display the yahoo weather widget (or any similar flash or java based widget) in a Delphi application. I freely admit I don't quite understand what would be required to make this work.
Any suggestions on how this could be accomplished would be appreciated.
I'm using Delphi 7. All of the Widgets are just HTML Code, which when I cut & paste them to my Blogger page for instance, show up and work fine. I'm not sure how to take that same html code and use it in a Delphi form to get similar results.
Detailed instructions would be appreciated as well as an explanation. Clearly I don't quite understand how this works... I only know what outcome I'd like ;-)
Thanks Rob, it wasn't a memory issue, butt he admins did take care of it as you suggested.
Mark
Basically, you want to host the SWF ActiveXObject.
http://delphi.about.com/od/graphics/l/aa040103a.htm
As mentioned above you could host Flash's active X control for a flash control.
The other option is to use an embedded webpage (possibly loaded off the local disk) using the built in Delphi TWebBrowser control to show any web content including Java or Flash controls (as long as they are installed on the client).
Hope that helps.
I have a video on embedding flash into Delphi Applications Available Here. If the widget is a flash file (.swf) it should be fairly easy. The other option (as already mentioned) is to use the Delphi TWebBrowser component.

Resources