Search found 112 matches

by vuott
Sunday 22nd May 2022 9:28pm
Forum: Beginners
Topic: Console text to Application
Replies: 2
Views: 24

Re: Console text to Application

If the command, used with "Shell", immediately returns its result, then you have to use the TO keyword.

Example:
Public Sub Form_Open()

  Shell "ls" To TextArea1.Text

End
http://gambaswiki.org/wiki/lang/shell
by vuott
Monday 09th May 2022 11:12am
Forum: Beginners
Topic: switch to previous instance
Replies: 4
Views: 209

Re: switch to previous instance

What do you mean by "instance", here ?
by vuott
Wednesday 13th April 2022 12:59pm
Forum: General
Topic: Missing Desktop.SendKeys() in 3.17.1
Replies: 2
Views: 294

Re: Missing Desktop.SendKeys() in 3.17.1

Did you activate gb.desktop Component ?

https://gambaswiki.org/wiki/comp/gb.des ... p/sendkeys
by vuott
Tuesday 12th April 2022 11:22am
Forum: Beginners
Topic: Form Background Picture - Scale or Tile
Replies: 9
Views: 676

Re: Form Background Picture - Scale or Tile

The ".Stretch()" Method exists since version 3.16:

https://gambaswiki.org/wiki/comp/gb.qt4/picture/stretch
by vuott
Sunday 03rd April 2022 8:17pm
Forum: Beginners
Topic: Form Background Picture - Scale or Tile
Replies: 9
Views: 676

Re: Form Background Picture - Scale or Tile

Askjerry wrote:
Sunday 03rd April 2022 5:35pm
But that failed.... so how can I resize it? I didn't see anything in the properties like "Stretch"
Well, ...why not ?

Exemplum:
Public Sub Form_Open()

  Dim pc As Picture

  pc = Picture.Load("/path/of/image/file")

  Me.Picture = pc.Stretch(Me.W, Me.H)

End
by vuott
Friday 25th March 2022 2:30am
Forum: Beginners
Topic: Using DrawArea - Simplified
Replies: 8
Views: 746

Re: Using DrawArea - Simplified

Hello, 1 ) the instruction "DrawingArea1_Draw" in Button1_Click() routine makes no sense, as it conforms to an Event. However, in your case you have to use the " DrawingArea.Refresh " Method. 2 ) The instruction: "Draw.Begin (DrawingArea1)" is not necessary within the "DrawingArea" Event, in which y...
by vuott
Friday 11th February 2022 5:01am
Forum: Component
Topic: mediaview capture
Replies: 4
Views: 870

Re: mediaview capture

BruceSteers has correctly suggested to you to use the "MediaControl" Class of the gb.media Component, which however should be used for example in conjunction with the "MediaPipeline" Class. Well, now I show below a simple code to capture the video - video only, no audio - played in a "MediaView" Con...
by vuott
Monday 31st January 2022 7:10pm
Forum: General
Topic: Barcode scanner
Replies: 5
Views: 1024

Re: Barcode scanner

gbWilly wrote:
Monday 31st January 2022 4:09pm
BarCodeScanner.PortName = ????
How do I know the portname, I have no idea.
...something similar to:
"/dev/ttyACM0"
or
"/dev/ttyUSB1"
by vuott
Tuesday 04th January 2022 12:55am
Forum: General
Topic: Downloading .JPG from web
Replies: 4
Views: 1037

Re: Downloading .JPG from web

I can't get it to work with curl or wget ...if you want to try extern Curl library :) with Gambas: Library "libcurl:4.6.0" Private Const CURLOPT_WRITEDATA As Integer = 10001 Private Const CURLOPT_URL As Integer = 10002 ' CURL *curl_easy_init(void) ' Start a libcurl easy session. Private Extern curl...