Search found 1106 matches

by cogier
Sunday 22nd October 2023 10:56am
Forum: Beginners
Topic: Unable to change font
Replies: 6
Views: 4689

Re: Unable to change font

I have just installed Kubuntu 23.10 on a spare machine to try out Gambas. I have to agree with the Bruces as I had no issues at all.

Image
by cogier
Sunday 22nd October 2023 10:18am
Forum: General
Topic: Music component - Editor Vs Compiled program.
Replies: 3
Views: 5211

Re: Music component - Editor Vs Compiled program.

I ran the following program in the Editor, and it works OK for me. Sorry, but it seems that it is "(yet another) me and my computer issue."

Public Sub Form_Open()
  
  Music.Load(Application.Path &/ "Sample.mp3")
  Music.Play
  
End
by cogier
Wednesday 18th October 2023 3:20pm
Forum: General
Topic: [SOLVED] Drag.Paste("text/uri-list") problem.
Replies: 14
Views: 6677

Re: Drag.Paste("text/uri-list") problem.

I have found a possible solution to this, it is a little convoluted, but it works for me. https://www.cogier.com/gambas/ListBoxDrop.png Public Sub Listbox1_Drop() Dim sHold As String Dim iStart, iEnd As Integer sHold = Drag.Paste() iStart = InStr(sHold, "///") + 2 iEnd = InStr(sHold, gb.Cr...
by cogier
Friday 13th October 2023 9:42am
Forum: Beginners
Topic: embeded pictures px area
Replies: 3
Views: 3255

Re: embeded pictures px area

I think the best way to do this is with Labels. Have a look at the attached code that I have started. Hopefully it will help you.
Test-0.0.1.tar.gz
(12.98 KiB) Downloaded 203 times
by cogier
Thursday 12th October 2023 9:51am
Forum: The Gambas IDE
Topic: Console outputting other running gambas programs
Replies: 4
Views: 5154

Re: Console outputting other running gambas programs

Do you have any suggestions for the audio playback breaking playback during a file load? Just fails to make sound for a 1/4 second.
You could try using a Task for the file load. That way you would use 2 cpu processes instead of one.
by cogier
Monday 9th October 2023 10:05am
Forum: General
Topic: Combining String data
Replies: 8
Views: 4181

Re: Combining String data

At a guess, I'd say that one of you has a blank line at the end of the file and one doesn't. In other words a Cr or whatever on the last data line. If that is the case then I find the best way to to handle that is in the initial file load when the file string is split by line endings, just by ignor...
by cogier
Sunday 8th October 2023 4:47pm
Forum: The Gambas IDE
Topic: Band Font Size error when trying to use Gambas IDE with QT5
Replies: 2
Views: 3408

Re: Band Font Size error when trying to use Gambas IDE with QT5

I am using Linux Mint 21.2 with the Cinnamon desktop and I did not get the same error as you. There was a 'libpng' warning, but I have no idea what it means. At a quick glance, Gambas seemed to work OK.

Image
by cogier
Saturday 7th October 2023 3:41pm
Forum: General
Topic: Combining String data
Replies: 8
Views: 4181

Re: Combining String data

Wow! You now have 3 options to pick from. A couple of points. vuott: - Your code works perfectly if line 22 ss.Remove(ss.Max, 1) is removed! thatBruce: - Your code will look better if you use the gb rather than the </> button. (I have edited your post above). https://www.cogier.com/gambas/gb_button....
by cogier
Friday 6th October 2023 10:30am
Forum: General
Topic: Combining String data
Replies: 8
Views: 4181

Re: Combining String data

You can do it with arrays. This is my solution, maybe someone can come up with a simpler version but this does work. ' Gambas class file 'Contents of file BCode.txt ' 5018374320766|1 ' 50201600|2 ' 99998|1 ' 99999|2 ' 5018374320766|2 ' 50201600|1 ' 5018374320766|5 ' 99999|2 ' 547892|9 ' 99999|2 ' 54...
by cogier
Thursday 5th October 2023 10:59am
Forum: Project showcase
Topic: Simple Temp monitor example using LCDLabel
Replies: 5
Views: 8851

Re: Simple Temp monitor example using LCDLabel

It works well, nice job. My computer runs a lot hotter than yours, showing at around 60.00°.