Search found 1113 matches
- Sunday 26th February 2023 4:56pm
- Forum: Beginners
- Topic: mouseclick with keypress
- Replies: 6
- Views: 969
Re: mouseclick with keypress
ControlKey is a constant (16777249), always TRUE !! Be careful as this will change depending on whether you are using GTK or QT. I quote here : - Never compare the value of this property with a numeric constant, because the key codes may depend on the underlying toolkit. Always use the constants de...
- Sunday 26th February 2023 2:19pm
- Forum: Beginners
- Topic: mouseclick with keypress
- Replies: 6
- Views: 969
Re: mouseclick with keypress
Hi Bert. Try the attached code. The problem as I see it is that you are trying to grab 2 events at the same time, this does seem to work though. Some help is available here . bMouseDown As Boolean TableView1 As TableView Public Sub Form_Open() With Me .Width = 500 .Height = 500 .Arrangement = Arrang...
- Wednesday 22nd February 2023 3:34pm
- Forum: Component
- Topic: DBus logout/shutdown Inhibitor
- Replies: 2
- Views: 3392
Re: DBus Inhibitor
Can I suggest you look at how others do this. I downloaded the source code for the text editor Gedit , did a search for 'inhibit' and came up with this. } if (can_close && (priv->inhibition_cookie != 0)) { gtk_application_uninhibit (GTK_APPLICATION (g_application_get_default ()), priv->inhib...
- Sunday 19th February 2023 3:36pm
- Forum: Beginners
- Topic: Enumerations
- Replies: 4
- Views: 4712
Re: Enumerations
I can't get Bruce's code to work. This is a little simpler if it helps.
Public Sub Form_Open()
Dim MyArray As Integer[] = [5, 4, 7, 8, 9, 1, 2, 0, 3, 6, 5, 8, 7]
Dim iInt As Integer
For Each iInt In MyArray
Print iInt
Next
End
- Saturday 18th February 2023 11:04am
- Forum: General
- Topic: Unable to install from software farm - Unknown Arc format?
- Replies: 5
- Views: 4758
Re: Unable to install from software farm - Unknown Arc format?
I tried to access this program on the Farm and got exactly the same error message for both ' Download ' and ' Download and install ' options. I managed to get the program running by downloading the file from the Farm via Gambas.one here , uncompressing the file, then opening it with Gambas. https://...
- Monday 13th February 2023 2:52pm
- Forum: General
- Topic: Good practices to ask sudo password in GUI ?
- Replies: 9
- Views: 4291
Re: Good practices to ask sudo password in GUI ?
You are right, but I didn't create this to be super secure.I did it a try. It works, but it's not very good for security.
This is done to catch any errors, try putting the wrong password in or a command that can't work.Why the command is executing twice?
- Sunday 12th February 2023 10:44am
- Forum: General
- Topic: Good practices to ask sudo password in GUI ?
- Replies: 9
- Views: 4291
- Sunday 5th February 2023 10:19am
- Forum: The Gambas IDE
- Topic: Editor procedure folding - Not working.
- Replies: 4
- Views: 7641
Re: Editor procedure folding - Not working.
On your new installation, can you easily edit the Group property? I am using Mint 21 and I have to hack the .form file to add Group details as the new ComboBox does not work.
- Saturday 4th February 2023 3:48pm
- Forum: Project showcase
- Topic: mpris media controller (WIP)
- Replies: 11
- Views: 10666
Re: mpris media controller (WIP)
Hi Bruce, please don't go out of your way on my account. I just thought that it would be easy, which, it obviously isn't!
- Thursday 2nd February 2023 12:49pm
- Forum: Project showcase
- Topic: mpris media controller (WIP)
- Replies: 11
- Views: 10666
Re: mpris media controller (WIP)
OK Thanks, I'll have to look into MPRIS.