Search found 41 matches

by vuott
Sunday 27th September 2020 2:18pm
Forum: General
Topic: Cr '\r' with no Lf' '\n' ?
Replies: 5
Views: 60

Re: Cr '\r' with no Lf' '\n' ?

... use CrLf and not just Cr? "\r" character can be useful when printing strings repeatedly on the same line. Here is an example by activating gb.media Component: Public Sub Main() Dim mp As MediaPlayer With mp = New MediaPlayer .URL = Media.URL("/path/of/audio/file") .Play() End With Repeat ' It p...
by vuott
Saturday 19th September 2020 6:30pm
Forum: Component
Topic: .Action property , any docs anywhere?
Replies: 4
Views: 143

Re: .Action property , any docs anywhere?

...and if you want to translate from italian:

https://www.gambas-it.org/wiki/index.ph ... sse_Action
by vuott
Sunday 30th August 2020 10:40pm
Forum: General
Topic: Balloons
Replies: 6
Views: 377

Re: Balloons

cogier wrote:
Sunday 30th August 2020 9:48am
Thank vott, you are correct the colours are fine with QT but why not with GTK?
It is the normal coloring of Ubuntu tooltips by using GTK.
by vuott
Saturday 29th August 2020 10:26pm
Forum: General
Topic: Balloons
Replies: 6
Views: 377

Re: Balloons

cogier wrote:
Saturday 29th August 2020 2:03pm
Running the following code produces dark grey text on a black background.
...you are using GTK, aren't you ? ;)
Change graphic resource: use QT.

Obviously, then, you know that you can use the HTML protocol with the text of the "Ballon" ...
by vuott
Saturday 18th July 2020 8:18pm
Forum: General
Topic: Upgrade to Ubuntu 20.04 broke Gambas
Replies: 4
Views: 622

Re: Upgrade to Ubuntu 20.04 broke Gambas

issboss wrote:
Saturday 18th July 2020 6:08pm
I've tried loading one critical component (gb.qt4) manually, but I'm told "can't find it".
Ubuntu 20.04 no longer supports "qt4" libraries and "keyring", so don't be afraid if those components are no longer installed.
You will use qt5 library.
by vuott
Saturday 11th July 2020 3:46pm
Forum: General
Topic: How to read keypress from exclusive external USB keypad .
Replies: 11
Views: 1849

Re: How to read keypress from exclusive external USB keypad .

Try this: Library "libc:6" Public Struct timeval tv_sec As Long tv_usec As Long End Struct Public Struct input_event time_ As Struct Timeval type As Short code As Short value As Integer End Struct Private Const _IOC_NRSHIFT As Integer = 0 Private Const _IOC_NRBITS As Integer = 8 Private _IOC_TYPESHI...
by vuott
Sunday 14th June 2020 11:31pm
Forum: General
Topic: How to read keypress from exclusive external USB keypad .
Replies: 11
Views: 1849

Re: How to read keypress from exclusive external USB keypad .

Used code I found on and other similar handling the grabbing and reading https://gist.github.com/matthewaveryusa/a721aad80ae89a5c69f7c964fa20fec1 Hello dinge, I transposed to Gambas the part of the code, present in that link, relating to the keyboard: Library "libc:6" Public Struct timeval tv_sec A...
by vuott
Monday 08th June 2020 6:12pm
Forum: General
Topic: How to read keypress from exclusive external USB keypad .
Replies: 11
Views: 1849

Re: How to read keypress from exclusive external USB keypad .

Hello dinge, ... determine what device instigated the event ...i want to start with this Quincunxian's sentence. For a quick and very simple way I would propose this code. Let's pretend that the file-device " /dev/input/event4 " corresponds to the first keyboard, and that the file-device " /dev/inpu...
by vuott
Monday 08th June 2020 4:43pm
Forum: Component
Topic: Component + C library
Replies: 2
Views: 942

Re: Component + C library

tincho wrote:
Monday 08th June 2020 11:39am
I'm trying to learn how to make a component that uses a C library
I suggest you T. Boege's tutorial:

http://www-e.uni-magdeburg.de/tboege/ga ... e_comp.pdf
by vuott
Sunday 07th June 2020 3:37pm
Forum: General
Topic: How to read keypress from exclusive external USB keypad .
Replies: 11
Views: 1849

Re: How to read keypress from exclusive external USB keypad .

Hello dinge, some reflection: 1 ) In my humble opinion "EVIOCGRAB" can not have that value 1, because it's a Macro . Infact #define EVIOCGRAB _IOW('E', 0x90, int) means: EVIOCGRAB is defined as _IOW('E', 0x90, int) So you are forced to develop, to translate that Macro - ...or better: that Function _...