Re: [Gambas-user] GAMBAS rules! (And a couple of questions about listboxes and control arrays)

2010-01-01 Thread Doriano Blengino
Bill Richman ha scritto:
 Well, the list view suggestion worked wonderfully!  Thank you!  I had 
 wondered how a list view differed from a list box.  Now I know...  
 X-)  I had been using an SQL request to populate a list box; I just 
 didn't realize that there was a control available that allowed you to 
 keep track of another value in a way not visible to the user.  I'm 
 trying to implement an array of the button objects, but I'm a little 
 confused.  I need the array to be available to all of the SUBS in the 
 class where they were created (I hope I'm using the right terminology - 
 I need them to be visible to all of the subroutines associated with the 
 form they were created on).  If I try PUBLIC aButtons[150] AS Object 
 at the top of the code, like I do for all my other variables shared 
 within the class, I'm told Arrays are forbidden here!.  Is there 
 something else I should be doing?  Since the form controls are what are 
 calling the subs, it seems like I can't pass the whole aButtons array to 
 the sub triggered by the event (a button click) since the form won't 
 know about it if it's declared only inside the sub where the buttons 
 were first created, right?
   
I understand your problem: you are coming from another programming 
language, and you are trying to use the other language's concepts.
Gambas does not implement certain things, and does implement others.

You have a lot of buttons, so it is better to create them from code, as 
Fabien suggested:
 For i = 0 to 144
  hButton = New Button(me) as button
  hButton.Tag = i
  aButtons.Add(hButton)
 
  Next
 
 
  aButtons[40].Text
 
(note that in the code suggested 145 buttons are created, not 144...)

To store the 144 handles you use an array of objects. In gambas you can 
not declare typed array of objects, only generic array (or lists).
Put this declaration at the beginning of the class:

private aButtons as new Object[]

Note that aButtons is not an array, but an object, and as such you 
must instantiate it with NEW. Fortunately you can do it at the same time 
as the declaration.

In the above cycle you will want to set other properties, like X, Y and 
Text. The Tag property will be handy later.

Now, you want to assign event handlers to your buttons. When creating 
the buttons, each one is created with NEW and a strange clause AS 
blahblahblah, in this case AS button. This AS clause (which is not 
mandatory) tells gambas that events raised by the button will be named 
button_x, where x is the name of the event. To get your handler 
execute when a button is clicked, you write:

public sub button_click()
  ...
  ...
end

Every time one of those buttons is clicked, the button_click subroutine 
is executed. But inside that subroutine you must know what button was 
clicked, if the buttons all do different things. Fortunately again, 
every time an event is fired a hidden variable named LAST is set: it 
contains a reference to the object which raised the event. So use things 
like this:

public sub button_click()
  print Clicked button #  LAST.Tag
  print The label of the button is   LAST.Text
  ...
end

May be that you don't need at all to store the reference of the buttons 
(aButtons.add(...)), because in the text and tag properties of the 
buttons themselves you can put enough informations to do your job. But, 
if you want, you can use the tag property to get back to the handler of 
the button: we used the tag property to store the index of the button 
inside the array. Suppose that you want to remember, for later use, what 
was the last button clicked:

private last_clicked_button as Button

public sub button_click()
  print Clicked button #  LAST.Tag
  last_clicked_button = aButtons[LAST.Tag]   ' Tag is an index 
inside the array

  ' but the following is the same... faster and cleaner
  last_clicked_button = LAST

end

Hope this is enough to get you started. A couple thing to better 
clarify: the array (or list) aButtons, and the variable LAST, are not 
strong typed. In gambas all the class identifiers are dynamic, so the 
compiler does not know exactly what such an object is. It will let you 
write things that will be checked only at runtime. So, in 
button_click(), you can write LAST.NonExistent = false. The compiler 
will be happy about that, and you will get a run-time error. The 
Object[] class lets you store handlers for other objects, and you can 
mix several types of objects in the same array. This is useful, but it 
can lead to errors. The second thing is that LAST is the most easy and 
clear way to access an object inside an event handler. If you use LAST, 
you can change the name of your object and only have to change the name 
of the subroutine, not all the code inside it.

