Search found 1106 matches

by cogier
Monday 25th December 2023 1:20pm
Forum: Component
Topic: SpinBar Precision
Replies: 4
Views: 1728

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

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

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

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

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

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

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

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

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

Re: Keyboard Synthesizer

Try the code with gb.gui and not gb.gui.qt.