[Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic

2009-12-01 Thread Tony
Hi,

I have a Gambas2 application (gb.qt) checking for status change events 
on the CTS, RI and DSR signals (SerialPort-gb.net class) of a USB to 
serial converter (Prolific pl2303) which works fine on Ubuntu 9.04 
(Gambas2 2.8 and kernel 2.6.28-16-generic 32bit). After upgrade to 
Ubuntu 9.10 (Gambas2 2.13 and kernel 2.6.31-15-generic 32bit) the status 
changes are no longer working. The serial port opens without error but 
no status change events are flagged. The problem is also evident in the 
serial port example on Ubuntu 9.10.

I have compiled Gambas2 2.18 onto Ubuntu 9.04 but it still fails so my 
guess is that somewhere between Gambas2 2.8 and 2.13 this functionality 
stopped working.

Any assistance would be appreciated, thanks..

--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic

2009-12-01 Thread Ricardo Díaz Martín
Tony,

Try to compile gambas2 again. I got similar problem with apps after upgrade
ubuntu from 9.04 yo 9.10 and it was necessary to do this:

sudo apt-get install build-essential autoconf libbz2-dev libfbclient2
libmysqlclient15-dev unixodbc-dev libpq-dev libsqlite0-dev
libsqlite3-dev libgtk2.0-dev libldap2-dev libcurl4-gnutls-dev
libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev
libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-dev
libbonobo2-dev libcos4-dev libomniorb4-dev librsvg2-dev libpoppler-dev
libpoppler-glib-dev libasound2-dev libesd0-dev libesd-alsa0
libdirectfb-dev libaa1-dev libxtst-dev libffi-dev kdelibs4-dev
firebird2.1-dev libqt4-dev

and after I downloaded gambas from source and compile again.

Hope this works for you.

Regards,
Ricardo Díaz

2009/12/1 Tony ajw...@optusnet.com.au

 Hi,

 I have a Gambas2 application (gb.qt) checking for status change events
 on the CTS, RI and DSR signals (SerialPort-gb.net class) of a USB to
 serial converter (Prolific pl2303) which works fine on Ubuntu 9.04
 (Gambas2 2.8 and kernel 2.6.28-16-generic 32bit). After upgrade to
 Ubuntu 9.10 (Gambas2 2.13 and kernel 2.6.31-15-generic 32bit) the status
 changes are no longer working. The serial port opens without error but
 no status change events are flagged. The problem is also evident in the
 serial port example on Ubuntu 9.10.

 I have compiled Gambas2 2.18 onto Ubuntu 9.04 but it still fails so my
 guess is that somewhere between Gambas2 2.8 and 2.13 this functionality
 stopped working.

 Any assistance would be appreciated, thanks..


 --
 Join us December 9, 2009 for the Red Hat Virtual Experience,
 a free event focused on virtualization and cloud computing.
 Attend in-depth sessions from your desk. Your couch. Anywhere.
 http://p.sf.net/sfu/redhat-sfdev2dev
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Problem building Gambas3 on openSUSE 11.2

2009-12-01 Thread Werner
On 28/11/09 05:44, Benoît Minisini wrote:
 On 21/11/09 18:43, Benoît Minisini wrote:
 
 On 20/11/09 17:28, Werner wrote:
 
 Suse 11.2 came out last week. I seem to remember that it worked fine
 with 11.1 using qt3.

 My problem is that I can't configure support for Qt (I don't care about
 the other parts).

 I am trying this now with trunk rev 2429 but have also tried it with a
 trunk from maybe 10 days ago.
   
 Update:
 I have built Gambas3 with Suse11.1/qt3 and Suse11.2/qt4 side by side.
 On 11.1 moc is found in /usr/lib/qt3/bin/

 On 11.2 moc is in /usr/bin (for Qt Creator, very nice, btw) and also in
 /usr/lib64/qt4/bin
 but it is not found. I've tried
 ./configure --with-moc=/usr/lib64/qt4/bin/moc but that made no
 difference.

 I can build and run an example program with Qt Creator so the building
 apps all seem to be there.

 Also, there does not seem to be any libqt-mt.so in qt4.


 Best Regards

 Werner
 
 What are you talking about? Compiling gb.qt (Qt3) or compiling gb.qt4
 (Qt4)?

 Qt3 moc is found by searching in a list of hard-coded directories.

 Qt4 moc is found by using pkg-config.

 So please be clearer so that I can see what happens exactly!

 Regards,
   
 Suse 11.2 comes with Qt 4.5.3 which is what I would prefer to use.

 Regards,
 Werner

 
 You don't decide! The gb.qt component needs Qt3, and the gb.qt4 component 
 needs Qt4. And I don't see where you have a problem: if Qt3 is not installed 
 on your system, you won't have any gb.qt.* components: gb.qt, gb.qt.ext, 
 gb.qt.opengl, gb.qt.kde...

 Regards,


   
