Re: [Gambas-user] Pesky Minimize Button on TitleBar

2009-11-26 Thread Ricardo Díaz Martín
Me too. It's no possible to change this behaviour? Please do not change it
only in gambas3, there are lot of people developing in gambas2 yet.


2009/11/26 Fabien Bodard gambas...@gmail.com

 in fact it is a definition choice ... not resizable form in gambas
 have a minimalize button ... i'm agree with you... we will be able to
 choose if we want to see the minimalize button...

 2009/11/26  nospam.nospam.nos...@gmail.com:
  nospam.nospam.nos...@gmail.com wrote:
  I can't find an answer to this problem, except for an old post on
  this list in French. My French is rustier than the wreck of the
  Titanic but I got the impression that the building of window title
  bars is under the control of the WM.
 
  Anyway, I have a window and I need to remove the Minimise button. The
  maximise button I have dealt with. Oddly, in the gambas design
  environment the window shows with only the close box, which will do,
  but as soon as I run the application, there's the pesky Minimise
  button again.
 
  Does anyone care to shed some light on this, please?
 
  *bump*
 
  Anyone?
 
 
 --
  Let Crystal Reports handle the reporting - Free Crystal Reports 2008
 30-Day
  trial. Simplify your report design, integration and deployment - and
 focus on
  what you do best, core application coding. Discover what's new with
  Crystal Reports now.  http://p.sf.net/sfu/bobj-july
  ___
  Gambas-user mailing list
  Gambas-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/gambas-user
 


 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
 trial. Simplify your report design, integration and deployment - and focus
 on
 what you do best, core application coding. Discover what's new with
 Crystal Reports now.  http://p.sf.net/sfu/bobj-july
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] rpmbuild and install package

2009-11-26 Thread Toni Rosa
After reading some Slackware pkgtool docs (specifically where it says
pkgtools are unstable with tar  1.13), no doubt Doriano is right about
the need of tar-1.13, or at least the need of giving the generated package
a try... so the check wasn't that silly, after all :)
Sorry about misleading you on this one.

Toni


 D. L. Fox ha scritto:
 Toni, you are 2 for 2! :-)

 Added the link and now I have access to creating all the available
 packages. Many thanks!

 Toni wrote:

 Hi again,
 I think that there is no real need for that specific version of tar...
 thus a workaround to generate packages for Slackware without having to
 downgrade the tar utility would be creating a link named tar-1.13 to
 the installed tar binary in order to fool the (silly) gambas check.
 Something like that should do the trick:

 sudo ln -s /bin/tar /bin/tar-1.13

 Regards,
 Toni

 You should then test your package to see if it works. There is a
 specific reason why slackware refuses to use newer versions of tar(1);
 unfortunately I don't remember where it is explained (you can google for
 it), but I do remember it was a good reason.

 Regards,
 Doriano



 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008
 30-Day
 trial. Simplify your report design, integration and deployment - and focus
 on
 what you do best, core application coding. Discover what's new with
 Crystal Reports now.  http://p.sf.net/sfu/bobj-july
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user




--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] It looks like a bug, it walks like a bug...

2009-11-26 Thread Fabien Bodard
Please don't forget some informations ... the gambas version, the
component gb.gui(gnome/kde?), gb.gtk, gb.qt, gb.qt4 ?


and yes this is a true bug !..

can you send us a little project that show this ?

2009/11/26  nospam.nospam.nos...@gmail.com:
 Now what on this planet would cause the behaviour shown in these three
 images and described below?

 1) The fields in p1_ok are disabled in the design environment.
  The fields are as they should be.

 2) The fields in p2_not_ok are enabled in code.

 3) You can see the text is enabled, and it is editable in
  p2_not_ok.

 4) The background colour does not revert to the default when
  the fields are enabled. The background colour stays at the
  disabled colour, yet foreground text colour is working ok.

 5) I am not setting colours anywhere in my code, at all. So
  please don't suggest I look there.

 6) The form is quite complex so I built a test application that
  replicates the design structure, and it works fine. Click
  Edit and the text fields go white in the test app. Click OK or
  Cancel and the fields disable and change colour, as they should.
  Click Edit again, and it's still working fine in test app.

 7) If I add a line to manually change the background color in the
  main app when the Edit button is clicked, like this:

      txtRemoteServerUsername.BackColor = Color.TextBackground

  Then the background goes white. Ok, so now I know I can work around
  the issue, but I have quite a few fields to work around.

 8) After setting txtRemoteServerUsername.BackColor = Color.TextBackground,
  I get the problem shown in p3_not_ok. The default disabled colour
  has changed, though that may be due to changing the enabled backcolour.

 Oddly, if I use this:

 txtRemoteServerUsername.BackColor = Color.Default

 I get the very same problem as shown in p2_not_ok. It would seem that
 something, either gambas (2.17) or GTK has forgotten what Color.Default is.

 Has anyone seen this before?

 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
 trial. Simplify your report design, integration and deployment - and focus
 on
 what you do best, core application coding. Discover what's new with
 Crystal Reports now.  http://p.sf.net/sfu/bobj-july
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user



--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Pesky Minimize Button on TitleBar

2009-11-26 Thread Fabien Bodard
2009/11/26 Ricardo Díaz Martín oceanosoftlapa...@gmail.com:
 Me too. It's no possible to change this behaviour? Please do not change it
 only in gambas3, there are lot of people developing in gambas2 yet.

yes but gambas2 is not going to live for a long time as qt3 begin to
became obsolete and this kind of change can make crashes on some
already running gambas2 project...

so if something is doing it will be only on gambas3 (maybe Benoit have
another answer)


 2009/11/26 Fabien Bodard gambas...@gmail.com

 in fact it is a definition choice ... not resizable form in gambas
 have a minimalize button ... i'm agree with you... we will be able to
 choose if we want to see the minimalize button...

 2009/11/26  nospam.nospam.nos...@gmail.com:
  nospam.nospam.nos...@gmail.com wrote:
  I can't find an answer to this problem, except for an old post on
  this list in French. My French is rustier than the wreck of the
  Titanic but I got the impression that the building of window title
  bars is under the control of the WM.
 
  Anyway, I have a window and I need to remove the Minimise button. The
  maximise button I have dealt with. Oddly, in the gambas design
  environment the window shows with only the close box, which will do,
  but as soon as I run the application, there's the pesky Minimise
  button again.
 
  Does anyone care to shed some light on this, please?
 
  *bump*
 
  Anyone?
 
 
 --
  Let Crystal Reports handle the reporting - Free Crystal Reports 2008
 30-Day
  trial. Simplify your report design, integration and deployment - and
 focus on
  what you do best, core application coding. Discover what's new with
  Crystal Reports now.  http://p.sf.net/sfu/bobj-july
  ___
  Gambas-user mailing list
  Gambas-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/gambas-user
 


 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
 trial. Simplify your report design, integration and deployment - and focus
 on
 what you do best, core application coding. Discover what's new with
 Crystal Reports now.  http://p.sf.net/sfu/bobj-july
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
 trial. Simplify your report design, integration and deployment - and focus on
 what you do best, core application coding. Discover what's new with
 Crystal Reports now.  http://p.sf.net/sfu/bobj-july
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] It looks like a bug, it walks like a bug...

