Search found 1144 matches

by Kukulkan
Fri Nov 16, 2018 8:14 am
Forum: General Discussion
Topic: @Fred? Is it okay to re-create gadgets (using FreeGadget())?
Replies: 12
Views: 1622

Re: @Fred? Is it okay to re-create gadgets (using FreeGadget

Hi, I normally always use #PB_Any and do not like static numbers at all. This is a demo to explain my specific question. I did a new gadget with #PB_Any. And then I like to remove it and re-create it with the same ID . This is why I use a fixed number then, causing a mixed use. And this raised the q...
by Kukulkan
Thu Nov 15, 2018 5:17 pm
Forum: General Discussion
Topic: @Fred? Is it okay to re-create gadgets (using FreeGadget())?
Replies: 12
Views: 1622

@Fred? Is it okay to re-create gadgets (using FreeGadget())?

Hi, I wonder if it is okay to re-create gadgets with the same ID? Some code will show best: Procedure main() Protected win.i = OpenWindow(0, 0, 0, 600, 300, "Test", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) If win.i Protected button.i = ButtonGadget(#PB_Any, 10, 170, 200, 20, &quo...
by Kukulkan
Thu Nov 15, 2018 3:52 pm
Forum: Windows
Topic: WebGadget does no longer resize, if I turn off JS execution
Replies: 2
Views: 1132

WebGadget does no longer resize, if I turn off JS execution

Hi, the following code is a result of collecting snippets from this Forum and Internet. The aim is to disable JavaScript execution in WebGadget control (and printing). Most of the code for this was from this thread by hm and Justin. Sadly, if the code is used to set the properties, the resizing does...
by Kukulkan
Thu Nov 15, 2018 8:41 am
Forum: General Discussion
Topic: How to disable JS in WebGadget on Windows?
Replies: 3
Views: 787

Re: How to disable JS in WebGadget on Windows?

Thanks normeus!

The code of hm and justin (update) seem to do the job, but this is a workaround that scares me. In my experience, the bigger the hack the more likely it will fail for some users.

Isn't there any shorter solution?
by Kukulkan
Wed Nov 14, 2018 5:44 pm
Forum: General Discussion
Topic: How to disable JS in WebGadget on Windows?
Replies: 3
Views: 787

Re: How to disable JS in WebGadget on Windows?

Okay, maybe it is helpful if I tell you what I found yet: This page from Microsoft is saying, that DLCTL_NO_SCRIPTS is able to stop any JS execution. I already found, how to get the IWebBrowser2 interface from the WebGadget: Protected Browser.IWebBrowser2 = GetWindowLong_(GadgetID(WebgadgetID.i), #G...
by Kukulkan
Wed Nov 14, 2018 12:17 pm
Forum: General Discussion
Topic: How to disable JS in WebGadget on Windows?
Replies: 3
Views: 787

How to disable JS in WebGadget on Windows?

Hi, I need to disable JS in WebGadget and found solutions for MacOS and Linux. But how to disable on Windows? I need to do this because even IE11 does not respect Content Security Policy (CSP) meta tags and some sandboxed iframe does not work for me (no navigation callbacks then). Any code about how...
by Kukulkan
Wed Nov 14, 2018 9:33 am
Forum: Windows
Topic: Webgadget IE compatibilty mode
Replies: 15
Views: 30094

Re: Webgadget IE compatibilty mode

Great! Thanks! I just checked the code and yes, it enters the executable name. Therefore, it should not apply to others and others should not affect me. Perfect!
by Kukulkan
Wed Nov 14, 2018 9:02 am
Forum: Windows
Topic: Webgadget IE compatibilty mode
Replies: 15
Views: 30094

Re: Webgadget IE compatibilty mode

Hi idle,

thank you very much! Great!

Is there any experience about the reliability of this hack? If I want to roll out such for thousands of users, how big is the chance that other software manipulates the same key at the same time and how often does this happen?

Best,

Kukulkan
by Kukulkan
Tue Nov 13, 2018 5:41 pm
Forum: Windows
Topic: Webgadget IE compatibilty mode
Replies: 15
Views: 30094

Re: Webgadget IE compatibilty mode

Hello Tristano,

do you have a final path for the needed registry entry and, maybe, a PB example about how you set this value?

Thanks!
by Kukulkan
Tue Nov 13, 2018 1:59 pm
Forum: General Discussion
Topic: How to get navigation callback from iframe in WebGadget?
Replies: 0
Views: 717

How to get navigation callback from iframe in WebGadget?

Hi, I display user HTML content in the webgadget (cross platform). For this, I cover it into some iframe. There I want to use sandbox feature to disable JavaScript (for security). But I need to open links from within this document to be opened by myself (I want to open the system web-browser with cl...
by Kukulkan
Fri Nov 09, 2018 10:25 am
Forum: General Discussion
Topic: Need help about future decision of my PB apps
Replies: 18
Views: 3108

Re: Need help about future decision of my PB apps

Hm, I rebooted my machine (to make sure no caching is used) and started three Electron apps I use on my machine: Skype, KeeWeb and Visual Studio Code. While Skype needs some seconds, KeeWeb starts lightning fast and Visual Studio Code seem to need 2 to 3 seconds. This might be a little slower than n...
by Kukulkan
Fri Nov 09, 2018 8:46 am
Forum: General Discussion
Topic: Need help about future decision of my PB apps
Replies: 18
Views: 3108

Re: Need help about future decision of my PB apps

Hi idle,

thank you very much for your opinions.
idle wrote:I don't think electron and node.js are good options yet.
Maybe you can give me some more information about why? I found no real drawbacks yet (except the huge size). Do you think there is something I should have an eye on?
by Kukulkan
Wed Nov 07, 2018 6:23 pm
Forum: General Discussion
Topic: Need help about future decision of my PB apps
Replies: 18
Views: 3108

Re: Need help about future decision of my PB apps

Hi mohsen, did you ever try to use your own gadgets in bigger layouts using XML Dialog library? I've had a lot of trouble using my owner drawn Gadgets with this library. Also with ImageGadgets. The missing vertical alignment for XML layouts caused a lot of my layouts looking very bad. All workaround...
by Kukulkan
Wed Nov 07, 2018 3:58 pm
Forum: General Discussion
Topic: Need help about future decision of my PB apps
Replies: 18
Views: 3108

Re: Need help about future decision of my PB apps

Hi mk-soft, I think you read neither my first post nor the linked post :( A Purebasic program looks like a Windows program under Windows. Under Linux it looks like a Linux program and under OSX it looks like a mac program. Sadly not. It looks outdated and even Windows own dialogues looking very(!) d...
by Kukulkan
Wed Nov 07, 2018 10:42 am
Forum: General Discussion
Topic: Need help about future decision of my PB apps
Replies: 18
Views: 3108

Re: Need help about future decision of my PB apps

Hi, maybe I forgot to mention that our tools have to be cross-platform (Windows, Mac and Linux). GUI libraries like CodeJock or BCTools are Windows only. Also, using such with PureBasic are not DPI aware and not compatible with the XML Dialog layout (which is mandatory for modern software I believe)...