Search found 262 matches
- Monday 11th December 2023 9:53am
- Forum: General
- Topic: How to access this C function defined in an external library
- Replies: 7
- Views: 11786
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: 11786
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: 29492
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: 29492
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: 18094
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: 19390
- Tuesday 5th December 2023 3:47am
- Forum: General
- Topic: {Solved} Allow a user to move a control and right click
- Replies: 6
- Views: 19390
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: 10680
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: 13544
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 ...
- Tuesday 28th November 2023 7:48pm
- Forum: Project showcase
- Topic: Keyboard Synthesizer
- Replies: 6
- Views: 10945
Re: Keyboard Synthesizer
Hi, Cedron,
I want to express my congratulations for your commitment to the topic of music-it is rare to find someone who is dedicated to such a topic.
I also find the keyboard interface created by cogier interesting - from a code and graphical point of view.
I want to express my congratulations for your commitment to the topic of music-it is rare to find someone who is dedicated to such a topic.
I also find the keyboard interface created by cogier interesting - from a code and graphical point of view.