Search found 263 matches
- Tuesday 26th December 2023 4:55am
- Forum: Component
- Topic: SpinBar Precision
- Replies: 4
- Views: 2682
Re: SpinBar Precision
a range of 0.0000 to 0.0160. By manipulating the "SpinBar" Control a bit, I got :? this: Public Sub Form_Open() Dim da As DrawingArea Private tw As Integer Private th As Integer With SpinBar1 .W = 100 .H = 50 .X = 0 .MinValue = 0.0 .MaxValue = 16.0 End With With da = New DrawingArea(SpinB...
- Monday 11th December 2023 9:53am
- Forum: General
- Topic: How to access this C function defined in an external library
- Replies: 7
- Views: 11799
Re: How to access this C function defined in an external library
ReturnValue = QMExecute(<The Command To Be Executed>, <The Error Code if Any>) There is a command in ScarletDME that returns a list of files (LISTF). In that case the ReturnValue string would contain the list of files. The error code only returns a value if the command fails. It returns the name of...
- Monday 11th December 2023 7:33am
- Forum: General
- Topic: How to access this C function defined in an external library
- Replies: 7
- Views: 11799
Re: How to access this C function defined in an external library
the c function definition is: char * QMExecute(char * Cmnd , int * Err ) We'ld need to know the work of each parameter, however " de visu " l suggest: Private Extern QMExecute(Cmnd As Pointer, Err As Pointer) As Pointer ..use in routine... Dim comm, RetVal As Pointer Dim ErrNoPtr As Integ...
- Thursday 7th December 2023 12:23am
- 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? Here is a simple possible example: Public Sub Button1_Click() Dim png As CairoSvgSurface Dim x, y As Integer Dim im, im2 As Image ' Specifies the graphic surface to be created for drawing on ' (second and third arguments are in millimeters): pn...
- Wednesday 6th December 2023 7:16am
- Forum: General
- Topic: Printing to a Zebra LAN Printer
- Replies: 9
- Views: 29524
Re: Printing to a Zebra LAN Printer
- Tuesday 5th December 2023 9:52pm
- Forum: Component Showcase
- Topic: Sending MIDI data to a softsynth via ALSA
- Replies: 0
- Views: 19569
Sending MIDI data to a softsynth via ALSA
Brief notes on how to send 'MIDI messages' to a softsynth via A.L.S.A. in the simplest manner possible. As is well known, a MIDI data stream does not - as is the case with audio data - contain information describing the characteristics of the sound wave, but rather information to be used by other pr...
- Tuesday 5th December 2023 8:03pm
- Forum: General
- Topic: {Solved} Allow a user to move a control and right click
- Replies: 6
- Views: 19425
- Tuesday 5th December 2023 3:47am
- 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? If by "screen" you mean the Container, where the Control is located, you can simply use the "Drag&Drop": Public Sub Form_Open() Label1.Background = Color.Re...
- Thursday 30th November 2023 2:29am
- Forum: General
- Topic: Days between two dates
- Replies: 3
- Views: 10703
Re: Days between two dates
In this case you need two DateBoxes.
Specifically you need to use their ".Value" Property, perhaps setting the date manually.
Public Sub Button1_Click()
Print DateBox2.Value - DateBox1.Value
End
- Wednesday 29th November 2023 3:35am
- Forum: The Gambas IDE
- Topic: Gambas -> USB -> DragonRise USB Joystick -> Use
- Replies: 7
- Views: 13622
Re: Gambas -> USB -> DragonRise USB Joystick -> Use
Wait... I just found this... https://forum.gambas.one/viewtopic.php?p=5475 I'm going to download that and see if I can figure it out. Jerry, Joystick.Class , of that code you found, handles exactly the file-device that I had asked you to look at: https://forum.gambas.one/viewtopic.php?p=7805#p7805 ...