[Gambas-user] What should executable open with?

2009-09-14 Thread CelticBhoy

Really daft question, but on my Ubuntu system my compiled gambas app is set
to open with wine for some reason. I just want to know what it should be set
to, to enable it to run.
-- 
View this message in context: 
http://www.nabble.com/What-should-executable-open-with--tp25432680p25432680.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


Re: [Gambas-user] What should executable open with?

2009-09-14 Thread Jussi Lahtinen
gbr2 ProgramName.gambas


Jussi


On Mon, Sep 14, 2009 at 12:18, CelticBhoy weldon_g...@hotmail.com wrote:

 Really daft question, but on my Ubuntu system my compiled gambas app is set
 to open with wine for some reason. I just want to know what it should be set
 to, to enable it to run.
 --
 View this message in context: 
 http://www.nabble.com/What-should-executable-open-with--tp25432680p25432680.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] how to start a file?

2009-09-14 Thread Jussi Lahtinen
I'm not sure what you mean, but this code creates file.

Dim hFile as File
Dim sString as String = Something to write.

hFile = Open testfile.txt For Create
Write #hFile, sString
Close #hFile

More from here:
http://gambasdoc.org/help/lang/open
http://gambasdoc.org/help/cat/stream


Or if you mean how to attach files to your project.
For example; right mouse click on Data folder -- New -- Other...
then just choose
what ever you need.


Jussi



On Mon, Sep 14, 2009 at 02:18, Dimitris Anogiatis dos...@gmail.com wrote:
 Hey Robi,

 one of the options is to use the gb.settings library.

 while you're on the IDE press CTRL and P then click on the Componets tab,
 find gb.settings and click on the box on the left side of the selection then
 press Ok

 now in your code you need to use this on top of your code (ie put this on
 the first line of your form or module)

 Public pathSettings AS NEW Settings(User.Home / Application.Name /
 Application.Name  .conf)

 this means that if your user account name is robi and your application's
 name is myApp then the settings
 file will be created in this path

 /home/robi/myApp/myapp.conf

 now to save settings you use pathSettings like this

 pathSettings[Files/LoadFrom]=your path

 this will create a category Files in your settings file and under that it
 will create a LoadFrom item
 where you can store your path's value

 to read that value all you have to do is

 myPath = pathSettings[Files/LoadFrom]

 I hope it helps

 Regards
 Dimitris


 On Sun, Sep 13, 2009 at 4:39 PM, yuhej robert1juh...@gmail.com wrote:


 Hello,

 I just start with Gambas (used VB before) and hopefully I found a place
 where I can get some answers.
 At this moment I wish to add an option of attaching files in my application
 (by saving the path) and to open them later.
 Can someone tell me how can I start a file from Gambas? For instance a
 spreadsheet with open office?

 Thanks for your help in advance.

 Robi
 --
 View this message in context:
 http://www.nabble.com/how-to-start-a-file--tp25416046p25416046.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


--
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] how to start a file?

2009-09-14 Thread Benoît Minisini
 Hi Dimitris,
 
 Thanks for your answer.
 I'm not sure if this is exactly what I want but I'll check. I try to tell
 more concretly my need:
 I wanna make a small project follower application for my colleagues where
 they can follow some actions and attach files. For instance a pdf file with
 the customer spec.
 
 The data, I'll store in a mySQL database where I can put the path as well.
 
 When the user (or an other user) opens the project and clicks on the link,
 how can I tell to Gambas to open the file with the default application (in
 the example with acrobat reader). I just need the same effect as when I
 double click on the icon.
 
 If this is what you described just confirm please.
 
 Thanks,
 Robi
 

I think you need Desktop.Open() in the gb.desktop component.

-- 
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] how to start a file?

2009-09-14 Thread Robert JUHASZ
Hi Dimitris,

Thanks for your answer.
I'm not sure if this is exactly what I want but I'll check. I try to tell
more concretly my need:
I wanna make a small project follower application for my colleagues where
they can follow some actions and attach files. For instance a pdf file with
the customer spec.