2009-11-26 Thread nospam.nospam.nospam
Fabien Bodard wrote:
 Please don't forget some informations ... the gambas version, the
 component gb.gui(gnome/kde?), gb.gtk, gb.qt, gb.qt4 ?

[QUOTE]
gambas (2.17)
[/QUOTE]

[QUOTE]
GTK
[/QUOTE]

 and yes this is a true bug !..

 can you send us a little project that show this ?

[QUOTE]
The form is quite complex so I built a test application that
replicates the design structure, and it works fine.
[/QUOTE]

 2009/11/26  nospam.nospam.nos...@gmail.com:
 Now what on this planet would cause the behaviour shown in these
 three images and described below?

 1) The fields in p1_ok are disabled in the design environment.
 The fields are as they should be.

 2) The fields in p2_not_ok are enabled in code.

 3) You can see the text is enabled, and it is editable in
 p2_not_ok.

 4) The background colour does not revert to the default when
 the fields are enabled. The background colour stays at the
 disabled colour, yet foreground text colour is working ok.

 5) I am not setting colours anywhere in my code, at all. So
 please don't suggest I look there.

 6) The form is quite complex so I built a test application that
 replicates the design structure, and it works fine. Click
 Edit and the text fields go white in the test app. Click OK or
 Cancel and the fields disable and change colour, as they should.
 Click Edit again, and it's still working fine in test app.

 7) If I add a line to manually change the background color in the
 main app when the Edit button is clicked, like this:

 txtRemoteServerUsername.BackColor = Color.TextBackground

 Then the background goes white. Ok, so now I know I can work around
 the issue, but I have quite a few fields to work around.

 8) After setting txtRemoteServerUsername.BackColor =
 Color.TextBackground, I get the problem shown in p3_not_ok. The
 default disabled colour
 has changed, though that may be due to changing the enabled
 backcolour.

 Oddly, if I use this:

 txtRemoteServerUsername.BackColor = Color.Default

 I get the very same problem as shown in p2_not_ok. It would seem that
 something, either gambas (2.17) or GTK has forgotten what
 Color.Default is.

 Has anyone seen this before?

 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008
 30-Day trial. Simplify your report design, integration and
 deployment - and focus on
 what you do best, core application coding. Discover what's new with
 Crystal Reports now. http://p.sf.net/sfu/bobj-july
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user



 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008
 30-Day trial. Simplify your report design, integration and deployment
 - and focus on what you do best, core application coding. Discover
 what's new with
 Crystal Reports now.  http://p.sf.net/sfu/bobj-july
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user 


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas script execution

2009-11-26 Thread Fabien Bodard
the true syntax for the magic call is :


/usr/bin/env gbs2


this way the gbs2 true path is alway good



2009/11/24 Matteo Lisi matteo.l...@engicam.com:

 Could the problem be some other typing error?

   Perhaps ! A dog ate my hands and I'm typing with two little wood rod...
   I tried to replace the return line with the one who you suggest me:
 RETURN cVal!MemTotal - cVal!MemFree - cVal!Buffers - cVal!Cached + 
 cVal!SwapTot
 al - cVal!SwapFree - cVal!SwapCached

   But I had the same result !
   [1]nospam.nospam.nos...@gmail.com ha scritto:

 Matteo Lisi wrote:


  Hi !

  The first line:
 #!/usr/bin/ gbs2

  it's a typing error
  the right line is:
 #!/usr/bin/gbs2

  Thanks Charlie , but the problem , unfortunatly is not the space !


 Could the problem be some other typing error?

 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
 trial. Simplify your report design, integration and deployment - and focus on
 what you do best, core application coding. Discover what's new with
 Crystal Reports now.  [2]http://p.sf.net/sfu/bobj-july
 ___
 Gambas-user mailing list
 [3]gambas-u...@lists.sourceforge.net
 [4]https://lists.sourceforge.net/lists/listinfo/gambas-user

 References

   1. mailto:nospam.nospam.nos...@gmail.com
   2. http://p.sf.net/sfu/bobj-july
   3. mailto:Gambas-user@lists.sourceforge.net
   4. https://lists.sourceforge.net/lists/listinfo/gambas-user
 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
 trial. Simplify your report design, integration and deployment - and focus on
 what you do best, core application coding. Discover what's new with
 Crystal Reports now.  http://p.sf.net/sfu/bobj-july
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] pb loading an picture into a string

2009-11-26 Thread Jean-Yves F. Barbier
Hi,

Here is a (very big) PB:

...
  ' Get picture /path/name.ext
  INfile = FileChooser1.SelectedPath
  
  FileSize = Stat(FileChooser1.SelectedPath).Size
  
  ' Read file into a string
  INstream = OPEN INfile FOR INPUT 
'  READ #INstream, INstring, Lof(INstream)  ' NA: Returns 238 bytes
  READ #INstream, INstring, FileSize' Erk: same thing :(
  CLOSE #INstream
PRINT INstring length (Len, String.Len) =   Len(INstring)   -   
String.Len(INstring)

Returns 298 - 234 when I read a small picture.png file!??
How could I correctly read this image wothout any loss?

Purpose is to read it correctly, convert it to base64 and send it to a 
postgresql
procedure (and, of course, the opposite.)

JY
-- 
For a man to truly understand rejection, he must first be ignored by a cat.

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas script execution

2009-11-26 Thread Fabien Bodard
in fact when i've wrotted the gbs ... i've use gb2 calsortkey function
and all the CComponent class from the ide to manage automatiquely the
components dépendence..

this way when you call :

USE gb.qt.ext


internally it call gb.qt too...

but the function of Benoit have a bug i've detected there is only 3
week by reinstalling completly my system and where i've not compiled
the gb.qt component ...