Regards,

-- 
Doriano Blengino

Listen twice before you speak.
This is why we have two ears, but only one mouth.



Re: [Gambas-user] GAMBAS rules! (And a couple of questions about listboxes and control arrays)

2010-01-01 Thread Doriano Blengino
Bill Richman ha scritto:

 #3) My ListBoxes roll smoothly up and down from one list item to
 another, like movie credits rolling by, and it's really slow.  If I were
 the user, this would make me crazy.  Is there a way to get them to jump
 scroll instead of smooth scroll?  :-$
   

 ?
 i think this not depend on Gambas but on qt or gtk

   
 
 How do I determine this?  
   
Forgot to answer to the last question.

Gambas can use both GTK and QT without changing a single line of code. 
Open the project properties window, at the tab Components. There you can 
choose to use gb.gtk or gb.qt. QT works better and faster; GTK is nicer 
and totally free, but lacks a few things and has some glitch. Given that 
it is so simple to switch from one to another, try both. There is also 
the switcher component, which chooses automatically QT or GTK, to have 
some fun.

Regards,

-- 
Doriano Blengino

Listen twice before you speak.
This is why we have two ears, but only one mouth.


--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Socket Limitations

2010-01-01 Thread Kadaitcha Man
gb3, qt4 on Ubuntu 9.10.

Are there any known limits on the size of data that can be sent down a
socket in one gulp?

I have a proxy written in gb3 that uses Socket to communicate with a
remote server and uses ServerSocket to get data from the client.
ServerSocket seems to gag when given anything above 44k or so but it
eventually recovers and retrieves the data being forced down it's
throat. However Socket consistently fails between 41 and 47k and never
ever recovers.

I have proved that Socket is the issue and not ServerSocket by sending
41-47k chunks of data down Socket without ServerSocket being involved
in the transaction.

I know I can break the data up into multiple chunks before sending it
through the socket but the proxy is already doing some very heavy-duty
signalling, which proxies are wont to do, so I'm loathe to add even
more signals into the proxy. I just want to know if there are known
limits on Socket. I don't want to break up the data into multiple
chunks for the reason I just mentioned so if I am forced to limit the
size of data going down a socket then that's fine by me. It's a design
decision I'll have to make.

I merely want to know. Well, I want to know for sure because I
certainly suspect it :)

I am using Read# and Write# commands with Lof(), btw.

Oh, I decided to post this to the user list rather than the developer
list because I'm not convinced it's a gb3-specific issue.

--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Socket Limitations

2010-01-01 Thread Benoît Minisini
 gb3, qt4 on Ubuntu 9.10.
 
 Are there any known limits on the size of data that can be sent down a
 socket in one gulp?
 
 I have a proxy written in gb3 that uses Socket to communicate with a
 remote server and uses ServerSocket to get data from the client.
 ServerSocket seems to gag when given anything above 44k or so but it
 eventually recovers and retrieves the data being forced down it's
 throat. However Socket consistently fails between 41 and 47k and never
 ever recovers.
 
 I have proved that Socket is the issue and not ServerSocket by sending
 41-47k chunks of data down Socket without ServerSocket being involved
 in the transaction.
 
 I know I can break the data up into multiple chunks before sending it
 through the socket but the proxy is already doing some very heavy-duty
 signalling, which proxies are wont to do, so I'm loathe to add even
 more signals into the proxy. I just want to know if there are known
 limits on Socket. I don't want to break up the data into multiple
 chunks for the reason I just mentioned so if I am forced to limit the
 size of data going down a socket then that's fine by me. It's a design
 decision I'll have to make.
 
 I merely want to know. Well, I want to know for sure because I
 certainly suspect it :)
 
 I am using Read# and Write# commands with Lof(), btw.
 
 Oh, I decided to post this to the user list rather than the developer
 list because I'm not convinced it's a gb3-specific issue.
 