You are right, it was my wishful thinking.
It works now. Thanks!

Werner


--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] SYSTEM NOTIFICATIONS

2009-12-01 Thread Benoît Minisini
 Is there some way to call os system notifications (something like Files
 copy finished)  in gambas2?

Not directly, even in Gambas 3. If you know where I can find the 
specifications... I think, for Gambas 3, that a DBus call should be enough, 
but which one?

Anyway I guess there is a command-line tool somewhere that does the job. 
Otherwise it will not be a true Unix thing!

-- 
Benoît Minisini

--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] SYSTEM NOTIFICATIONS

2009-12-01 Thread Ricardo Díaz Martín
Thanks Benoit. There is a comand line in debian I can use: notify-send

Regards,
Ricardo Díaz


2009/12/1 Benoît Minisini gam...@users.sourceforge.net

  Is there some way to call os system notifications (something like Files
  copy finished)  in gambas2?

 Not directly, even in Gambas 3. If you know where I can find the
 specifications... I think, for Gambas 3, that a DBus call should be enough,
 but which one?

 Anyway I guess there is a command-line tool somewhere that does the job.
 Otherwise it will not be a true Unix thing!

 --
 Benoît Minisini


 --
 Join us December 9, 2009 for the Red Hat Virtual Experience,
 a free event focused on virtualization and cloud computing.
 Attend in-depth sessions from your desk. Your couch. Anywhere.
 http://p.sf.net/sfu/redhat-sfdev2dev
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Xview selection cursor info

2009-12-01 Thread Fabien Bodard
2009/12/1 Jean-Yves F. Barbier 12u...@gmail.com:
 Fabien Bodard a écrit :

 @#!§ Murphy: the only one I didn't test:(

 and the third question ? i don't understand what you want ?

 this is Q3
  first visible row :

 irow = GridView1.RowAt(1)

 LastVisible Row :

 irow = GridView1.RowAt(GridView.ClientHeight - 1)

 this Q3 enhanced
 But it don't say if the Row is fully visible...

 You can test a cell

 For top :

 if GridView[iRow,0].Y 0  and iRow+1  Gridview.Count then iRow+=1

 For bottom

 if GridView[iRow,0].Y + GridView[iRow,0].Height 
 GridView.ClientHeight and GridView.Count 1 then iRow -= 1

 in Q1, I wanna make the selection cursor (bar) appear @ windows opening
 on the first row (otherwise I must click on a row for it being visible)

simple :)
GridView1.Row = 0