this make the ide crashing, because gb.report need gb.qt and now i've
only gb.qt4...

so the calcsort key need to remove a component in the list when it is deficient.

i will looking on that ... for gb3.. and if it work maybe Benoit can
doing a Backport

2009/11/24 Charlie Reinl karl.re...@fen-net.de:
 Am Mittwoch, den 25.11.2009, 00:27 +1100 schrieb
 nospam.nospam.nos...@gmail.com:
 Matteo Lisi wrote:
    Hi !
 
    The first line:
  #!/usr/bin/ gbs2
 
    it's a typing error
    the right line is:
  #!/usr/bin/gbs2
 
    Thanks Charlie , but the problem , unfortunatly is not the space !

 Could the problem be some other typing error?

 Salut,

 1.)-- full call 

 :~/gambas/2/f3/scriptTest$ /usr/local/bin/gbs2 -c
 ~/gambas/2/f3/scriptTest/matteo.ga2script
 gbs2: warning: cannot find component dbreportviewer2 required by
 DBReportDesigner2
 CComponent.CalcSortKey.171: #13: Null object
 0: CComponent.CalcSortKey.171
 1: CComponent.SortComponents.201
 2: CComponent._init.123
 3: MMain.MakeVirtualProject.180
 4: MMain.Main.83

 I'v no idea what, and why that gbs2: warning.
 The component exists as User-Component, and of course it has nothing to
 do with the script

 2.)- my gbs2 version [rev 2429] 

 :~/gambas/2/f3/scriptTest$ /usr/local/bin/gbs2  -V
 2.14.0

 3.)-- after a chmod +x and changing to #!/usr/local/bin/gbs2 --

 :~/gambas/2/f3/scriptTest$ ./matteo.ga2script
 ./matteo.gbs: line 3: syntax error near unexpected token `('
 ./matteo.gbs: line 3: `FUNCTION GetUsedMemory() AS Integer'

 perhaps Benoit or Fabien have a Idea!


 --
 Amicalement
 Charlie

 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
 trial. Simplify your report design, integration and deployment - and focus on
 what you do best, core application coding. Discover what's new with
 Crystal Reports now.  http://p.sf.net/sfu/bobj-july
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user



--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Pesky Minimize Button on TitleBar

2009-11-26 Thread nospam.nospam.nospam
Fabien Bodard wrote:
 2009/11/26 Ricardo Díaz Martín oceanosoftlapa...@gmail.com:
 Me too. It's no possible to change this behaviour? Please do not
 change it only in gambas3, there are lot of people developing in
 gambas2 yet.

 yes but gambas2 is not going to live for a long time as qt3 begin to
 became obsolete and this kind of change can make crashes on some
 already running gambas2 project...

 so if something is doing it will be only on gambas3 (maybe Benoit have
 another answer)

Do you know where can I get my hands on gambas 3 and instructions on 
installing it on ubuntu?

I'd love to take a look at it. 


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Frame where the first item is not Enabled - focus problem

2009-11-26 Thread Fabien Bodard
gambas manage the tab order with the zorder of childs...

but the problem seem to be that gambas give focus to desabled
controls... it's no a good behaviour.

2009/11/25 bbb888 bbr...@paddys-hill.net:



 bbb888 wrote:

 In this form I have
 - several misc controls
 - a textarea
 - a frame (with several checkboxes and buttons)
 - a listview
 in that order in the heirarchy.

 In certain conditions, the first item in the frame has it's Enabled
 property set to false.
 When this happens and I tab from the textarea to the frame (in actual fact
 it's done in code using textarea.Next.SetFocus as I have to trap TAB
 keys), the focus does not go to the first enabled item in the frame.  In
 fact, it seems to disappear* and a second tab moves the focus to the first
 control in the form, not the listview.
 * even the listview_GotFocus handler is never invoked.

 If the first item in the frame is enabled, the form works.

 Is this expected behaviour?  If not, do you think it is something in
 gambas or in the KDE style (Highcolor Classic) that I am using ?

 tia
 Bruce

 Update: I've tried changing the Frame to a Panel, but apart from losing my
 title the problem remains.


 OK, Ive solved it with

  IF Panel2.Children[0].Enabled THEN
    Panel2.Children[0].SetFocus
  ELSE
    Panel2.Children[1].SetFocus
  ENDIF

 but I wouldn't have thought I'd need to go to thgat extreme?
 --
 View this message in context: 
 http://old.nabble.com/Frame-where-the-first-item-is-not-Enabled---focus-problem-tp26507190p26507550.html
 Sent from the gambas-user mailing list archive at Nabble.com.


 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
 trial. Simplify your report design, integration and deployment - and focus on
 what you do best, core application coding. Discover what's new with
 Crystal Reports now.  http://p.sf.net/sfu/bobj-july
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Pesky Minimize Button on TitleBar

2009-11-26 Thread Fabien Bodard
http://gambasdoc.org/help/install/ubuntu

and be carefull this is an early alpha version... but stable as gb2 as
the bug correction are making both in the stable and the development
version

another thing ...

as gambas 3 doing some change on the gb2 project tree, make a copy of
the project befor opening it... overwise you can't reopen it with gb2.

after opening a gb2 project do a Tool convert forms. as the form and
some control properties have changed.

That's all ... have fun !

i forget :

...or the latest current version being developed

You need the svn client.
$ mkdir trunk
$ svn checkout 
https://gambas.svn.sourceforge.net/svnroot/[../../def/gambas]/gambas/trunk
$ cd trunk

3. Compile and install it

$ ./reconf-all
$ ./configure -C
$ make
$ su -c make install
Password: ***





2009/11/26  nospam.nospam.nos...@gmail.com:
 Fabien Bodard wrote:
 2009/11/26 Ricardo Díaz Martín oceanosoftlapa...@gmail.com:
 Me too. It's no possible to change this behaviour? Please do not
 change it only in gambas3, there are lot of people developing in
 gambas2 yet.

 yes but gambas2 is not going to live for a long time as qt3 begin to
 became obsolete and this kind of change can make crashes on some
 already running gambas2 project...

 so if something is doing it will be only on gambas3 (maybe Benoit have
 another answer)

 Do you know where can I get my hands on gambas 3 and instructions on
 installing it on ubuntu?

 I'd love to take a look at it.


 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
 trial. Simplify your report design, integration and deployment - and focus on
 what you do best, core application coding. Discover what's new with
 Crystal Reports now.  http://p.sf.net/sfu/bobj-july
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] It looks like a bug, it walks like a bug...

