Search found 10 matches

by Zeke99
Monday 20th November 2023 8:41pm
Forum: General
Topic: DrawingArea.Refresh erases the DrawingArea
Replies: 8
Views: 8141

Re: DrawingArea.Refresh erases the DrawingArea

I tested to do an array and draw the whole drawingarea yesterday and it worked. Now it's just to scale it up, move to the Raspberry pi and test if it lags or not. Have a pi 3B+. If it isn't fast enough I can always buy a pi 5. Vuott, thank's for the link to the example with the pixel manipulation of...
by Zeke99
Sunday 19th November 2023 9:59pm
Forum: General
Topic: DrawingArea.Refresh erases the DrawingArea
Replies: 8
Views: 8141

Re: DrawingArea.Refresh erases the DrawingArea

Thanks a lot for the answer, Bruce. This is for monitoring CNC-machines and their performance. 8 machines, 17 hours a day with an check-interval of 15 seconds then I will have to draw up to 32640 lines every 15 seconds at the end of the day. I wonder how fast gambas is on a pi? Ok, back to the drawi...
by Zeke99
Sunday 19th November 2023 8:04pm
Forum: General
Topic: DrawingArea.Refresh erases the DrawingArea
Replies: 8
Views: 8141

DrawingArea.Refresh erases the DrawingArea

This is what I'm trying to achive: I have a drawingarea 900 pixels wide (and 20 pixels high) and a timer that triggers every 5 seconds. Every time the timer trigger it checks the status of three radiobuttons and make a vertical line in the drawingarea with grey, red or green color depending on which...
by Zeke99
Sunday 10th October 2021 6:54pm
Forum: General
Topic: Desktop.windows give only active window [solved]
Replies: 5
Views: 3125

Re: Desktop.windows give only active window [solved]

And your example was really cool, Cogier.
Will see if I can use it together with the mediaplayer window.
by Zeke99
Sunday 10th October 2021 6:47pm
Forum: General
Topic: Desktop.windows give only active window [solved]
Replies: 5
Views: 3125

Re: Desktop.windows give only active window

Thank's a lot BruceSteers and Cogier for your answers.
I took a new computer, made a fresh Linux Mint 20.2 and a Gambas ppa:-install and now it works like a charm. I don't know what's wrong with the old computer but it's obviously local to that computer.
Have a nice day everyone!
by Zeke99
Thursday 7th October 2021 5:43pm
Forum: General
Topic: Desktop.windows give only active window [solved]
Replies: 5
Views: 3125

Desktop.windows give only active window [solved]

I'm trying to align a transparent window on top of another window (a mediaplayer window) and therefore it would be very helpful to get the X and Y coordinates for both windows. I found a code example in the Gambas Book (gambas-buch.de) chapter 15.4 which does exactly what I want. Public Sub Button1_...
by Zeke99
Saturday 16th January 2021 3:05pm
Forum: General
Topic: Draw in a picturebox [solved]
Replies: 8
Views: 6312

Re: Draw in a picturebox

Your the man Vuott. Works like a charm!
by Zeke99
Thursday 14th January 2021 6:36pm
Forum: General
Topic: Draw in a picturebox [solved]
Replies: 8
Views: 6312

Re: Draw in a picturebox

Here comes a sample code: Private myPlayer As New MediaPlayer As "Player" '============================================================================= Public Sub Form_Open() '--- Opens a mediaplayer window with live video stream --- myPlayer.URL = "v4l2:///dev/video0" myPlayer....
by Zeke99
Wednesday 13th January 2021 8:18pm
Forum: General
Topic: Draw in a picturebox [solved]
Replies: 8
Views: 6312

Re: Draw in a picturebox

Thank's a lot vuott. It worked to use paint directly on theImage. Dim theImage As Image = myPlayer.Video.Image theImage.Save(Application.Path &/ Format(Now, "yyyymmdd_hhnnss") & ".jpg" ThePictureBox.Image = theImage Paint.Begin(theImage) Paint.LineWidth = 1 Paint.Rectangl...
by Zeke99
Tuesday 12th January 2021 8:06pm
Forum: General
Topic: Draw in a picturebox [solved]
Replies: 8
Views: 6312

Draw in a picturebox [solved]

I have a videofeed from a usb-microscope in a picturebox using mediaplayer. Works great (code copied from Cedron) Private myPlayer As New MediaPlayer As "Player" '============================================================================= Public Sub Form_Open() myPlayer.URL = "v4l2:...