Do you mean that if you write more than 41K of data on a Socket, it fails 
silently? Please provide the source code of the network communication, 
otherwise I can't see what you are doing exactly.

Regards,

-- 
Benoît Minisini

--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Socket Limitations

2010-01-01 Thread Kadaitcha Man
2010/1/2 Benoît Minisini gam...@users.sourceforge.net:

 Do you mean that if you write more than 41K of data on a Socket, it fails
 silently?

Yes, precisely.

 Please provide the source code of the network communication,
 otherwise I can't see what you are doing exactly.

I will have to mock something up over the coming days as the project
is now advanced enough to be using real client data, which I can't
send you.

Thanks for the reply.

--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] GAMBAS rules! (And a couple of questions about listboxes and control arrays)

2010-01-01 Thread Bill Richman
Hi.  Thanks for taking the time to explain all of that.  I actually had 
most of the code figured out and working already, but you've filled in 
some information about why it works that I wasn't sure about.  I had 
the code creating the buttons, and the button_click sub with the 
LAST value being stored.  I was having trouble getting the array 
declared in a way that would make it available to the entire class and 
still keep the compiler happy.  Mostly through trial-and-error, I 
figured out that I could use:  PUBLIC aButtons AS Object[150] to 
accomplish what I needed to.  I don't have the NEW clause in there; 
I'm not sure if that will come back to bite me or not.  I have a few 
things to clean up in the user interface and I think my project will be 
ready for use.  I'll probably be back to bother you guys again, though.  
:-)

P.S.  - Happy New Year, everyone!

-Bill

Bill Richman - Lincoln, Nebraska
Tilter at windmills, maker of pies in the sky,  curmudgeon
email: b...@geektrap.com  web: www.geektrap.com



--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Corrupted Form

2010-01-01 Thread Benoît Minisini
 Hi Benoit,
 
 I include a small project that gives a problem:
 Whenever I modify the form in the IDE the form comes with an extra ) which
 generates an error at executing the program.
 
 ), (modem.get_name  )]) - the last ) is hurting
 
 The only solution by now is to edit Fmain.form with gedit and run again.
 
 Happy 2010 ! In gambaS !
 
 Pino
 

Fixed in revision #2577. 

Only ListBox or ComboBox having exactly 31 items defined in the IDE got the 
bug. You are not lucky! :-)

Regards,

-- 
Benoît Minisini

--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] sdl.sound plays mp3 too fast

2010-01-01 Thread Bill-Lancaster

Hello
Some of my mp3 files play at the wrong speed using sdl.sound.  They play
correctly using commercial players .  I notice that they are MPEG Version 2
files.
Is this the cause?

Any ideas?

Regards

Bill Lancaster
-- 
View this message in context: 
http://old.nabble.com/sdl.sound-plays-mp3-too-fast-tp26985683p26985683.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] GAMBAS rules! (And a couple of questions about listboxes and control arrays)

2010-01-01 Thread Doriano Blengino
Bill Richman ha scritto:
 Hi.  Thanks for taking the time to explain all of that.  I actually had 
 most of the code figured out and working already, but you've filled in 
 some information about why it works that I wasn't sure about.  I had 
 the code creating the buttons, and the button_click sub with the 
 LAST value being stored.  I was having trouble getting the array 
 declared in a way that would make it available to the entire class and 
 still keep the compiler happy.  Mostly through trial-and-error, I 
 figured out that I could use:  PUBLIC aButtons AS Object[150] to 
 accomplish what I needed to.  I don't have the NEW clause in there; 
 I'm not sure if that will come back to bite me or not.  I have a few 
 things to clean up in the user interface and I think my project will be 
 ready for use.  I'll probably be back to bother you guys again, though.  
 :-)

 P.S.  - Happy New Year, everyone!
   
