Search found 878 matches

by cogier
Friday 24th June 2022 2:46pm
Forum: General
Topic: Move project to new pc
Replies: 2
Views: 29

Re: Move project to new pc

Welcome to the forum. It sounds like you have not copied the 'hidden' files. I suggest you make a Source Archive :- https://www.cogier.com/gambas/Copy1.png Copy this file to your VM folder, then in Gambas File > Open project... Right-click on the archive and select Uncompress file Gambas will then j...
by cogier
Thursday 23rd June 2022 3:35pm
Forum: Component
Topic: DrawingArea PAINT.ROTATE(RAD(x))
Replies: 2
Views: 49

Re: DrawingArea PAINT.ROTATE(RAD(x))

I think what you want is below, but I worry when I know your maths is so much better than mine. Run this in a new graphical program: - ' Gambas class file ''USE gb.gui.qt for best results DrawingArea1 As DrawingArea Slider1 As Slider Public Sub Form_Open() With Me .Height = 300 .Width = 300 .Padding...
by cogier
Tuesday 21st June 2022 1:29pm
Forum: General
Topic: Ideas for an auto-updater
Replies: 2
Views: 60

Re: Ideas for an auto-updater

Have a look at a program I wrote some time ago to update a program on different computer(s). I used Dropbox which allowed for remote updates, but any folder can be setup. The program was only designed for a single program update, see the help files. It could be modified to suit multiple updates, per...
by cogier
Saturday 11th June 2022 1:00pm
Forum: Beginners
Topic: Foreground of qt5.textedit.
Replies: 5
Views: 223

Re: Foreground of qt5.textedit.

Tip: - use the gb button for better code display. https://www.cogier.com/gambas/gb_button.png I discovered that Background does not work, but a workaround is to place the TextEdit in a Panel then you can change the background of the panel. To change the font you need, as Bruce says, to use Richtext ...
by cogier
Friday 03rd June 2022 3:52pm
Forum: General
Topic: running SU commands in an app
Replies: 4
Views: 307

Re: running SU commands in an app

I have not tried this, but if you wrote a CLI Gambas app to do the 'copy/move/delete' and create an executable file of the code. Then from a main GUI program, run the executable using sudo sending the necessary details of what files to 'copy/move/delete'. You could create a file to store any data yo...
by cogier
Thursday 12th May 2022 4:40pm
Forum: General
Topic: help with error message
Replies: 4
Views: 365

Re: help with error message

We will need to see your code, or part of it that creates the warning, to progress any further.
by cogier
Thursday 12th May 2022 11:56am
Forum: General
Topic: help with error message
Replies: 4
Views: 365

Re: help with error message

I don't think you have anything to worry about. GTK often throws up a warning. Have a look here. If it bothers you, try changing from gb.gui to gb.gui.qt.
by cogier
Monday 09th May 2022 2:01pm
Forum: Beginners
Topic: switch to previous instance
Replies: 4
Views: 437

Re: switch to previous instance

Is there in Gambas something like VB's PrevInstance? I don't think there is, but you can see what windows are open with the following code: - Public Sub Form_Open() Dim hWindow As DesktopWindow Desktop.Windows.Refresh() For Each hWindow In Desktop.Windows Print hWindow.VisibleName Next End
by cogier
Monday 09th May 2022 1:35pm
Forum: General
Topic: Paint sample
Replies: 2
Views: 306

Re: Paint sample

This code should help (I had to change your line 27 as it caused a crash): - Private afPoints As New Float[][] Public Sub ToolButton1_Click() afPoints.Add([10, 100]) afPoints.Add([60, 10]) afPoints.Add([60, 10]) afPoints.Add([110, 100]) afPoints.Add([30, 50]) afPoints.Add([80, 50]) DrawingArea1.Refr...
by cogier
Thursday 05th May 2022 3:24pm
Forum: Component
Topic: barcode scanner component
Replies: 4
Views: 909

Re: barcode scanner component

I have altered gbWilly's code a little. This little program works well with my USB reader.
SimpleBarcode-0.0.1.tar.gz
(11.86 KiB) Downloaded 30 times