2009-11-26 Thread Fabien Bodard
so send me the complete form ! ... i can't debug it without

send it directly to me

2009/11/26  nospam.nospam.nos...@gmail.com:
 Fabien Bodard wrote:
 Please don't forget some informations ... the gambas version, the
 component gb.gui(gnome/kde?), gb.gtk, gb.qt, gb.qt4 ?

 [QUOTE]
 gambas (2.17)
 [/QUOTE]

 [QUOTE]
 GTK
 [/QUOTE]

 and yes this is a true bug !..

 can you send us a little project that show this ?

 [QUOTE]
 The form is quite complex so I built a test application that
 replicates the design structure, and it works fine.
 [/QUOTE]

 2009/11/26  nospam.nospam.nos...@gmail.com:
 Now what on this planet would cause the behaviour shown in these
 three images and described below?

 1) The fields in p1_ok are disabled in the design environment.
 The fields are as they should be.

 2) The fields in p2_not_ok are enabled in code.

 3) You can see the text is enabled, and it is editable in
 p2_not_ok.

 4) The background colour does not revert to the default when
 the fields are enabled. The background colour stays at the
 disabled colour, yet foreground text colour is working ok.

 5) I am not setting colours anywhere in my code, at all. So
 please don't suggest I look there.

 6) The form is quite complex so I built a test application that
 replicates the design structure, and it works fine. Click
 Edit and the text fields go white in the test app. Click OK or
 Cancel and the fields disable and change colour, as they should.
 Click Edit again, and it's still working fine in test app.

 7) If I add a line to manually change the background color in the
 main app when the Edit button is clicked, like this:

 txtRemoteServerUsername.BackColor = Color.TextBackground

 Then the background goes white. Ok, so now I know I can work around
 the issue, but I have quite a few fields to work around.

 8) After setting txtRemoteServerUsername.BackColor =
 Color.TextBackground, I get the problem shown in p3_not_ok. The
 default disabled colour
 has changed, though that may be due to changing the enabled
 backcolour.

 Oddly, if I use this:

 txtRemoteServerUsername.BackColor = Color.Default

 I get the very same problem as shown in p2_not_ok. It would seem that
 something, either gambas (2.17) or GTK has forgotten what
 Color.Default is.

 Has anyone seen this before?

 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008
 30-Day trial. Simplify your report design, integration and
 deployment - and focus on
 what you do best, core application coding. Discover what's new with
 Crystal Reports now. http://p.sf.net/sfu/bobj-july
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user



 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008
 30-Day trial. Simplify your report design, integration and deployment
 - and focus on what you do best, core application coding. Discover
 what's new with
 Crystal Reports now.  http://p.sf.net/sfu/bobj-july
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user


 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
 trial. Simplify your report design, integration and deployment - and focus on
 what you do best, core application coding. Discover what's new with
 Crystal Reports now.  http://p.sf.net/sfu/bobj-july
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] PING Benoit - GUI Programming Productivity Feature Request

2009-11-26 Thread Fabien Bodard
shift F2 to go to the previous position

F2 to get the function code or help about the function

I don't know were it is documented lol

2009/11/23  nospam.nospam.nos...@gmail.com:
 Benoit,

 The Gambas programming environment would offer a major productivity boost to
 developers if code Bookmarks were supported in the text editor.

 Using my own situation as an example, where I am porting a Windows app that
 has 300+ classes and close to 120,000 lines of code, it is next to
 impossible to find related code when one is making a significant change.

 As an example, I might put a break point in the code and use the debug
 backtrace to walk my way back through the code looking for code parts that
 may be affected by my proposed change. Alternatively I might put an early
 break point in and forward trace the code by using debug stepping. In both
 cases I currently have to put manual comments in that are coded in a way so
 that they can be searched or I have to write down the references then go
 looking for them again when I'm ready to make the change, and that just
 takes up an awful lot of time that could otherwise be avoided by support for
 bookmarks.

 Even on a small project, having no support for bookmarks means you can't set
 visual clues in your code, so even when you're trying to find something
 simple you still have to continually scan the code by eye to find the exact
 spot you know was there earlier.

 What would it take to convince you to consider implementing such a feature?

 Of course, the book marks would need to be saved so that they are available
 the next time the project is opened in the development environment.

 Wine? Women? Song? Money? Or commonsense?

 :)


 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
 trial. Simplify your report design, integration and deployment - and focus on
 what you do best, core application coding. Discover what's new with
 Crystal Reports now.  http://p.sf.net/sfu/bobj-july
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Another question about Gambas on ARM

2009-11-26 Thread Matteo Lisi
Hi !

I'm still engaged on Gambas in ARM...

This is my situation:

I download the gambas source and I want to compile gambas for ARM 9 target.

Usually I use a x86 linux machine for crosscompile my program.
The crosscompile that I use is arm-none-linux-gnuabi .

I configure the packet with this configure line (On the x86 Platform):

./configure --host=arm-none-linux-gnueabi -C 
--prefix=/data/GEA_M6425/ltib/rootfs/usr/local/
--exec-prefix=/data/GEA_M6425/ltib/rootfs/usr/local/ 
--with-sdl-includes=/usr/include/SDL/
--with-sdl-libraries=/usr/lib/ 
--with-libxml-includes=/usr/include/libxml2 
 --with-xslt-includes=/usr/include/libxslt --disable-corba 
--disable-qte --disable-kde
  --disable-sdl --disable-sdlsound --disable-xml 
--disable-v4l --disable-crypt
  --disable-opengl --disable-corba --disable-image 
--disable-desktop --disable-mysql 
  --disable-odbc --disable-postgresql --disable-sqlite2 
--disable-sqlite3 --disable-firebird
  --disable-gtk --disable-gtksvg  --disable-bzlib2 
--disable-zlib
 
and the configure step ends without error.

Next I make the source ,on the x86 platform yet ,and also this step 
ends without error.

The situation is that now I have on the x86 some ARM's binaries like 
gbi2, and when I
make install the step ends with errors, because (I think !) the make 
invoke the gbi2 command
that is an ARM binaries

If what I said is correct how I can do for port gambas on ARM ?

Is correct to crosscompile the gcc compile for ARM and then made 
./configure make make install
on the ARM platform ?

Did Someone do this operation , and if yes which compiler used ?


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] pb loading an picture into a string

2009-11-26 Thread Jean-Yves F. Barbier
Doriano Blengino a écrit :
...