Thanks for the whishes, and Happy New Year to you and everybody in this 
list.

About the declaration, if the compiler accepts PUBLIC aButtons AS 
Object[150] I think it will not byte you... but at this point it's me 
that gets confused :-)... so I go for some experiment, and find the 
following.

The first way I suggested, new object[], is a growing list of objects. 
The notation you use is a static array; i made some experiment, and 
found that there is no real differences between the two - your 
declaration is really a dynamic list containing already a number of 
elements. There is always something to learn...

You insist on troubles having the array visible in the whole class, but 
it seems to me that there can be no troubles - when you declare 
variables in a class, there is no way to hide those variables from the 
class itself; you can only declare them PRIVATE to hide them from the 
outside. So, every declaration would get what you wanted.

Anyway, it works - and this is good.

Happy typing,

-- 
Doriano Blengino

Listen twice before you speak.
This is why we have two ears, but only one mouth.


--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Problem updating svn from revision 2209

2010-01-01 Thread abdurrahman ulusoy
when i svn update  then ./reconf  error. 
trunk $ ./reconf Remember to add `AC_PROG_LIBTOOL' to `configure.ac'.You should 
update your `aclocal.m4' by running aclocal.autoreconf: Entering directory 
`.'autoreconf: configure.ac: not using Gettextautoreconf: running: 
aclocal/usr/share/aclocal/libgstroke.m4:29: warning: underquoted definition of 
smr_ARG_WITHLIB/usr/share/aclocal/libgstroke.m4:29:   run info 
'(automake)Extending aclocal'/usr/share/aclocal/libgstroke.m4:29:   or see 
http://sources.redhat.com/automake/automake.html#Extending-aclocalautoreconf: 
configure.ac: tracingautoreconf: configure.ac: adding subdirectory main to 
autoreconfautoreconf: Entering directory `main'autoreconf: running: aclocal -I 
m4 --install/usr/share/aclocal/libgstroke.m4:29: warning: underquoted 
definition of smr_ARG_WITHLIB/usr/share/aclocal/libgstroke.m4:29:   run info 
'(automake)Extending aclocal'/usr/share/aclocal/libgstroke.m4:29:   or see
 http://sources.redhat.com/automake/automake.html#Extending-aclocalautoreconf: 
configure.ac: not using Libtoolautoreconf: running: 
/usr/bin/autoconfautoreconf: running: /usr/bin/autoheaderautoreconf: running: 
automake --add-missing --copy --no-forcegbc/Makefile.am:5: Libtool library used 
but `LIBTOOL' is undefinedgbc/Makefile.am:5:   The usual way to define 
`LIBTOOL' is to add `AC_PROG_LIBTOOL'gbc/Makefile.am:5:   to `configure.ac' and 
run `aclocal' and `autoconf' again.gbc/Makefile.am:5:   If `AC_PROG_LIBTOOL' is 
in `configure.ac', make suregbc/Makefile.am:5:   its definition is in aclocal's 
search path.gbx/Makefile.am:5: library used but `RANLIB' is 
undefinedgbx/Makefile.am:5:   The usual way to define `RANLIB' is to add 
`AC_PROG_RANLIB'gbx/Makefile.am:5:   to `configure.ac' and run `autoconf' 
again.gbx/Makefile.am:6: Libtool library used but `LIBTOOL' is 
undefinedgbx/Makefile.am:6:   The usual way to define `LIBTOOL' is to add
 `AC_PROG_LIBTOOL'gbx/Makefile.am:6:   to `configure.ac' and run `aclocal' and 
`autoconf' again.gbx/Makefile.am:6:   If `AC_PROG_LIBTOOL' is in 
`configure.ac', make suregbx/Makefile.am:6:   its definition is in aclocal's 
search path.lib/compress/Makefile.am:4: Libtool library used but `LIBTOOL' is 
undefinedlib/compress/Makefile.am:4:   The usual way to define `LIBTOOL' is to 
add `AC_PROG_LIBTOOL'lib/compress/Makefile.am:4:   to `configure.ac' and run 
`aclocal' and `autoconf' again.lib/compress/Makefile.am:4:   If 
`AC_PROG_LIBTOOL' is in `configure.ac', make surelib/compress/Makefile.am:4:   
its definition is in aclocal's search path.lib/db/Makefile.am:4: Libtool 
library used but `LIBTOOL' is undefinedlib/db/Makefile.am:4:   The usual way to 
define `LIBTOOL' is to add `AC_PROG_LIBTOOL'lib/db/Makefile.am:4:   to 
`configure.ac' and run `aclocal' and `autoconf' again.lib/db/Makefile.am:4:   
If `AC_PROG_LIBTOOL' is in `configure.ac', make
 surelib/db/Makefile.am:4:   its definition is in aclocal's search 
