[Gambas-user] R: Matrix resize

2013-12-05 Thread Ru Vuott
...maybe: Private b As Byte Private bb As Byte[] Public Sub Button1_Click() Inc b ' We define the "new" number of rows in a two-dimensional matrix ' with a new value one greater than the previous: bb = New Byte[b, 3] bb[b - 1, 1] = b Print bb[b - 1, 1] End

Re: [Gambas-user] Matrix resize

2013-12-05 Thread terco IDE
I prefer the Jussi aproach, because a lot of code is already wrtitten with [r,c] format and is easier to read. I hope that works for Public arrays! Thanks Martin > Subject: Re: [Gambas-user] Matrix resize > To: mailing list for gambas users > Message-ID: > > Content-Type: text/plain; ch

Re: [Gambas-user] Selecting a window

2013-12-05 Thread Fabien Bodard
Like this ? 2013/12/5 John Rose : > Fabien, > > I've looked at your "quick & dirty way". I don't think that it's what I > want. I want the user to be able to select a window on the desktop (i.e. > not just Gambas forms in a Gambas app) by clicking on any point in that > window, not selecting it

Re: [Gambas-user] Matrix resize

2013-12-05 Thread Fabien Bodard
You can use arrays of array private MyArray as new Object[] Public sub _New() ResizeMyArray(MyArray,15,12) end Public sub ResizeMyArray(hMyArray as Object[], X as integer, y as integer) hMyArray.Resize(X) For i = 0 to hMyArray.max if hMyArray [i] then hMyArray[i].Resize(y) else hMyA

[Gambas-user] Issue 480 in gambas: Managing SVN conflicts

2013-12-05 Thread gambas
Status: New Owner: Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any Desktop-Any GUI-Any New issue 480 by ea7...@gmail.com: Managing SVN conflicts http://code.google.com/p/gambas/issues/detail?id=480 1) Describe the problem. Since I'm working in a little team, we are us

[Gambas-user] Selecting a window

2013-12-05 Thread John Rose
Fabien, I've looked at your "quick & dirty way". I don't think that it's what I want. I want the user to be able to select a window on the desktop (i.e. not just Gambas forms in a Gambas app) by clicking on any point in that window, not selecting it by dragging on the corners of a rectangle to

Re: [Gambas-user] Matrix resize

2013-12-05 Thread Jussi Lahtinen
Unfortunately this is missing feature from Gambas. Maybe Benoit has reason for it, I don't know. However here is code for resizing 2D arrays: Private Function Resize2DArray(hArray As Object, SizeX As Integer, SizeY As Integer) As Object Dim hNewArray As Object = Object.New(Object.Type(hArray),

Re: [Gambas-user] Re Selecting a window

2013-12-05 Thread Fabien Bodard
Quick and dirty but it's a way 2013/12/5 John Rose : > The reason for 'Selecting a window' is for the user to select a window > (by clicking any point within that window) to be recorded using the > x11grab facility of ffmpeg (for this, the window's left, top, width & > height need to be obtained):

Re: [Gambas-user] Where are the examples in gambas 3.5.1?

2013-12-05 Thread Carl Nilsson
G'day Matti and all: Now I do have a success story. This correspondence is really on the wrong forum - it is not really an issue for Gambas, as most of you realised from the start. It is an issue for openSUSE and those who make up distros and Linux novices like myself. After putting in as much

[Gambas-user] Matrix resize

2013-12-05 Thread terco IDE
First of everything: BIG thanks to Benoit for crating Gambas! Is there any workaround for resizing matrices? rigth now, I'm using this code notMatrix.Resize(100*200) ' 100 rows, 200 cols ' get element [row,col] x = notMatrix[col + row*200] , and on a big program, code get's really dirty Th

Re: [Gambas-user] Calling a sub from a Webview

2013-12-05 Thread Tobias Boege
On Wed, 04 Dec 2013, terco IDE wrote: > Hi: > i'm the mad guy who made that VB code wich calls Funcitions from the HTML > code :) > > I'n new to Gambas, but from what I've read, it is possible to set up an > Object Observer ...so why not intercept the webview control and do things > BEFORE t

[Gambas-user] Re Selecting a window

2013-12-05 Thread John Rose
The reason for 'Selecting a window' is for the user to select a window (by clicking any point within that window) to be recorded using the x11grab facility of ffmpeg (for this, the window's left, top, width & height need to be obtained): the window would normally be a Firefox tab's 'window' whe