Search found 1186 matches

by Paul
Thu Apr 18, 2024 5:02 am
Forum: Bugs - Windows
Topic: PB6.10 - 6.11b1 splitter redraw bug
Replies: 6
Views: 200

Re: PB6.10 - 6.11b1 splitter redraw bug

I can confirm this happens on a 4K monitor at 200% scaling using PB6.10
DPI Aware must be enabled.

Moving the splitter to the right position causes the bottom line of the Button to not draw properly.
by Paul
Sat Apr 06, 2024 2:55 pm
Forum: Applications - Feedback and Discussion
Topic: [Module] pbPDF-Module
Replies: 125
Views: 85571

Re: [Module] pbPDF-Module

Dear Colleagues, could you show me the working code for inserting a PNG image into PDF using the ImageMemory function? The code on page 4 of this post does not work. Thank you for your help. Kind regards. You made it to page 4... you just had to go 2 more pages :) https://www.purebasic.fr/english/v...
by Paul
Mon Apr 01, 2024 2:56 am
Forum: Bugs - Windows
Topic: ResizeWindow not working with DPI aware
Replies: 12
Views: 505

Re: ResizeWindow not working with DPI aware

Paul I didn't missed #PB_Window_SizeGadget Just replaced it with API #WS_THICKFRAME The snippet works as you planned Just check it Yes, sorry. You are correct in that #PB_Window_SizeGadget flag was not needed. What I did notice though is if I grab the bottom right corner to resize your Window befor...
by Paul
Mon Apr 01, 2024 12:03 am
Forum: Bugs - Windows
Topic: ResizeWindow not working with DPI aware
Replies: 12
Views: 505

Re: ResizeWindow not working with DPI aware

Hi RASHAD, your code snippet is missing the #PB_Window_SizeGadget flag which seems to introduce the problem.
If I add the #PB_Window_SizeGadget flag then your Window jumps in size when the flags are restored. :cry:
by Paul
Sun Mar 31, 2024 7:10 pm
Forum: Bugs - Windows
Topic: ResizeWindow not working with DPI aware
Replies: 12
Views: 505

Re: ResizeWindow not working with DPI aware

Can someone with a 4k high DPI monitor check this out and confirm? If I run the following code the Window starts at position 0,0 and when I press the button to move the window to 0,0 using ResizeWindow, the Window ends up at -6,0 if DPI aware is enabled on a 4K monitor with scaling set to 175% It's...
by Paul
Sun Mar 31, 2024 6:11 am
Forum: Bugs - Windows
Topic: ResizeWindow not working with DPI aware
Replies: 12
Views: 505

Re: ResizeWindow not working with DPI aware

Try using MoveWindow_() instead of ResizeWindow() to be sure from where the difference is coming Using MoveWindow_() with #PB_Window_SizeGadget flag and DPI Aware enabled on 4K monitor with 175% scaling moves the window to 8,0 instead of 0,0. Using a PB version prior to 6.10 gives a result of 3,0
by Paul
Sun Mar 31, 2024 5:03 am
Forum: Bugs - Windows
Topic: ResizeWindow not working with DPI aware
Replies: 12
Views: 505

Re: ResizeWindow not working with DPI aware

Hi RASHAD, with your code the result is still -6,0 for the X/Y position. The only difference is you resize the Window to very large. Setting the X position to 0 always results in -6 on a 4K monitor with 175% scaling and this only happens with PB 6.10 (-4 with 150% scaling / -2 with 125% scaling) Jus...
by Paul
Sun Mar 31, 2024 5:01 am
Forum: Bugs - Windows
Topic: WebView Gadget leaves files on hard drive
Replies: 0
Views: 123

WebView Gadget leaves files on hard drive

When testing the WebView Gadget from the IDE doing a Compile/Run, my "Users/AppData/Roaming/" folder starts filling up with PureBasic_Compilation0.exe, PureBasic_Compilation1.exe, PureBasic_Compilation2.exe, etc and the IDE does not remove these files afterwards. https://reelmedia.org/test...
by Paul
Sun Mar 31, 2024 4:44 am
Forum: Bugs - Windows
Topic: ResizeWindow not working with DPI aware
Replies: 12
Views: 505

ResizeWindow not working with DPI aware

Can someone with a 4k high DPI monitor check this out and confirm? If I run the following code the Window starts at position 0,0 and when I press the button to move the window to 0,0 using ResizeWindow, the Window ends up at -6,0 if DPI aware is enabled on a 4K monitor with scaling set to 175% Obvio...
by Paul
Sun Feb 25, 2024 6:21 am
Forum: Bugs - Documentation
Topic: Add an Example of Returning A String from a DLL
Replies: 5
Views: 419

Re: Add an Example of Returning A String from a DLL

swhite wrote: Sun Feb 25, 2024 3:56 am So the only change in the documentation is to point out the return value will still be a pointer even if you choose to return a string as the documentation shows.
As mk-soft pointed out, the docs already state that you will get a pointer to the return string.
by Paul
Tue Feb 20, 2024 5:30 pm
Forum: Announcement
Topic: Old School Text Advenure System
Replies: 15
Views: 1194

Re: Old School Text Advenure System

PureVision The GUI of this text adventure tool seems very basic (some buttons and text fields). What purpose does this PureVision library serve here? (I'm just trying to understand, because I can not test as I do not have access to this library) Just REM this line out as the source code doesn't use...
by Paul
Sun Dec 24, 2023 7:19 pm
Forum: Coding Questions
Topic: Prefilling a List
Replies: 15
Views: 1367

Re: Prefilling a List

Maybe something like this?

Code: Select all

set.s="[1,2,3,4,5,8,9,11,15,17,19,45,65,78]"

NewList myset()
ParseJSON(0, set)
ExtractJSONList(JSONValue(0), myset())

ForEach myset()
  Debug myset()
Next
by Paul
Sun Nov 05, 2023 3:45 am
Forum: Coding Questions
Topic: [Solved]Access a linked list from different include file
Replies: 17
Views: 1171

Re: Access a linked list from different include file

. . . And use NewList to declare linked lists . . . Declare NewList LinkedList() XIncludeFile "TwoScreenList_Constants.pb" XIncludeFile "TwoScreenList_Windows.pb" XIncludeFile "PlyrAcct.pb" He's not actually creating a linked list, LinkedList() is the name of one of hi...
by Paul
Sat Nov 04, 2023 4:23 am
Forum: Coding Questions
Topic: [Solved]Access a linked list from different include file
Replies: 17
Views: 1171

Re: Access a linked list from different include file

You need to put declares in the right order in your Main file...

Code: Select all

Declare LinkedList()

XIncludeFile "TwoScreenList_Constants.pb"
XIncludeFile "TwoScreenList_Windows.pb"
XIncludeFile "PlyrAcct.pb"
by Paul
Wed Nov 01, 2023 9:51 pm
Forum: Tricks 'n' Tips
Topic: spinblur clock
Replies: 13
Views: 989

Re: spinblur clock

HeX0R wrote: Wed Nov 01, 2023 8:04 pm That doesn't seem to work with latest PB version, I saw only a black window.
But with PB 5.73 it works just fine
Works here if I change Library Subsystem to DirectX9