path.lib/debug/Makefile.am:4: Libtool library used but `LIBTOOL' is 
undefinedlib/debug/Makefile.am:4:   The usual way to define `LIBTOOL' is to add 
`AC_PROG_LIBTOOL'lib/debug/Makefile.am:4:   to `configure.ac' and run `aclocal' 
and `autoconf' again.lib/debug/Makefile.am:4:   If `AC_PROG_LIBTOOL' is in 
`configure.ac', make surelib/debug/Makefile.am:4:   its definition is in 
aclocal's search path.lib/draw/Makefile.am:3: Libtool library used but 
`LIBTOOL' is undefinedlib/draw/Makefile.am:3:   The usual way to define 
`LIBTOOL' is to add `AC_PROG_LIBTOOL'lib/draw/Makefile.am:3:   to 
`configure.ac' and run `aclocal' and `autoconf' again.lib/draw/Makefile.am:3:   
If `AC_PROG_LIBTOOL' is in `configure.ac', make surelib/draw/Makefile.am:3:   
its definition is in aclocal's search path.lib/eval/Makefile.am:4: Libtool 
library used but `LIBTOOL' is undefinedlib/eval/Makefile.am:4:   The
 usual way to define `LIBTOOL' is to add 
`AC_PROG_LIBTOOL'lib/eval/Makefile.am:4:   to `configure.ac' and run `aclocal' 
and `autoconf' again.lib/eval/Makefile.am:4:   If `AC_PROG_LIBTOOL' is in 
`configure.ac', make surelib/eval/Makefile.am:4:   its definition is in 
aclocal's search path.lib/gui/Makefile.am:4: Libtool library used but `LIBTOOL' 
is undefinedlib/gui/Makefile.am:4:   The usual way to define `LIBTOOL' is to 
add `AC_PROG_LIBTOOL'lib/gui/Makefile.am:4:   to `configure.ac' and run 
`aclocal' and `autoconf' again.lib/gui/Makefile.am:4:   If `AC_PROG_LIBTOOL' is 
in `configure.ac', make surelib/gui/Makefile.am:4:   its definition is in 
aclocal's search path.lib/image.effect/Makefile.am:5: Libtool library used but 
`LIBTOOL' is undefinedlib/image.effect/Makefile.am:5:   The usual way to define 
`LIBTOOL' is to add `AC_PROG_LIBTOOL'lib/image.effect/Makefile.am:5:   to 
`configure.ac' and run `aclocal' and `autoconf'
 again.lib/image.effect/Makefile.am:5:   If `AC_PROG_LIBTOOL' is in 
`configure.ac', make surelib/image.effect/Makefile.am:5:   its definition is in 
aclocal's search path.lib/image/Makefile.am:5: Libtool library used but 

Re: [Gambas-user] GAMBAS rules! (And a couple of questions about listboxes and control arrays)