The data, I'll store in a mySQL database where I can put the path as well.

When the user (or an other user) opens the project and clicks on the link,
how can I tell to Gambas to open the file with the default application (in
the example with acrobat reader). I just need the same effect as when I
double click on the icon.

If this is what you described just confirm please.

Thanks,
Robi

2009/9/14 Dimitris Anogiatis dos...@gmail.com

 Hey Robi,

 one of the options is to use the gb.settings library.

 while you're on the IDE press CTRL and P then click on the Componets tab,
 find gb.settings and click on the box on the left side of the selection
 then
 press Ok

 now in your code you need to use this on top of your code (ie put this on
 the first line of your form or module)

 Public pathSettings AS NEW Settings(User.Home / Application.Name /
 Application.Name  .conf)

 this means that if your user account name is robi and your application's
 name is myApp then the settings
 file will be created in this path

 /home/robi/myApp/myapp.conf

 now to save settings you use pathSettings like this

 pathSettings[Files/LoadFrom]=your path

 this will create a category Files in your settings file and under that it
 will create a LoadFrom item
 where you can store your path's value

 to read that value all you have to do is

 myPath = pathSettings[Files/LoadFrom]

 I hope it helps

 Regards
 Dimitris


 On Sun, Sep 13, 2009 at 4:39 PM, yuhej robert1juh...@gmail.com wrote:

 
  Hello,
 
  I just start with Gambas (used VB before) and hopefully I found a place
  where I can get some answers.
  At this moment I wish to add an option of attaching files in my
 application
  (by saving the path) and to open them later.
  Can someone tell me how can I start a file from Gambas? For instance a
  spreadsheet with open office?
 
  Thanks for your help in advance.
 
  Robi
  --
  View this message in context:
  http://www.nabble.com/how-to-start-a-file--tp25416046p25416046.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

--
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] how to start a file?

2009-09-14 Thread Dimitris Anogiatis
Hey Robi,

What I described above is a way to store information in a configuration
file. what you need is different

Files are going to be attached where? Where is the pdf going to be stored?
in the same computer where
the project is running? or in a website?

To open a file with the default application, try using the gb.desktop
component and Desktop.Open() as Benoit suggested.

