Re: [Gambas-user] New XML component

2012-04-22 Thread Caveat
It's not working for me. I have a project that builds an internal model of an xml file. the project is working fine with gb.libxml but doesn't work with gb.xml and gb.xml.xslt. The xml I am trying to parse is the following: ?xml version=1.0 encoding=ISO-8859-1? !-- Edited by XMLSpy® --

Re: [Gambas-user] New XML component

2012-04-22 Thread Adrien Prokopowicz
Le dimanche 22 avril 2012 11:42:20 Caveat a écrit : It's not working for me. I have a project that builds an internal model of an xml file. the project is working fine with gb.libxml but doesn't work with gb.xml and gb.xml.xslt. The xml I am trying to parse is the following: ?xml

[Gambas-user] Relative paths in a component

2012-04-22 Thread Adrien Prokopowicz
Hi Benoît, In gb.xml, in XmlReader, i'm loading a file through the Open instruction : Public Sub Open(path As String) Dim fichier As File fichier = Open path For Input Me.InputStream = fichier End But when path is a relative path, it refers to the project of the component, not to

Re: [Gambas-user] Grab command

2012-04-22 Thread tobi
On Sat, 21 Apr 2012, trat50 wrote: But Tobi, I have been drawing just fine on a DrawingArea. The DrawingArea named Sky is the picture posted above... I switched from a PictureBox to a DrawingArea because I couldn't draw on a PictureBox. Now I am back to the original problem... how to

Re: [Gambas-user] New XML component

2012-04-22 Thread Caveat
Still not working with rev 4655. Did you get a chance to test using the project I sent? It's quite clear that it works with gb.libxml but not with gb.xml. I wish this change had been introduced in a more careful manner, perhaps providing gb.newxml that we could transition to over time instead

Re: [Gambas-user] New XML component

2012-04-22 Thread Fabien Bodard
2012/4/22 Caveat gam...@caveat.demon.co.uk: Still not working with rev 4655. Did you get a chance to test using the project I sent?  It's quite clear that it works with gb.libxml but not with gb.xml. I wish this change had been introduced in a more careful manner, perhaps providing

Re: [Gambas-user] New XML component

2012-04-22 Thread Caveat
If I put the xml file in the same dir as the project and reference it in a relative way, then it works perfectly (as expected) using gb.libxml. Using gb.xml I get an error File or directory does not exist. Regards, Caveat On Sun, 2012-04-22 at 13:40 +0200, Fabien Bodard wrote: 2012/4/22 Caveat

Re: [Gambas-user] Relative paths in a component

2012-04-22 Thread Fabien Bodard
2012/4/22 Adrien Prokopowicz adrien.prokopow...@gmail.com: Hi Benoît, In gb.xml, in XmlReader, i'm loading a file through the Open instruction : Public Sub Open(path As String)  Dim fichier As File  fichier = Open path For Input  Me.InputStream = fichier End But when path is a

Re: [Gambas-user] Issue 237 in gambas: Grey DrawingArea on Form_Open

2012-04-22 Thread gambas
Comment #4 on issue 237 by matteo.pasotti: Grey DrawingArea on Form_Open http://code.google.com/p/gambas/issues/detail?id=237 I confirm that in revision #4651 the bug is fixed. Thank you! -- For Developers, A Lot Can

Re: [Gambas-user] Relative paths in a component

2012-04-22 Thread Benoit Minisini
I'm not at home but I answer anyway... This magic path already exists. :-) Just add ../ before the relative path. Public Sub Open(Path As String) Dim fichier As File If Left(Path) / then Path = .. / Path ... 2012/4/22 Fabien Bodard gambas...@gmail.com 2012/4/22 Adrien Prokopowicz

Re: [Gambas-user] Relative paths in a component

2012-04-22 Thread Adrien Prokopowicz
Le dimanche 22 avril 2012 17:48:28 Benoit Minisini a écrit : If Left(Path) / then Path = .. / Path Great, thanks. :) -- For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You.

Re: [Gambas-user] New XML component