2010-01-01 Thread Fabien Bodard
2010/1/1 Doriano Blengino doriano.bleng...@fastwebnet.it:
 Bill Richman ha scritto:
 Hi.  Thanks for taking the time to explain all of that.  I actually had
 most of the code figured out and working already, but you've filled in
 some information about why it works that I wasn't sure about.  I had
 the code creating the buttons, and the button_click sub with the
 LAST value being stored.  I was having trouble getting the array
 declared in a way that would make it available to the entire class and
 still keep the compiler happy.  Mostly through trial-and-error, I
 figured out that I could use:  PUBLIC aButtons AS Object[150] to
 accomplish what I needed to.  I don't have the NEW clause in there;
 I'm not sure if that will come back to bite me or not.  I have a few
 things to clean up in the user interface and I think my project will be
 ready for use.  I'll probably be back to bother you guys again, though.
 :-)

 P.S.  - Happy New Year, everyone!

 Thanks for the whishes, and Happy New Year to you and everybody in this
 list.

 About the declaration, if the compiler accepts PUBLIC aButtons AS
 Object[150] I think it will not byte you... but at this point it's me
 that gets confused :-)... so I go for some experiment, and find the
 following.

 The first way I suggested, new object[], is a growing list of objects.
 The notation you use is a static array;
no, a static array is defined like that :

Public aButton[150] as Object

This notation :
PUBLIC aButtons AS Object[150]

define a dynamic array but setup 150 entries

http://gambasdoc.org/help/lang/arraydecl?show

!!! Do not use static arrays as local variables. It works at the
moment, but may be removed in the future. !!!


i made some experiment, and
 found that there is no real differences between the two - your
 declaration is really a dynamic list containing already a number of
 elements. There is always something to learn...

 You insist on troubles having the array visible in the whole class, but
 it seems to me that there can be no troubles - when you declare
 variables in a class, there is no way to hide those variables from the
 class itself; you can only declare them PRIVATE to hide them from the
 outside. So, every declaration would get what you wanted.

 Anyway, it works - and this is good.

 Happy typing,

 --
 Doriano Blengino

 Listen twice before you speak.
 This is why we have two ears, but only one mouth.


 --
 This SF.Net email is sponsored by the Verizon Developer Community
 Take advantage of Verizon's best-in-class app development support
 A streamlined, 14 day to market process makes app distribution fast and easy
 Join now and get one step closer to millions of Verizon customers
 http://p.sf.net/sfu/verizon-dev2dev
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user


--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Should i upgrade to gambas3

2010-01-01 Thread M. Cs.
From the Lucid repositories, you can upgrade Gambas2 to the version 2.15.
I'm on Karmic, but it should be working with Jaunty too. Use Gambas3 only if
you're writing programs for your own use, because the Gambas3 is not a
version available for end users.
Happy New Year!
--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] GAMBAS rules! (And a couple of questions about listboxes and control arrays)

2010-01-01 Thread Doriano Blengino
Fabien Bodard ha scritto:
 2010/1/1 Doriano Blengino doriano.bleng...@fastwebnet.it:
   
 Bill Richman ha scritto:
 
 Hi.  Thanks for taking the time to explain all of that.  I actually had
 most of the code figured out and working already, but you've filled in
 some information about why it works that I wasn't sure about.  I had
 the code creating the buttons, and the button_click sub with the
 LAST value being stored.  I was having trouble getting the array
 declared in a way that would make it available to the entire class and
 still keep the compiler happy.  Mostly through trial-and-error, I
 figured out that I could use:  PUBLIC aButtons AS Object[150] to
 accomplish what I needed to.  I don't have the NEW clause in there;
 I'm not sure if that will come back to bite me or not.  I have a few
 things to clean up in the user interface and I think my project will be
 ready for use.  I'll probably be back to bother you guys again, though.
 :-)

   
 The first way I suggested, new object[], is a growing list of objects.
 The notation you use is a static array;
 
 no, a static array is defined like that :

 Public aButton[150] as Object

 This notation :
 PUBLIC aButtons AS Object[150]

 define a dynamic array but setup 150 entries

 http://gambasdoc.org/help/lang/arraydecl?show

 !!! Do not use static arrays as local variables. It works at the
 moment, but may be removed in the future. !!!
   
