Search found 1114 matches

by cogier
Thursday 21st December 2023 3:28pm
Forum: General
Topic: Qt6
Replies: 29
Views: 14325

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

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(...
by cogier
Wednesday 6th December 2023 8:19pm
Forum: General
Topic: Printing to a Zebra LAN Printer
Replies: 9
Views: 29487

Re: Printing to a Zebra LAN Printer

I create a pdf using gb.cairo, then save the image to the /tmp/ folder. I Shell the lp command, see here, with the file name, see below. Job done.

Shell "lp /tmp/my.pdf" Wait


This produces labels like this: -

Image
by cogier
Wednesday 6th December 2023 2:34pm
Forum: General
Topic: Printing to a Zebra LAN Printer
Replies: 9
Views: 29487

Re: Printing to a Zebra LAN Printer

Have a look here https://supportcommunity.zebra.com/s/ar ... uage=en_US. I use a Zebra printer at work on Linux, but it is connected via USB. It works well for me. I create PDF files in Gambas and send them to the printer.
by cogier
Tuesday 5th December 2023 3:23pm
Forum: General
Topic: {Solved} Allow a user to move a control and right click
Replies: 6
Views: 19387

Re: Allow a user to move a control and right click

1.. is it possible to allow a user to drag a control around my program screen and allow the control to be moved there? Here is some example code you can run in a Graphical Program that will show you how to do this. 2.. If I put a right click or context menu on a group of controls how can I tell whi...
by cogier
Friday 1st December 2023 4:36pm
Forum: General
Topic: A "search" control
Replies: 1
Views: 9595

Re: A "search" control

Firstly, what I know about databases and quantum physics is about the same - NIL! I have always relied on CSV files to store data. They do have their downsides, but they are fast and don't take up much room. What do you think about wildcarding? I would like to support some level of wildcards anywher...
by cogier
Sunday 26th November 2023 1:06pm
Forum: Project showcase
Topic: Radio code
Replies: 0
Views: 13820

Radio code

I found some excellent code to play internet radio by vuott :!: here and here . I thought I would make a few changes! (Press [F11] for full-screen mode). https://www.cogier.com/gambas/VirginRock70.png ' Gambas class file '' Requires gb.media Private TextArea1 As TextArea Private DrawingArea1 As Draw...
by cogier
Saturday 25th November 2023 5:50pm
Forum: Project showcase
Topic: Keyboard Synthesizer
Replies: 6
Views: 10938

Re: Keyboard Synthesizer

Try the code with gb.gui and not gb.gui.qt.
by cogier
Saturday 25th November 2023 5:03pm
Forum: Project showcase
Topic: Keyboard Synthesizer
Replies: 6
Views: 10938

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

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