Re: [Gambas-user] Strange Keyboard Behavior

2012-03-12 Thread Bill-Lancaster

Dear Benoît

Have installed Kubuntu desktop and after a short trial, everything seems to
be working fine.

Thanks for your help

Bill
-- 
View this message in context: 
http://old.nabble.com/Strange-Keyboard-Behavior-tp33477237p33484512.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Strange Keyboard Behavior

2012-03-12 Thread Bill-Lancaster


Dear Benoît,

I've not used Kubuntu before - I like it so I'll stay with it however it
would be selfish to just walk away from this problem!

Under Ubuntu the screen resolution is shown as 96X96 dpi.

I logged onto Ubuntu as guest, attempted to edit on of the example projects
- same problem.

Is there anything else I can do?

Bill
-- 
View this message in context: 
http://old.nabble.com/Strange-Keyboard-Behavior-tp33477237p33484780.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Strange Keyboard Behavior

2012-03-12 Thread Benoît Minisini
Le 12/03/2012 09:36, Bill-Lancaster a écrit :


 Dear Benoît,

 I've not used Kubuntu before - I like it so I'll stay with it however it
 would be selfish to just walk away from this problem!

 Under Ubuntu the screen resolution is shown as 96X96 dpi.

 I logged onto Ubuntu as guest, attempted to edit on of the example projects
 - same problem.

 Is there anything else I can do?

 Bill

Ubuntu and Kubuntu are the same thing. So it may be a QT library 
configuration problem related to the font, I don't know.

Are you the only one having that problem?

-- 
Benoît Minisini

--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Strange Keyboard Behavior

2012-03-12 Thread Bill-Lancaster

Sorry - I meant KDE not Kubuntu!
So KDE doesn't give me any problems so far.
Bill
-- 
View this message in context: 
http://old.nabble.com/Strange-Keyboard-Behavior-tp33477237p33485307.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature in Gambas3

2012-03-12 Thread Olivier Cruilles
HI Benoit,

I try the proxy configuration today and you limit the port of the proxy from 0 
to 100 and it's not a good idea
because it must be a range from 0 to 65535   (2^16)

The standard port for a proxy is 3138 or 8080. 


Olivier Cruilles
Mail: linu...@club-internet.fr

Le 12 mars 2012 à 02:49, Benoît Minisini a écrit :

 Le 11/03/2012 16:22, Olivier Cruilles a écrit :
 Hello Benoit,
 
 1- In a futur version of the IDE of Gambas3, could you please add the 
 support of the proxy to
 use the documentation ?
 
 
 Done in revision #4543.
 
 Regards,
 
 -- 
 Benoît Minisini
 
 --
 Try before you buy = See our experts in action!
 The most comprehensive online learning library for Microsoft developers
 is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
 Metro Style Apps, more. Free future releases when you subscribe now!
 http://p.sf.net/sfu/learndevnow-dev2
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Read and arrays

2012-03-12 Thread Jussi Lahtinen
I was thinking quicker way to read large binary files to memory.
And I noticed this; The returned datatype can be one of the following:
NULL, Boolean, Byte, Short, Integer, Long, Pointer, Single, Float, Date,
String, Variant, any Array, Collection or structure.
http://gambasdoc.org/help/lang/read?v3

So, I wonder whether it is quicker to read data as array, instead of
looping one (short) integer at time.

But how to do that? Did I misunderstand something?


tmpArr = Read hFile As Short[2000]