For the second time today I must say there is always something to learn.

Thanks. In about three weeks I will be able to distinguish the two 
cases... I am intelligent, did you know? :-)

-- 
Doriano Blengino

Listen twice before you speak.
This is why we have two ears, but only one mouth.


--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] I wish an happy new year to all the Gambas Users !

2010-01-01 Thread Fabien Bodard


--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Not sure about what type of project to use, pls advise

2010-01-01 Thread Jussi Lahtinen
Yes, they are issues to consider, if you are not willing to pay for license.

Jussi


On Thu, Dec 31, 2009 at 01:10, Kadaitcha Man
nospam.nospam.nos...@gmail.com wrote:
 2009/12/31 Jussi Lahtinen jussi.lahti...@gmail.com:
 License issues...
 I have understand that GTK+ is free, Qt3 is free only for
 non-proprietary software,
 and Qt4 is free for proprietary software also.

 If those are issues that anyone need consider then how can the likes
 of ATI and nVidia create control panels for their proprietary drivers?

 --
 This SF.Net email is sponsored by the Verizon Developer Community
 Take advantage of Verizon's best-in-class app development support
 A streamlined, 14 day to market process makes app distribution fast and easy
 Join now and get one step closer to millions of Verizon customers
 http://p.sf.net/sfu/verizon-dev2dev
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user


--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Not sure about what type of project to use, pls advise

2010-01-01 Thread Jussi Lahtinen
About Qt3 commercial developer license.
http://qt.nokia.com/products/licensing

Jussi


On Fri, Jan 1, 2010 at 19:53, Jussi Lahtinen jussi.lahti...@gmail.com wrote:
 Yes, they are issues to consider, if you are not willing to pay for license.

 Jussi


 On Thu, Dec 31, 2009 at 01:10, Kadaitcha Man
 nospam.nospam.nos...@gmail.com wrote:
 2009/12/31 Jussi Lahtinen jussi.lahti...@gmail.com:
 License issues...
 I have understand that GTK+ is free, Qt3 is free only for
 non-proprietary software,
 and Qt4 is free for proprietary software also.

 If those are issues that anyone need consider then how can the likes
 of ATI and nVidia create control panels for their proprietary drivers?

 --
 This SF.Net email is sponsored by the Verizon Developer Community
 Take advantage of Verizon's best-in-class app development support
 A streamlined, 14 day to market process makes app distribution fast and easy
 Join now and get one step closer to millions of Verizon customers
 http://p.sf.net/sfu/verizon-dev2dev
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user



--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Not sure about what type of project to use, pls advise

2010-01-01 Thread Kadaitcha Man
2010/1/2 Jussi Lahtinen jussi.lahti...@gmail.com:
 About Qt3 commercial developer license.
 http://qt.nokia.com/products/licensing

Interesting, however there is no mention of the different versions of
Qt, nor of Qt4 being free for proprietary software, and purchasing the
developer version is independent of writing non-free software if you
need the additional drivers and features.

--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Socket Limitations

2010-01-01 Thread Kadaitcha Man
 2010/1/2 Benoît Minisini gam...@users.sourceforge.net:

 Please provide the source code of the network communication,
 otherwise I can't see what you are doing exactly.

Ok, here is some code that adequately reproduces the problem, and the
exact same code with a smaller chunk of text that does not have the
problem.

SocketOK works.

ChokeASocket is exactly 100% the same code except that it has a 48k
file to transmit to the remote server.

The remote server is already setup in the code so just run it. I
recommend running SocketOK first. I have tried this with four
independent servers and get the same result, SocketDeath.

Regards,


SocketOK.tar.gz
Description: GNU Zip compressed data


ChokeASocket.tar.gz
Description: GNU Zip compressed data
--
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev ___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user