2012-04-22 Thread Adrien Prokopowicz
Le dimanche 22 avril 2012 13:51:22 Caveat a écrit : If I put the xml file in the same dir as the project and reference it in a relative way, then it works perfectly (as expected) using gb.libxml. Using gb.xml I get an error File or directory does not exist. Regards, Caveat On Sun,

Re: [Gambas-user] Grab command

2012-04-22 Thread trat50
OK Tobi, IT WORKS! :jumping: I will write a few lines of code after breakfast for anyone else trying to do this. tobi-15 wrote: ___ You don't need to draw on a PictureBox. Just draw on a Picture object and then place that drawn Picture in the

Re: [Gambas-user] rev. 4651 and new gb.xml

2012-04-22 Thread Charlie Reinl
Salut Adrien, Dim Xml as New XmlDocument Xml.FromString(path to 'US-presidents-3.xml') that works now. Ran actually rev.4656 But loading xml2file.xslt like that Dim Xsl as New XmlDocument Xsl.FromString(path to 'xml2file.xslt') raise an error . next file which will be loaded

Re: [Gambas-user] Relative paths in a component

2012-04-22 Thread Fabien Bodard
2012/4/22 Adrien Prokopowicz adrien.prokopow...@gmail.com: Le dimanche 22 avril 2012 17:48:28 Benoit Minisini a écrit : If Left(Path) / then Path = .. / Path Great, thanks. :) -- For Developers, A Lot Can Happen In

Re: [Gambas-user] rev. 4651 and new gb.xml

2012-04-22 Thread Charlie Reinl
Salut Adrien, works better since rev #4657. but I get a signal 6 at the seconde Out = XSLT.Transform(Xml, Xsl) here I attached a demo where you can see it. This (the FromXML_old is the working version before you changes) is the original sub I use. -- Amicalement Charlie

Re: [Gambas-user] New XML component

2012-04-22 Thread Caveat
Nope, rev 4656 is not working with relative path (saved the xml as simple.xml in the project dir and referred to it as simple.xml)... now it just fails silently giving wrong results, no error message any more. With absolute path is the same as before, still not working, silent failure with wrong

Re: [Gambas-user] Grab command

2012-04-22 Thread trat50
How to prevent part of an image from getting blacked out if it extends off the edge of the screen: Here's how I synchronized Sky (a displayed PictureBox) with Sky1 (an undisplayed Picture): This allows DRAWING ON and SAVING - using the undisplayed Drawing, while seeing the results in the

Re: [Gambas-user] New XML component

2012-04-22 Thread Caveat
Note that there are 3 possibilities in my project to test XML stuff. Depending on what you set as the startup class, you can either try converting XML to a treeview, viewing the XML in a dynamically-built GUI or running a test suite which also applies changes to the XML once it's in the internal

Re: [Gambas-user] rev. 4651 and new gb.xml

2012-04-22 Thread Adrien Prokopowicz
Le dimanche 22 avril 2012 23:39:27 Charlie Reinl a écrit : Salut Adrien, works better since rev #4657. but I get a signal 6 at the seconde Out = XSLT.Transform(Xml, Xsl) here I attached a demo where you can see it. This (the FromXML_old is the working version before you changes) is

Re: [Gambas-user] Issue 240 in gambas: CheckBox Tristate View on Runtime

2012-04-22 Thread gambas
Comment #4 on issue 240 by kmanja...@gmail.com: CheckBox Tristate View on Runtime http://code.google.com/p/gambas/issues/detail?id=240 I did try using various Xfce-XX based GTK+ widget themes defined under /usr/share/themes/ on my ~/.gtkrc-2.0 but that didn't seem to solve the problem

Re: [Gambas-user] rev. 4651 and new gb.xml

2012-04-22 Thread Caveat
I'm now on 4659... URL: https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/trunk Repository Root: https://gambas.svn.sourceforge.net/svnroot/gambas Repository UUID: 96304659-1d19-0410-acd0-aead272a8bd5 Revision: 4659 Node Kind: directory Schedule: normal Last Changed Author: prokopy Last