Search found 43 matches

by tikidays
Sat Apr 13, 2024 3:50 am
Forum: Coding Questions
Topic: Setting and Getting GadgetITemData on a ListIconGadget
Replies: 7
Views: 503

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: 503

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 in a...
by tikidays
Thu Apr 11, 2024 6:40 pm
Forum: Bugs - Mac OSX
Topic: IDE Editing [6.10 LTS, C Backend (arm64)]
Replies: 2
Views: 288

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 th...
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: 8492

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: 296

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. Ho...
by tikidays
Sun Mar 10, 2024 4:26 am
Forum: Coding Questions
Topic: Rotate Sprite around another's midpoint [SOLVED]
Replies: 4
Views: 296

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 lights in t...
by tikidays
Fri Mar 08, 2024 9:18 pm
Forum: Coding Questions
Topic: Rotate Sprite around another's midpoint [SOLVED]
Replies: 4
Views: 296

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 fo...
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: 352

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 strin...
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: 352

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 d...
by tikidays
Thu Feb 15, 2024 5:30 pm
Forum: Feature Requests and Wishlists
Topic: Add Example to SETDATABASESTRING in manual.
Replies: 1
Views: 162

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: 400

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 manuall...
by tikidays
Sun Jan 28, 2024 6:16 pm
Forum: Feature Requests and Wishlists
Topic: Universal Binaries for Mac OS
Replies: 4
Views: 2902

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?
by tikidays
Tue Jan 23, 2024 6:44 am
Forum: Applications - Feedback and Discussion
Topic: Presenting Brewer's Aid
Replies: 10
Views: 1224

Re: Presenting Brewer's Aid

Be aware that at least your TextGadget and ImageGadget are caused by Windows itself. I do understand that, it just means I have to put additional effort it to get it on par with the MacOS build, thanks for the tip with ChrisR's ObjectColor module I will check it out and see if I can rescue the situ...
by tikidays
Tue Jan 23, 2024 4:32 am
Forum: Applications - Feedback and Discussion
Topic: Presenting Brewer's Aid
Replies: 10
Views: 1224

Re: Presenting Brewer's Aid

So many things are broken compiling for Windows it's a bit overwhelming, for some reason PANELGADGET isnt working the same, no GADGETS added to them shows, all the transparency in images are replaced with black, TEXTGADGETS dont support transparency nor do IMAGEGADGETS. This will take weeks to sort ...
by tikidays
Sun Jan 21, 2024 11:13 pm
Forum: Applications - Feedback and Discussion
Topic: Presenting Brewer's Aid
Replies: 10
Views: 1224

Presenting Brewer's Aid

Kia Ora! Wanted to share my very first application after discovering Purebasic back in November last year. Very much enjoying Purebasic and it gave me my programming bug back. :D The app is called Brewer's Aid . I am still testing it and ironing out some bugs, it looks pretty in MacOS, and once rele...