Ok, I found what was wrong: as there is no conversion between a string
and a picture, I must write the string to a file and read it as a picture,
the string was written as of WRITE #INstream, OUTstring, String.Len(OUTstring)
 instead of: WRITE #INstream, OUTstring, Len(OUTstring)

Sorry for the noise.

JY
-- 
Love cannot be much younger than the lust for murder.
-- Sigmund Freud

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] rpmbuild and install package

2009-11-26 Thread D. L. Fox
Thanks for the info, Doriano. That's good to know if I ever need to 
develop something for Slackware.

Toni, it's not a big deal and I appreciate the help. I'm just playing 
around right now getting familiar with the IDE, and so forth. It's been 
awhile since I've programmed in Basic.

Toni Rosa wrote:
 After reading some Slackware pkgtool docs (specifically where it says
 pkgtools are unstable with tar  1.13), no doubt Doriano is right about
 the need of tar-1.13, or at least the need of giving the generated package
 a try... so the check wasn't that silly, after all :)
 Sorry about misleading you on this one.
 
 Toni

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Another question about Gambas on ARM

2009-11-26 Thread Rob
On Thursday 26 November 2009 08:40 am, Matteo Lisi wrote:
 If what I said is correct how I can do for port gambas on ARM ?
 Is correct to crosscompile the gcc compile for ARM and then made
 ./configure make make install
 on the ARM platform ?

Someone else suggested looking at the Debian ARM packages of Gambas, and I 
think that's a pretty good place to start.  I would think you'd have to run 
make install on the target architecture, perhaps in an emulator 
environment if it's not available to you at build time.

Rob

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] RAD PB

2009-11-26 Thread Jean-Yves F. Barbier
Hi,

I've got something strange: when I try to move my cursor with
the mouse pointer it selects text between the current cursor
place and the place I selected (even after a restart of gambas RAD)

-- 
small, adj.:
Is it in yet?

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Another question about Gambas on ARM

2009-11-26 Thread Benoît Minisini
 Hi !
 
 I'm still engaged on Gambas in ARM...
 
 This is my situation:
 
 I download the gambas source and I want to compile gambas for ARM 9 target.
 
 Usually I use a x86 linux machine for crosscompile my program.
 The crosscompile that I use is arm-none-linux-gnuabi .
 
 I configure the packet with this configure line (On the x86 Platform):
 
 ./configure --host=arm-none-linux-gnueabi -C
 --prefix=/data/GEA_M6425/ltib/rootfs/usr/local/
 --exec-prefix=/data/GEA_M6425/ltib/rootfs/usr/local/
 --with-sdl-includes=/usr/include/SDL/
 --with-sdl-libraries=/usr/lib/
 --with-libxml-includes=/usr/include/libxml2
  --with-xslt-includes=/usr/include/libxslt --disable-corba
 --disable-qte --disable-kde
   --disable-sdl --disable-sdlsound --disable-xml
 --disable-v4l --disable-crypt
   --disable-opengl --disable-corba --disable-image
 --disable-desktop --disable-mysql
   --disable-odbc --disable-postgresql --disable-sqlite2
 --disable-sqlite3 --disable-firebird
   --disable-gtk --disable-gtksvg  --disable-bzlib2
 --disable-zlib
 
 and the configure step ends without error.
 
 Next I make the source ,on the x86 platform yet ,and also this step
 ends without error.
 
 The situation is that now I have on the x86 some ARM's binaries like
 gbi2, and when I
 make install the step ends with errors, because (I think !) the make
 invoke the gbi2 command
 that is an ARM binaries
 
 If what I said is correct how I can do for port gambas on ARM ?
 
 Is correct to crosscompile the gcc compile for ARM and then made
 ./configure make make install
 on the ARM platform ?
 
 Did Someone do this operation , and if yes which compiler used ?
 

Yes, the Gambas make install is special as it runs the Gambas compiler to 
compile everything made in Gambas in the source package, and the informer 
(gbi2) to create information about components.

But as the automatic ARM builder of Debian succeeded in making ARM packages 
for Gambas, maybe Jose can tell you where (I don't remember the link) you can 
see the output of the compilation process. Maybe you will see which flag to 
use and when using them to make the installation process work.

Regards,


-- 
Benoît Minisini

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] RAD PB

2009-11-26 Thread Jean-Yves F. Barbier
Jean-Yves F. Barbier a écrit :
 Hi,
 
 I've got something strange: when I try to move my cursor with
 the mouse pointer it selects text between the current cursor
 place and the place I selected (even after a restart of gambas RAD)

It has gone (?), sorry for the noise

-- 

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Another question about Gambas on ARM

2009-11-26 Thread José Luis Redrejo Rodríguez
2009/11/26 Benoît Minisini gam...@users.sourceforge.net

  Hi !
 
  I'm still engaged on Gambas in ARM...
 
  This is my situation:
 
  I download the gambas source and I want to compile gambas for ARM 9
 target.
 
  Usually I use a x86 linux machine for crosscompile my program.
  The crosscompile that I use is arm-none-linux-gnuabi .
 
  I configure the packet with this configure line (On the x86 Platform):
 
  ./configure --host=arm-none-linux-gnueabi -C
  --prefix=/data/GEA_M6425/ltib/rootfs/usr/local/
  --exec-prefix=/data/GEA_M6425/ltib/rootfs/usr/local/
  --with-sdl-includes=/usr/include/SDL/
  --with-sdl-libraries=/usr/lib/
  --with-libxml-includes=/usr/include/libxml2
   --with-xslt-includes=/usr/include/libxslt --disable-corba
  --disable-qte --disable-kde
--disable-sdl --disable-sdlsound --disable-xml
  --disable-v4l --disable-crypt
--disable-opengl --disable-corba --disable-image
  --disable-desktop --disable-mysql
--disable-odbc --disable-postgresql --disable-sqlite2
  --disable-sqlite3 --disable-firebird
