Search found 1112 matches

by cogier
Wednesday 6th December 2023 8:19pm
Forum: General
Topic: Printing to a Zebra LAN Printer
Replies: 9
Views: 29384

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

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

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

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

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

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

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

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

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

Re: Picture images not clearing

I have just tried this and it works OK. Does Picture1 refer to a PictureBox?