call it like this  Desktop.Open(file:///myPDF.pdf) if it is for a file or
  Desktop.Open(http://myserver.com/myPDF.pdf;) if the
file is on a server somewhere on the internet.


On Mon, Sep 14, 2009 at 8:40 AM, Robert JUHASZ robert1juh...@gmail.comwrote:

 Hi Dimitris,

 Thanks for your answer.
 I'm not sure if this is exactly what I want but I'll check. I try to tell
 more concretly my need:
 I wanna make a small project follower application for my colleagues where
 they can follow some actions and attach files. For instance a pdf file with
 the customer spec.

 The data, I'll store in a mySQL database where I can put the path as well.

 When the user (or an other user) opens the project and clicks on the link,
 how can I tell to Gambas to open the file with the default application (in
 the example with acrobat reader). I just need the same effect as when I
 double click on the icon.

 If this is what you described just confirm please.

 Thanks,
 Robi

 2009/9/14 Dimitris Anogiatis dos...@gmail.com

  Hey Robi,
 
  one of the options is to use the gb.settings library.
 
  while you're on the IDE press CTRL and P then click on the Componets tab,
  find gb.settings and click on the box on the left side of the selection
  then
  press Ok
 
  now in your code you need to use this on top of your code (ie put this on
  the first line of your form or module)
 
  Public pathSettings AS NEW Settings(User.Home / Application.Name /
  Application.Name  .conf)
 
  this means that if your user account name is robi and your application's
  name is myApp then the settings
  file will be created in this path
 
  /home/robi/myApp/myapp.conf
 
  now to save settings you use pathSettings like this
 
  pathSettings[Files/LoadFrom]=your path
 
  this will create a category Files in your settings file and under that it
  will create a LoadFrom item
  where you can store your path's value
 
  to read that value all you have to do is
 
  myPath = pathSettings[Files/LoadFrom]
 
  I hope it helps
 
  Regards
  Dimitris
 
 
  On Sun, Sep 13, 2009 at 4:39 PM, yuhej robert1juh...@gmail.com wrote:
 
  
   Hello,
  
   I just start with Gambas (used VB before) and hopefully I found a place
   where I can get some answers.
   At this moment I wish to add an option of attaching files in my
  application
   (by saving the path) and to open them later.
   Can someone tell me how can I start a file from Gambas? For instance a
   spreadsheet with open office?
  
   Thanks for your help in advance.
  
   Robi
   --
   View this message in context:
   http://www.nabble.com/how-to-start-a-file--tp25416046p25416046.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
 

 --
 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 

Re: [Gambas-user] What should executable open with?

2009-09-14 Thread Dimitris Anogiatis
CelticBhoy,

open a folder that contains a gambas file and right click on it
then click on the Open with tab and press the add button
click on the Use a custom command section and add gbr2

when you do that select the gbr2 in the open with tab and click ok

and next time you doubleclick on a gambas file it will automatically execute
it.

Hope this helps

Regards,
Dimitris


On Mon, Sep 14, 2009 at 8:28 AM, Jussi Lahtinen jussi.lahti...@gmail.comwrote:

 I think your system doesn't have gambas MIME type installed.
 Maybe you should try to install Gambas again.

 Jussi


 On Mon, Sep 14, 2009 at 17:14, Jussi Lahtinen jussi.lahti...@gmail.com
 wrote:
  gbr2 ProgramName.gambas
 
 
  Jussi
 
 
  On Mon, Sep 14, 2009 at 12:18, CelticBhoy weldon_g...@hotmail.com
 wrote:
 
  Really daft question, but on my Ubuntu system my compiled gambas app is
 set
  to open with wine for some reason. I just want to know what it should be
 set
  to, to enable it to run.
  --
  View this message in context:
 http://www.nabble.com/What-should-executable-open-with--tp25432680p25432680.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

--
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] Is it a bug or a feature?

2009-09-14 Thread Benoît Minisini
 On Sunday 13 September 2009 19:16:34 Benoît Minisini wrote:
   Hi Gambas users.
   I have found that in version 2.16 Draw.Ellipse does not
   work as it was in 2.7 (my previous version).
   In 2.16 the parameters which should specify coordinates of the
   Ellipse centre are actually corresponding to  the upper left corner
   of the rectangular area where ellipse is placed.
   I think it must be a bug.
   Aleks
 
  I think you have dreamt that: an ellipse has no center. It has two
  focuses.
 
  Regards,
 
 I would prefer not to give lectures in mathematics in this forum.
 I have another place to do that. However I must draw your attention
 to the fact that exactly between  2 focuses is a center.A center of gravity
  if you remember some physics or a center of inversion if you prefer
 symmetry. consideration.
 

Sorry, my joke didn't work! :-/

I meant that AFAIK, Draw.Ellipse() didn't change at all since the beginning. 
It always took the coordinates of the rectangle surrounding it.

 The problem however is that the figure is placed in a wrong place in a
  drawing area. To see it you can draw an ellipse in a center of a square
  Drawing Area and
 you will see that it is displaced in positive direction in both X an Y.
 To do things simple enough for not a professional in maths make both axes
 of an ellipse equal and get a circle. I hope it will convince you.
 

I don't understand what you want to do exactly: if you want to draw an ellipse 
from is center and its two diameters (for example), assuming that the two 
ellipse axes are horizontal and vertical, you can do:

Draw.Ellipse(XCenter - XDiameter / 2, YCenter - YDiameter / 2, XDiameter, 
YDiameter)

Of course, you will lost one pixel if XDiameter or YDiameter is not even. 

And if you want to rotate the ellipse, you will have to draw it yourself!

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


[Gambas-user] Gambas architecture

2009-09-14 Thread Jussi Lahtinen
Hi!
I'm trying to get better knowledge how Gambas works.
I'm not sure how to progress... any hints? Flow charts, etc.?

I understand role of gbc, gba and how interpreters works generally.
But why there is gbr and gbx?
Is gbr for gambas executables, and gbx for non archived code?


Jussi

--
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] Is it a bug or a feature?

