Search found 46 matches

by tikidays
Sat May 04, 2024 9:08 pm
Forum: Feature Requests and Wishlists
Topic: Add CANCEL to InputRequester
Replies: 2
Views: 653

Add CANCEL to InputRequester

Can a #PB_InputRequester_Cancel option be added to the InputRequester?

Code: Select all

Text$ = InputRequester(Title$, Message$, DefaultText$ [, Flags [, ParendID]])
by tikidays
Thu May 02, 2024 10:06 am
Forum: Coding Questions
Topic: RunProgram() on MacOS (arm64) [SOLVED]
Replies: 4
Views: 615

Re: RunProgram() on MacOS (arm64) [SOLVED]

Thankyou! It was the URLEncoder() I was missing.
by tikidays
Wed May 01, 2024 7:50 pm
Forum: Coding Questions
Topic: RunProgram() on MacOS (arm64) [SOLVED]
Replies: 4
Views: 615

RunProgram() on MacOS (arm64) [SOLVED]

Hi, recently RunProgram stopped working on the MacOS compile, and I dont know why, it may have been linked to the recent 6.10 LTS update. The Windows component still functions. Can some one verify this for me?


CompilerIf #PB_Compiler_OS = #PB_OS_MacOS
RunProgram("open","http://www.google.com ...
by tikidays
Sat Apr 13, 2024 3:50 am
Forum: Coding Questions
Topic: Setting and Getting GadgetITemData on a ListIconGadget
Replies: 7
Views: 1507

Re: Setting and Getting GadgetITemData on a ListIconGadget

Odd This was copied as is from the Help example, I only added the SET and GET... so it has incorrectly got 1 and 2 instead of 0 and 1?
by tikidays
Fri Apr 12, 2024 8:07 pm
Forum: Coding Questions
Topic: Setting and Getting GadgetITemData on a ListIconGadget
Replies: 7
Views: 1507

Setting and Getting GadgetITemData on a ListIconGadget

Hi, SETGADGETITEMDATA and GETGADGETITEMDATA dont appear to work with ListIconGadget , see example below, why is this not working? I've tried this with 6.03 LTS Windows 11 and 6.10 LTS - C Backend (MacOS X - arm64), the manual says it should support this.


; Shows possible flags of ListIconGadget ...
by tikidays
Thu Apr 11, 2024 6:40 pm
Forum: Bugs - IDE
Topic: IDE Editing [6.10 LTS, C Backend (arm64)]
Replies: 2
Views: 1760

IDE Editing [6.10 LTS, C Backend (arm64)]

I've noticed on code length that exceeds the windows size, you can't use the horizontal scroll to get to the end of this line, you have to manually use selection drag to get to the content outside the window, you can't even insert the cursor in this content once you can see it. Even if you resize ...
by tikidays
Sat Apr 06, 2024 12:18 am
Forum: Tricks 'n' Tips
Topic: Tip: How to do For/Next with a variable Step
Replies: 9
Views: 9620

Re: Tip: How to do For/Next with a variable Step

Why would purebasic not allow a variable as a step? This seems out of step with every other basic Ive used. Make things more complicated. :(
by tikidays
Fri Mar 15, 2024 6:51 pm
Forum: Coding Questions
Topic: Rotate Sprite around another's midpoint [SOLVED]
Replies: 4
Views: 719

Re: Rotate Sprite around another's midpoint [SOLVED]

Discovered the issue, when I was setting up the lights I was placing them from the upper left x,y of the sprite, not from the mid point, I then pass the mid point of the main ship sprite to the DRAW command and this resolved the issue. I also had to take into account the mid points of the lights ...
by tikidays
Sun Mar 10, 2024 4:26 am
Forum: Coding Questions
Topic: Rotate Sprite around another's midpoint [SOLVED]
Replies: 4
Views: 719

Re: Rotate Sprite around another's midpoint

@Stargate

Thanks so much for your feedback, cleared up my understanding around pointers, most appreciated.

@marc_256

Awesome example, rotating around the ship will come in handy later on!



But these lights I want to stay in a fixed position as the ship rotates. My code appears to keep the ...
by tikidays
Fri Mar 08, 2024 9:18 pm
Forum: Coding Questions
Topic: Rotate Sprite around another's midpoint [SOLVED]
Replies: 4
Views: 719

Rotate Sprite around another's midpoint [SOLVED]

Hi, I have a spinning ship sprite (source) that has a light set at an offset, with Purebasic there appears to be no way to set the spin origin, so my routine below only rotates lights on the upper left XY of the ship's sprite and not the centre of the sprite.

Ive tried many ways to add XY offsets ...
by tikidays
Wed Feb 28, 2024 4:09 am
Forum: Coding Questions
Topic: Loading an Image into a SQL DB via BLOB
Replies: 3
Views: 646

Re: Loading an Image into a SQL DB via BLOB


DatabaseColumnSize isn't updated after a DatabaseUpdate only a DatabaseQuery (also true for the other DatabaseColumn*). You can check AffectedDatabaseRows() after an update to see how many rows were modified.

If the result of DatabaseUpdate is non-zero, the value of DatabaseError is the empty ...
by tikidays
Tue Feb 27, 2024 5:16 am
Forum: Coding Questions
Topic: Loading an Image into a SQL DB via BLOB
Replies: 3
Views: 646

Loading an Image into a SQL DB via BLOB

Need some assitance, spent way too long trying to trouble shoot this, cant find any examples that match what I want to do which is

Load an image from memory into a SQL database (not from file)

The sendImageToDB procedure results in. zero bytes for the column, but no database error is produced. How ...
by tikidays
Thu Feb 15, 2024 5:30 pm
Forum: Feature Requests and Wishlists
Topic: Add Example to SETDATABASESTRING in manual.
Replies: 1
Views: 418

Add Example to SETDATABASESTRING in manual.

Please add an example to setdatabasestring, the description is unclear that it behaves differently to getdatabasestring and I had to google the answer.
by tikidays
Wed Jan 31, 2024 6:52 pm
Forum: Mac OSX
Topic: PLIST Tool Broken?
Replies: 0
Views: 731

PLIST Tool Broken?

I noticed recently that my complied executables no longer had all their PLIST configuration applied recently, when I looked into the PLIST file it appears Apple may have updated all the key words? But even putting the new ones in as below, apart from icons, none apply to the executable. If I ...
by tikidays
Sun Jan 28, 2024 6:16 pm
Forum: Feature Requests and Wishlists
Topic: Universal Binaries for Mac OS
Replies: 4
Views: 3482

Re: Universal Binaries for Mac OS

Why is there a compile option for "Any CPU" if it doesn't compile for Intel and ARM? Is this a prep thing?