Search found 72 matches
- Mon Apr 21, 2025 10:31 am
- Forum: Coding Questions
- Topic: [Solved] DPI issue when app can't use DPI awareness
- Replies: 14
- Views: 1664
Re: [Solved] DPI issue when app can't use DPI awareness
Literally 99% of my app's display and functions get broken when I turn DPI on. :( Gadgets appear too small or large, images aren't the right size, opening a window to the edge of the desktop never works (they go off the edge similar to my first post above), etc. It's a massive re-write to fix it ...
- Sat Mar 29, 2025 10:38 am
- Forum: Coding Questions
- Topic: HTTPTimeout
- Replies: 1
- Views: 108
HTTPTimeout
For a bunch of reasons I need to stay on PB 5.73 LTS for now, and it does not have the HTTPTimeout() command.
Does anyone know what internal API command HTTPTimeout() uses (for Windows), so I could use that instead?
HTTPTimeout(5000) ; Allows 5 secs to connect to the server
HttpRequest ...
Does anyone know what internal API command HTTPTimeout() uses (for Windows), so I could use that instead?
HTTPTimeout(5000) ; Allows 5 secs to connect to the server
HttpRequest ...
- Thu Mar 27, 2025 3:15 pm
- Forum: Coding Questions
- Topic: Strange behaviour resolution on Asus Vivibook 15
- Replies: 9
- Views: 342
Re: Strange behaviour resolution on Asus Vivibook 15
Check if this setting is enabled in compiler options


