Search found 1112 matches

by cogier
Sunday 28th January 2024 12:09pm
Forum: The Gambas IDE
Topic: Can't Configue Executable
Replies: 6
Views: 2529

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

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

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

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

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

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

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

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...
by cogier
Thursday 21st December 2023 3:28pm
Forum: General
Topic: Qt6
Replies: 29
Views: 13628

Re: Qt6

If you install an Ubuntu based distribution, e.g. Linux Mint you can then install the Gambas ppa, and Gambas, in Terminal with the command below. It will give you the latest Gambas stable version 3.18.4. I think you will find this will simply work. sudo add-apt-repository -y ppa:gambas-team/gambas3 ...
by cogier
Thursday 7th December 2023 6:02pm
Forum: General
Topic: Printing to a Zebra LAN Printer
Replies: 9
Views: 29384

Re: Printing to a Zebra LAN Printer

Do you have any examples of how you used the gb.cairo? vuott's code is a good start. The code below is designed to create a PDF file with the words 'Hello world!' and saves it to the /tmp/ folder. The label size is 50 x 25mm (2" x 1") '' Requires gb.cairo Public Sub Form_Open() CreatePDF(...