--disable-gtk --disable-gtksvg  --disable-bzlib2
  --disable-zlib
 
  and the configure step ends without error.
 
  Next I make the source ,on the x86 platform yet ,and also this step
  ends without error.
 
  The situation is that now I have on the x86 some ARM's binaries like
  gbi2, and when I
  make install the step ends with errors, because (I think !) the make
  invoke the gbi2 command
  that is an ARM binaries
 
  If what I said is correct how I can do for port gambas on ARM ?
 
  Is correct to crosscompile the gcc compile for ARM and then made
  ./configure make make install
  on the ARM platform ?
 
  Did Someone do this operation , and if yes which compiler used ?
 

 Yes, the Gambas make install is special as it runs the Gambas compiler to
 compile everything made in Gambas in the source package, and the informer
 (gbi2) to create information about components.

 But as the automatic ARM builder of Debian succeeded in making ARM packages
 for Gambas, maybe Jose can tell you where (I don't remember the link) you
 can
 see the output of the compilation process. Maybe you will see which flag to
 use and when using them to make the installation process work.

 Regards,


 --
 Benoît Minisini


Hi again, the compiling logs of gambas in all the platforms Debian supports
are at https://buildd.debian.org/pkg.cgi?pkg=gambas2


Regards.
José L:
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] pb loading an picture into a string

2009-11-26 Thread Charlie Reinl
Am Donnerstag, den 26.11.2009, 14:32 +0100 schrieb Jean-Yves F. Barbier:
 Doriano Blengino a écrit :
 ...
 
 Of that I'm aware Doriano, THE PB is I need each and every byte of the picture
 in order to cast it to a Base64 to send it to postgresql.
 Or just escape some chars, or whatever processing function I'll further need; 
 because I know there are base64 functions in gb.xml (however totally 
 undocumented)
 but what if I need to apply another process to a picture??... 
 
 So it looks impossible, as each time I take a byte out from the string it is 
 supposed to be an UTF8 one (so only 234 bytes are processed out of 298) AND 
 I can't convert this string because Conv ( Conv$) fail as Bad string 
 conversion...
 
 Now, if you have any clue, I'd be glad to ear about it.
 
 JY

Salut,

these three functions handle, the base64 function in gb.xml .

A picture is stored/extracted in/from an XML-file. I'v never compared
input / output, but the output-picture  looked like the input.

I just copied out of the  project, you have to strip it down yourself 
to make it work.
The first ToXML calls somewhere the second ToXML for writing.
The *.xlst have nothing to do with the base64 stuff. 



SUB ToXML(args AS String[]) '--- calls 2nd ToXML
  DIM xml AS NEW XmlWriter 
  DIM item AS Object
  'xml.Open(args[0]  .xml,TRUE,utf-8)
  xml.Open(modPath.FullPath(args[0]), TRUE, utf-8)
  xml.StartElement(P)
  ToolBox.ToXML(xml, *)
  FOR EACH item IN ide.GeneralParams
item.ToXML(xml)
  NEXT
  Layout.ToXML(xml)
  xml.EndElement()  ' (P)
  xml.EndDocument()
  $fname = modPath.RelativePath(args[0])
  'ide.Push(LAYOUT.MODIFIED.CLEAR)
  layout.Modified = 0
  IF $QuitOnSave THEN ide.Push(REPORT.QUIT)
  
END

PUBLIC FUNCTION ToXML(xml AS XmlWriter) AS Object  '--- is calls by 1st
ToXML
  DIM p AS Variant
  DIM s AS String
  DIM props AS Collection 
  props = ME.GetAll()
  xml.StartElement(I)
  FOR EACH p IN props  
