Search found 1115 matches
- Monday 25th December 2023 12:27pm
- Forum: General
- Topic: Run a function at a certain time of day
- Replies: 2
- Views: 4486
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...
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 ...
- Thursday 7th December 2023 6:02pm
- Forum: General
- Topic: Printing to a Zebra LAN Printer
- Replies: 9
- Views: 29524
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(...
- Wednesday 6th December 2023 8:19pm
- Forum: General
- Topic: Printing to a Zebra LAN Printer
- Replies: 9
- Views: 29524
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.
This produces labels like this: -
Shell "lp /tmp/my.pdf" Wait
This produces labels like this: -
- Wednesday 6th December 2023 2:34pm
- Forum: General
- Topic: Printing to a Zebra LAN Printer
- Replies: 9
- Views: 29524
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.
- Tuesday 5th December 2023 3:23pm
- Forum: General
- Topic: {Solved} Allow a user to move a control and right click
- Replies: 6
- Views: 19425
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...
- Friday 1st December 2023 4:36pm
- Forum: General
- Topic: A "search" control
- Replies: 1
- Views: 9622
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...
- Sunday 26th November 2023 1:06pm
- Forum: Project showcase
- Topic: Radio code
- Replies: 0
- Views: 14818
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...
- Saturday 25th November 2023 5:50pm
- Forum: Project showcase
- Topic: Keyboard Synthesizer
- Replies: 6
- Views: 11222
Re: Keyboard Synthesizer
Try the code with gb.gui and not gb.gui.qt.
- Saturday 25th November 2023 5:03pm
- Forum: Project showcase
- Topic: Keyboard Synthesizer
- Replies: 6
- Views: 11222
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...