Search found 788 matches

by BruceSteers
Monday 27th June 2022 2:19pm
Forum: General
Topic: Move project to new pc
Replies: 6
Views: 93

Re: Move project to new pc

You probably need to know this..... By default when dragging files/folders most file managers like caja, dolphin, nautilus will not copy hidden or backup files unless you have selected to show the files first. Any file/folder that begins with a dot like .src .gambas etc are "hidden" Any file that en...
by BruceSteers
Sunday 26th June 2022 8:44pm
Forum: General
Topic: Move project to new pc
Replies: 6
Views: 93

Re: Move project to new pc

cd /project/folder rm -f ".src/*~*" rm -f ".src/*(*" or press Ctrl-h to show all files in your file browser and find the files to delete the files with ~ are backup files, just copies of the original ones. the files with (1) etc are because you have repeatedly copied files when they already existed...
by BruceSteers
Sunday 26th June 2022 3:30pm
Forum: Lounge
Topic: The Gambas Intro Music
Replies: 8
Views: 3122

Re: The Gambas Intro Music

I have modified my FWelcome.class PlaySound command like this... dNow = Date(Now) If Settings["/MusicPlayed", "-1"] = Month(dNow) Then Return iYear = Year(dNow) dEaster = Date.EasterDay(iYear) If dNow = Date(iYear, 12, 25) Then sPlay = "bells.mp3" Else If dNow = Date(iYear, 8, 15) Or If dNow = dEast...
by BruceSteers
Saturday 25th June 2022 9:19am
Forum: Component
Topic: DrawingArea PAINT.ROTATE(RAD(x))
Replies: 6
Views: 94

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

I know nothing about that sort of math but after reading the situation i think it would be easier using Image.class instead of DrawingArea. So create a new Image to overlay instead, use your routine to paint the needle, then simply use the image rotation features. Also is your conversion from value ...
by BruceSteers
Tuesday 21st June 2022 8:24pm
Forum: General
Topic: Ideas for an auto-updater
Replies: 2
Views: 79

Re: Ideas for an auto-updater

Hi, folks -------------------------------------------------- The Scenery --------------------------- I've made at about 20 integrated programs for the same company (sales, production, invoicing, laboratory, etc) using gambas and postgres. The database runs on a local network server and each program...
by BruceSteers
Tuesday 21st June 2022 7:49pm
Forum: Beginners
Topic: Foreground of qt5.textedit.
Replies: 5
Views: 237

Re: Foreground of qt5.textedit.

I just discovered another magic property TextEdit1.Format http://gambaswiki.org/wiki/comp/gb.qt4.ext/.textedit.format Thanks to James on the gambas mailing list https://lists.gambas-basic.org/pipermail/user/2022-June/076305.html With that you can quickly get or set various things at current cursor p...
by BruceSteers
Wednesday 15th June 2022 10:24am
Forum: General
Topic: something happened to the Gambas GUI
Replies: 5
Views: 214

Re: something happened to the Gambas GUI

what version gambas is it you use?

I have no problems with dev-branch

gambas stable hasn't been updated for 2 months so if the problem has only just started then maybe you have another problem?

did you update the system?

did you try gambas with GTK and QT to see if it's a gui-toolkit error?
by BruceSteers
Sunday 12th June 2022 1:46pm
Forum: Beginners
Topic: Foreground of qt5.textedit.
Replies: 5
Views: 237

Re: Foreground of qt5.textedit.

. See my post here Seany https://forum.gambas.one/viewtopic.php?f=15&t=1338 I discovered the TextEdit1.Selection.RichText property that would be like having a TextEdit1.InsertRichText() method to insert html code at the cursor position. PS. I found you can not just insert unfilled html code for exam...
by BruceSteers
Sunday 12th June 2022 7:58am
Forum: Beginners
Topic: Richtext Cursor position
Replies: 5
Views: 225

Re: Richtext Cursor position

I've attached your source modified with the above keypress event I also set the forms Arrangement property to Arrange.Vertical and .TextEdit1.Expand removed the need for your manual arrangement in the Resize event (Like Cogier said you should experiment with form layouts Panel.Arrangement properties...
by BruceSteers
Sunday 12th June 2022 7:09am
Forum: Beginners
Topic: Richtext Cursor position
Replies: 5
Views: 225

Re: Richtext Cursor position

I did some investigating. Seems the magic property is TextEdit1.Selection.RichText Note that TextEdit.Text has NO html formatting so any time you use TextEdit.RichText = Replace(TextEdit.Text,"\n", "<br>") you remove all other html code. Setting TextEdit.Selection.RichText property works like a .Ins...