xml.Attribute(props.Key, p)
  NEXT
  'add image as base64
  xml.Base64(file.Load(ME.ide.Logic.GetFile(ME.Get(Path
  xml.EndElement()
  RETURN xml
END

'Translate XML to CMD's 
SUB FromXML(args AS String[]) 
  DIM Xml AS NEW XmlDocument
  DIM Xsl AS NEW XmlDocument
  DIM out AS XmlDocument
  DIM Xr AS NEW XmlReader 
  DIM sString AS String
  DIM sPath AS String
  DIM htmlOut AS File
  DIM sTmpFile AS String
  IF Exist(modPath.FullPath(args[0])) THEN
Xml.FromString(modPath.FullPath(File.Load(args[0])))
IF Exist(application.Path / xml/xml2file.xslt) THEN 
  Xsl.FromString(File.Load(application.Path / xml/xml2file.xslt))
  out = XSLT.Transform(Xml, Xsl)
  sTmpFile = Temp$()
  out.Write(sTmpFile)
  Xr.FromString(File.Load(sTmpFile))
  WHILE NOT Xr.Eof 
SELECT CASE Xr.Node.Type   
  CASE XmlReaderNodeType.Element
FOR EACH Xr.Node.Attributes 
  sPath = Xr.Node.Value
NEXT
  CASE XmlReaderNodeType.Text 
IF NOT $TempFile.Exist(sPath) THEN
  $TempFile[sPath] = Temp()
  file.Save($TempFile[sPath], Xr.Decode(Xr.Node.Value,
base64)) 
  'PRINT Temp: ;TempFile[sPath]
END IF
END SELECT
Xr.Read()
  WEND

  IF Exist(application.Path / xml/xml2macro.xslt) THEN 
Xsl.FromString(File.Load(application.Path /
xml/xml2macro.xslt))
out = XSLT.Transform(Xml, Xsl)

sTmpFile = Temp$()
out.Write(sTmpFile)
sString = File.Load(sTmpFile)
'somes ent's not replaced, then replace them
'sString = Replace(sString,#10;,!) 
sString = Replace(sString, lt;, ) 
sString = Replace(sString, gt;, ) 
sString = Replace(sString, amp;, ) 
ide.Push(sString)
ide.Push(TOOLBOX.PARAMSET.INIT)
ide.Push(LAYOUT.SELECTION.REFRESH)
$fname = args[0]
ide.Push(LAYOUT.MODIFIED.CLEAR)
  ELSE 
message.Warning(can't find   application.Path /
xml/xml2macro.xslt)
  END IF 
ELSE 
  message.Warning(can't find   application.Path /
xml/xml2file.xslt)
END IF 
  ELSE 
message.Warning(can't find   args[0])
  END IF 
END


-- 
Amicalement
Charlie


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Another question about Gambas on ARM

2009-11-26 Thread Matteo Lisi
I tried to execute the make install on the arm target (I copied the 
directory from x86 platform) but this action return an error..

The make didnt found the gcc compiler ...

but it's necessary for the make install to have the gcc compiler on ARM 
target ?

if I move the gbi2 gbx2 eccc. ecc. in the ARM platform it's possible to 
end without error the make install step ?

How I can modify the script for do this ?

thanks

 Yes, the Gambas make install is special as it runs the Gambas compiler to 
 compile everything made in Gambas in the source package, and the informer 
 (gbi2) to create information about components.

 But as the automatic ARM builder of Debian succeeded in making ARM packages 
 for Gambas, maybe Jose can tell you where (I don't remember the link) you can 
 see the output of the compilation process. Maybe you will see which flag to 
 use and when using them to make the installation process work.

 Regards,


   


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] pb loading an picture into a string

2009-11-26 Thread Jean-Yves F. Barbier
Charlie Reinl a écrit :
...
Thanks Charlie, I'll try it.

-- 
The world really isn't any worse.  It's just that the news coverage
is so much better.

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] db retrieve

2009-11-26 Thread Jean-Yves F. Barbier
Hi,

How can I retrieve a field returned by a stored procedure?

SP:
CREATE OR REPLACE FUNCTION common.testbytea_sel(Pid OID) RETURNS TEXT AS $$ 
DECLARE
MyPic   BYTEA;
MyStringTEXT;
BEGIN
SELECT pic INTO MyPic FROM common.testbytea WHERE id = Pid;
MyString = encode(MyPic, 'base64');
RETURN MyString;
END;
$$ LANGUAGE PLPGSQL STRICT SECURITY DEFINER;

GB:
sqlQry = SELECT * FROM common.testbytea_sel(  RowNb  );
resQry = $DBConn.Exec(sqlQry)

PB: what resQry!??? shall I ask for?

-- 
Sorry, no fortune this time.

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] db retrieve

2009-11-26 Thread Fabien Bodard
dim hField as ResultField


For each hField in resQry.Fields

  Print hField.Name

Next





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

 How can I retrieve a field returned by a stored procedure?

 SP:
 CREATE OR REPLACE FUNCTION common.testbytea_sel(Pid OID) RETURNS TEXT AS $$
 DECLARE
        MyPic           BYTEA;
        MyString        TEXT;
 BEGIN
        SELECT pic INTO MyPic FROM common.testbytea WHERE id = Pid;
        MyString = encode(MyPic, 'base64');
        RETURN MyString;
 END;
 $$ LANGUAGE PLPGSQL STRICT SECURITY DEFINER;

 GB:
 sqlQry = SELECT * FROM common.testbytea_sel(  RowNb  );
 resQry = $DBConn.Exec(sqlQry)

 PB: what resQry!??? shall I ask for?

 --
 Sorry, no fortune this time.

 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
 trial. Simplify your report design, integration and deployment - and focus on
 what you do best, core application coding. Discover what's new with
 Crystal Reports now.  http://p.sf.net/sfu/bobj-july
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] pb loading an picture into a string

2009-11-26 Thread Fabien Bodard
ok this is a new test ... so your Base64 converting function is good...

and more simple than taking the xml one...

so the problem come from psql ... what is the charset of  your database ?

2009/11/26 Jean-Yves F. Barbier 12u...@gmail.com:
 Charlie Reinl a écrit :
 ...
 Thanks Charlie, I'll try it.

 --
 The world really isn't any worse.  It's just that the news coverage
 is so much better.

 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
 trial. Simplify your report design, integration and deployment - and focus on
 what you do best, core application coding. Discover what's new with
 Crystal Reports now.  http://p.sf.net/sfu/bobj-july
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] It looks like a bug, it walks like a bug...

2009-11-26 Thread nospam.nospam.nospam
Fabien Bodard wrote:
 so send me the complete form ! ... i can't debug it without

 send it directly to me

Ok, I'll have to package it up over the weekend, Fabien. There is an awful 
lot of code to take out before I send it.

 2009/11/26  nospam.nospam.nos...@gmail.com:
 Fabien Bodard wrote:
 Please don't forget some informations ... the gambas version, the
 component gb.gui(gnome/kde?), gb.gtk, gb.qt, gb.qt4 ?

 [QUOTE]
 gambas (2.17)
 [/QUOTE]

 [QUOTE]
 GTK
 [/QUOTE]

 and yes this is a true bug !..

 can you send us a little project that show this ?

 [QUOTE]
 The form is quite complex so I built a test application that
 replicates the design structure, and it works fine.
 [/QUOTE]

 2009/11/26 nospam.nospam.nos...@gmail.com:
 Now what on this planet would cause the behaviour shown in these
 three images and described below?

 1) The fields in p1_ok are disabled in the design environment.
 The fields are as they should be.

 2) The fields in p2_not_ok are enabled in code.

 3) You can see the text is enabled, and it is editable in
 p2_not_ok.

 4) The background colour does not revert to the default when
 the fields are enabled. The background colour stays at the
 disabled colour, yet foreground text colour is working ok.

 5) I am not setting colours anywhere in my code, at all. So
 please don't suggest I look there.

 6) The form is quite complex so I built a test application that
 replicates the design structure, and it works fine. Click
 Edit and the text fields go white in the test app. Click OK or
 Cancel and the fields disable and change colour, as they should.
 Click Edit again, and it's still working fine in test app.

 7) If I add a line to manually change the background color in the
 main app when the Edit button is clicked, like this:

 txtRemoteServerUsername.BackColor = Color.TextBackground

 Then the background goes white. Ok, so now I know I can work around
 the issue, but I have quite a few fields to work around.

 8) After setting txtRemoteServerUsername.BackColor =
 Color.TextBackground, I get the problem shown in p3_not_ok. The
 default disabled colour
 has changed, though that may be due to changing the enabled
 backcolour.

 Oddly, if I use this:

 txtRemoteServerUsername.BackColor = Color.Default

 I get the very same problem as shown in p2_not_ok. It would seem
 that something, either gambas (2.17) or GTK has forgotten what
 Color.Default is.

 Has anyone seen this before?

 --
 Let Crystal Reports handle the reporting - Free Crystal Reports
 2008 30-Day trial. Simplify your report design, integration and
 deployment - and focus on
 what you do best, core application coding. Discover what's new with
 Crystal Reports now. http://p.sf.net/sfu/bobj-july
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user



 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008
 30-Day trial. Simplify your report design, integration and
 deployment - and focus on what you do best, core application
 coding. Discover what's new with
 Crystal Reports now. http://p.sf.net/sfu/bobj-july
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user


 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008
 30-Day trial. Simplify your report design, integration and
 deployment - and focus on what you do best, core application coding.
 Discover what's new with
 Crystal Reports now. http://p.sf.net/sfu/bobj-july
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user


 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008
 30-Day
 trial. Simplify your report design, integration and deployment - and
 focus on
 what you do best, core application coding. Discover what's new with
 Crystal Reports now.  http://p.sf.net/sfu/bobj-july
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user 


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list

