Search found 1556 matches

by BruceSteers
Saturday 1st October 2022 5:38pm
Forum: Beginners
Topic: Detect label and change it
Replies: 16
Views: 3973

Re: Detect label and change it

Nup. Parent tracing can't work if the parent is the form (or some container in the form that contains multiple controls). Quite an unlikely "if" though I think. take for example Cogiers example , i bet each one of those textboxes with labels are in their own HBox containers. so it would w...
by BruceSteers
Saturday 1st October 2022 2:03am
Forum: Beginners
Topic: Detect label and change it
Replies: 16
Views: 3973

Re: Detect label and change it

Alternatively you can customize the TextBox.class to find it's corresponding Label and have a validating function. Ie.. save this file in your .src folder as TextBox.class ' Gambas class file Export Property Read Label As Label Use hLabel Public Sub Validate() As Boolean hLabel = Me.Parent.Children[...
by BruceSteers
Friday 30th September 2022 5:05pm
Forum: Beginners
Topic: Detect label and change it
Replies: 16
Views: 3973

Re: Detect label and change it

No there is nothing automatic, stuff like that you just gotta code yourself. A function to check would be pretty simple as usually that situation involves a bunch of HBoxes all containing one label and 1 textbox so you can use the .Parent.. Public Sub CheckTextFields(TextBoxes As TextBox[]) As TextB...
by BruceSteers
Tuesday 27th September 2022 1:02pm
Forum: Project showcase
Topic: Simple Temp monitor example using LCDLabel
Replies: 5
Views: 10167

Re: Simple Temp monitor example using LCDLabel

I've updated the program in the first post to have a settings window to select sensor method also updated the tooltips to show details about the sensor reading (as shown in pic) hehe yeah a simple version is simple enough but i had to have some features , like i had to import and edit the LCDLabel.c...
by BruceSteers
Wednesday 21st September 2022 4:08pm
Forum: General
Topic: Convert FreeBASIC code to Gambas stuck
Replies: 4
Views: 896

Re: Convert FreeBASIC code to Gambas stuck

I dunno looks like fairly simple file handling routines. But freebasic uses Loc for the recent handle you will just have to use stream functions on the com port stream explicitly. One command looked like a simple While not EOF(hStream) Another waits for the port to become open. This is not "hav...
by BruceSteers
Wednesday 21st September 2022 1:22pm
Forum: General
Topic: Convert FreeBASIC code to Gambas stuck
Replies: 4
Views: 896

Re: Convert FreeBASIC code to Gambas stuck

You are missing a function called Loc()

Either find it in the original freebasic code or if it's a freebasic built in function find what it does and emulate it.
by BruceSteers
Monday 19th September 2022 2:03pm
Forum: Project showcase
Topic: Simple Temp monitor example using LCDLabel
Replies: 5
Views: 10167

Re: Simple Temp monitor example using LCDLabel

updated this to auto-detect temp reading and resize window is possible.
by BruceSteers
Monday 19th September 2022 1:44pm
Forum: Project showcase
Topic: a Gambas recent files Lister (TrayIcon)
Replies: 26
Views: 21542

Re: a Gambas recent files Lister (TrayIcon)

Couple of updates... Added an opacity setting option There was a glitch or 2 in the new search box, it now refreshes grid properly and only uses filenames not paths in the search Also now window can be resized and moved without the title bar visible by clicking bottom right to resize and between the...
by BruceSteers
Saturday 17th September 2022 7:09am
Forum: General
Topic: Music controls
Replies: 7
Views: 1319

Re: Music controls

Here's a simple way :)
xdotool key XF86AudioRaiseVolume
xdotool key XF86AudioLowerVolume
xdotool key XF86AudioMute