Search found 1575 matches

by BruceSteers
Tuesday 30th April 2024 7:46pm
Forum: Beginners
Topic: Get X,Y coordinates from inside the DrawingArea
Replies: 3
Views: 36

Re: Get X,Y coordinates from inside the DrawingArea

Ps.
I know you didn't need it but in that first example it would be easier to do this...

Public Sub DrawingArea1_MouseDown()

  Dim da As DrawingArea = Last

End


In any Event the Last keyword points to the calling object.
so in a drawingarea mousedown event Last is the drawingarea
by BruceSteers
Tuesday 30th April 2024 7:31pm
Forum: Beginners
Topic: Get X,Y coordinates from inside the DrawingArea
Replies: 3
Views: 36

Re: Get X,Y coordinates from inside the DrawingArea

Nevermind. I figured it out. No need to use DrawingArea object. Just need to get Mouse.X, Mouse.Y Public Sub DrawingArea1_MouseDown() Print Mouse.X & "," & Mouse.Y End You got it. for any control Mouse event like MouseDown / MouseMove, Mouse.X and Mouse.Y are relative to the contr...
by BruceSteers
Tuesday 30th April 2024 5:09pm
Forum: The Gambas IDE
Topic: Wayland and gambas
Replies: 4
Views: 42

Re: Wayland and gambas

Does this mean you can't control items within your program, or you can't control where the program is displayed on the screen, or both? It applies to all "top-level" forms i think. from what i can tell it's all about the compositor, i don't fully understand but wayland seems super paranoi...
by BruceSteers
Tuesday 30th April 2024 1:02am
Forum: General
Topic: Live video feed?
Replies: 4
Views: 138

Re: Live video feed?

gb.media is basically a gstreamer interface so can do what gst can do.

I not the one who can answer though i have little experience with MediaPlayer and none with live feeds.

Others may be able to help though.
by BruceSteers
Monday 29th April 2024 7:02pm
Forum: The Gambas IDE
Topic: Wayland and gambas
Replies: 4
Views: 42

Wayland and gambas

I recently asked some questions on the wayland development mailing list about gambas and positioning windows amongst the other issues. Here is a copy of the reply... What it basically says... We will NEVER be able to position our windows using Form.X or From.Y or From.Move or Settings.Read() etc in ...
by BruceSteers
Monday 29th April 2024 9:00am
Forum: Project showcase
Topic: Germinal - a terminal with some potential
Replies: 7
Views: 2480

Re: Germinal - a terminal with some potential

Finally got custom commands working. It's a bit complex. From the readme... Making custom commands... You can create commands to manipulate/edit the current command line. Commands are made of sequences of either scripts or key commands. Select the custom command editor from the menu to open the edit...
by BruceSteers
Sunday 28th April 2024 10:09am
Forum: General
Topic: Converting UTC time
Replies: 9
Views: 239

Re: Converting UTC time

Thanks for all replies! I just wanted to get the timezone offset so that I could adjust the hour parameter in the Date-function to reflect my local timezone. Here is the code snippet that I finally ended up with: Dim tDate As String = Format$(Now, "yyyy-mm-ddThh:nn:sstt") Dim sDate As Str...
by BruceSteers
Sunday 28th April 2024 12:41am
Forum: Beginners
Topic: icon move
Replies: 15
Views: 562

Re: icon move

Maybe this will help get you started.... It has a DrawingArea It selects a random desktop background image to use as the background then it loads the gambas bug pic as the sprite. When you click the image it starts the timer that each time it triggers it moves the bugs X position to the right and th...
by BruceSteers
Saturday 27th April 2024 11:32pm
Forum: The Gambas IDE
Topic: Could we PLEASE get implemented the ability to store project on a mounted location?
Replies: 9
Views: 461

Re: Could we PLEASE get implemented the ability to store project on a mounted location?

You know we are not the gambas development team right?
We don't make gambas and can't do anything about what you are asking.

If you want gambas to do something different like show Network folders you should ask the main developer.
by BruceSteers
Saturday 27th April 2024 3:53pm
Forum: Beginners
Topic: icon move
Replies: 15
Views: 562

Re: icon move

Well technically a movie is not so much "moving images" as it is a series of still images shown in rapid succession. So no. I would not consider making/storing a ton of pictures with a ball in a different place to show as a movie. If i wanted to animate a ball moving on a background i woul...