Search found 881 matches

by cogier
Sunday 26th June 2022 2:27pm
Forum: Component
Topic: DrawingArea PAINT.ROTATE(RAD(x))
Replies: 6
Views: 94

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

Cogier - Not sure what went on... but as I thought... yours rotates the entire image. A minor change to the program, and I think this is what you want:- Video here ' Gambas class file ''USE gb.gui.qt for best results DrawingArea1 As DrawingArea Slider1 As Slider Public Sub Form_Open() With Me .Heig...
by cogier
Saturday 25th June 2022 2:46pm
Forum: Component
Topic: DrawingArea PAINT.ROTATE(RAD(x))
Replies: 6
Views: 94

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

I created a new file in QT, pasted in the code and attempted to run it...
NULL OBJECT in FMAIN 36
I have tried the code again and it works for me. See here.

It should still work without the Public Sub Form_Arrange() routine if that helps.
by cogier
Saturday 25th June 2022 2:32pm
Forum: General
Topic: Move project to new pc
Replies: 6
Views: 93

Re: Move project to new pc

The files : -

modMain.module~(1)
modMain.Module~(2)
modMain.Module~(3)

The easy way is from Gambas use Project > Cleanup as I think these are just backup files, if they are this method will remove them.

Without seeing the whole program, I am unable to advise on the others.
by cogier
Friday 24th June 2022 2:46pm
Forum: General
Topic: Move project to new pc
Replies: 6
Views: 93

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: 6
Views: 94

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: 79

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: 237

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: 318

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: 377

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: 377

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.