Search found 1106 matches

by cogier
Saturday 25th November 2023 5:03pm
Forum: Project showcase
Topic: Keyboard Synthesizer
Replies: 6
Views: 10508

Re: Keyboard Synthesizer

Your instructions worked perfectly for me. At first, I couldn't work out what to do once I ran the program, so I had to mess with the code and add a keyboard! https://www.cogier.com/gambas/SoundBoard.png I'm not sure that it's perfect, but it's a start. Just click on a key to get the note. SoundBoar...
by cogier
Wednesday 22nd November 2023 3:55pm
Forum: Beginners
Topic: Upload and generate a text file
Replies: 8
Views: 9924

Re: Upload and generate a text file

1. Let the user search the disk like a file explorer. But you can only search for the txt extension. 2. Once found, Gambas should be able to use the.txt file Try the following code. 1/. It lists all the .txt files is the Home folder and its sub folders. 2/. If you double-click on a file, it will op...
by cogier
Sunday 12th November 2023 1:51pm
Forum: General
Topic: Picture images not clearing
Replies: 5
Views: 14424

Re: Picture images not clearing

Here is some code you can try in a Graphical application that works OK at this end. PictureBox1 As PictureBox HBox1 As HBox ToggleButton1 As ToggleButton Public Sub Form_Open() With Me .Height = 250 .Width = 200 .Arrangement = Arrange.Vertical .Padding = 5 End With With PictureBox1 = New PictureBox(...
by cogier
Sunday 12th November 2023 1:25pm
Forum: General
Topic: Picture images not clearing
Replies: 5
Views: 14424

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

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

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

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

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

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

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