Search found 1106 matches

by cogier
Saturday 8th April 2023 8:45am
Forum: Beginners
Topic: How to make a beep [SOLVED]
Replies: 5
Views: 1009

Re: How to make a beep

This is the way I do it. You need gb.sdl2.audio . You then load a music file and play it. This can be a 'beep' or a 2-hour concert. I have attached a 'beep.ogg' file for you to put in your program's main folder. ''Needs gb.sdl2.audio Public Sub Form_Open() Music.Load(Application.Path &/ "be...
by cogier
Thursday 6th April 2023 2:32pm
Forum: Beginners
Topic: How detect Mouse wheel direction?
Replies: 2
Views: 619

Re: How detect Mouse wheel direction?

Hi iiiypuk.me and welcome to the forum. Try the following code: -

Public Sub Form_MouseWheel()

  If Mouse.Delta = 1 Then Print "Rolling forward"
  If Mouse.Delta = -1 Then Print "Rolling backwards"

End
by cogier
Thursday 6th April 2023 2:25pm
Forum: Beginners
Topic: KeyPress event double fires after using MouseWheel
Replies: 4
Views: 772

Re: KeyPress event double fires after using MouseWheel

I'm also using Mint 21.1 and the problem you report also happens to me, but I have discovered that this only happens with gb.gui. If you change from GTK to QT using gb.gui.qt instead, the problem goes away. Whether this is a bug in Gambas or in GTK, I leave to others to work out.
by cogier
Tuesday 4th April 2023 9:01am
Forum: General
Topic: Problem with installing gambas3
Replies: 7
Views: 995

Re: Problem with installing gambas3

F11 does nothing.
Any ideas?
No, but, what happens if you 'Print' something? That opens it automatically.
by cogier
Monday 3rd April 2023 4:43pm
Forum: General
Topic: Problem with installing gambas3
Replies: 7
Views: 995

Re: Problem with installing gambas3

As usual, the Gambas package on Ubuntu is faulty. I suggest you load Synaptic, mark all the 'gambas3' files and delete them, it is important that you get rid of all of them. Once done, run the following command in Terminal: - sudo add-apt-repository -y ppa:gambas-team/gambas3 && sudo apt-get...
by cogier
Monday 3rd April 2023 4:30pm
Forum: Beginners
Topic: SVG scaling [SOLVED]
Replies: 4
Views: 734

Re: SVG scaling

What is the best way to properly scale an svg graphic for use in Gambas IconView? Well, I have just spent about an hour and a half on this and came up with the following that uses a little less code. Note that line 24 is needed as for some reason a SVG image saved at 128,128 ends up at 160,160! Pub...
by cogier
Monday 3rd April 2023 2:39pm
Forum: Beginners
Topic: How to play a video file in Gambas? [SOLVED]
Replies: 10
Views: 1677

Re: How to play a video file in Gambas? [SOLVED]

Is there a way to play the video rotated 90 degrees?
You could rotate the video before playing it. Have a look here.
by cogier
Monday 27th March 2023 4:03pm
Forum: Component Showcase
Topic: Keystroke recorder with TextEditor
Replies: 4
Views: 4703

Re: Keystroke recorder with TextEditor

I can't get the video to work in your post, but it works here.
by cogier
Thursday 23rd March 2023 2:57pm
Forum: General
Topic: Best GUI programming languages for Linux
Replies: 3
Views: 712

Best GUI programming languages for Linux

I bumped in to this and thought it might be of interest.
by cogier
Saturday 18th March 2023 3:36pm
Forum: Lounge
Topic: Linux Mint Users - Upgrade to 21.1 Vera - FYI
Replies: 6
Views: 5346

Re: Linux Mint Users - Upgrade to 21.1 Vera - FYI

The upgrade to Mint 21.1 raised issues with me as well. I had to uninstall Gambas, then reinstall it from the ppa after the update.