Search found 262 matches

by vuott
Monday 11th December 2023 9:53am
Forum: General
Topic: How to access this C function defined in an external library
Replies: 7
Views: 11764

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...
by vuott
Monday 11th December 2023 7:33am
Forum: General
Topic: How to access this C function defined in an external library
Replies: 7
Views: 11764

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...
by vuott
Thursday 7th December 2023 12:23am
Forum: General
Topic: Printing to a Zebra LAN Printer
Replies: 9
Views: 29456

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...
by vuott
Wednesday 6th December 2023 7:16am
Forum: General
Topic: Printing to a Zebra LAN Printer
Replies: 9
Views: 29456

Re: Printing to a Zebra LAN Printer

AndyGable wrote: Wednesday 6th December 2023 2:40am Also how would I print the port? I've never done that with Gambas (I assume I would need to open 192.168.1.100:9100 as output or something like that)
Maybe by using Socket Class of gb.net:
http://gambaswiki.org/wiki/comp/gb.net/socket
by vuott
Tuesday 5th December 2023 9:52pm
Forum: Component Showcase
Topic: Sending MIDI data to a softsynth via ALSA
Replies: 0
Views: 17114

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...
by vuott
Tuesday 5th December 2023 8:03pm
Forum: General
Topic: {Solved} Allow a user to move a control and right click
Replies: 6
Views: 19355

Re: Allow a user to move a control and right click

vuott wrote: Tuesday 5th December 2023 3:47am Actually, you could drag a Control without the Drag&Drop...
...infact cogier showed another way to move the Controls.
by vuott
Tuesday 5th December 2023 3:47am
Forum: General
Topic: {Solved} Allow a user to move a control and right click
Replies: 6
Views: 19355

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...
by vuott
Thursday 30th November 2023 2:29am
Forum: General
Topic: Days between two dates
Replies: 3
Views: 10652

Re: Days between two dates

sarpomira wrote: Wednesday 29th November 2023 8:32pm ...... date selected in a Gambas "DateBox" control.
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
by vuott
Wednesday 29th November 2023 3:35am
Forum: The Gambas IDE
Topic: Gambas -> USB -> DragonRise USB Joystick -> Use
Replies: 7
Views: 13486

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 ...
by vuott
Tuesday 28th November 2023 7:48pm
Forum: Project showcase
Topic: Keyboard Synthesizer
Replies: 6
Views: 10885

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.