Re: [Gambas-user] Print gridview content

2009-04-04 Thread Jesus Guardon
I've changed the question, so it will be more understandable:

How can I export the gridview content to a printable format preserving 
its structure, colors, etc?

Thanks in advance

Jesús

Jesus Guardon escribió:
 Hi all
 
 Is there a quick method to print out as plain formatted text the content 
 of a populated gridview?
 
 I've been thinking about iterate across all rows and cells, but I wonder 
 if may have other ways to do that.
 
 Regards
 
 Jesús
 
 
 
 --
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 


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


[Gambas-user] DrawingArea capabilities

2009-04-04 Thread Tomas Eroles i Forner
Hi all
Is there any way to draw mobile objects on a DrawingArea?
That is, is it possible to draw something and after to move it with
mouse?

The idea is to draw things in a drawingarea? and when required, to move
them using the mouse

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


Re: [Gambas-user] Gambas 3 revision 1917

2009-04-04 Thread Jussi Lahtinen
There is link of libGL.so in /usr/lib32, which point to
/usr/lib/libGL.so.180.11.
Also there is link of libGL.so.1 in both /usr/lib and in /usr/lib32, which all
points to /usr/lib/libGL.so.180.11. And it really is there.

So, with spesific file name libGL.so, it is found only from
/usr/lib32, and this is
64bit system... something to do with that?


Jussi



2009/4/4 Benoît Minisini gam...@users.sourceforge.net:
 This;
 ( ./configure; make; sudo make install )  output.txt 21
 from failed compilation attempt is already attached, if you didn't
 notice...


 Sorry, I didn't notice.

 ./configure cannot find the libGL.so shared library symbolic link. Is it
 installed on your system? If it is, where?

 --
 Benoît

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


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


Re: [Gambas-user] IDE bugs

2009-04-04 Thread Jussi Lahtinen
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


On Sat, Apr 4, 2009 at 13:51, Leonardo Miliani
leona...@leonardomiliani.com wrote:
 I've discovered a (new? old? I don't know) bug in the IDE.
 Look at the screenshot below: I was scrolling the properties of a project
 of mine and a dropdown menu appeared over the info box.

 P.S.:
 when will the new official release of Gambas be published? Am I wrong or I
 remember that these IDE bugs will be fixed in it?

 --
 Leonardo Miliani

 Web: http://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
 http://www.gambas-it.org
 --

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



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


Re: [Gambas-user] DRAWEREA

2009-04-04 Thread Benoît Minisini
 hello,
 I'm new and I have a question.
 I would like to draw some points in defferent colors in a drawarea.
 But my program dosn't work. (see source) There is nothing to see. (no
 points)
 Can somebody help me?

 Source:
   DrawingArea1.Clear
   DrawingArea1.Show
   DrawingArea1.Visible = TRUE
   DrawingArea1.Foreground = Color.Black
   DrawingArea1.Background = Color.White
   DrawingArea1.Refresh
   Draw.Begin(DrawingArea1)
 Draw.Transparent = FALSE
 Draw.ForeColor = Color.Black
 Draw.Foreground = Color.Black
 Draw.BackColor = Color.White
 Draw.Background = Color.White
 Draw.FillStyle = 1
 f = HFF00
 FOR x = 10 TO 50 STEP 1
   Draw.ForeColor = f
   Draw Foreground = f
   FOR y = 10 TO 50 STEP 1
 Draw.Point(x, y)
   NEXT
   f = f + 4
 NEXT
   Draw.End
   DrawingArea1.Refresh

A DrawingArea has two possible behaviours:

1) When its Cached property is set to False (the default).

Then you must draw inside the DrawingArea Draw event handler. This event will 
be raised each time X11 tells your application that the drawing area has to be 
redrawn. You don't have to call Draw.Begin() and Draw.End() inside the event 
handler, this is done automatically.

In that case, drawing outside of the Draw event handler is useless.

2) When its Cached property is set to True.

Then drawing on the DrawingArea is done inside a internal bitmap buffer. Then 
you can draw when you want, and the internal bitmap buffer will be used to 
refresh the DrawingArea contents as needed.

Regards,

-- 
Benoît

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


Re: [Gambas-user] A way to compile, make exec, and create package from outside IDE?

2009-04-04 Thread jbskaggs

Thanks this was what I was thinking.  But I could not remember the compile
commands

JB





Rob Kudla wrote:
 
 On Saturday 04 April 2009 16:02, jbskaggs wrote:
 I am working a game maker program- and I am trying to determine my next
 
 This sounds like a good idea, since Linux doesn't have too many tools like 
 this and I don't think any are free software.
 
 What I want to do is have my program write all the code into a class
 file and then shell to Gambas load the file compile, make exec and
 package.

 IS there a way to do this in my program at runtime or does this have to
 be done in the Gambas IDE Console only?
 
 Some of it can be done pretty easily through shell commands.  You generate 
 your Gambas project (I think it needs to be a whole project, including 
 a .project file, not just a class file), then change to that directory and 
 run these commands:
 
 gbc2
 gba2
 
 gbc2 compiles the project, gba2 makes the executable.  
 
 However, building packages is another story.  You may want to try to copy 
 the package building code out of the Gambas IDE and integrate it into 
 yours... or maybe work on making it into a component to be used by all 
 Gambas programs.
 
 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/A-way-to-compile%2C-make-exec%2C-and-create-package-from-outside-IDE--tp22887283p22887920.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


[Gambas-user] Problem with 32 bits library on 64 bits Ubuntu (was Re: Gambas 3 revision 1917)

2009-04-04 Thread Benoît Minisini
 There is link of libGL.so in /usr/lib32, which point to
 /usr/lib/libGL.so.180.11.
 Also there is link of libGL.so.1 in both /usr/lib and in /usr/lib32, which
 all points to /usr/lib/libGL.so.180.11. And it really is there.

 So, with spesific file name libGL.so, it is found only from
 /usr/lib32, and this is
 64bit system... something to do with that?


 Jussi


What a mess... Until recently, I thought that the standard on 64 bits system 
was that 64 bits libraries go to /usr/lib64, and 32 bits libraries go to 
/usr/lib. 

Did that change, or Ubuntu tries to do on its own?

-- 
Benoît

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


[Gambas-user] Headache causing misplaced error message.

2009-04-04 Thread Jussi Lahtinen
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

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


Re: [Gambas-user] Problem with 32 bits library on 64 bits Ubuntu (was Re: Gambas 3 revision 1917)

2009-04-04 Thread Jussi Lahtinen
I don't know... in my system /usr/lib64 is just link to /usr/lib.
Either way it is little weird... I think there should be /usr/lib32
and /usr/lib64,
and there should not be /usr/lib at all.
But maybe there is good reason that I don't know...


Jussi


2009/4/5 Benoît Minisini gam...@users.sourceforge.net:
 There is link of libGL.so in /usr/lib32, which point to
 /usr/lib/libGL.so.180.11.
 Also there is link of libGL.so.1 in both /usr/lib and in /usr/lib32, which
 all points to /usr/lib/libGL.so.180.11. And it really is there.

 So, with spesific file name libGL.so, it is found only from
 /usr/lib32, and this is
 64bit system... something to do with that?


 Jussi


 What a mess... Until recently, I thought that the standard on 64 bits system
 was that 64 bits libraries go to /usr/lib64, and 32 bits libraries go to
 /usr/lib.

 Did that change, or Ubuntu tries to do on its own?

 --
 Benoît

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


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