Re: [Gambas-user] PING Benoit - GUI Programming ProductivityFeature Request

2009-11-26 Thread nospam.nospam.nospam
Fabien Bodard wrote:
 shift F2 to go to the previous position

 F2 to get the function code or help about the function

I know about that feature, which is not bookmarks, nor even a facsimile of 
bookmarks. The go back function is very limited and highly unproductive.

 I don't know were it is documented lol

lol

 2009/11/23  nospam.nospam.nos...@gmail.com:
 Benoit,

 The Gambas programming environment would offer a major productivity
 boost to developers if code Bookmarks were supported in the text
 editor.

 Using my own situation as an example, where I am porting a Windows
 app that has 300+ classes and close to 120,000 lines of code, it is
 next to impossible to find related code when one is making a
 significant change.

 As an example, I might put a break point in the code and use the
 debug backtrace to walk my way back through the code looking for
 code parts that may be affected by my proposed change. Alternatively
 I might put an early break point in and forward trace the code by
 using debug stepping. In both cases I currently have to put manual
 comments in that are coded in a way so that they can be searched or
 I have to write down the references then go looking for them again
 when I'm ready to make the change, and that just takes up an awful
 lot of time that could otherwise be avoided by support for bookmarks.

 Even on a small project, having no support for bookmarks means you
 can't set visual clues in your code, so even when you're trying to
 find something simple you still have to continually scan the code by
 eye to find the exact spot you know was there earlier.

 What would it take to convince you to consider implementing such a
 feature?

 Of course, the book marks would need to be saved so that they are
 available the next time the project is opened in the development
 environment.

 Wine? Women? Song? Money? Or commonsense?

 :)


 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008
 30-Day trial. Simplify your report design, integration and
 deployment - and focus on what you do best, core application coding.
 Discover what's new with
 Crystal Reports now. http://p.sf.net/sfu/bobj-july
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user


 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008
 30-Day trial. Simplify your report design, integration and deployment
 - and focus on what you do best, core application coding. Discover
 what's new with
 Crystal Reports now.  http://p.sf.net/sfu/bobj-july
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user 


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] PING Benoit - GUI Programming ProductivityFeature Request

2009-11-26 Thread Fabien Bodard
so i'll add a todo note :)... i've suggested already this idea there
is more than 2 year.. maybe it can be

2009/11/26  nospam.nospam.nos...@gmail.com:
 Fabien Bodard wrote:
 shift F2 to go to the previous position

 F2 to get the function code or help about the function

 I know about that feature, which is not bookmarks, nor even a facsimile of
 bookmarks. The go back function is very limited and highly unproductive.

 I don't know were it is documented lol

 lol

 2009/11/23  nospam.nospam.nos...@gmail.com:
 Benoit,

 The Gambas programming environment would offer a major productivity
 boost to developers if code Bookmarks were supported in the text
 editor.

 Using my own situation as an example, where I am porting a Windows
 app that has 300+ classes and close to 120,000 lines of code, it is
 next to impossible to find related code when one is making a
 significant change.

 As an example, I might put a break point in the code and use the
 debug backtrace to walk my way back through the code looking for
 code parts that may be affected by my proposed change. Alternatively
 I might put an early break point in and forward trace the code by
 using debug stepping. In both cases I currently have to put manual
 comments in that are coded in a way so that they can be searched or
 I have to write down the references then go looking for them again
 when I'm ready to make the change, and that just takes up an awful
 lot of time that could otherwise be avoided by support for bookmarks.

 Even on a small project, having no support for bookmarks means you
 can't set visual clues in your code, so even when you're trying to
 find something simple you still have to continually scan the code by
 eye to find the exact spot you know was there earlier.

 What would it take to convince you to consider implementing such a
 feature?

 Of course, the book marks would need to be saved so that they are
 available the next time the project is opened in the development
 environment.

 Wine? Women? Song? Money? Or commonsense?

 :)


 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008
 30-Day trial. Simplify your report design, integration and
 deployment - and focus on what you do best, core application coding.
 Discover what's new with
 Crystal Reports now. http://p.sf.net/sfu/bobj-july
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user


 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008
 30-Day trial. Simplify your report design, integration and deployment
 - and focus on what you do best, core application coding. Discover
 what's new with
 Crystal Reports now.  http://p.sf.net/sfu/bobj-july
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user


 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
 trial. Simplify your report design, integration and deployment - and focus on
 what you do best, core application coding. Discover what's new with
 Crystal Reports now.  http://p.sf.net/sfu/bobj-july
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] db retrieve

2009-11-26 Thread Benoît Minisini
 Hi,
 
 How can I retrieve a field returned by a stored procedure?
 
 SP:
 CREATE OR REPLACE FUNCTION common.testbytea_sel(Pid OID) RETURNS TEXT AS $$
 DECLARE
 MyPic   BYTEA;
 MyStringTEXT;
 BEGIN
 SELECT pic INTO MyPic FROM common.testbytea WHERE id = Pid;
 MyString = encode(MyPic, 'base64');
 RETURN MyString;
 END;
 $$ LANGUAGE PLPGSQL STRICT SECURITY DEFINER;
 
 GB:
 sqlQry = SELECT * FROM common.testbytea_sel(  RowNb  );
 resQry = $DBConn.Exec(sqlQry)
 
 PB: what resQry!??? shall I ask for?
 

You can access result fields by index too:

resQry[0], reqQry[1], ...

-- 
Benoît Minisini

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] db retrieve

2009-11-26 Thread Jean-Yves F. Barbier
Benoît Minisini a écrit :
...
 
 You can access result fields by index too:
 
 resQry[0], reqQry[1], ...

Haaa this sounds very good too :)

-- 
Bringing your mate to a convention is like taking a game warden hunting.

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] PING Benoit - GUI ProgrammingProductivityFeature Request

2009-11-26 Thread nospam.nospam.nospam
Fabien Bodard wrote:
 so i'll add a todo note :)... i've suggested already this idea there
 is more than 2 year.. maybe it can be

I think it is such an important productivity improvement that I'm willing to 
invest my time fixing up the Gambas online help text in return :) 


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] It looks like a bug, it walks like a bug...

2009-11-26 Thread nospam.nospam.nospam
Fabien Bodard wrote:
 so send me the complete form ! ... i can't debug it without
 
 send it directly to me

I sent it to the email address in your reply.

gambas.fr @ gmail.com

Thanks for taking the time.

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user