2009-09-14 Thread Aleksandrs Livshics
On Monday 14 September 2009 21:59:06 Benoît Minisini wrote:
 Sorry, my joke didn't work! :-/

 I meant that AFAIK, Draw.Ellipse() didn't change at all since the
 beginning. It always took the coordinates of the rectangle surrounding it.
Benoit,
I cannot believe in that because I have upgraded my version 2 days ago
and my screen shows a different picture running the same code.
Also in the Gambas book of J.W.Rittinghouse (which is not perfect) I can read
about Draw.Ellipse( arg1, arg2, arg3, arg4) where arg1 and arg2 are
coordinates of a center but arg3 and arg4 are to set the horizontal
and vertical width. And this is logical. If one wants to draw several
ellipses changing their size around the same center he/she can change
only arg3 and arg4. But as it is implemented now the arguments would look 
like:

Draw.Ellipse( X_centre-X_width/2, Y_centre-Y_width/2, X_width, Y_width)

Which looks very artificial. For me however important is to know whether
this convention will be kept unchanged in the future and I think it should be
documented as it is not intuitive.

On the other subject... Some time ago I wrote to you about the ValueBox
and scientifick notation for numbers. I have found that even at present
it is possible to show values in this notation (it is automatically used) if 
the value is very-very small or too big. Like 1.0E-30. This makes it even more
illogical that such a number, which can be displayed if supplied in the code,
and so is absolutely legitimate, cannot be entered by the user. This is an 
argument against making another special ValueBoxScientifick but rather
for changing the existing control. Though of course It is always possible
to use a TextBox and to program the necessary checks and transformations.
Regards Aleks

--
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 architecture

2009-09-14 Thread Benoît Minisini
 Hi!
 I'm trying to get better knowledge how Gambas works.
 I'm not sure how to progress... any hints? Flow charts, etc.?
 
 I understand role of gbc, gba and how interpreters works generally.
 But why there is gbr and gbx?
 Is gbr for gambas executables, and gbx for non archived code?
 
 
 Jussi
 

Yes. gbr is just a symbolic link to gbx. It allows to run the interpreter in 
archive mode without having to pass an extra argument. 

This is needed when putting the magic string #!/usr/bin/env gbrX on top of 
the executable file, because you can pass only one argument on this line, 
which is the name of the program when using env.

In other words gbr is an hack to workaround a Unix limitation^W feature.

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] Is it a bug or a feature?

2009-09-14 Thread Benoît Minisini
 On Monday 14 September 2009 21:59:06 Benoît Minisini wrote:
  Sorry, my joke didn't work! :-/
 
  I meant that AFAIK, Draw.Ellipse() didn't change at all since the
  beginning. It always took the coordinates of the rectangle surrounding
  it.
 
 Benoit,
 I cannot believe in that because I have upgraded my version 2 days ago
 and my screen shows a different picture running the same code.

Look in the 2.7 source code, in the main/lib/draw.c file. You will see that 
Draw.Ellipse works the same way as in the current version.

 Also in the Gambas book of J.W.Rittinghouse (which is not perfect) I can
  read about Draw.Ellipse( arg1, arg2, arg3, arg4) where arg1 and arg2 are
  coordinates of a center but arg3 and arg4 are to set the horizontal and
  vertical width. And this is logical. If one wants to draw several ellipses
  changing their size around the same center he/she can change only arg3 and
  arg4. But as it is implemented now the arguments would look like:
 
 Draw.Ellipse( X_centre-X_width/2, Y_centre-Y_width/2, X_width, Y_width)
 
 Which looks very artificial. For me however important is to know whether
 this convention will be kept unchanged in the future and I think it should
  be documented as it is not intuitive.

