Search found 1117 matches
- Sunday 31st December 2023 10:48am
- Forum: Beginners
- Topic: Iterating Controls on Tabstrip
- Replies: 4
- Views: 2110
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...
- Monday 25th December 2023 1:20pm
- Forum: Component
- Topic: SpinBar Precision
- Replies: 4
- Views: 3241
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...
- Monday 25th December 2023 12:27pm
- Forum: General
- Topic: Run a function at a certain time of day
- Replies: 2
- Views: 4546
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: 29693
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: 29693
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: 29693
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: 19564
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: 9673
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: 16048
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...