(it work I've tested it


 in Q2, I wanna know what is this cursor position (if it is visible)
 as row-into-the-visible-area (indian cursor)


http://gambasdoc.org/help/comp/gb.qt/.gridviewcell/ensurevisible?v3

GridView[iRow,0].EnsureVisible



 Voila Jean-Yves

 Thanks Fabien

 2009/11/30 Jean-Yves F. Barbier 12u...@gmail.com:
 Hi,

 On a tableview, I need:
 * Make the selection cursor to appear on 1st line at opening,
 * Selection cursor's position (row) into the grid,
 * 1st  last rows visible into the grid

 --
 Reporter:   How did you like school when you were growing up, Yogi?
 Yogi Berra: Closed.

 --
 Join us December 9, 2009 for the Red Hat Virtual Experience,
 a free event focused on virtualization and cloud computing.
 Attend in-depth sessions from your desk. Your couch. Anywhere.
 http://p.sf.net/sfu/redhat-sfdev2dev
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user


--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Xview selection cursor info

2009-12-01 Thread Fabien Bodard
si :

PUBLIC SUB OBS_Open()

' IF IsNull($sfrmNouveau) THEN Error.Raise(Vous devez définir un
formulaire Nouveau)
' IF IsNull($sModifier) THEN Error.Raise(Vous devez définir un
formulaire Modifier)
IF IsNull($hGrid.DataField) THEN ERROR.Raise(Vous devez definir
le champ identificateur)
   $hGrid.Refresh
   $hGrid.Grid.Row = 0
END


you need to modify FList...


2009/12/1 Jean-Yves F. Barbier 12u...@gmail.com:
 Fabien Bodard a écrit :
 ...
 simple :)
 GridView1.Row = 0

 (it work I've tested it

 Already tested: don't work not on your code :(

 --
 Repartee is something we think of twenty-four hours too late.
                -- Mark Twain

 --
 Join us December 9, 2009 for the Red Hat Virtual Experience,
 a free event focused on virtualization and cloud computing.
 Attend in-depth sessions from your desk. Your couch. Anywhere.
 http://p.sf.net/sfu/redhat-sfdev2dev
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user


--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Xview selection cursor info

2009-12-01 Thread Jean-Yves F. Barbier
Fabien Bodard a écrit :
 si :
 
 PUBLIC SUB OBS_Open()
 
 ' IF IsNull($sfrmNouveau) THEN Error.Raise(Vous devez définir un
 formulaire Nouveau)
 ' IF IsNull($sModifier) THEN Error.Raise(Vous devez définir un
 formulaire Modifier)
 IF IsNull($hGrid.DataField) THEN ERROR.Raise(Vous devez definir
 le champ identificateur)
$hGrid.Refresh
$hGrid.Grid.Row = 0
 END
 
 
 you need to modify FList...

Crap: I put it into RichDataGrid instead of here; I still have a great
deal to learn!

Thanks Fabien

-- 
Real computer scientists don't comment their code.  The identifiers are
so long they can't afford the disk space.

--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic

2009-12-01 Thread Tony

   Thanks for the suggestion Ricardo.
   I have already compiled G2.18 from source onto Ubuntu 9.04. The application
   was working fine on Ubuntu 9.04 with G2.8 but fails with G2.18, so this
   makes  me think that there is a problem which may have been introduced
   between G2.8 and G2.13 (the binary on Ubuntu 9.10 which doesn't work).
   Regards,
   Tony..
   Ricardo Díaz Martín wrote:

Tony,

Try to compile gambas2 again. I got similar problem with apps after upgrade
ubuntu from 9.04 yo 9.10 and it was necessary to do this:

sudo apt-get install build-essential autoconf libbz2-dev libfbclient2
libmysqlclient15-dev unixodbc-dev libpq-dev libsqlite0-dev
libsqlite3-dev libgtk2.0-dev libldap2-dev libcurl4-gnutls-dev
libgtkglext1-dev libpcre3-dev libsdl-sound1.2-dev libsdl-mixer1.2-dev
libsdl-image1.2-dev libsage-dev libxml2-dev libxslt1-dev
libbonobo2-dev libcos4-dev libomniorb4-dev librsvg2-dev libpoppler-dev
libpoppler-glib-dev libasound2-dev libesd0-dev libesd-alsa0
libdirectfb-dev libaa1-dev libxtst-dev libffi-dev kdelibs4-dev
firebird2.1-dev libqt4-dev

and after I downloaded gambas from source and compile again.

Hope this works for you.

Regards,
Ricardo Díaz

2009/12/1 Tony [1]ajw...@optusnet.com.au



Hi,

I have a Gambas2 application (gb.qt) checking for status change events
on the CTS, RI and DSR signals (SerialPort-gb.net class) of a USB to
serial converter (Prolific pl2303) which works fine on Ubuntu 9.04
(Gambas2 2.8 and kernel 2.6.28-16-generic 32bit). After upgrade to
Ubuntu 9.10 (Gambas2 2.13 and kernel 2.6.31-15-generic 32bit) the status
changes are no longer working. The serial port opens without error but
no status change events are flagged. The problem is also evident in the
serial port example on Ubuntu 9.10.

I have compiled Gambas2 2.18 onto Ubuntu 9.04 but it still fails so my
guess is that somewhere between Gambas2 2.8 and 2.13 this functionality
stopped working.

Any assistance would be appreciated, thanks..


--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing.
Attend in-depth sessions from your desk. Your couch. Anywhere.
[2]http://p.sf.net/sfu/redhat-sfdev2dev
___
Gambas-user mailing list
[3]gambas-u...@lists.sourceforge.net
[4]https://lists.sourceforge.net/lists/listinfo/gambas-user



--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing.
Attend in-depth sessions from your desk. Your couch. Anywhere.
[5]http://p.sf.net/sfu/redhat-sfdev2dev
___
Gambas-user mailing list
[6]gambas-u...@lists.sourceforge.net
[7]https://lists.sourceforge.net/lists/listinfo/gambas-user

References

   1. mailto:ajw...@optusnet.com.au
   2. http://p.sf.net/sfu/redhat-sfdev2dev
   3. mailto:Gambas-user@lists.sourceforge.net
   4. https://lists.sourceforge.net/lists/listinfo/gambas-user
   5. http://p.sf.net/sfu/redhat-sfdev2dev
   6. mailto:Gambas-user@lists.sourceforge.net
   7. https://lists.sourceforge.net/lists/listinfo/gambas-user
--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Serial Port Change Events Not Working aft er Upgrade to Karmic

2009-12-01 Thread Benoît Minisini
Thanks for the suggestion Ricardo.
I have already compiled G2.18 from source onto Ubuntu 9.04. The
  application was working fine on Ubuntu 9.04 with G2.8 but fails with
  G2.18, so this makes  me think that there is a problem which may have been
  introduced between G2.8 and G2.13 (the binary on Ubuntu 9.10 which doesn't
  work). Regards,
Tony..

You are right, and I think I understand what happens:

I have noticed that SerialPort callback took too much CPU, because it was 
using polling on the serial port file descriptor. 

So I fixed it by awaken it only when there is some data to read... Mistake! 

I didn't understand that all DTRChange, DSRChange... events are not detected 
by the kernel. So Daniel (who wrote the code) had to use polling to be able to 
detect the changes.

By removing the polling, I was able to raise the Read event without burning 
CPU, but all *Change events were not raised anymore!

Now I have to find a good fix, but I have never used a serial port, so I need 
some enlightenment (no, I won't run E17...)

- Why do you need detecting DTR,DSR... changes?
- How are these events related to flow control and the FlowControl property?

The last question is not innocent. the FlowControl property takes three 
different values: Hardware, Software, Both. 

I'm thinking adding a fourth value, None, that means the user does not care. 
In that specific case, I will not poll, and *Change events won't be raised.

So you will be able to decide:

- Setting FlowControl to None. You will get the Read event only, but you won't 
burn CPU power.

- Setting FlowControl to any other value. You will get all events, but you 
will have to poll.

This change would be compatible with the current SerialPort interface.

Otherwise, for Gambas 3, maybe I will add a new property to define how much 
polling is needed.

What do serial port people think about that?

-- 
Benoît Minisini

--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Xview selection cursor info

2009-12-01 Thread Fabien Bodard
2009/12/1 Jean-Yves F. Barbier 12u...@gmail.com:
 Fabien Bodard a écrit :
 si :

 PUBLIC SUB OBS_Open()

     ' IF IsNull($sfrmNouveau) THEN Error.Raise(Vous devez définir un
 formulaire Nouveau)
     ' IF IsNull($sModifier) THEN Error.Raise(Vous devez définir un
 formulaire Modifier)
     IF IsNull($hGrid.DataField) THEN ERROR.Raise(Vous devez definir
 le champ identificateur)
    $hGrid.Refresh
    $hGrid.Grid.Row = 0
 END


 you need to modify FList...

 Crap: I put it into RichDataGrid instead of here; I still have a great
 deal to learn!