I cannot really change that, as it is actually the underlying toolkits that 
work that way. And I find it no more or less logical that your view. It is 
just a different logic.

 
 On the other subject... Some time ago I wrote to you about the ValueBox
 and scientifick notation for numbers. I have found that even at present
 it is possible to show values in this notation (it is automatically used)
  if the value is very-very small or too big. Like 1.0E-30. This makes it
  even more illogical that such a number, which can be displayed if supplied
  in the code, and so is absolutely legitimate, cannot be entered by the
  user. This is an argument against making another special
  ValueBoxScientifick but rather for changing the existing control. Though
  of course It is always possible to use a TextBox and to program the
  necessary checks and transformations. 

Yes, ValueBox is a bit of mess and needs some love. But I have other things to 
do at the moment before deeping into it.

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


[Gambas-user] form.normal is badly overridden in class

2009-09-14 Thread abdurrahman ulusoy
     When i port my project  gambas2 to gambas3 error : form.normal is badly 
overridden in class in gambas2 no error. it is working. 



  ___
Yahoo! Türkiye açıldı!  http://yahoo.com.tr
İnternet üzerindeki en iyi içeriği Yahoo! Türkiye sizlere sunuyor!
--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] form.normal is badly overridden in class

2009-09-14 Thread Benoît Minisini
  When i port my project  gambas2 to gambas3 error : form.normal is
  badly overridden in class in gambas2 no error. it is working. 
 

Window.Normal is a constant, you cannot override it anymore in Gambas 3. Fix 
your code to use another symbol name.

Regards,

-- 
Benoît Minisini

--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] how to start a file?

2009-09-14 Thread Robert JUHASZ
Hi,

I mean to let the user to attach a file in run time (I save the link) and
let him run the file. Just I don't know how open that file using the
link (not for my gambas application but just for the user with the default
program of the attached file).

In VBA I used ShellExecute for running programs, files or following links.
I just would need the same.

Thanks,
Robi

2009/9/14 Jussi Lahtinen jussi.lahti...@gmail.com

 I'm not sure what you mean, but this code creates file.

 Dim hFile as File
 Dim sString as String = Something to write.

 hFile = Open testfile.txt For Create
 Write #hFile, sString
 Close #hFile

 More from here:
 http://gambasdoc.org/help/lang/open
 http://gambasdoc.org/help/cat/stream


 Or if you mean how to attach files to your project.
 For example; right mouse click on Data folder -- New -- Other...
 then just choose
 what ever you need.


 Jussi



 On Mon, Sep 14, 2009 at 02:18, Dimitris Anogiatis dos...@gmail.com
 wrote:
  Hey Robi,
 
  one of the options is to use the gb.settings library.
 
  while you're on the IDE press CTRL and P then click on the Componets tab,
  find gb.settings and click on the box on the left side of the selection
 then
  press Ok
 
  now in your code you need to use this on top of your code (ie put this on
  the first line of your form or module)
 
  Public pathSettings AS NEW Settings(User.Home / Application.Name /
  Application.Name  .conf)
 
  this means that if your user account name is robi and your application's
  name is myApp then the settings
  file will be created in this path
 
  /home/robi/myApp/myapp.conf
 
  now to save settings you use pathSettings like this
 
  pathSettings[Files/LoadFrom]=your path
 
  this will create a category Files in your settings file and under that it
  will create a LoadFrom item
  where you can store your path's value
 
  to read that value all you have to do is
 
  myPath = pathSettings[Files/LoadFrom]
 
  I hope it helps
 
  Regards
  Dimitris
 
 
  On Sun, Sep 13, 2009 at 4:39 PM, yuhej robert1juh...@gmail.com wrote:
 
 
  Hello,
 
  I just start with Gambas (used VB before) and hopefully I found a place
  where I can get some answers.
  At this moment I wish to add an option of attaching files in my
 application
  (by saving the path) and to open them later.
  Can someone tell me how can I start a file from Gambas? For instance a
  spreadsheet with open office?
 
  Thanks for your help in advance.
 
  Robi
  --
  View this message in context:
  http://www.nabble.com/how-to-start-a-file--tp25416046p25416046.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
 


 --
 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

