Re: [Gambas-user] IDE bugs

2009-04-05 Thread Leonardo Miliani
Jussi Lahtinen ha scritto:
 Hi!
 Seems to be old bug... At least I can't reproduce it on Gambas 2.10.
 Please inform version you are using when doing bug reports.
 
 
 Jussi

I usually last versions, now 2.12 on Ubuntu 8.10 (as I said in other posts).

Anyway, there are other bugs that have appeared in the IDE in this
version (see my old posts) that are a little bit annoying.

-- 
Ciao.
Leo.

Web: www.leonardomiliani.com
E-mail: leona...@leonardomiliani.com
Scegli software opensource - Choose opensource software

Co-fondatore di Gambas-it.org
Il sito di riferimento della comunità italiana degli utenti di Gambas
www.gambas-it.org

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Gambas freezes with Qt apps

2009-04-05 Thread Leonardo Miliani
Starting from 2.11 Gambas usually manifests some freezes when Qt
applications are run on some systems. With release 2.12 things seem not
to be changed: freezes still continue to randomly appear.
For freeze I mean that even I click on the Run button from the IDE
or when trying to start the application from console, the program never
start and no message is displaied. If I run it from the IDE, I have to
click on the Stop button and click on Run again.

Regarding this problem, I've noticed a little thing...
Sometimes a Qt application that starts from the IDE writes in the
console the following message:
kbuildsycoca running
Sometimes it doesn't.

If the application displays that message it is sure that the first time
that I try to run it, it will randomly freeze during start. Next time it
will run fine. I don't know which KDE component displays that message:
maybe finding it will help to resolve the freezing problems.

I use Ubuntu 8.10 with Gnome but I know about other people with
different systems that have had the same problem (i.e. Slackware).

I hope this will help developers to fix the bug.

-- 
Ciao.
Leo.

Web: www.leonardomiliani.com
E-mail: leona...@leonardomiliani.com
Scegli software opensource - Choose opensource software

Co-fondatore di Gambas-it.org
Il sito di riferimento della comunità italiana degli utenti di Gambas
www.gambas-it.org

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Panning a picturebox inside a scrollview with mouse

2009-04-05 Thread Jesus Guardon

I need some help about this issue, because I'm unable to get it working.
What I want to do is panning a picturebox inside a scrollview when I
click RMB and move the mouse around. BTW, something usual in a lot of
graphical apps.

Can anyone help me, please?

Attached is the basic project in Gambas2, but without the picture (size 
too big to be accepted by the list)


Regards

Jesús



mapDX.tar.gz
Description: GNU Zip compressed data
--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] On ver 2.12 Form tool box properties why doesn't valubox have a value property?

2009-04-05 Thread jbskaggs

Cool- I just learned something.

JB

Bugzilla from gam...@users.sourceforge.net wrote:
 
 I know valuebox has a value property that can be set in code- but why
 isn't
 there one on the Form designer toolbox? For forms with default values it
 should be there when you are making the controls on the form like textbox
 or label.

 Was this intentional or just overlooked?

 JB SKaggs
 
 Value is a Variant property, so I didn't put it in the property list used
 by 
 the IDE, as the IDE does not know how to handle Variant properties. 
 
 But ValueBox.Value can take a string instead, so maybe I will find a hack.
 But 
 you will get it only in Gambas 3!
 
 -- 
 Benoît
 
 --
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 
 

-- 
View this message in context: 
http://www.nabble.com/On-ver-2.12-Form-tool-box-properties-why-doesn%27t-valubox-have-a-value-property--tp22890701p22897164.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Headache causing misplaced error message.

2009-04-05 Thread Benoît Minisini
 Hi!
 Here is very simplified example of the bug I found (Gambas 2.10 and
 Gambas3 rev. 1917).

 From that you can easily see what is wrong, but in real life code...

 This bug seems to be generally in else if, error doesn't have to be
 division by zero, it could be any.
 And there could be many lines of else if, still the error message
 goes to the first line.


 Dim x As Integer

 If x = -1 Then '---  YOU GOT ERROR MESSAGE FROM THIS LINE.
 'nothing
 Else If 1 / 0 Then
 'nothing
 Endif


 Regards,
 Jussi


Finally fixed in revision #1924!

Regards,

-- 
Benoît

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Panning a picturebox inside a scrollview with mouse

2009-04-05 Thread Steven James Drinnan
Hi here is an example. 

In this example, you can embed the ocphotoview into a form. It is from a
project that I am working on, so . Some of the code comes from the web
camera example.

There are some use full functions there as well.

To load a picture right click. You can select. By file or Web camera or
even from a scanner.


Once loaded you can move the picture around by left clicking.

You can easily modify the code by checking which button is pressed (but
then you will loose the menu feature.)

I hope it helps. Its a bit overloaded for what you need but it will
hopefully get you pointed in the right direction. 

If you need any help please ask.

Steven Drinnan
On Sun, 2009-04-05 at 18:00 +0200, Jesus Guardon wrote:
 I need some help about this issue, because I'm unable to get it working.
 What I want to do is panning a picturebox inside a scrollview when I
 click RMB and move the mouse around. BTW, something usual in a lot of
 graphical apps.
 
 Can anyone help me, please?
 
 Attached is the basic project in Gambas2, but without the picture (size 
 too big to be accepted by the list)
 
 Regards
 
 Jesús
 
 --
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user


SJDSoftpicscroll.tar.gz
Description: application/compressed-tar
--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] In simple English could someone explain what the h does in instanciation?

2009-04-05 Thread Rob
On Sunday 05 April 2009 23:15, jbskaggs wrote:
 dim hTextbox1 as Textbox
 vesus
 dim myTextbox1 as Textbox
 What is happening with these two different statements?

The first one creates a new textbox object called hTextbox1.  The second 
creates a new textbox object called myTextbox1.  

The use of h in object variable names is just a convention (h usually 
meaning handle, like p or ptr in C programs usually 
means pointer), not syntactically significant.

Rob

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] In simple English could someone explain what the h does in instanciation?

2009-04-05 Thread jbskaggs

Thanks.

JB Skaggs

Rob Kudla wrote:
 
 On Sunday 05 April 2009 23:15, jbskaggs wrote:
 dim hTextbox1 as Textbox
 vesus
 dim myTextbox1 as Textbox
 What is happening with these two different statements?
 
 The first one creates a new textbox object called hTextbox1.  The second 
 creates a new textbox object called myTextbox1.  
 
 The use of h in object variable names is just a convention (h usually 
 meaning handle, like p or ptr in C programs usually 
 means pointer), not syntactically significant.
 
 Rob
 
 --
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 
 

-- 
View this message in context: 
http://www.nabble.com/In-simple-English-could-someone-explain-what-the-h-does-in-instanciation--tp22901580p22902059.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user