Doesn't compile (unexpected '[')... or does this work only for data written
as array, and read as Short[] without given bounds?


Jussi
--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Read and arrays

2012-03-12 Thread tobi
On Mon, 12 Mar 2012, Jussi Lahtinen wrote:

 I was thinking quicker way to read large binary files to memory.
 And I noticed this; The returned datatype can be one of the following:
 NULL, Boolean, Byte, Short, Integer, Long, Pointer, Single, Float, Date,
 String, Variant, any Array, Collection or structure.
 http://gambasdoc.org/help/lang/read?v3
 
 So, I wonder whether it is quicker to read data as array, instead of
 looping one (short) integer at time.
 
 But how to do that? Did I misunderstand something?
 
 
 tmpArr = Read hFile As Short[2000]
 
 Doesn't compile (unexpected '[')... or does this work only for data written
 as array, and read as Short[] without given bounds?
 
 
 Jussi
 --
 Try before you buy = See our experts in action!
 The most comprehensive online learning library for Microsoft developers
 is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
 Metro Style Apps, more. Free future releases when you subscribe now!
 http://p.sf.net/sfu/learndevnow-dev2
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

i once watched the format of files to which arrays/collections were written. 
they consist, if i
remember correctly, of an identifier followed by the size and then the data.
if you write an array to a file you can only read that array back, i think.
so it works on datatype base, not on raw memory base if you Read As Datatype. 
reading as much as
possible in one call is definitely faster (that is the reason for which the 
standard libc streams are
buffered by default). reading raw memory arrays of fixed size may be done using 
memory streams...?
do they persist in gambas3? i can't check anything now.

regards,
tobi

--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Transformable GUI

2012-03-12 Thread M. Cs.
Thank you Tobias, but I would like this as a drag and drop thing.
Let say I have a VBox with two frames in it: Fr_Top and Fr_Bottom. How
could I just grab the Fr_Top, drag below Fr_Bottom and drop so they
changed their places? Is there any limitations to take one of them out
of container VBox and drop it to a VBox2 container?

Thanks!

2012/3/11, tobias tobiasb...@web.de:
 hi,

 On 11.03.2012 20:55, M. Cs. wrote:
 Is it possible to change the layout during runtime? I mean if I have a
 panel and I would like to move it to another place.

 Thanks!

 Csaba

 of course is it possible. how could you get along without doing so until
 now? ;)
 the controls on your form are objects like almost everything else in
 your running gambas program. say your Panel1 needs to be moved to 10,10
 on the form you may want to

 Panel1.Move(10, 10)

 or

 Panel1.X = 10
 Panel1.Y = 10

 those are inherited from the Control class on which Panel relies.
 see the doc for the Control class and everything else under gb.qt4/gb.gtk.

 regards,
 tobi

 --
 Virtualization  Cloud Management Using Capacity Planning
 Cloud computing makes use of virtualization - but cloud computing
 also focuses on allowing computing to be delivered as a service.
 http://www.accelacomm.com/jaw/sfnl/114/51521223/
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user


--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Transformable GUI

2012-03-12 Thread M. Cs.
To be more accurate, I would like to implement something like you have
in Guayadeque music player for instance. You have different containers
and you can move them inside the IDE.

2012/3/12, M. Cs. mohar...@gmail.com:
 Thank you Tobias, but I would like this as a drag and drop thing.
 Let say I have a VBox with two frames in it: Fr_Top and Fr_Bottom. How
 could I just grab the Fr_Top, drag below Fr_Bottom and drop so they
 changed their places? Is there any limitations to take one of them out
 of container VBox and drop it to a VBox2 container?

 Thanks!

 2012/3/11, tobias tobiasb...@web.de:
 hi,

 On 11.03.2012 20:55, M. Cs. wrote:
 Is it possible to change the layout during runtime? I mean if I have a
 panel and I would like to move it to another place.

 Thanks!

 Csaba

 of course is it possible. how could you get along without doing so until
 now? ;)
 the controls on your form are objects like almost everything else in
 your running gambas program. say your Panel1 needs to be moved to 10,10
 on the form you may want to

 Panel1.Move(10, 10)

 or

 Panel1.X = 10
 Panel1.Y = 10

 those are inherited from the Control class on which Panel relies.
 see the doc for the Control class and everything else under
 gb.qt4/gb.gtk.

 regards,
 tobi

 --
 Virtualization  Cloud Management Using Capacity Planning
 Cloud computing makes use of virtualization - but cloud computing
 also focuses on allowing computing to be delivered as a service.
 http://www.accelacomm.com/jaw/sfnl/114/51521223/
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user



--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature in Gambas3

2012-03-12 Thread Benoît Minisini
Le 12/03/2012 13:28, Olivier Cruilles a écrit :
 HI Benoit,

 I try the proxy configuration today and you limit the port of the proxy from 
 0 to 100 and it's not a good idea
 because it must be a range from 0 to 65535   (2^16)

 The standard port for a proxy is 3138 or 8080.

Oops, I just forgot to define the limits of the SpinBox control, so you 
have the default values!

-- 
Benoît Minisini

--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Read and arrays

2012-03-12 Thread Benoît Minisini
Le 12/03/2012 17:21, tobi a écrit :
 On Mon, 12 Mar 2012, Jussi Lahtinen wrote:

 I was thinking quicker way to read large binary files to memory.
 And I noticed this; The returned datatype can be one of the following:
 NULL, Boolean, Byte, Short, Integer, Long, Pointer, Single, Float, Date,
 String, Variant, any Array, Collection or structure.
 http://gambasdoc.org/help/lang/read?v3

 So, I wonder whether it is quicker to read data as array, instead of
 looping one (short) integer at time.

 But how to do that? Did I misunderstand something?


 tmpArr = Read hFile As Short[2000]

 Doesn't compile (unexpected '[')... or does this work only for data written
 as array, and read as Short[] without given bounds?


 Jussi

 i once watched the format of files to which arrays/collections were written. 
 they consist, if i
 remember correctly, of an identifier followed by the size and then the data.
 if you write an array to a file you can only read that array back, i think.
 so it works on datatype base, not on raw memory base if you Read As Datatype. 
 reading as much as
 possible in one call is definitely faster (that is the reason for which the 
 standard libc streams are
 buffered by default). reading raw memory arrays of fixed size may be done 
 using memory streams...?
 do they persist in gambas3? i can't check anything now.

 regards,
 tobi


Arrays have Read() and Write() methods to read/write their contents 
from/to the disk.

Regards,

-- 
Benoît Minisini

--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Prog.gambas only one process

2012-03-12 Thread abbat

How to allow to run only one copy of prog.gambas?
I tried to: 
Shell [killall, prog.gambas]
on form open...
But there is no such a process when prog.gambas is running/


-- 
View this message in context: 
http://old.nabble.com/Prog.gambas-only-one-process-tp33491262p33491262.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Issue 224 in gambas: Input leaks memory

2012-03-12 Thread gambas
Status: New
Owner: 
Labels: Version Type-Bug Priority-Medium OpSys-Any Dist-Any Arch-Any  
Desktop-Any GUI-Any

New issue 224 by emil.len...@gmail.com: Input leaks memory
http://code.google.com/p/gambas/issues/detail?id=224

1) Describe the problem.
The reference counting is wrong when using the Input statement.