in fact the use of observer make things sometime special


 Thanks Fabien

 --
 Real computer scientists don't comment their code.  The identifiers are
 so long they can't afford the disk space.

 --
 Join us December 9, 2009 for the Red Hat Virtual Experience,
 a free event focused on virtualization and cloud computing.
 Attend in-depth sessions from your desk. Your couch. Anywhere.
 http://p.sf.net/sfu/redhat-sfdev2dev
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user


--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic

2009-12-01 Thread Tony

   Thanks Benoit and all for your speedy replies..
   I'm using the serial port in a timing application with 3 laser through beam
   sensors feeding into the CTS, RI and DSR lines of the serial port. In this
   mode I don't pass any data, don't really care about flow control and am only
   interested in the raw status change events. Working this way I haven't
   noticed gross CPU utilisation after opening the port.  The application also
   uses the UDPsocket to communicate remotely and what I have noticed is that
   if the serial port does not open correctly e.g. /dev/tty wrong and the
   UDPsocket is open, then there is a large amount of CPU used. Both open
   correctly and CPU normal.
   Can you tell me the polling frequency in Gambas2 2.8 ?
   I would assume that there ore other users of Gambas2 who are using the
   serial  port  as  a  convenient  way of passing external events to the
   application, so maybe some input from them would also be in order. As long
   as there is a mechanism to replicate the Gambas2 2.8 functionality that I
   currently use, I'll leave the implementation up to those who know a lot more
   than myself. If going back to polling, a property to define the frequency
   would be nice.
   Thanks again,
   Tony.
   Benoît Minisini wrote:

   Thanks for the suggestion Ricardo.
   I have already compiled G2.18 from source onto Ubuntu 9.04. The
 application was working fine on Ubuntu 9.04 with G2.8 but fails with
 G2.18, so this makes  me think that there is a problem which may have been
 introduced between G2.8 and G2.13 (the binary on Ubuntu 9.10 which doesn't
 work). Regards,
   Tony..


You are right, and I think I understand what happens:

I have noticed that SerialPort callback took too much CPU, because it was 
using polling on the serial port file descriptor. 

So I fixed it by awaken it only when there is some data to read... Mistake! 

I didn't understand that all DTRChange, DSRChange... events are not detected 
by the kernel. So Daniel (who wrote the code) had to use polling to be able to 
detect the changes.

By removing the polling, I was able to raise the Read event without burning 
CPU, but all *Change events were not raised anymore!

Now I have to find a good fix, but I have never used a serial port, so I need 
some enlightenment (no, I won't run E17...)

- Why do you need detecting DTR,DSR... changes?
- How are these events related to flow control and the FlowControl property?

The last question is not innocent. the FlowControl property takes three 
different values: Hardware, Software, Both. 

I'm thinking adding a fourth value, None, that means the user does not care. 
In that specific case, I will not poll, and *Change events won't be raised.

So you will be able to decide:

- Setting FlowControl to None. You will get the Read event only, but you won't 
burn CPU power.

- Setting FlowControl to any other value. You will get all events, but you 
will have to poll.

This change would be compatible with the current SerialPort interface.

Otherwise, for Gambas 3, maybe I will add a new property to define how much 
polling is needed.

What do serial port people think about that?

  
--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] SYSTEM NOTIFICATIONS

