Re: [Gambas-user] MouseDown event and Gambas3

2011-01-20 Thread Matti
Strange - both of the mouse events work fine here.
gb3 svn 3457
OpenSuse, KDE, qt4


Am 20.01.2011 07:03, schrieb Demosthenes Koptsis:
 i attach the project.
 
 gambas3-svn3442 @ x32
 gambas3-svn3475 @ x64
 
 ubuntu, gtk
 
 none of mouse events are working.
 
 On Thu, 2011-01-20 at 02:27 +0100, Benoît Minisini wrote:
 Good morning,

 the following example is not working in gambas3-svn3475

 --
 ' Gambas class file

 Public Function Color() As Integer

   Dim Red As Integer
   Dim Green As Integer
   Dim Blue As Integer
   Dim sColor As String
   Dim iColor As Integer

   Red = Rnd(0, 256)
   Green = Rnd(0, 256)
   Blue = Rnd(0, 256)

   sColor =   Hex(Red, 2)  Hex(Green, 2)  Hex(Blue, 2)  
   Print sColor
   iColor = Val(sColor)
   Return iColor

 End

 Public Sub Form_MouseDown()

   Me.Background = Color()

 End
 ---

 The code try to change the bgcolor of Form with random colors on mouse
 clicks.

 This example is working in Gambas2.

 I think Form_MouseDown event is not working or i don't know...

 Plase provide a full project as much as possible.

 Regards,

 
 
 
 --
 Protect Your Site and Customers from Malware Attacks
 Learn about various malware tactics and how to avoid them. Understand 
 malware threats, the impact they can have on your business, and how you 
 can protect your company and customers by using code signing.
 http://p.sf.net/sfu/oracle-sfdevnl
 
 
 
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] MouseDown event and Gambas3

2011-01-20 Thread Demosthenes Koptsis
here is a video which shows the behavior.

http://www.youtube.com/watch?v=oC-U4N8JH7Y

http://www.mediafire.com/?neds4adkys9w34o


On Thu, 2011-01-20 at 11:25 +0100, Matti wrote:
 Strange - both of the mouse events work fine here.
 gb3 svn 3457
 OpenSuse, KDE, qt4
 
 
 Am 20.01.2011 07:03, schrieb Demosthenes Koptsis:
  i attach the project.
  
  gambas3-svn3442 @ x32
  gambas3-svn3475 @ x64
  
  ubuntu, gtk
  
  none of mouse events are working.
  
  On Thu, 2011-01-20 at 02:27 +0100, Benoît Minisini wrote:
  Good morning,
 
  the following example is not working in gambas3-svn3475
 
  --
  ' Gambas class file
 
  Public Function Color() As Integer
 
Dim Red As Integer
Dim Green As Integer
Dim Blue As Integer
Dim sColor As String
Dim iColor As Integer
 
Red = Rnd(0, 256)
Green = Rnd(0, 256)
Blue = Rnd(0, 256)
 
sColor =   Hex(Red, 2)  Hex(Green, 2)  Hex(Blue, 2)  
Print sColor
iColor = Val(sColor)
Return iColor
 
  End
 
  Public Sub Form_MouseDown()
 
Me.Background = Color()
 
  End
  ---
 
  The code try to change the bgcolor of Form with random colors on mouse
  clicks.
 
  This example is working in Gambas2.
 
  I think Form_MouseDown event is not working or i don't know...
 
  Plase provide a full project as much as possible.
 
  Regards,
 
  
  
  
  --
  Protect Your Site and Customers from Malware Attacks
  Learn about various malware tactics and how to avoid them. Understand 
  malware threats, the impact they can have on your business, and how you 
  can protect your company and customers by using code signing.
  http://p.sf.net/sfu/oracle-sfdevnl
  
  
  
  ___
  Gambas-user mailing list
  Gambas-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/gambas-user
 
 --
 Protect Your Site and Customers from Malware Attacks
 Learn about various malware tactics and how to avoid them. Understand 
 malware threats, the impact they can have on your business, and how you 
 can protect your company and customers by using code signing.
 http://p.sf.net/sfu/oracle-sfdevnl
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

