Search found 849 matches

by BruceSteers
Thursday 18th August 2022 8:43am
Forum: General
Topic: Help With JSON formatting
Replies: 22
Views: 270

Re: Help With JSON formatting

Pole?

When a message is processed the DeviceMessage.Location property is filled.
by BruceSteers
Wednesday 17th August 2022 11:27pm
Forum: General
Topic: Help With JSON formatting
Replies: 22
Views: 270

Re: Help With JSON formatting

Pretty sure you could reverse the process, so make a collection then use JSON.Encode() to create a message string to send to the device. (Only a guess though, you'd have to experiment)

You could then add a DeviceMessage.Send() command to the class easily enough.
by BruceSteers
Wednesday 17th August 2022 10:20pm
Forum: General
Topic: Help With JSON formatting
Replies: 22
Views: 270

Re: Help With JSON formatting

Would that class help send status messages to my point of sale software? It's a bare bones example. I don't know your device , you would have to add what you want to it and make it work how you need it to. If there is a status specific message string then process it like the notifications message. ...
by BruceSteers
Wednesday 17th August 2022 6:40pm
Forum: General
Topic: Help With JSON formatting
Replies: 22
Views: 270

Re: Help With JSON formatting

The format is a JSON string so use Decode to process it as a collection. the notifications is an array so use [0] to get the first item. THANK-YOU THANK-YOU THANK-YOU :) You're welcome. It would probably be good to make a class to handle your messages and fire events relevant to the message type. a...
by BruceSteers
Wednesday 17th August 2022 3:56pm
Forum: General
Topic: Help With JSON formatting
Replies: 22
Views: 270

Re: Help With JSON formatting

The format is a JSON string so use Decode to process it as a collection. the notifications is an array so use [0] to get the first item. ' this is your string... Dim s As String = "{\"location\":\"https://test.connect.paymentsense.cloud/pac/terminals/12345678/transactions/661c943f\",\"notifications\...
by BruceSteers
Tuesday 16th August 2022 12:55pm
Forum: Project showcase
Topic: a Gambas recent files Lister (TrayIcon)
Replies: 16
Views: 4542

Re: a Gambas recent files Lister (TrayIcon)

Hi Bruce, Yes, that has fixed the [Alt]+[Tab] issue, thanks. I clicked the option to change the setting to not show the file path and although this worked I got an error:- https://www.cogier.com/gambas/glaunch4.png Doh!! lol Cheers again Charlie. Yep a silly error If m.Picture Then GridView1[GridVi...
by BruceSteers
Sunday 14th August 2022 10:42am
Forum: Project showcase
Topic: a Gambas recent files Lister (TrayIcon)
Replies: 16
Views: 4542

Re: a Gambas recent files Lister (TrayIcon)

cogier wrote:
Saturday 13th August 2022 9:37am
Is there a way to hide the program showing on the task changer?
Yes sorry (had to investigate that)

seems setting the forms NoTabFocus to true fixes that :)

Updated the archive in first post.

Cheers :)
by BruceSteers
Friday 12th August 2022 12:22pm
Forum: Component Showcase
Topic: GradientButton, set 2 colours and the background blends
Replies: 7
Views: 2999

Re: GradientButton, set 2 colours and the background blends

Okay then the upgraded version.. Additions/Changes... ColorHi and ColorLo have been replaced with Color1, Color2, Color3, Color4 Color1, Color2, Color3, Color4 are a way to simply set up to 4 colors easily in the IDE designer using the color selection GUI. GradientButton.ColorNames As String[] A lis...
by BruceSteers
Tuesday 9th August 2022 7:31pm
Forum: Component Showcase
Topic: GradientButton, set 2 colours and the background blends
Replies: 7
Views: 2999

Re: GradientButton, set 2 colours and the background blends

Am currently editing this to use the Paint.LinearGradient() method that I have only just discovered and not my own.

Gradient orientation can now be horizontal or vertical and ANY number of gradient colors can be used...

Todo:
Also add option to use Radial (circular) gradients.

Will upload soon...
by BruceSteers
Tuesday 9th August 2022 6:17pm
Forum: General
Topic: "Critical" Error msg in working progam
Replies: 5
Views: 133

Re: "Critical" Error msg in working progam

It's often a fault in the gtk theme. the gtk themes like Mint-X Mint-Y etc all work and report things differently, some are better than others. If i run pluma (MATE text editor) in a terminal i get way more gtk error warnings than i do running a gambas application :) You should consider upgrading th...