Search found 764 matches

by Justin
Thu Apr 18, 2024 7:23 am
Forum: Bugs - Windows
Topic: PB6.10 - 6.11b1 splitter redraw bug
Replies: 6
Views: 305

Re: PB6.10 - 6.11b1 splitter redraw bug

Yes i forgot to say that dpi aware must be enabled with non dpi aware is ok.
by Justin
Wed Apr 17, 2024 9:33 pm
Forum: Bugs - Windows
Topic: PB6.10 - 6.11b1 splitter redraw bug
Replies: 6
Views: 305

PB6.10 - 6.11b1 splitter redraw bug

If you run the splitter example from the help file and move the cursor over the second button to highlight it here the bottom border is not drawn as seen in the picture. Only when you start resizing the splitter is drawn, i think it also happens with the vertical splitter. I am on 4k resolution and ...
by Justin
Tue Apr 09, 2024 1:24 pm
Forum: Windows
Topic: unable to load c2.dll when importing a static library
Replies: 9
Views: 403

Re: unable to load c2.dll when importing a static library

Hi,
i tried to build with mingw, it creates the satic lib but when calling git_libgit2_init() polink shows no errors but the debugger quits unexpectedly.

i thought that with the new linker these things would be easier but not in this case.
by Justin
Wed Mar 13, 2024 8:10 pm
Forum: Coding Questions
Topic: Cannot execute the file with the internal debugger
Replies: 8
Views: 167

Re: Cannot execute the file with the internal debugger

I think i had the same problem, try disabling windows defender
by Justin
Tue Feb 27, 2024 3:29 pm
Forum: Coding Questions
Topic: [SOLVED]; WebViewGadget; Win 10 64; PB6.10b6; SetVirtualHostNameToFolderMapping
Replies: 3
Views: 213

Re: WebViewGadget; Win 10 64; PB6.10b6; SetVirtualHostNameToFolderMapping

Hi, i would do something like this: Define.ICoreWebView2 wv2 Define.ICoreWebView2_3 wv2_3 Controller.ICoreWebView2Controller = GetGadgetAttribute(0, #PB_WebView_ICoreController) Controller\get_CoreWebView2(@wv2.ICoreWebView2) wv2\QueryInterface(?IID_ICoreWebView2_3, @wv2_3) wv2\Release() If wv2_3 wv...
by Justin
Mon Feb 26, 2024 10:03 pm
Forum: Windows
Topic: WebViewGadget inside frame freezes window
Replies: 8
Views: 504

Re: [PB 6.10 beta 6] WebViewGadget inside frame freezes window

For me it makes more sense like this: UseDialogWebViewGadget() XML_MainWindow$ = "<window id='0' name='Test' minwidth='640' minheight='480' flags='#PB_Window_ScreenCentered | #PB_Window_SystemMenu | #PB_Window_Invisible'>" + " <frame id='1' text = 'Frame'>'" + " <webview id ...
by Justin
Mon Feb 26, 2024 1:19 pm
Forum: Windows
Topic: WebViewGadget inside frame freezes window
Replies: 8
Views: 504

Re: [PB 6.10 beta 6] WebViewGadget inside frame freezes window

You can use SetWindowPos_() to change the z order to put the frame on top once the dialog is created.
https://learn.microsoft.com/en-us/windo ... twindowpos
by Justin
Mon Feb 26, 2024 11:04 am
Forum: Windows
Topic: WebViewGadget inside frame freezes window
Replies: 8
Views: 504

Re: [PB 6.10 beta 6] WebViewGadget inside frame freezes window

It's a known issue, i don't think it's a pb bug; https://stackoverflow.com/questions/33628963/wm-nchittest-and-httransparent-blocks-input-from-message-loop The solution is to put the frame on top of the webview: OpenWindow(0, 100, 100, 400, 400, "Hello", #PB_Window_SystemMenu | #PB_Window_...
by Justin
Mon Feb 19, 2024 11:19 pm
Forum: Tricks 'n' Tips
Topic: MS-Word from PB with COM Interface
Replies: 46
Views: 29957

Re: MS-Word from PB with COM Interface

Interacting with word this way it's difficult if you are not familiar with COM, the best way is to try to translate from VBS. For example this simple VBS code: Sub InsertTextAtEndOfDocument() ActiveDocument.Content.InsertAfter Text:=" The end." End Sub Translate into this, creating and sav...
by Justin
Mon Feb 19, 2024 2:52 pm
Forum: Tricks 'n' Tips
Topic: MS-Word from PB with COM Interface
Replies: 46
Views: 29957

Re: MS-Word from PB with COM Interface

Sometime ago i converted the typelib with a tool a wrote, here is the pb include (MSWORD.pbi): https://github.com/omegakode/PBMSWord i just tested this basic code and it works: EnableExplicit XIncludeFile "MSWORD.pbi" Define._Application wdApp OleInitialize_(0) If CoCreateInstance_(?CLSID_...
by Justin
Thu Feb 15, 2024 10:45 pm
Forum: General Discussion
Topic: Webview2 control - Chromium browser for Purebasic (Windows) [Jan 1, 2024]
Replies: 171
Views: 55048

Re: Webview2 control - Chromium browser for Purebasic (Windows) [Jan 1, 2024]

Hi, The next update will make things much easier, for now it uses the api control but i'll try to integrate the new WebGadget. I didn't notice any difference, a very good thing of 6.10 is that the dll can be linked statically. Here is a sneak preview with theme transitions in 6.10: https://i.postimg...
by Justin
Sun Feb 11, 2024 3:12 pm
Forum: Coding Questions
Topic: PB 6.10 beta 5 #PB_Any return value type changed?
Replies: 17
Views: 1193

Re: PB 6.10 beta 5 #PB_Any return value type changed?

Hi mk, i already tried, it does not work. When you get a value back from javascript anything bigger than a long it's considered a double. In js the number type is double, so if you call a pb function from js like: pbobj.pbfunc(2147483648) the pb function recieves a double not a 8 byte integer becaus...
by Justin
Sun Feb 11, 2024 11:13 am
Forum: Announcement
Topic: PureBasic 6.10 LTS is out !
Replies: 330
Views: 40954

Re: PureBasic 6.10 beta 6 is out !

Hi, You can get the last version of the WebView residents, from this repo: https://github.com/omegakode/PBWebview2 Scroll down to the readme, there are direct links there. The SDK is updated very often, every two months. I'll try to keep them up to date. In fact the one that ships with this beta it'...
by Justin
Sat Feb 10, 2024 7:02 pm
Forum: Coding Questions
Topic: PB 6.10 beta 5 #PB_Any return value type changed?
Replies: 17
Views: 1193

Re: PB 6.10 beta 5 #PB_Any return value type changed?

It's not the PB Integer type, i know that, all my code is x64/x86 compatible since very long ago. It's a particular case i came along that made me notice this: I am interacting with the WebView2 javascript, when you pass in a gadget handle returned by #PB_Any to a js function, it's interpreted diffe...
by Justin
Sat Feb 10, 2024 1:25 pm
Forum: Coding Questions
Topic: PB 6.10 beta 5 #PB_Any return value type changed?
Replies: 17
Views: 1193

Re: PB 6.10 beta 5 #PB_Any return value type changed?

Just noticed that in Windows 7 x64 with this beta the behaviour is to return small numbers like in previous PB versions, they actually fit in a long type.

This different memory behaviour between os with the same PB version can cause problems in some situations.