-- 
Regards,
Demosthenes


--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] MouseDown event and Gambas3

2011-01-20 Thread Benoît Minisini
 i attach the project.
 
 gambas3-svn3442 @ x32
 gambas3-svn3475 @ x64
 
 ubuntu, gtk
 
 none of mouse events are working.
 

The bug should have been fixed in revision #3480.

Regards,

-- 
Benoît Minisini

--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] MouseDown event and Gambas3

2011-01-20 Thread Demosthenes Koptsis
yes this bug has been fixed, thanks!

but i think there is one more in event

Form_Menu()

right click of mouse does not show the menu.



On Thu, 2011-01-20 at 13:20 +0100, Benoît Minisini wrote:
  i attach the project.
  
  gambas3-svn3442 @ x32
  gambas3-svn3475 @ x64
  
  ubuntu, gtk
  
  none of mouse events are working.
  
 
 The bug should have been fixed in revision #3480.
 
 Regards,
 

-- 
Regards,
Demosthenes Koptsis.


Project65.tar.gz
Description: application/compressed-tar
--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] MouseDown event and Gambas3

2011-01-20 Thread Benoît Minisini
 yes this bug has been fixed, thanks!
 
 but i think there is one more in event
 
 Form_Menu()
 
 right click of mouse does not show the menu.
 

Fixed in revison #3485.

Regards,

-- 
Benoît Minisini

--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] MouseDown event and Gambas3

2011-01-19 Thread Matti
Works perfect here, version 3457.

The only thing I did was to rename Color() to RndColor(), because Color is a
gambas class name. Maybe that's the reason why?

Regards
Matti


Am 19.01.2011 10:39, schrieb Demosthenes Koptsis:
 
 Good morning,
 
 the following example is not working in gambas3-svn3475
 
 --
 ' Gambas class file
 
 Public Function Color() As Integer
   
   Dim Red As Integer
   Dim Green As Integer
   Dim Blue As Integer
   Dim sColor As String
   Dim iColor As Integer
   
   Red = Rnd(0, 256)
   Green = Rnd(0, 256)
   Blue = Rnd(0, 256)
   
   sColor =   Hex(Red, 2)  Hex(Green, 2)  Hex(Blue, 2)  
   Print sColor
   iColor = Val(sColor)
   Return iColor
   
 End
 
 Public Sub Form_MouseDown()
 
   Me.Background = Color()
 
 End
 ---
 
 The code try to change the bgcolor of Form with random colors on mouse
 clicks.
 
 This example is working in Gambas2.
 
 I think Form_MouseDown event is not working or i don't know...
 

--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] MouseDown event and Gambas3

2011-01-19 Thread Demosthenes Koptsis
ok i change it to RndColor,

nothing
i dont have Mouse Events generally...!

Also other Events of mouse does not work.

--
' Gambas class file

Public Function RndColor() As Integer
  
  Dim Red As Integer
  Dim Green As Integer
  Dim Blue As Integer
  Dim sColor As String
  Dim iColor As Integer
  
  Red = Rnd(0, 256)
  Green = Rnd(0, 256)
  Blue = Rnd(0, 256)
  
  sColor =   Hex(Red, 2)  Hex(Green, 2)  Hex(Blue, 2)  
  Print sColor
  iColor = Val(sColor)
  Return iColor
  
End

Public Sub Form_MouseDown()

  Me.Background = RndColor()

End




On Wed, 2011-01-19 at 19:49 +0100, Matti wrote:
 Works perfect here, version 3457.
 
 The only thing I did was to rename Color() to RndColor(), because Color is a
 gambas class name. Maybe that's the reason why?
 
 Regards
 Matti
 
 
 Am 19.01.2011 10:39, schrieb Demosthenes Koptsis:
  
  Good morning,
  
  the following example is not working in gambas3-svn3475
  
  --
  ' Gambas class file
  
  Public Function Color() As Integer

