Search found 1114 matches

by cogier
Saturday 3rd February 2024 12:57pm
Forum: Project showcase
Topic: Blockski+ , like Klotski but with a board editor.
Replies: 45
Views: 12809

Re: Blockski+ , like Klotski but with a board editor.

Have a look at Boards>Hard>Hard 2. It's very easy!
by cogier
Monday 29th January 2024 3:07pm
Forum: Project showcase
Topic: Blockski+ , like Klotski but with a board editor.
Replies: 45
Views: 12809

Re: Blockski+ , like Klotski but with a board editor.

Could you add some help? I haven't a clue what I am expected to do!
by cogier
Sunday 28th January 2024 12:09pm
Forum: The Gambas IDE
Topic: Can't Configue Executable
Replies: 6
Views: 2666

Re: Can't Configue Executable

That proved interesting. Apparently the shortcut keys to show the Menu bar are [Ctrl]+[Alt]+M , but this did not work for me. I closed Gambas, then managed to get the bar to show by going to ~/.config/gambas3 and editing the gambas3.conf file. Look for the ShowMenus=False and change it to ShowMenus=...
by cogier
Saturday 27th January 2024 5:46pm
Forum: General
Topic: [Sloved] Help with getting a image to fit onto a button
Replies: 12
Views: 2429

Re: Help with getting a image to fit onto a button

Here is a function that does that trick.
It does, BUT only with gb.gui. If I use gb.gui.qt all I get is a very black button!
by cogier
Tuesday 16th January 2024 5:24pm
Forum: Beginners
Topic: Where to place design documentation in project heirarchy?
Replies: 6
Views: 2288

Re: Where to place design documentation in project heirarchy?

Hi Neil and welcome to the forum. I suggest you store your files in your program's folder. While in Gambas with your program loaded, from the Tools menu select Browse project... . This will open your program's folder in your file manager. If you change any files while the Gambas IDE is open you may ...
by cogier
Tuesday 9th January 2024 4:27pm
Forum: Beginners
Topic: How to check if two files are identical
Replies: 4
Views: 1845

Re: How to check if two files are identical

I agree with thatbruce . The diff command will do what you need. Have a look at the code below. Public Sub Form_Open() Dim sFile1 As String = User.Home &/ "Diff1" Dim sFile2 As String = User.Home &/ "Diff2" Dim sResult As String Shell "diff " & sFile1 & ...
by cogier
Friday 5th January 2024 1:33pm
Forum: Beginners
Topic: TheUnexplained
Replies: 7
Views: 2666

Re: TheUnexplained

It's possible that when your program starts on boot the system is not quite ready yet. I suggest you allow some time for it to settle down before you start your program. I use Linux Mint which allows for a period of time after boot before your program starts. You can see below that even some of the ...
by cogier
Sunday 31st December 2023 10:48am
Forum: Beginners
Topic: Iterating Controls on Tabstrip
Replies: 4
Views: 1562

Re: Iterating Controls on Tabstrip

If I understand you correctly, you could give all the TextBoxes the same Action name: - https://www.cogier.com/gambas/ActionProperty.png Then delete all your code and replace with:- Public Sub Button1_Click() Action["AllTBs"].Text = "OK" End Let us know if I have not understood y...
by cogier
Monday 25th December 2023 1:20pm
Forum: Component
Topic: SpinBar Precision
Replies: 4
Views: 2218

Re: SpinBar Precision

I don't think you can do what you want with a SpinBar. So I suggest you create your own control. Try running the code below in a Graphical Application. https://www.cogier.com/gambas/SpinBarReplacement.png HBox1 As HBox LabelText As Label LabelValue As Label Slider1 As Slider Public Sub Form_Open() B...
by cogier
Monday 25th December 2023 12:27pm
Forum: General
Topic: Run a function at a certain time of day
Replies: 2
Views: 4463

Re: Run a function at a certain time of day

Here is my possible solution. A timer is setup to trigger every minute. It checks to see if today's date is a weekday and if it is then it checks to see if the time is 13:30 and if so runs the required routine. Timer1 As Timer Public Sub Form_Open() With Timer1 = New Timer As "Timer1" .Del...