Search found 14 matches

by CharlesT
Thu Jan 30, 2025 11:30 pm
Forum: General Discussion
Topic: Font size in HTML Help
Replies: 0
Views: 3876

Font size in HTML Help

Hi all,

Is there any way to increase the font size in the HTML Help aside from zooming in (Ctrl + mouse scroll wheel, the effects of which last only until you leave the currently viewed page)? My native resolution gets higher while I get older and my eyesight gets worse, so I like the letters and ...
by CharlesT
Sat Mar 26, 2022 4:24 am
Forum: Coding Questions
Topic: OpenFileRequester not seeing files?
Replies: 3
Views: 534

Re: OpenFileRequester not seeing files?

Just a note to whom it may concern:

In the online documentation, under "parameters" for OpenFileRequester(), there are spaces shown in the filter. See below:

It has to be in the following form : "Text file | *.txt | Music file | *.mus;*.mod"

As BarryG kindly pointed out to me, that will not ...
by CharlesT
Sat Mar 26, 2022 4:12 am
Forum: Coding Questions
Topic: OpenFileRequester not seeing files?
Replies: 3
Views: 534

Re: OpenFileRequester not seeing files?

Thank you, BarryG!
by CharlesT
Sat Mar 26, 2022 3:29 am
Forum: Coding Questions
Topic: OpenFileRequester not seeing files?
Replies: 3
Views: 534

OpenFileRequester not seeing files?

Hi all.

I have this bit of code in a procedure handling menu events:

FileName$ = OpenFileRequester("Load Image", "", "Bitmap files (*.bmp) | *.bmp | All files (*.*) | *.*", 0)


When the file requester window appears, .bmp is the default file type as expected. However, the actual .bmp files in ...
by CharlesT
Wed Dec 29, 2021 4:02 am
Forum: Game Programming
Topic: Sprite position layer 2D
Replies: 1
Views: 1444

Re: Sprite position layer 2D

Hi, skinkairewalker. If I understand, you wish to draw the sprites that are lower on the screen over the ones that are higher up. One way would be to make a "render" structure, with fields for sprite ID, x and y coordinates. Then make a structured "zSort" list using the "render" structure. In your ...
by CharlesT
Wed Dec 29, 2021 3:08 am
Forum: Game Programming
Topic: Path Finding Example
Replies: 6
Views: 4587

Re: Path Finding Example

Thanks for this, and to JCV for porting Patrick Lester's original Blitz3D code over to PureBasic. I noticed one possible error here in JCV's code:

;3. Reset some variables that need to be cleared
If onClosedList > 1000000 ;occasionally redim whichList
ReDim whichList(mapWidth,mapHeight ...
by CharlesT
Mon Jul 16, 2018 1:18 am
Forum: Coding Questions
Topic: Trim commands not working?
Replies: 2
Views: 942

Re: Trim commands not working?

*Facepalm*

StarBootics, thank you!
by CharlesT
Mon Jul 16, 2018 12:46 am
Forum: Coding Questions
Topic: Trim commands not working?
Replies: 2
Views: 942

Trim commands not working?

Hi all. I am trying to use the RTrim command to remove a character from the end of a string.

Text.s = "Hello!"
RTrim(Text, "!")
Debug Text

For me, this outputs "Hello!" -- nothing trimmed off. Trim and LTrim also seem not to be working for me. Am I doing something wrong? Using PureBasic 5.61 ...
by CharlesT
Wed Feb 21, 2018 1:54 am
Forum: Coding Questions
Topic: Question about structures
Replies: 2
Views: 1092

Re: Question about structures

Thank you again!
by CharlesT
Tue Feb 20, 2018 2:15 am
Forum: Coding Questions
Topic: Question about structures
Replies: 2
Views: 1092

Question about structures

Does it consume memory to define a structure, or only when an instance of the structure is created?
by CharlesT
Sun Feb 18, 2018 7:44 am
Forum: Coding Questions
Topic: Easy way to sort a structured list by multiple parameters?
Replies: 2
Views: 952

Re: Easy way to sort a structured list by multiple parameter

Demivec,

Thank you! That's a big help. :D
by CharlesT
Sun Feb 18, 2018 2:41 am
Forum: Coding Questions
Topic: Easy way to sort a structured list by multiple parameters?
Replies: 2
Views: 952

Easy way to sort a structured list by multiple parameters?

Hi all,

How would you go about sorting a list by multiple parameters? Taking a list of screen resolutions, for example, how would you sort first by width, then by height, then by depth? Sorting in ascending order, I would want the output to be something like this:

Width: 640
Height: 480
Depth: 16 ...
by CharlesT
Tue Jan 09, 2018 8:20 pm
Forum: Coding Questions
Topic: Getting a key identifier
Replies: 3
Views: 1411

Re: Getting a key identifier

Depends, are you working with sprites and screens or on the OS gui? If so, what OS?

Hi, netmaestro. I'm working with sprites and screens. To explain further: I would like to store, in a variable, the key constant value of the key that is pressed by the user. One way to do this would be to use a ...
by CharlesT
Sun Jan 07, 2018 10:26 pm
Forum: Coding Questions
Topic: Getting a key identifier
Replies: 3
Views: 1411

Getting a key identifier

Hi, all.

Is there a way to read into a variable the identifier of a key that has been pressed?

For example, the value of the constant #PB_Key_Up is 200. Is it possible to return that value when the key is pressed?

Thank you for your time.