--
Come build with us! The BlackBerryreg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9#45;12, 2009. Register now#33;
http://p.sf.net/sfu/devconf
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] how to start a file?

2009-09-14 Thread Robert JUHASZ
I just read the answers in a reverse order... I believe that the
Desktop.Open is exactly what I need. Many thanks!

I'll run the program on a server and I let the user to decide if he saves
only the link or attach the file - in this case I'll copy the referred
file to a dedicated folder on the server and I save the link of this copy.

Regards, Robi

2009/9/14 Dimitris Anogiatis dos...@gmail.com

 Hey Robi,

 What I described above is a way to store information in a configuration
 file. what you need is different

 Files are going to be attached where? Where is the pdf going to be stored?
 in the same computer where
 the project is running? or in a website?

 To open a file with the default application, try using the gb.desktop
 component and Desktop.Open() as Benoit suggested.

 call it like this  Desktop.Open(file:///myPDF.pdf) if it is for a file or
  Desktop.Open(http://myserver.com/myPDF.pdf;) if the
 file is on a server somewhere on the internet.


 On Mon, Sep 14, 2009 at 8:40 AM, Robert JUHASZ robert1juh...@gmail.com
 wrote:

  Hi Dimitris,
 
  Thanks for your answer.
  I'm not sure if this is exactly what I want but I'll check. I try to tell
  more concretly my need:
  I wanna make a small project follower application for my colleagues where
  they can follow some actions and attach files. For instance a pdf file
 with
  the customer spec.
 
  The data, I'll store in a mySQL database where I can put the path as
 well.
 
  When the user (or an other user) opens the project and clicks on the
 link,
  how can I tell to Gambas to open the file with the default application
 (in
  the example with acrobat reader). I just need the same effect as when I
  double click on the icon.
 
  If this is what you described just confirm please.
 
  Thanks,
  Robi
 
  2009/9/14 Dimitris Anogiatis dos...@gmail.com
 
   Hey Robi,
  
   one of the options is to use the gb.settings library.
  
   while you're on the IDE press CTRL and P then click on the Componets
 tab,
   find gb.settings and click on the box on the left side of the selection
   then
   press Ok
  
   now in your code you need to use this on top of your code (ie put this
 on
   the first line of your form or module)
  
   Public pathSettings AS NEW Settings(User.Home / Application.Name /
   Application.Name  .conf)
  
   this means that if your user account name is robi and your
 application's
   name is myApp then the settings
   file will be created in this path
  
   /home/robi/myApp/myapp.conf
  
   now to save settings you use pathSettings like this
  
   pathSettings[Files/LoadFrom]=your path
  
   this will create a category Files in your settings file and under that
 it
   will create a LoadFrom item
   where you can store your path's value
  
   to read that value all you have to do is
  
   myPath = pathSettings[Files/LoadFrom]
  
   I hope it helps
  
   Regards
   Dimitris
  
  
   On Sun, Sep 13, 2009 at 4:39 PM, yuhej robert1juh...@gmail.com
 wrote:
  
   
Hello,
   
I just start with Gambas (used VB before) and hopefully I found a
 place
where I can get some answers.
At this moment I wish to add an option of attaching files in my
   application
(by saving the path) and to open them later.
Can someone tell me how can I start a file from Gambas? For instance
 a
spreadsheet with open office?
   
Thanks for your help in advance.
   
Robi
--
View this message in context:
http://www.nabble.com/how-to-start-a-file--tp25416046p25416046.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
  
 
 
 --
  Let Crystal Reports handle the reporting - Free Crystal Reports 2008
 30-Day
  trial. Simplify your report design, integration and deployment - and
 focus
  on
  what