Search found 1113 matches

by cogier
Sunday 12th November 2023 1:25pm
Forum: General
Topic: Picture images not clearing
Replies: 5
Views: 14487

Re: Picture images not clearing

I have just tried this and it works OK. Does Picture1 refer to a PictureBox?
by cogier
Sunday 12th November 2023 9:17am
Forum: Beginners
Topic: Where to find examples? (Plus intro)
Replies: 6
Views: 5574

Re: Where to find examples? (Plus intro)

Welcome to the forum. I am looking for a collection of examples that I may examine so I can get a firm hold of how to use the form controls, etc.. You can look at the Gambas Farm where anyone can upload programs and examples. https://www.cogier.com/gambas/Farm2.png Also, when I make a project folder...
by cogier
Friday 10th November 2023 3:12pm
Forum: Beginners
Topic: Using the same click event
Replies: 6
Views: 4072

Re: Using the same click event

I have run into this issue on several occasions, and any amount of typing in the Group property box gets me nowhere. I discovered that if you close the IDE and then go to the .src folder of your program and edit the Form in question you can add the Group component. Here is a .form file with 2 button...
by cogier
Friday 3rd November 2023 2:01pm
Forum: Project showcase
Topic: 2048 The game
Replies: 5
Views: 7801

Re: 2048 The game

Welcome to the forum, and thanks for the feedback. I hope you will post a program here sometime.

Here are a few more of my games if you are interested:-

15 Puzzle game
ClearLines
Snake
Sudoku
Four2Nine
by cogier
Thursday 2nd November 2023 11:13am
Forum: Project showcase
Topic: Nightfall
Replies: 13
Views: 14769

Re: Nightfall

That's fixed that. The colours are much better thanks. An option to show the control options while the game is running would be helpful.

You also forgot to put in a link to the updated files, which I worked out is here https://icculus.org/piga/Files/Nightfall/1.5.1/
by cogier
Wednesday 1st November 2023 5:17pm
Forum: Project showcase
Topic: Nightfall
Replies: 13
Views: 14769

Re: Nightfall

I downloaded the file Nightfall-1.5.tar.gz . The program crashed when the Options button was pressed, I was able to fix it by adding Public Male As Boolean = True to the Options class, but I don't know if that is correct. https://www.cogier.com/gambas/Nightfall%20Options.png I found the dark text on...
by cogier
Wednesday 1st November 2023 4:45pm
Forum: Beginners
Topic: Use the "ESC" key
Replies: 11
Views: 6631

Re: Use the "ESC" key

If I read this correctly, you need to look at the Button properties of Default and Cancel . To get a Button to respond to a key press add a '&' before a letter in the Text property. In the example below [Alt]+O , [Alt]+C , [Esc] and [Return] will all 'Press' a Button. Run the following code in a...
by cogier
Sunday 22nd October 2023 10:56am
Forum: Beginners
Topic: Unable to change font
Replies: 6
Views: 4783

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

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

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...