Search found 150 matches

by pamen
Mon Jun 03, 2024 12:03 pm
Forum: Coding Questions
Topic: disable and enable javascript in webview PB 6.x, Script return
Replies: 0
Views: 1235

disable and enable javascript in webview PB 6.x, Script return

Hi
How to consistently disable or enable Javascript in WebViewGadget on all platforms?

and when calling a JavaScript function, how to bind the return value in PB?

This is , as pointed out by Fred done by binding, how do we bind in practice
function somefun() { return("bla") ;};
to read "bla" in PB ...
by pamen
Mon Feb 19, 2024 3:59 pm
Forum: Announcement
Topic: PureBasic 6.10 LTS is out !
Replies: 344
Views: 107729

Re: PureBasic 6.10 beta 6 is out !

Maybe not a bug at all - on Windows WebView2 starts with 6 instances and memory used is 30-100 MB in total.
The same with (admittedly smaller) IE is few MB max and no additional processes.

Obviously Chrome engine uses process per page for isolation, but why do we get 6 instances on a single ...
by pamen
Wed Feb 14, 2024 8:48 am
Forum: General Discussion
Topic: Modern-day POP3 access?
Replies: 4
Views: 1394

Re: Modern-day POP3 access?

Hi Barry
To do things right is complicated, I just wrote an email client (IMAP(s) / SMTP(s)),
network -better use library like chilkat () - you need support for TLS, Digital signatures, MIME parsing, control of connection count (gmail, outlook356...),
HTML parsing, converting to text ...
by pamen
Wed Feb 14, 2024 8:32 am
Forum: Off Topic
Topic: WinLIFT Version 7.00 Skin Engine
Replies: 7
Views: 2740

Re: WinLIFT Version 7.00

Obviously it would be great,
If someone from the community with graphic design experience
could design basic Light and Dark "modern" skin for windows 10+ using the engine and share with others.
by pamen
Wed Feb 14, 2024 8:26 am
Forum: Off Topic
Topic: WinLIFT Version 7.00 Skin Engine
Replies: 7
Views: 2740

Re: WinLIFT Version 7.00

Yes, but the skin design is not the point of this post.

Quoting myself: "Finally: if you do not like the fancy skin styles from Patrice's distribution, find it odd, outdated or not to your taste - just make your own"
The style is what YOU do with it, having a working engine is of much more ...
by pamen
Tue Feb 13, 2024 11:10 am
Forum: Off Topic
Topic: WinLIFT Version 7.00 Skin Engine
Replies: 7
Views: 2740

Re: WinLIFT Version 7.00

Thanks Patrice,
As I got some requests to explain how to use it in PureBasic, here is the long story and a sceleton PB Include for Winlift 32 and 64 bit.

The screenshot Patrice provided (and some other on Patrice's objreader.com forum)
are from a working PureBasic Email Client - so I can confirm ...
by pamen
Mon Feb 12, 2024 6:06 pm
Forum: Announcement
Topic: PureBasic 6.10 LTS is out !
Replies: 344
Views: 107729

Re: PureBasic 6.10 beta 6 is out !

Wonderful!
Thank you Fred and team - that is a lot of great, great work!
by pamen
Wed Feb 07, 2024 1:06 pm
Forum: Coding Questions
Topic: PB 6.1 Beta4/5 - Weird default IME context menu in String gadgets
Replies: 4
Views: 655

Re: PB 6.1 Beta4/5 - Weird default IME context menu in String gadgets

Thank you Fred
I have an earlier compilation with 6.0x (not sure which though) without the IME, but like said - that is my curiosity.
not a real problem.
let's consider it then a new nice feature for linguists among us, if one does not like it - follow MS and intercept WM_CONTEXTMENU, send Right ...
by pamen
Wed Feb 07, 2024 12:12 pm
Forum: Coding Questions
Topic: PB 6.1 Beta4/5 - Weird default IME context menu in String gadgets
Replies: 4
Views: 655

Re: PB 6.1 Beta4/5 - Weird default IME context menu in String gadgets

One can intercept WM_CONTEXTMENU,
That is easy, I'm just asking why the change from 6.04
This is not a real issue, just getting IME means that by default PB now supports IME, which kind of breaks backward compatibility.
by pamen
Wed Feb 07, 2024 11:40 am
Forum: Announcement
Topic: PureBasic 6.10 LTS is out !
Replies: 344
Views: 107729

Re: PureBasic 6.10 beta 5 is out !


I therefore urge the team either to expose the WebViewGadget to the same events as the WebGadget or to allow the WebGadget to execute scripts.


There is a thread about it already - I face the same issues plus no possibility to get a return value from a JS function.
https://www.purebasic.fr ...
by pamen
Wed Feb 07, 2024 9:01 am
Forum: Coding Questions
Topic: PB 6.1 Beta4/5 - Weird default IME context menu in String gadgets
Replies: 4
Views: 655

PB 6.1 Beta4/5 - Weird default IME context menu in String gadgets

Hi
StringGadget in 6.1 sports (on Windows) system generated edit menu with IME options,
for normal users this is an overkill (unless they understand IME special codes for reversing the direction of inline text or compositing Arabic characters), how can I get rid of the menu or at least IME options?
by pamen
Tue Jan 30, 2024 12:28 pm
Forum: Coding Questions
Topic: PB 6.1 Beta 4 - QT and Function Return support in WEBViewGadget?
Replies: 9
Views: 1769

Re: PB 6.1 Beta 4 - QT and Function Return support in WEBViewGadget?

Additional Info Win7 64/32 with WebView installed:

Webgadget (WebView2) on Windows 7 seems to become IE, scrollbars are square and white.
WebViewGadget on the Same installation of Windows 7 + WebView2 works correctly (but as it does not have Navigate Callback, so it is not usable as secure viewer)
by pamen
Tue Jan 30, 2024 8:08 am
Forum: Coding Questions
Topic: PB 6.1 Beta 4 - QT and Function Return support in WEBViewGadget?
Replies: 9
Views: 1769

Re: PB 6.1 Beta 4 - QT and Function Return support in WEBViewGadget?

Correct mk-soft,
in all browsers the result of the JS must be in a callback. This is clear.
It is not possible and also makes no sense to have it differently.
Hosting application can do the polling and blocking until result or error comes back via callback.

So - the same as already implemented in ...
by pamen
Mon Jan 29, 2024 3:10 pm
Forum: Coding Questions
Topic: PB 6.1 Beta 4 - QT and Function Return support in WEBViewGadget?
Replies: 9
Views: 1769

Re: PB 6.1 Beta 4 - QT and Function Return support in WEBViewGadget?

Dear Fred
Thank you.

Qt renders pages fine (or emails in my case), which in GTK WebView 2/3 just show "errors in HTML".

Calling Java and getting function results is essential if you want to:
- WEB based editors (and not reinvent them for the next 6 months)
- Pages, which contain dynamic JS from ...
by pamen
Mon Jan 29, 2024 12:30 pm
Forum: Coding Questions
Topic: PB 6.1 Beta 4 - QT and Function Return support in WEBViewGadget?
Replies: 9
Views: 1769

PB 6.1 Beta 4 - QT and Function Return support in WEBViewGadget?

Hi
PB 6.1 Beta 4

1 - Is Qt fully supported by WEBViewGadget? New help file states GTK, GTK has much poorer browser than Qt...

2 - ExecuteJavascript in WebViewGadget - I see a callback for function with parameters, but not Javascript function return value.
Silly question: I need to call a JS ...