2009-12-01 Thread Toni
Hi,
I haven't tried it, but maybe libnotify 
(http://library.gnome.org/devel/libnotify/) is what it could be used 
here to crate a component?  On the other hand I don't know whether 
freedesktop.org have something similar to xdg-open for desktop neutral 
system notifications...
Despite my previous words, when I needed a notification system and I 
ended up using notify-send too.
Regards,
Toni

En/na Ricardo Díaz Martín ha escrit:
 Thanks Benoit. There is a comand line in debian I can use: notify-send

 Regards,
 Ricardo Díaz


 2009/12/1 Benoît Minisini gam...@users.sourceforge.net

   
 Is there some way to call os system notifications (something like Files
 copy finished)  in gambas2?
   
 Not directly, even in Gambas 3. If you know where I can find the
 specifications... I think, for Gambas 3, that a DBus call should be enough,
 but which one?

 Anyway I guess there is a command-line tool somewhere that does the job.
 Otherwise it will not be a true Unix thing!

 --
 Benoît Minisini


 --
 Join us December 9, 2009 for the Red Hat Virtual Experience,
 a free event focused on virtualization and cloud computing.
 Attend in-depth sessions from your desk. Your couch. Anywhere.
 http://p.sf.net/sfu/redhat-sfdev2dev
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

 
 --
 Join us December 9, 2009 for the Red Hat Virtual Experience,
 a free event focused on virtualization and cloud computing. 
 Attend in-depth sessions from your desk. Your couch. Anywhere.
 http://p.sf.net/sfu/redhat-sfdev2dev
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
   

--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Serial Port Change Events Not Working after Upgrade to Karmic

2009-12-01 Thread Benoît Minisini
Thanks Benoit and all for your speedy replies..
I'm using the serial port in a timing application with 3 laser through
  beam sensors feeding into the CTS, RI and DSR lines of the serial port. In
  this mode I don't pass any data, don't really care about flow control and
  am only interested in the raw status change events. Working this way I
  haven't noticed gross CPU utilisation after opening the port.  The
  application also uses the UDPsocket to communicate remotely and what I
  have noticed is that if the serial port does not open correctly e.g.
  /dev/tty wrong and the UDPsocket is open, then there is a large amount
  of CPU used. Both open correctly and CPU normal.
Can you tell me the polling frequency in Gambas2 2.8 ?
I would assume that there ore other users of Gambas2 who are using the
serial  port  as  a  convenient  way of passing external events to the
application, so maybe some input from them would also be in order. As
  long as there is a mechanism to replicate the Gambas2 2.8 functionality
  that I currently use, I'll leave the implementation up to those who know a
  lot more than myself. If going back to polling, a property to define the
  frequency would be nice.
Thanks again,
Tony.

Can you try the revision #2454? I think I have found and fix another possible 
bug, and I'd like to be sure I didn't break anything.

Regards,

-- 
Benoît Minisini

--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Component Show, Hide, Visible

2009-12-01 Thread D. L. Fox
Sorry for the newbie question but...

What is the difference between setting the Visible property to False and 
calling the Hide() method?

--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Component Show, Hide, Visible

2009-12-01 Thread Kadaitcha Man
2009/12/2 D. L. Fox ubu...@frigginjiggy.com:
 Sorry for the newbie question but...

 What is the difference between setting the Visible property to False and
 calling the Hide() method?

Hide is a method, Visible is a property. You can't check if X is
visible or not by calling Hide().

Otherwise, I dare say the two are synonymous in action.  Gambas has a
few synonyms, possibly for compatibility reasons.

--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] can't call a procedure from a different module

2009-12-01 Thread Kadaitcha Man
2009/12/2 kevinfishburne kevinfishbu...@eightvirtues.com:

 (2) Module Server then calls the procedure Init contained within module
 Net (Net.Init).

Net is reserved for the Net class of constants in gambas. Rename the module.

--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user