Search found 1813 matches

by BruceSteers
Saturday 5th October 2024 2:54pm
Forum: General
Topic: Event of a control's property...
Replies: 1
Views: 27

Re: Event of a control's property...

By default you can only get the FileChooser1_ events. You cannot access the FileChooser internal FileView events through FileChooser in any way. But you can create an Observer for the FileView Public Sub Form_Open() Dim hObs As Observer = New Observer(FileChooser1.FileView) As "OBS" End Pu...
by BruceSteers
Monday 30th September 2024 6:34pm
Forum: Beginners
Topic: list printers in combobox
Replies: 2
Views: 244

Re: list printers in combobox

You have various answers here already on your duplicate post from the other day.
https://forum.gambas.one/viewtopic.php?t=1877
by BruceSteers
Monday 30th September 2024 4:49pm
Forum: Beginners
Topic: Load available printers to a combobox
Replies: 5
Views: 457

Re: Load available printers to a combobox

If you are planning on using gb.form.print you can maybe use the Printer.List property?

ComboBox1.List = Printer.List
by BruceSteers
Sunday 29th September 2024 1:27pm
Forum: General
Topic: Differentiate left and right control keys
Replies: 7
Views: 565

Re: Differentiate left and right control keys

Seems you can't do it because it's not a qt key code either the Qt Key class only uses a Key_Control https://doc.qt.io/qt-6/qt.html#Key-enum there are ways to do it with the QT api but gambas Key.class does not do anything unusual, it only supports what the toolkit Key class supports in respect to C...
by BruceSteers
Sunday 29th September 2024 11:56am
Forum: General
Topic: Differentiate left and right control keys
Replies: 7
Views: 565

Re: Differentiate left and right control keys

I'm pretty sure they don't m8. (not sure what language that is but i don't think it's gambas)

I only see Key.ControlKey constant

I know you can send with x11 Desktop.SendKey("Control_L")

but there's no way to receive

Key.Code for both control keys are the same and its Key.ControlKey
by BruceSteers
Sunday 29th September 2024 9:25am
Forum: General
Topic: Differentiate left and right control keys
Replies: 7
Views: 565

Re: Differentiate left and right control keys

It's a shame and certainly limits game control as i discovered on my TurboSnake game.

2 users sharing a keyboard cannot use Shift or Ctrl keys :( well they can but it's dodgy
by BruceSteers
Sunday 29th September 2024 9:15am
Forum: General
Topic: Differentiate left and right control keys
Replies: 7
Views: 565

Re: Differentiate left and right control keys

I don't think it's possible.

The gambas Key.class gives same code for both control keys.

same for Shift

Only Alt keys differentiate as one if Key.AltKey and other is Key.AltGrKey
by BruceSteers
Saturday 28th September 2024 10:21pm
Forum: Beginners
Topic: Creating and reading from arrays
Replies: 3
Views: 349

Re: Creating and reading from arrays

It'll take a little while to adjust from vb to gambas, they are syntactically similar and different in various ways but you'll soon get the hang of it. Maybe something like this is what you need Any local variables declared with Dim are only visible to the local method. global variables are declared...
by BruceSteers
Saturday 28th September 2024 11:03am
Forum: Beginners
Topic: Astra linux
Replies: 13
Views: 24168

Re: Astra linux

Astra1.8 is missing the following packages so they need to be removed from the package list when installing.. libalure-dev : breaks gb.openal (OpenAL 3D Audio library) libdumb1-dev : does not seem to break anything libsdl-sound1.2-dev : does not seem to break anything all qt6 dependencies: no qt6 on...
by BruceSteers
Friday 27th September 2024 1:07am
Forum: Project showcase
Topic: VirtualBox image mounter
Replies: 13
Views: 4732

Re: VirtualBox image mounter

a few updates / fixes now there's mount all button the system release info command needed to be improved to handle soft links Copy and paste this into the command to change it... #!/usr/bin/env bash ROOT='$(ROOT)/etc' cd "$ROOT" echo "checking '$ROOT'" CheckInfo() { PTH="$1&...