Dim Red As Integer
Dim Green As Integer
Dim Blue As Integer
Dim sColor As String
Dim iColor As Integer

Red = Rnd(0, 256)
Green = Rnd(0, 256)
Blue = Rnd(0, 256)

sColor =   Hex(Red, 2)  Hex(Green, 2)  Hex(Blue, 2)  
Print sColor
iColor = Val(sColor)
Return iColor

  End
  
  Public Sub Form_MouseDown()
  
Me.Background = Color()
  
  End
  ---
  
  The code try to change the bgcolor of Form with random colors on mouse
  clicks.
  
  This example is working in Gambas2.
  
  I think Form_MouseDown event is not working or i don't know...
  
 
 --
 Protect Your Site and Customers from Malware Attacks
 Learn about various malware tactics and how to avoid them. Understand 
 malware threats, the impact they can have on your business, and how you 
 can protect your company and customers by using code signing.
 http://p.sf.net/sfu/oracle-sfdevnl
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

-- 
Regards,
Demosthenes


--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] MouseDown event and Gambas3

2011-01-19 Thread Fabien Bodard
2011/1/19 Matti math.e...@t-online.de:
 Works perfect here, version 3457.

 The only thing I did was to rename Color() to RndColor(), because Color is a
 gambas class name. Maybe that's the reason why?
IT's the reason why ! : :)



 Regards
 Matti


 Am 19.01.2011 10:39, schrieb Demosthenes Koptsis:

 Good morning,

 the following example is not working in gambas3-svn3475

 --
 ' Gambas class file

 Public Function Color() As Integer

   Dim Red As Integer
   Dim Green As Integer
   Dim Blue As Integer
   Dim sColor As String
   Dim iColor As Integer

   Red = Rnd(0, 256)
   Green = Rnd(0, 256)
   Blue = Rnd(0, 256)

   sColor =   Hex(Red, 2)  Hex(Green, 2)  Hex(Blue, 2)  
   Print sColor
   iColor = Val(sColor)
   Return iColor

 End

 Public Sub Form_MouseDown()

   Me.Background = Color()

 End
 ---

 The code try to change the bgcolor of Form with random colors on mouse
 clicks.

 This example is working in Gambas2.

 I think Form_MouseDown event is not working or i don't know...


 --
 Protect Your Site and Customers from Malware Attacks
 Learn about various malware tactics and how to avoid them. Understand
 malware threats, the impact they can have on your business, and how you
 can protect your company and customers by using code signing.
 http://p.sf.net/sfu/oracle-sfdevnl
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user




-- 
Fabien Bodard

--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] MouseDown event and Gambas3

2011-01-19 Thread Demosthenes Koptsis
i attach the project.

gambas3-svn3442 @ x32
gambas3-svn3475 @ x64

ubuntu, gtk

none of mouse events are working.

On Thu, 2011-01-20 at 02:27 +0100, Benoît Minisini wrote:
  Good morning,
  
  the following example is not working in gambas3-svn3475
  
  --
  ' Gambas class file
  
  Public Function Color() As Integer
  
Dim Red As Integer
Dim Green As Integer
Dim Blue As Integer
Dim sColor As String
Dim iColor As Integer
  
Red = Rnd(0, 256)
Green = Rnd(0, 256)
Blue = Rnd(0, 256)
  
sColor =   Hex(Red, 2)  Hex(Green, 2)  Hex(Blue, 2)  
Print sColor
iColor = Val(sColor)
Return iColor
  
  End
  
  Public Sub Form_MouseDown()
  
Me.Background = Color()
  
  End
  ---
  
  The code try to change the bgcolor of Form with random colors on mouse
  clicks.
  
  This example is working in Gambas2.
  
  I think Form_MouseDown event is not working or i don't know...
 
 Plase provide a full project as much as possible.
 
 Regards,
 

-- 
Regards,
Demosthenes


RndColor.tar.bz2
Description: application/bzip-compressed-tar
--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user