- Wed Mar 26, 2025 2:04 pm
- Forum: Coding Questions
- Topic: Scintilla select text
- Replies: 2
- Views: 161
Re: Scintilla select text
Code: Select all
ScintillaSendMessage(#ScintillaGadget, #SCI_SETSEL, 0, -1)
- Mon Aug 09, 2021 8:36 am
- Forum: Applications - Feedback and Discussion
- Topic: [Library] DSKT Library - Get access to a window behind the Icons [Win x64]
- Replies: 14
- Views: 11211
Re: [Library] Aki Desktop - Get access to a window behind the Icons [Win x64]
Pretty nice example, thanks!
- Mon Aug 09, 2021 8:27 am
- Forum: Coding Questions
- Topic: For Next STEP As Variable?
- Replies: 13
- Views: 2911
Re: For Next STEP As Variable?
Trying to alter its value in mid-loop can have unexpected results
Or, expected results (if that's the desire). I've seen that before in other BASICs but can't remember why it was done. But the point still remains: even if the Step value is a variable, the coder might not be changing its value ...
- Mon Jul 19, 2021 12:57 pm
- Forum: Applications - Feedback and Discussion
- Topic: [Library] DSKT Library - Get access to a window behind the Icons [Win x64]
- Replies: 14
- Views: 11211
Re: [Library] Aki Desktop - Get access to a window behind the Icons [Win x64]
Thanks for sharing. Does it support multiple monitors?
- Mon May 17, 2021 7:14 pm
- Forum: Coding Questions
- Topic: [solved] image with alpha channel has white background
- Replies: 4
- Views: 1398
Re: image with alpha channel has white background
Try:
Enumeration
#im1
#im101
#imgad
EndEnumeration
Global.i abfl ;this is global just while I am experimenting.
Procedure MakeImages()
abfl=?image_man_standing
UsePNGImageDecoder()
CreateImage(#im1, 16, 16, 32)
If StartDrawing(ImageOutput(#im1))
DrawingMode(#PB_2DDrawing_AlphaBlend ...
Enumeration
#im1
#im101
#imgad
EndEnumeration
Global.i abfl ;this is global just while I am experimenting.
Procedure MakeImages()
abfl=?image_man_standing
UsePNGImageDecoder()
CreateImage(#im1, 16, 16, 32)
If StartDrawing(ImageOutput(#im1))
DrawingMode(#PB_2DDrawing_AlphaBlend ...
- Mon May 17, 2021 3:23 pm
- Forum: Coding Questions
- Topic: Stop WebGadget accessing the internet
- Replies: 58
- Views: 16140
Re: Stop WebGadget accessing the internet
In case someone still has a need for this, calling the following procedure (InitOfflineWebGadget) works fine for me:
Procedure InitOfflineWebGadget()
Structure S1
mode.i
*pNextHop
*pStub
EndStructure
owg.S1
owg\mode = 3
owg\pNextHop = @"0"
CallFunctionFast(GetFunctionEntry ...
Procedure InitOfflineWebGadget()
Structure S1
mode.i
*pNextHop
*pStub
EndStructure
owg.S1
owg\mode = 3
owg\pNextHop = @"0"
CallFunctionFast(GetFunctionEntry ...
- Sat May 15, 2021 3:43 pm
- Forum: Coding Questions
- Topic: Print to multiple printers at once, without opening PrintRequester
- Replies: 12
- Views: 2767
Re: Print to multiple printers at once, without opening PrintRequester
To print a pdf, give this a try: (replace the ip address with the one of your printer)
It should work with some printers.
Procedure SendBinaryFile(socket0, filename$)
If FileSize(filename$) <= 0 : ProcedureReturn : EndIf
FileID.i = OpenFile(#PB_Any,filename$)
If FileID.i
*memory ...
It should work with some printers.
Procedure SendBinaryFile(socket0, filename$)
If FileSize(filename$) <= 0 : ProcedureReturn : EndIf
FileID.i = OpenFile(#PB_Any,filename$)
If FileID.i
*memory ...
- Fri May 14, 2021 6:23 pm
- Forum: General Discussion
- Topic: Webview2 control - Chromium browser for Purebasic (Windows) [Jan 1, 2024]
- Replies: 181
- Views: 83618
Re: Webview2 control - Chromium browser for Purebasic (Windows)
That's a fantastic example justin, thanks a lot.
- Thu May 13, 2021 9:56 pm
- Forum: General Discussion
- Topic: Webview2 control - Chromium browser for Purebasic (Windows) [Jan 1, 2024]
- Replies: 181
- Views: 83618
Re: Webview2 control - Chromium browser for Purebasic (Windows)
Another question that is bothering me a little (although not important)... Would there be a way to add a custom HTTP header to each request (for both top navigation and resource loading events)? So that each request has a custom "HeaderX:ValueY" header?
- Wed May 05, 2021 2:33 pm
- Forum: Applications - Feedback and Discussion
- Topic: PB.Ex WebGadget (Windows) (WebKit)
- Replies: 97
- Views: 107231
Re: PB.Ex WebGadget (Windows) (WebKit)
Is not working for me.
"The debugger executable quit unexpectedly"
;Version: 1.1.0.0
EnableExplicit
Global PBEx_WebGadget
#PBEx_WebGadgetEx_Version$ = "1.1.0.0"
#PB_Web_Zoom = 100
CompilerIf #PB_Compiler_Processor = #PB_Processor_x86
PBEx_WebGadget = OpenLibrary(#PB_Any, "C:\Program Files ...
- Sat May 01, 2021 5:44 pm
- Forum: Tricks 'n' Tips
- Topic: QR Code encoder library ported to PB
- Replies: 28
- Views: 17494
Re: QR Code encoder library ported to PB
Very good job, thanks!
2 questions:
1/ Where in the code could I change the size of a "dot" (or the resulting qr-code image)? I've tried ResizeImage but it produces bad artefacts which often make the code unreadable by my smartphone
2/ Is it feasible to use a "round dot" style? Like in this ...
2 questions:
1/ Where in the code could I change the size of a "dot" (or the resulting qr-code image)? I've tried ResizeImage but it produces bad artefacts which often make the code unreadable by my smartphone
2/ Is it feasible to use a "round dot" style? Like in this ...
- Wed Apr 28, 2021 1:36 pm
- Forum: Tricks 'n' Tips
- Topic: Obfuscator / TextCrypter -AES -x86/64 -Unicode -Module
- Replies: 7
- Views: 3456
Re: Obfuscator / TextCrypter -AES -x86/64 -Unicode -Module
Cool job, thanks!