2) GIVE THE FOLLOWING INFORMATIONS (if they are appropriate):

Version: TRUNK
Revision: r4543

3) Provide a little project that reproduces the bug or the crash.
Public Sub Main
   Dim s As String
   Input s
End

Run the program, input something, this is the result:
gbx3: warning: 2 allocation(s) non freed.


--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] R: Prog.gambas only one process

2012-03-12 Thread Ru Vuott
My suggestion:



Public Sub Form_Open()

  Dim index As String
  Dim plura As String[]
  Dim a, b, c As Integer
  
Shell ps -aux | grep    To index


  plura = Split(index,  )

  c = plura.Count

  For a = 0 To c - 1
   

If Right(plura[a], 20) Like *.gambas* Then

For b = a To 100
  

Try Shell kill   plura[b]
Next
  Endif

 
  Next
  
End




bye

Vuott





--- Mar 13/3/12, abbat abbat...@mail.ru ha scritto:

 Da: abbat abbat...@mail.ru
 Oggetto: [Gambas-user]  Prog.gambas only one process
 A: gambas-user@lists.sourceforge.net
 Data: Martedì 13 marzo 2012, 00:44
 
 How to allow to run only one copy of prog.gambas?
 I tried to: 
 Shell [killall, prog.gambas]
 on form open...
 But there is no such a process when prog.gambas is running/
 
 
 -- 
 View this message in context: 
 http://old.nabble.com/Prog.gambas-only-one-process-tp33491262p33491262.html
 Sent from the gambas-user mailing list archive at
 Nabble.com.
 
 
 --
 Try before you buy = See our experts in action!
 The most comprehensive online learning library for Microsoft
 developers
 is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5,
 CSS3, MVC3,
 Metro Style Apps, more. Free future releases when you
 subscribe now!
 http://p.sf.net/sfu/learndevnow-dev2
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 

--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] R: Prog.gambas only one process - RECTIUS !!!

2012-03-12 Thread Ru Vuott
Excuse me, a little problem at name of program (before it was strange 
aaa):
I re-send the code:



Public Sub Form_Open()

  Dim index As String
  Dim plura As String[]
  Dim a, b, c As Integer
  
Shell ps -aux | grep   my_gambas__program To index


  plura = Split(index,  )

  c = plura.Count

  For a = 0 To c - 1
   

If Right(plura[a], 20) Like *.gambas* Then

For b = a To 100
  

Try Shell kill   plura[b]
Next
  Endif

 
  Next
  
End







--- Mar 13/3/12, abbat abbat...@mail.ru ha scritto:

 Da: abbat abbat...@mail.ru
 Oggetto: [Gambas-user]  Prog.gambas only one process
 A: gambas-user@lists.sourceforge.net
 Data: Martedì 13 marzo 2012, 00:44
 
 How to allow to run only one copy of prog.gambas?
 I tried to: 
 Shell [killall, prog.gambas]
 on form open...
 But there is no such a process when prog.gambas is running/
 
 
 -- 
 View this message in context: 
 http://old.nabble.com/Prog.gambas-only-one-process-tp33491262p33491262.html
 Sent from the gambas-user mailing list archive at
 Nabble.com.
 
 
 --
 Try before you buy = See our experts in action!
 The most comprehensive online learning library for Microsoft
 developers
 is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5,
 CSS3, MVC3,
 Metro Style Apps, more. Free future releases when you
 subscribe now!
 http://p.sf.net/sfu/learndevnow-dev2
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 

--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Issue 224 in gambas: Input leaks memory

2012-03-12 Thread gambas
Updates:
Status: Fixed
Labels: -Version Version-TRUNK

Comment #1 on issue 224 by benoit.m...@gmail.com: Input leaks memory
http://code.google.com/p/gambas/issues/detail?id=224

Fixed in revision #4545.


--
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user