Search found 22 matches

by MrCor
Sat Aug 02, 2025 8:57 am
Forum: Coding Questions
Topic: Books about advanced programming
Replies: 4
Views: 373

Books about advanced programming

Hi all,

Does anyone know about books or other resources about advanced programming in PureBasic?
I sometimes see code I have no clue what it does.

Thanks, MrCor
by MrCor
Fri Mar 28, 2025 3:32 pm
Forum: Coding Questions
Topic: Strange behaviour resolution on Asus Vivibook 15
Replies: 9
Views: 394

Re: Strange behaviour resolution on Asus Vivibook 15

Do you know any commandline options to set this option? Or code in PB to set this and back?
Oops, missed your code ;)
by MrCor
Fri Mar 28, 2025 3:13 pm
Forum: Coding Questions
Topic: Strange behaviour resolution on Asus Vivibook 15
Replies: 9
Views: 394

Re: Strange behaviour resolution on Asus Vivibook 15

Problem solved and it was very easy (if you know how).
The screen at the laptop was set to 125%. Setting it at 100% solved the problem (of course).
A bit funny maybe no-one came up with that idea (neigther did I, so I am "funny" too ;)
by MrCor
Fri Mar 28, 2025 2:36 pm
Forum: Coding Questions
Topic: Strange behaviour resolution on Asus Vivibook 15
Replies: 9
Views: 394

Re: Strange behaviour resolution on Asus Vivibook 15

Thanks Breeze4me,

To bad, it did not work.
The output I get is
---------------------------
Ctrl + C to copy
---------------------------
DPI = 120
Frame W,H = 1926 1094
WORKAREA = 0 0 1920 1080
PB = 1539 844
---------------------------
OK
---------------------------
by MrCor
Fri Mar 28, 2025 12:04 pm
Forum: Coding Questions
Topic: Strange behaviour resolution on Asus Vivibook 15
Replies: 9
Views: 394

Re: Strange behaviour resolution on Asus Vivibook 15

Using this code I get 1539 and 844.
If OpenWindow(0,0,0,1920,1080,"Test",#PB_Window_SystemMenu|#PB_Window_MinimizeGadget|#PB_Window_MaximizeGadget|#PB_Window_SizeGadget)
ButtonGadget(1,265,185,60,20,"Button")
Debug WindowWidth(0)
Debug WindowHeight(0)

Repeat
EventID =WaitWindowEvent()
If ...
by MrCor
Thu Mar 27, 2025 3:20 pm
Forum: Coding Questions
Topic: Strange behaviour resolution on Asus Vivibook 15
Replies: 9
Views: 394

Re: Strange behaviour resolution on Asus Vivibook 15

Is enabled and was enabled.
by MrCor
Thu Mar 27, 2025 3:11 pm
Forum: Coding Questions
Topic: Strange behaviour resolution on Asus Vivibook 15
Replies: 9
Views: 394

Strange behaviour resolution on Asus Vivibook 15

Hi all,

I have (at least for me) a strange behavious concerning the resolution of the screen with an Asus Vivobook 15 laptop.

When I open a window, 1920 x 1080 (as is the screenresolution) I end up with just 1540 x 840 on the screen. The rest of the window is out of reach.
I suppose the window is ...
by MrCor
Tue Dec 05, 2023 3:38 pm
Forum: Coding Questions
Topic: How to put 'unknown' in a dategadget?
Replies: 2
Views: 502

How to put 'unknown' in a dategadget?

Hi guys and dolls,

I want to use the dategadget. Initial I want to put 'Unknown' in there - no problem so far.
But when I want to select a real date and so use the gadget what it is there for, it will not allow me to do that.
Suggestions or is it just the way it is?

Thanks in advance.

MrCor
by MrCor
Wed May 17, 2023 11:48 am
Forum: Coding Questions
Topic: gadgets seem to work twice
Replies: 7
Views: 746

Re: gadgets seem to work twice

I'm ok with you guys hating me... :wink:

You know, I am old-school. In the very past past I used to program in 3rd generation languages. Hard not to stick with what you know. That is, until things don't work out the way of those old-school things anymore.
I promise I will get familiar with ...
by MrCor
Wed May 17, 2023 11:34 am
Forum: Coding Questions
Topic: gadgets seem to work twice
Replies: 7
Views: 746

Re: gadgets seem to work twice

Thanks for the suggestions, guys.

Using subs and returns... is that a technical or an ethical issue?
by MrCor
Wed May 17, 2023 10:34 am
Forum: Coding Questions
Topic: gadgets seem to work twice
Replies: 7
Views: 746

gadgets seem to work twice

Hi guys and dolls,

I am not an advanced programmer, so every now and then I get a simple problem that still seems to be too simple for me. And so... help.

I have written the following code:

;- hoofdlus
Repeat

Event = WaitWindowEvent(20)
Select Event
Case #PB_Event_Gadget
Select EventGadget ...
by MrCor
Tue Apr 18, 2023 4:26 pm
Forum: Coding Questions
Topic: Window not responding after a few seconds
Replies: 14
Views: 1538

Re: Window not responding after a few seconds

Thanks Fred, you are the best. A simple solution I seem not able to come up with. Works fine now and future programs will also from now on.

Cheers, Cor
by MrCor
Tue Apr 18, 2023 4:20 pm
Forum: Coding Questions
Topic: Window not responding after a few seconds
Replies: 14
Views: 1538

Window not responding after a few seconds

Hi guys and dolls,

I have coded the following and the windows freezes after a few seconds with the message 'not responding'. The progressbargadget gets stuck and the counter also stops.
What am I doing wrong here? (Dont get upset about the Dutch language)
BTW, I get this problem often with the same ...
by MrCor
Tue Oct 18, 2022 2:15 pm
Forum: Coding Questions
Topic: Large amount of data. Suggestions anyone?
Replies: 7
Views: 1514

Large amount of data. Suggestions anyone?

Hi guys and dolls,

I am looking for coding suggestions concerning a certain case.

- a textfile (UTF-8)
- filesize is 426MB
- 11.183.522 lines
- each line contains 10-35 characters
- the file is static. This means it is not changing over time.

I want to find a certain string in this textfile ...
by MrCor
Fri Oct 14, 2022 1:53 pm
Forum: Coding Questions
Topic: Invalid memory access: (write error at address 0)
Replies: 9
Views: 1202

Re: Invalid memory access: (write error at address 0)

I have several systems at home that still run on 32 bits. Seems like a good reason to me. I do not program for other people, too much hassle.
Of course an array starts with 0 but why would I start with that? Starting from 1 works fine and should also work fine. Hardly any reason why a program would ...