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

2012-04-22 Thread Benoit Minisini
I'm not at home but I answer anyway... This magic path already exists. :-)

Just add "../" before the relative path.

Public Sub Open(Path As String)

  Dim fichier As File

  If Left(Path) <> "/" then Path = ".." &/ Path

  ...

2012/4/22 Fabien Bodard 

> 2012/4/22 Adrien Prokopowicz :
> > Hi Benoît,
> >
> > In gb.xml, in XmlReader, i'm loading a file through the Open instruction
> :
> >
> > Public Sub Open(path As String)
> >
> >  Dim fichier As File
> >
> >  fichier = Open path For Input
> >  Me.InputStream = fichier
> >
> > End
> >
> > But when path is a relative path, it refers to the project of the
> component,
> > not to the user's project. So the interpreter doesn't find the file, and
> raises
> > an error.
> >
> > How can I make relative paths referring to the good file ?
> >
>
> a solution will be to add a magic path... in open funtion
> relative:
> project:/file.xml
>
>
> so
>
> open "project:/file.xml" for read
>
> will open the main project file
>
> this tool must work with all file tools such as exist
> --
> Fabien Bodard
>
>
> --
> For Developers, A Lot Can Happen In A Second.
> Boundary is the first to Know...and Tell You.
> Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
> http://p.sf.net/sfu/Boundary-d2dvs2
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>




--
Benoit Minisini
--
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] doesn't work

2008-06-09 Thread Benoit Minisini
On dimanche 08 juin 2008, charlesg wrote:
> Ave Cybernautae!
>
> On Gambas 2.5 on Ubuntu 8.04
>
> When I run the following with components gb, gb.db, gb.qt enabled the
> transfer from txtName to txtDate is fine with either  or .
>
> When I run with gb, gb.db, gb.gtk the transfer does not take place with
>  but only with . And the program starts minimised.
>
> Under Gambas 2.6 on Mandriva 2008 it works fine with either gb.qt or
> gb.gtk.
>
> I have seen other posts in this forum where 'tab key does nothing'. Is this
> a problem? Is there a solution?
>

Upgrading to Gambas 2.6 to get the bug fix?

-- 
Benoit Minisini

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] GridView autoresize

2008-06-10 Thread Benoit Minisini
On lundi 09 juin 2008, David Villalobos Cambronero wrote:
> Hi all,
>
> When I make a double click on the line that divides the column header on a
> GridView the column resize its width to fit the maximun size, that is
> normal, but only happends when the user double clicks the column.
>
> Is there a way to make this "autoresize" automaticly? Like for example
> after fill the gridview?
>
> Best regards
>
> David.
>

Do you use gb.qt or gb.gtk?

-- 
Benoit Minisini

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Missing gb.qt

2008-06-10 Thread Benoit Minisini
On dimanche 08 juin 2008, Mike Brett wrote:
> Development platform = gambas 2.6.0 on Fedora 8
> Target user platform = Debian etch variant (Asus eeePC, based on  XandrOS)
>
> Because I could not find a version of 'debhelper' for Fed8, I have taken
> the route of making a gambas test application as if for Fed8, then using
> 'alien' on the target platform to make the required deb file. As far as
> I can tell this seemed to go without error.
>
> I also installed the gambas2 runtime from the etch repository
> http://apt.linex.org/linex/gambas/stable/ ./
> as detailed on sourceforge.
>
> When I attempt to run my application on the target, I get
> ERROR #27: cannot load component 'gb.qt': cannot find library file
>
> Does this indicate that the runtime package I installed simply did not
> include the file, or does the problem lie in my application file please?
>
> I did a dpkg-deb -c gambas2-runtime_2.5-1~etch1_i386.deb on the cached
> runtime file and could see no mention of the gb.qt component.
>
> I'd much appreciate being pointed in the right direction.
>
> Thank you.
>
> - Mike Brett -
>
>

The runtime is not enough. You need the binary package of each component used 
by your project. If you make a binary package of a Gambas application from 
the IDE, these dependencies wiil be automatically included.

If you want more details about Gambas packaging, look at 
http://gambasdoc.org/help/howto/package

Regards,

-- 
Benoit Minisini

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] "automatic" increasing version nr in project?

2008-06-10 Thread Benoit Minisini
On mardi 10 juin 2008, wig wrote:
> Is there a way to let the last part of the version nr in (Project
> property, General) increase at every compile?
>
> (I use gambas 2.x)
>

No. But the last part of the version number is automatically incremented each 
time you make an executable. Maybe you could use that feature instead?

-- 
Benoit Minisini

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] sqlite

2008-06-10 Thread Benoit Minisini
On mardi 10 juin 2008, Kari Laine wrote:
> Hi,
>
> Now I have had almost all the modules to compile in the Gambas. sqlite2
> is stilling giving me problems. From their web-site there is only
> available version 3.5.9. I compiled this and still gambas is not happy
> because the sqlite.h has changed to sqlite3.h and lisqlite.so has
> changed to libsqlite3.so .
>
> what about the component sqlite2 in Gambas - is it compatible with the
> series three of the sqlite? So I could just hack in the autoconf files?
>
> Best Regards
> Kari Laine
>

The sqlite2 component is independent of the sqlite3 component. The two shared 
libraries they are based on are different: libsqlite.so & libsqlite3.so.

So this is not a problem if you cannot compile the sqlite2 component. This 
component may even be removed in Gambas 3.

Regards,

-- 
Benoit Minisini

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] create code option in form designer

2008-06-10 Thread Benoit Minisini
On mardi 10 juin 2008, Ron wrote:
> Question.
>
> Is there a way to generate the code for an object you designed in the gui.
> If not wouldn't it be a nice feature?
>
> Let say you created a window and dragged a frame in it, and set the size
> etc etc, would be nice if you could see/save the lines of code you would
> need to create the objects without using the gui.
>
> As for a learning experience, and if you want to let your code generate
> similar content at runtime.
>
> I know you can see the dimensions etc already in the form created if you
> peek into the file itself.
>
> Regards,
> Ron.
>

The code is generated entirely from the contents of the *.form file. It is 
just the instanciation of a control inside its container followed by a method 
call (Move or MoveScaled) and property assignments.

The only trick is when you put a "virtual" control inside a form. There is a 
mark that tells the compiler that this is not a true control, and that it 
must not pass the container as argument to the control constructor.

In other words, I don't find that feature really useful, but if you can really 
persuade me to it, I will have to modify the compiler so that it can give you 
the generated code from a form file. :-)

-- 
Benoit Minisini

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Scrolling a columnview list in code

2008-06-10 Thread Benoit Minisini
On mercredi 11 juin 2008, richard terry wrote:
> Is there a way to scroll a columnview in code?
>
> Scenario: I have a form which loads a column view with search results. To
> make it easy to see the whole list, it is maximized to the size of the form
> a the time of selection.
>
> However, once the selection is made (e.g it could be from the bottom of the
> list), I shrink the list to a much smaller size, and show the data entry
> area underneath.
>
> The result is that the selected item 'disappears' from view on the list,
> whearas I'd like to auto-scroll the list so that it appears at the top (ie
> like the user manually clicked on the scroll bar and scrolled it back up).
>
> Hope this is not too ambiguous.
>
> Regards
>
> Richard
>

Try the item EnsureVisible method.

-- 
Benoit Minisini

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Adding a form to a workspace, grideditor

2008-06-11 Thread Benoit Minisini
On mercredi 11 juin 2008, Ron wrote:
> Is this valid?
>
> ---
> PUBLIC SUB tbnDevices_Click()
>
>   DIM doc AS NEW FDevices
>
>   wrkMain.Show
>   wrkMain.Add(doc)
>
> END
> ---
> FDevices is a Form , like the test form from GridEditor
> wrkMain is my Workspace
>
> The problem is, FDevices contains the GridEditor demo code, and it runs
> ok if I open it from a menu item with
> FDevices.Show
>
> But if I open it by adding it to my workspace, it errors with:
> "Can't find a connection called 'devices'"
>
> it refers to the mysql connection Grideditor uses, my connection is
> called 'devices' and like I said it runs when I open it with .Show.
>
> All the code is in Form_Open()
> Am I doing something not allowed?
>
> Gambas 2.6 svn
>
> Regards,
> Ron the 2nd
>

I think the problem is in the GridEditor demo code, but I can't say more.

-- 
Benoit Minisini

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Error compiling from svn for 3.0

2008-06-11 Thread Benoit Minisini
sion list treated as compound
> expression
> CDial_moc.cpp:58: error: expected ‘,’ or ‘;’ before ‘{’ token
> make[5]: *** [CDial_moc.lo] Fehler 1
> make[5]: *** Warte auf noch nicht beendete Prozesse...
> mv -f .deps/CEditor.Tpo .deps/CEditor.Plo
> CEditor_moc.cpp:43: error: ‘const QMetaObject CEditor::staticMetaObject’
> is not a static member of ‘class CEditor’
> CEditor_moc.cpp:43: error: variable ‘const QMetaObject
> CEditor::staticMetaObject’ has initializer but incomplete type
> CEditor_moc.cpp:48: error: prototype for ‘const QMetaObject*
> CEditor::metaObject() const’ does not match any in class ‘CEditor’
> CEditor.h:62: error: candidate is: virtual QMetaObject*
> CEditor::metaObject() const
> CEditor_moc.cpp:48: error: ‘const QMetaObject* CEditor::metaObject()
> const’ cannot be overloaded
> CEditor.h:62: error: with ‘virtual QMetaObject* CEditor::metaObject()
> const’ CEditor_moc.cpp: In member function ‘const QMetaObject*
> CEditor::metaObject() const’:
> CEditor_moc.cpp:50: error: cannot convert ‘QMetaObject* (*)()’ to ‘const
> QMetaObject*’ in return
> CEditor_moc.cpp: At global scope:
> CEditor_moc.cpp:53: error: no ‘void* CEditor::qt_metacast(const char*)’
> member function declared in class ‘CEditor’
> CEditor_moc.cpp: In member function ‘void* CEditor::qt_metacast(const
> char*)’:
> CEditor_moc.cpp:58: error: ‘qt_metacast’ is not a member of ‘QObject’
> CEditor_moc.cpp: At global scope:
> CEditor_moc.cpp:61: error: ‘int CEditor::qt_metacall’ is not a static
> member of ‘class CEditor’
> CEditor_moc.cpp:61: error: incomplete type ‘QMetaObject’ used in nested
> name specifier
> CEditor_moc.cpp:61: error: expected primary-expression before ‘int’
> CEditor_moc.cpp:61: error: expected primary-expression before ‘void’
> CEditor_moc.cpp:61: error: initializer expression list treated as
> compound expression
> CEditor_moc.cpp:62: error: expected ‘,’ or ‘;’ before ‘{’ token
> mv -f .deps/CPrinter.Tpo .deps/CPrinter.Plo
> make[5]: *** [CEditor_moc.lo] Fehler 1
> mv -f .deps/gdocument.Tpo .deps/gdocument.Plo
> gview_moc.cpp:51: error: ‘const QMetaObject GEditor::staticMetaObject’
> is not a static member of ‘class GEditor’
> gview_moc.cpp:51: error: variable ‘const QMetaObject
> GEditor::staticMetaObject’ has initializer but incomplete type
> gview_moc.cpp:56: error: prototype for ‘const QMetaObject*
> GEditor::metaObject() const’ does not match any in class ‘GEditor’
> gview.h:53: error: candidate is: virtual QMetaObject*
> GEditor::metaObject() const
> gview_moc.cpp:56: error: ‘const QMetaObject* GEditor::metaObject()
> const’ cannot be overloaded
> gview.h:53: error: with ‘virtual QMetaObject* GEditor::metaObject() const’
> gview_moc.cpp: In member function ‘const QMetaObject*
> GEditor::metaObject() const’:
> gview_moc.cpp:58: error: cannot convert ‘QMetaObject* (*)()’ to ‘const
> QMetaObject*’ in return
> gview_moc.cpp: At global scope:
> gview_moc.cpp:61: error: no ‘void* GEditor::qt_metacast(const char*)’
> member function declared in class ‘GEditor’
> gview_moc.cpp: In member function ‘void* GEditor::qt_metacast(const
> char*)’: gview_moc.cpp:66: error: ‘qt_metacast’ is not a member of
> ‘QGridView’ gview_moc.cpp: At global scope:
> gview_moc.cpp:69: error: ‘int GEditor::qt_metacall’ is not a static
> member of ‘class GEditor’
> gview_moc.cpp:69: error: incomplete type ‘QMetaObject’ used in nested
> name specifier
> gview_moc.cpp:69: error: expected primary-expression before ‘int’
> gview_moc.cpp:69: error: expected primary-expression before ‘void’
> gview_moc.cpp:69: error: initializer expression list treated as compound
> expression
> gview_moc.cpp:70: error: expected ‘,’ or ‘;’ before ‘{’ token
> make[5]: *** [gview_moc.lo] Fehler 1
> mv -f .deps/gview.Tpo .deps/gview.Plo
> mv -f .deps/CTextEdit.Tpo .deps/CTextEdit.Plo
> make[5]: Leaving directory `/home/tester/gambastest/trunk/gb.qt/src/ext'
> make[4]: *** [all-recursive] Fehler 1
> make[4]: Leaving directory `/home/tester/gambastest/trunk/gb.qt/src'
> make[3]: *** [all-recursive] Fehler 1
> make[3]: Leaving directory `/home/tester/gambastest/trunk/gb.qt'
> make[2]: *** [all] Fehler 2
> make[2]: Leaving directory `/home/tester/gambastest/trunk/gb.qt'
> make[1]: *** [all-recursive] Fehler 1
> make[1]: Leaving directory `/home/tester/gambastest/trunk'
> make: *** [all] Fehler 2
> [EMAIL PROTECTED]:~/gambastest/trunk>
>

You did something wrong I think: try to do a "make clean" before recompiling, 
or a "./reconf" if needed.

Regards,

-- 
Benoit Minisini

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Execute external program?

2008-06-11 Thread Benoit Minisini
On mercredi 11 juin 2008, Stefan Miefert wrote:
> Hello,
>
> i want to start ie. Firefox or better , the actual system webbrowser and
> load a page. How can I do this in gambas?
>

Use the gb.desktop component and its method Desktop.Open() with the URL as 
argument.

Regards,

-- 
Benoit Minisini

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] haw to call the "C or C++" function suma(a, b) from gambas?

2008-06-11 Thread Benoit Minisini
On mardi 10 juin 2008, Adrian Martínez Vargas wrote:
> Hello mail list
>
> If I have a shared library written in C++ that look like this:
>
>
> // suma.cc:
>extern "C"
>{
>float suma (float a, float b)
>  {
> return a+b;
>  }
> } // extern "C"
>
>  haw to call the function suma(a,b) from gambas?
>
>
>
> my best
> Dr. Adrian Martínez Vargas
> Revista Minería y Geología (Editor Principal)
> ISMM, Las Coloradas, s/n
> Moa, Holguín,
> Cuba
> CP. 83329
> http://www.ismm.edu.cu/revistamg/index.htm
>
>

EXTERN suma(A AS Single, B AS Single) AS Single IN "mylibrary.so:X" 
' where X is the version number of the library. 

PRINT suma(1.0, 2.0)

See the wiki documentation for more details.

Regards,

-- 
Benoit Minisini

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature Request: loading gz projects

2008-06-12 Thread Benoit Minisini
On jeudi 12 juin 2008, o.s.p wrote:
> hallo
> this FR borns from the fact that i'm using a usb memory (fat16) to
> strore a my little app that i develop on two machines,
> a pc and a laptop.
> i've strored the project on this as .gz.
> if the ide would be able to open compressed projects i can use it
> directly without the need of decompression or if stored on fat as plain
> text, loosing attributes...
> bye and thanks!
>

It would be very difficult to modify the sources of all gambas programs and 
components to support that.

But I think that you can use 'fuse' to mount your .gz file as a directory. If 
someone that knows 'fuse' well could confirm...

-- 
Benoit Minisini

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature Request: loading gz projects

2008-06-12 Thread Benoit Minisini
On jeudi 12 juin 2008, o.s.p wrote:
> Benoit Minisini ha scritto:
> > On jeudi 12 juin 2008, o.s.p wrote:
> >> hallo
> >> this FR borns from the fact that i'm using a usb memory (fat16) to
> >> strore a my little app that i develop on two machines,
> >> a pc and a laptop.
> >> i've strored the project on this as .gz.
> >> if the ide would be able to open compressed projects i can use it
> >> directly without the need of decompression or if stored on fat as plain
> >> text, loosing attributes...
> >> bye and thanks!
> >
> > It would be very difficult to modify the sources of all gambas programs
> > and components to support that.
> >
> > But I think that you can use 'fuse' to mount your .gz file as a
> > directory. If someone that knows 'fuse' well could confirm...
>
> too difficult...
> the ide is able to create a compressed source archive;
> it would be nice if it would can automatically decompress the sources on
> a linux tmp directory, use it and save everything back to the compressed
> archive.
> i hope to have been more clear!
> salud.
>

I didn't see the problem like that. :-)

But the project would be able to be compressed back to its original 
emplacement only when the project is closed or when quitting the IDE. If the 
IDE crashes, or is aborted by other means, then you might lose your changes 
if you are not aware.

I put your suggestion in the TODO file...

Regards,

-- 
Benoit Minisini

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Introductory Gambas 2.5 tutorial on Ubuntu Hardy

2008-06-13 Thread Benoit Minisini
On vendredi 13 juin 2008, charlesg wrote:
> I have made a short tutorial aimed at users with a little VB experience who
> are new to Linux (i.e like me :confused:)!.
> http://www.kalaharix.wordpress.com http://www.kalaharix.wordpress.com

Nice tutorial!

-- 
Benoit Minisini

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Release of Gambas 2.7

2008-06-13 Thread Benoit Minisini
Hi,

This new release of Gambas is mainly a bugfix release:

* Clicking on a virtual property in the property sheet does not crash anymore 
when the property help is displayed.

* The automatic completion can deal with multiple local variable declarations 
on the same line.

* The stack backtrace list width is saved correctly.

* Gambas projects can be safely compiled as root.

* Core dumps are ignored when making an executable.

* Draw.Circle() has been fixed.

* Focus management, Embedder, and the Window.Reparent() method have been fixed 
in gb.gtk.

* There is a new example that draws barcodes.

* Japanese, Russian and Swedish translations were updated.

Here is the full changelog:

---

[DEVELOPMENT ENVIRONMENT]
* BUG: Clicking on a virtual property in the property sheet does not crash
  anymore when the property help is displayed.
* BUG: The automatic completion can deal with multiple local variable
  declarations on the same line now.
* BUG: The stack backtrace list width is saved correctly now.
* BUG: Do not display the current opened project in the list of recently
  opened projects.
* NEW: Add a popup menu to the console window.
* NEW: Japanese translation updated.
* NEW: Swedish translation updated.
* NEW: Russian translation updated.

[DATABASE MANAGER]
* NEW: Russian translation updated.

[EXAMPLES]
* BUG: Fix the DataReportExample example.
* NEW: New Barcode example made by Charles Guerin and modified by me.

[HELP]
* BUG: Makefile are not installed anymore.

[INTERPRETER]
* BUG: Fix a bug in DateAdd() that made this function corrupt the next
  date to string conversion, which then lead to other bad weird things.

[COMPILER]
* BUG: The owner and group of all files generated by the compiler
  ('.startup', '.info', '.list', object files) are now set to the owner and
  group of the '.project' file. This way, any project can be safely
  compiled as root, without locking it for other users.

[ARCHIVER]
* NEW: Ignore core dump files when making an executable.

[GB.DRAW]
* BUG: Fix Draw.Circle center that was shifted one pixel to the top left.

[GB.FORM]
* BUG: Setting the Root property of the DirView control sets the Current
  property to the same value.
* NEW: Russian translation updated.

[GB.GTK]
* BUG: The focus now follows the Z-order, as in gb.qt.
* BUG: Fix the XEMBED protocol support.
* BUG: Window.Reparent() now works correctly when embedding or unembedding
  a top-level window.

[GB.NET.SMTP]
* BUG: Try to use the fully-qualified domain name when sending the EHLO
  command to the SMTP server. That actually works only if the system domain
  name has been set to the DNS domain name.
* NEW: Do not use MIME parts when it is useless.

[GB.PCRE]
* BUG: Fix crashes due to bad uses of interpreter API.

[GB.QT]
* BUG: Fix the XEMBED protocol support.
* BUG: Adding an item to a ComboBox with a bad index should not print any
  warning message anymore.
* BUG: Fix the drawing of the frame of cached DrawingArea controls.
* NEW: XEMBED support was upgraded to the 1.3 version of QtXEmbed classes.
* NEW: Control.Font now always returned the same Font object, as in gb.gtk.

[GB.QTE]
* BUG: Compilation works again.

[GB.XML]
* BUG: XMLDocument.Open() now can open a file located inside the project.

-------

Regards,

-- 
Benoit Minisini

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] FTPClient

2008-06-13 Thread Benoit Minisini
On mardi 10 juin 2008, Jeff Johnson wrote:
> Does anyone know how to use this control? I am able to get it to login in,
> but putting a file is not working. Also, how am I to to a remote change
> directory.  Any advice would be welcome.
>

Without any news from Daniel Campos, I looked inside the gb.net.curl source 
code:

1) I fixed a bug that may prevent putting a file from working. Can you try to 
use the latest /branches/2.0 version from the svn repository (revision 1413)?

2) Apparently, there is no current working directory. It seems that you have 
to always specify an absolute path.

Regards,

-- 
Benoit Minisini

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Ctrl Z (Und) not working consistantly

2008-06-14 Thread Benoit Minisini
On vendredi 13 juin 2008, richard terry wrote:
> For many of the development versions now, Ctrl Z dosn't consistently work.
>
> I'm using version 1409, but it has been present for a long time.
>
> What stops it are some funny editor behaviours with things like
> automatically putting in quote pairs. One can end up with ""  "" and back
> spacing over the second "" dosn't work, so one has to hightlight them and
> hit delete.
>
> When doing a Ctrl Z sequentially to revert to previous code lines (which I
> find I do often if I've stuffed something up-), when the editor gets to the
> point where the odd syntax behaviour occurred (eg the """ "") then it 
> will. go no futher and 'forgets' the Ctrl Z stack of changes.
>
> Hope that is not too unclear, but I'm certain anyone using the editor alot
> will have noticed this.
>
> Regards
>
> Richard
>

I know! There is a bad interaction between undo/redo and code rewrite that I 
was not able to fix. :-(

-- 
Benoit Minisini

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Release of Gambas 2.7

2008-06-16 Thread Benoit Minisini
On lundi 16 juin 2008, Rolf-Werner Eilert wrote:
> Benoit Minisini schrieb:
> > Hi,
> >
> > This new release of Gambas is mainly a bugfix release:
>
> Thank you Benoit, compiled and runs great here.
>
> One thing I just came about is that when you change the name of a
> control, the name in the displayed version doesn't change at once. This
> can be confusing sometimes.
>
> Hope you know what I mean...
>
>
> Regards
>
> Rolf
>

Yes. But this is not really fully a bug: for example, TextBox and TextArea 
Text property is just initialized with the name of the control. When this 
name change, the property keep its value (because you can change it before 
the name change). This is not necessarily the case for other controls. 

I admit this is a bit confusing... :-)

-- 
Benoit Minisini

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] about compilation of Gambas

2008-06-16 Thread Benoit Minisini
On lundi 16 juin 2008, Dominique SIMONART wrote:
> Hi everybody,
>
> I'm not familiar with Linux, know nothing about svn and use OpenSuse 10.3.
> I actually use Gambas2 V2.0 and want to uptadate to v2.7 from trunk, I
> followed the guide found in the online documentation
> (by the way, the name of the repository is not correct in the doc but I
> managed to retrieve an old message from this list with the right name)

The svn path indicated in the download page of web site are the correct one. 
But for downloading a specific release, you don't have to read the subversion 
repository. I generate tar.gz archives that you can download from 
sourceforge. Links are on the download page too.

> I think the downloading was correct and I get a folder 'gambas' with 3
> sub-folders: 'branches', 'tags' and 'trunk'.
> Here is my first question :
> 1)  The Gambas folder is quite big : 1.4 Go, 289139 files and 72558
> subfolders.  Is this a normal situation?

LOL: you downloaded EVERYTHING! The current development version (3.x), the 
stable version (2.x), all releases (2.0, 2.1, 2.2... 2.7), all specific 
branches (temporary modifications made by specific developers). Thanks to 
you, I know now how much room it takes. :-)

The organization is the following:

'/branches/2.0' is the next 2.x version.
'/trunk' is the current development tree (next 3.0 version)
'/tags' contains each release of Gambas.

>
> With the dependancies,  I did not found : mysql-devel, mysql-shared,
> firebird.
> Next, I started  ./reconf-all and ./configure -C (some minor options
> were discarded here, but nothing important for me)
> finally, I started  make  and it ended with the following messages (see
> the joined text file) so I did not start the 'make install' process)
> 2) What is wrong here?

Hmm. Don't know... Which exact versions of qt are installed on your system? 

-- 
Benoit Minisini

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Future support for Gambas

2008-06-16 Thread Benoit Minisini
On lundi 16 juin 2008, David Villalobos Cambronero wrote:
> Hi Benoit & All,
>
> I am very happy because next Tuesday I will start teaching Gambas in a
> University (to some teacher and IT professionals), last Saturday I went
> there to prepare everything.
>
> Of course they will pay for it, and of course I have planned to make you a
> donation ;-) just let's wait   that they pay.

Let's hope that they pay you *a lot* :-)

>
> But one of the things they want to do is try to make all their systems in
> Gambas, and they made a very interesting question:
>
> What about Gambas in 5, or 10, or 15 years? Will it still exist? Or Benoit
> and his team will say: Let's stop working in Gambas? The main question is,
> will Gambas have support in the future?
>
> I wrote this mail because I'm very happy that in my third world country
> (Costa Rica) we (and I :-D) are starting in Linux and teach Linux to
> others, so I want to share it with all of you.
>
> Benoit, please let me know your comments
>
> Best regards
>
> David
>

Practically, it is simple: I make Gambas and support it mostly for free, 
provided that I have a job that allows me to live, and make theatre - acting 
classes are very expensive! 

First point: if they want support, they must pay, there is no magic! But as it 
is free software, they don't have to necessarily pay the guy (or the guys) 
who write it. The sources are there, anybody can read it, understand it, and 
support it. It is just a matter of skill, time and elbow grease.

Fortunately, I use Gambas in my job for two years, and so my salary is now 
directly connected to Gambas. So for the next years, support and development 
will be there. But of course you can't know the future!

Second point: At the moment, other Gambas developers do it really for free, so 
their contribution is less important than mine. 

If I stop Gambas now, it will die for sure, as a language that any newbie can 
use is something that apparently frighten other advanced developers that 
could replace me. Maybe a mix of Visual Basic traumatism and eliticism?

But you can't know the future too: if I succeed in making Gambas a web 
application development platform for example, as it is planned, it may 
attract other kind of developers.

Third point: You can ask them to replace Gambas by Visual Basic (for example) 
in their question, and look at the answers. They are not necessarily worse 
for Gambas than Visual Basic. :-)

They must understand that the most important is to keep the developers of the 
final application or the documentation within reach. The developer of the 
language itself is less important. How many Visual Basic applications run on 
the earth, with the sources, the documentation and the developers nowhere to 
be found?

My 2 cents.

-- 
Benoit Minisini

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Future support for Gambas

2008-06-16 Thread Benoit Minisini
On lundi 16 juin 2008, Daniel Campos wrote:
> 10 years? Anybody using a PC in 10 years? May be 5 yes...
>

I'm not sure I will be able to develop Gambas on a EEE pc. I need space. :-)

-- 
Benoit Minisini

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] about compilation of Gambas

2008-06-16 Thread Benoit Minisini
On lundi 16 juin 2008, Dominique SIMONART wrote:
> Thanks Benoit,
> sorry for my evident ignorance!
>
> Benoit Minisini a écrit :
> > On lundi 16 juin 2008, Dominique SIMONART wrote:
> >> Hi everybody,
> >>
> >> I'm not familiar with Linux, know nothing about svn and use OpenSuse
> >> 10.3. I actually use Gambas2 V2.0 and want to uptadate to v2.7 from
> >> trunk, I followed the guide found in the online documentation
> >> (by the way, the name of the repository is not correct in the doc but I
> >> managed to retrieve an old message from this list with the right name)
> >
> > The svn path indicated in the download page of web site are the correct
> > one. But for downloading a specific release, you don't have to read the
> > subversion repository. I generate tar.gz archives that you can download
> > from sourceforge. Links are on the download page too.
>
> So, in order to install the last version I just have to type
> $ svn checkout
> https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/branches/2.0
> Right?
>

Yes, but this is not the "last version", but the "next 2.x version".

> >> I think the downloading was correct and I get a folder 'gambas' with 3
> >> sub-folders: 'branches', 'tags' and 'trunk'.
> >> Here is my first question :
> >> 1)  The Gambas folder is quite big : 1.4 Go, 289139 files and 72558
> >> subfolders.  Is this a normal situation?
> >
> > LOL: you downloaded EVERYTHING! The current development version (3.x),
> > the stable version (2.x), all releases (2.0, 2.1, 2.2... 2.7), all
> > specific branches (temporary modifications made by specific developers).
> > Thanks to you, I know now how much room it takes. :-)
> >
> > The organization is the following:
> >
> > '/branches/2.0' is the next 2.x version.
> > '/trunk' is the current development tree (next 3.0 version)
> > '/tags' contains each release of Gambas.
>
> since I downloaded everything  :-)  :
> 1) I started the compilation in the 'trunk' subfolder. Wich version of
> Gambas could I get at the end?

"trunk" is for the development version, i.e. the next "3.0" version.

> 2) what could be safety deleted?

/trunk, any subdirectoru of /tags and /branches.

>
> >> With the dependancies,  I did not found : mysql-devel, mysql-shared,
> >> firebird.
> >> Next, I started  ./reconf-all and ./configure -C (some minor options
> >> were discarded here, but nothing important for me)
> >> finally, I started  make  and it ended with the following messages (see
> >> the joined text file) so I did not start the 'make install' process)
> >> 2) What is wrong here?
> >
> > Hmm. Don't know... Which exact versions of qt are installed on your
> > system?
>
> v3.3.8-76.2
>
>

Which distribution do you use?

-- 
Benoit Minisini

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] qt mobile to celular programs

2008-06-18 Thread Benoit Minisini
On mercredi 18 juin 2008, Wellington de Souza Pinto wrote:
> Hi Benoit!
>
> Have an hope in short future the gambas include in your libs the qt.mobile
> library.
>
> Reguards,
>
> Souza, Wellington


What's that? Isn't it what the gb.qte component uses?

-- 
Benoit Minisini

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Form editor group functionality

2008-06-18 Thread Benoit Minisini
On mardi 17 juin 2008, Ron wrote:
> Hi,
>
> I'm missing a group function inside the form editor, ie you select a
> bunch of controls (main object first, then children) and choose 'group'
> from the
> menu to make them stick together. Is this possible?
>
> Now I cut them from the form, select the frame or whatever I want to
> join them to, and paste them on it again.
> But this way you lose it's position etc.
>
> I know you must work the other way around, ie first define your frame
> etc and then place the buttons, but sometimes you decide to create a
> extra frame to place a part of the buttons on.
>
> Or is it there already, and I just have to RTFM?
>
> Regards,
> Ron the 2nd.
>

Sorry, I don't understand what you want exactly.

-- 
Benoit Minisini

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Release of Gambas 2.7

2008-06-18 Thread Benoit Minisini
On lundi 16 juin 2008, Rolf-Werner Eilert wrote:
> Benoit Minisini schrieb:
> > On lundi 16 juin 2008, Rolf-Werner Eilert wrote:
> >> Benoit Minisini schrieb:
> >>> Hi,
> >>>
> >>> This new release of Gambas is mainly a bugfix release:
> >>
> >> Thank you Benoit, compiled and runs great here.
> >>
> >> One thing I just came about is that when you change the name of a
> >> control, the name in the displayed version doesn't change at once. This
> >> can be confusing sometimes.
> >>
> >> Hope you know what I mean...
> >>
> >>
> >> Regards
> >>
> >> Rolf
> >
> > Yes. But this is not really fully a bug: for example, TextBox and
> > TextArea Text property is just initialized with the name of the control.
> > When this name change, the property keep its value (because you can
> > change it before the name change). This is not necessarily the case for
> > other controls.
> >
> > I admit this is a bit confusing... :-)
>
> Ok, that's true. This morning, I continued to create some dialogs for a
> project of mine, and after spreading ComboBoxes, ValueBoxes, TextBoxes,
> SpinBoxes and Buttons all over the place :-) I began changing their
> names to something more useful than SpinBox1 or ComboBox3.
>
> Of course, ComboBoxes and TextBoxes didn't change their contents, but
> ValueBoxes and SpinBoxes should have - at least they did, after I closed
> the project and re-openened it.
>
> Regards
>
> Rolf
>

Maybe I should always display the name of the control in TextBox and TextArea, 
and not the value of the Text property. After all, initializing TextBox or 
TextArea is not frequent... I did that because VB did that I think. :-)

Regards,

-- 
Benoit Minisini

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas Review

2008-06-18 Thread Benoit Minisini
On mardi 17 juin 2008, you wrote:
> Hello,
>
> I'm writing to inform you that your project, Gambas, has recently been
> reviewed on Penguin
> Sightings<http://www.penguinsightings.org/development/languages/gambas/>.
> Have a look at it!
>
> And feel free to link back to this review on your site, if you want, to
> give your users an outsider's opinion of your program.
>
>
> Thanks,
>
> Mark
> www.penguinsightings.org

Thanks for the review: I will forward your mail to the mailing-list for the 
people who are interested in reading it.

Regards,

-- 
Benoit Minisini

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Datacontrol boxes different height

2008-06-19 Thread Benoit Minisini
On jeudi 19 juin 2008, Ron wrote:
> > Hi,
> >
> > a default textbox is 24 pixels heigh.
> >
> > a default datacontrol box is 128 pixels heigh, if you resize it to 24 px
> > with your mouse, the contents doesn't fit properly,
> > you get a scrollbar when you put some text (one line) in it.
> >
> > you have to manually enter 25 px before it fits correctly.
> >
> >
> > Regards,
> > Ron
>
> Note.
> I forgot to add, this is when the database field name, is type string,
> unlimited.
>

OK, it is fixed in revision #1416.

Note that the default size is not in pixels internally, but in multiple of 
Desktop.Scale.

Regards,

-- 
Benoit Minisini

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Error lauching Gambas2 2.7.0 in Ubuntu 8.04

2008-06-19 Thread Benoit Minisini
On jeudi 19 juin 2008, bruno wrote:
> Hello All.
>
> When i launch Gambas 2.2.7.0
>
> a message Box Appear with this Message:
>
> [11] unknown symbol 'border' in class 'container'.
> sidepanel.border_write.57
>
>
> I use Ubuntu 8.0.4
>
>
> P.S Gambas 2.2.4.1 Work OK.
>
> Someone has an Idea 
>
>

Can you give more details? How you installed Gambas, what is the output of the 
compilation process if you compiled it, and so on... Can't read minds yet!

Note that the version numbers are 2.7.0 and 2.4.1.

Regards,

-- 
Benoit Minisini

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Combobox change event question

2008-06-19 Thread Benoit Minisini
On jeudi 19 juin 2008, Ron wrote:
> Hi,
>
> the change event of a combobox is only triggered if a combobox is not
> set to read-only.
>
> So it detects only the content change of the textbox which is part of
> the combo box.

Yes. The Change event comes from its interal TextBox. It means that the text 
inside the TextBox has changed.

> If you have a  box which is read-only you can only detect some activity
> via the clicked event,

Yes.

> but then you also get an event when they don't select another value of
> course.

I don't understand, what do you mean ?

>
> Is this the way it should be?

Yes.

-- 
Benoit Minisini

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas review on italian magazine "Gnu-Linux Magazine"

2008-06-19 Thread Benoit Minisini
On jeudi 19 juin 2008, Leonardo Miliani wrote:
> I would like to inform all the community that on the copy of July 2008
> of the italian magazine "Gnu-Linux Magazine" there is a reviews of our
> lovely Gambas :-)
>
> You can find the summary of the magazine here:
> http://www.edmaster.it/?p=prodotti&idcat=3&idprod=5&idnum=89
>
> Here is the traslation of the summary of the article:
> SVILUPPO
> * SIAMO TUTTI PROGRAMMATORI
>   Guida all’uso dell’IDE Gambas. Come Visual Basic ma Open Source
>
> DEVELOPMENT
> * WE ARE ALL PROGRAMMERS
>   Guide to the use of Gambas IDE. Like Visual Basic but Open Source

If you can scan the pages of the article, it would be cool. Just to see it, I 
cannot speak Italian!

-- 
Benoit Minisini

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] error calling external function from c library

2008-06-19 Thread Benoit Minisini
On jeudi 19 juin 2008, Marcos Antonio Pandolfo Jr wrote:
> Hi
>
> Im using Centos 5 and Gambas 2.0.0 and when I call  a external function in
> a C library this error occurs and Gambas crash with error #6
>
> EXTERN TEF_inicia(Resultado AS String, Funcao AS String, Valor AS String,
> CuponFiscal AS String, DataFiscal AS String, Horario AS String, Operador AS
> String, ParamAdic AS String) IN "libclisitef" EXEC
> "IniciaFuncaoSiTefInterativoA"
>
> DIM la AS String
> TEF_inicia(la, "00", "{200,00}", "{12345}", "20080618", "10",
> "{MARCOS}", "{}")
> The variable "la" receive the return from function TEF_inicia.
>

You incorrectly use the extern function. Did you read the documentation about 
EXTERN declaration on the wiki? If the first argument of the called function 
is a 'char **', you cannot declare it as String. You must allocate some 
memory and send the pointer to this allocation. I will post an example on the 
wiki page.

Regards,

-- 
Benoit Minisini

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Combobox change event question

2008-06-19 Thread Benoit Minisini
On jeudi 19 juin 2008, Ron wrote:
> Benoit Minisini schreef:
> > On jeudi 19 juin 2008, Ron wrote:
> >> Hi,
> >>
> >> the change event of a combobox is only triggered if a combobox is not
> >> set to read-only.
> >>
> >> So it detects only the content change of the textbox which is part of
> >> the combo box.
> >
> > Yes. The Change event comes from its interal TextBox. It means that the
> > text inside the TextBox has changed.
> >
> >> If you have a  box which is read-only you can only detect some activity
> >> via the clicked event,
> >
> > Yes.
> >
> >> but then you also get an event when they don't select another value of
> >> course.
> >
> > I don't understand, what do you mean ?
>
> Well, if a user clicked the combobox but after looking at the list
> decides to select the entry that was selected already before he clicked it,
> you get a clicked event, but no change occured, thats why I thought the
> changed event was for that, butit isn't as you pointed out.
>
> Well you can store and compare both string values afterwards, as a work
> around.
>
> Ok thanks.
>
> Regards,
> Ron.
>

Do you use gb.qt or gb.gtk ?

-- 
Benoit Minisini

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] error calling external function from c library

2008-06-19 Thread Benoit Minisini
On jeudi 19 juin 2008, Marcos Antonio Pandolfo Jr wrote:
> In gambas 2.7.0 appears Illegal instruction in the call of function
> TEF_inicia:
>
> EXTERN TEF_inicia(Resultado AS Pointer, Funcao AS String, Valor AS String,
> CuponFiscal AS String, DataFiscal AS String, Horario AS String, Operador AS
> String, ParamAdic AS String) IN "libclisitef" EXEC
> "IniciaFuncaoSiTefInterativoA"
>
> PUBLIC SUB Main()
> DIM la AS Pointer
> DIM lala AS String
>
> la = Alloc(4)
> TEF_inicia(la, "00", "{200,00}", "{12345}", "20080618", "10",
> "{MARCOS}", "{}") 'gambas say illegal instruction in this line
> lala = StrPtr(la)
> Free(la)
> PRINT lala
>
> Now is the call correct ?
>
> Thanks so much for the help and sorry my poor english.
>
>

I don't know: you must ensure that the EXTERN declaration exactly matches the 
binary interface of the called function (i.e. its C declaration), and the 
called function may crash too, not Gambas itself.

-- 
Benoit Minisini

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Difficulty interpreting listview documentation

2008-06-20 Thread Benoit Minisini
On jeudi 19 juin 2008, richard terry wrote:
> I'm pretty cretinous at interpreting docs.
>
> e.g:
>
> DIM hListView AS ListView
> DIM hListViewItem AS .ListViewItem
>
> hListViewItem = hListView [ Key AS String ]
>
> Just how does one  use .ListViewItem, because if you copy and past the
> above example into code, the interpretor bauks at the .ListViewItem.
>
> Any help appreciated.
>
> Richard
>

The documentation structure is automatically generated. But it is not clever 
enough to understand that an intermediate virtual class like ".ListViewItem" 
is not visible in code.

So when you see something like that, it means that you must write the code 
this way:

hListView[Key].Property
hListView[Key].Method()

You cannot just put hListView[Key] into a variable. You must use it 
immediately with a property or a method.

The only exception is the WITH instruction. You can do:

WITH hListView[Key]
  ...
END WITH

Because WITH is sort of syntactic sugar.

Regards,

-- 
Benoit Minisini

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Music.Length

2008-06-20 Thread Benoit Minisini
On vendredi 20 juin 2008, Patrik Karlsson wrote:
> Hello, I'm about to port an old Delphiapp to a nicer environment and
> I'm looking at Gambas to do the work, Gambas is realy nice!
>
> One function I used in Delphi was to get the length of the sound
> played in TMediaPlayer, since I would like things done after 80%,
> 90%...
> Music.Pos tells me where I am, but I can not found a function that
> tells me how far I have to go.
>
> Is there a solution to this?

Alas, if I remember correctly, the SDL library has no method to know the 
length of the music! I don't know if it has changed recently, I will check...

-- 
Benoit Minisini

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Music.Length

2008-06-20 Thread Benoit Minisini
On vendredi 20 juin 2008, Benoit Minisini wrote:
> On vendredi 20 juin 2008, Patrik Karlsson wrote:
> > Hello, I'm about to port an old Delphiapp to a nicer environment and
> > I'm looking at Gambas to do the work, Gambas is realy nice!
> >
> > One function I used in Delphi was to get the length of the sound
> > played in TMediaPlayer, since I would like things done after 80%,
> > 90%...
> > Music.Pos tells me where I am, but I can not found a function that
> > tells me how far I have to go.
> >
> > Is there a solution to this?
>
> Alas, if I remember correctly, the SDL library has no method to know the
> length of the music! I don't know if it has changed recently, I will
> check...

Apparently, SDL cannot extract the audio length from some formats, like MP3 
with a variable bitrate stream.

I don't know why apparently the length of the audio is not encoded in the file 
header...

-- 
Benoit Minisini

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Music.Length

2008-06-20 Thread Benoit Minisini
On vendredi 20 juin 2008, Patrik Karlsson wrote:
> 2008/6/20 Benoit Minisini <[EMAIL PROTECTED]>:
> > I don't know why apparently the length of the audio is not encoded in the
> > file header...
>
> Ok, I see, at http://www.mp3-tech.org/programmer/frame_header.html I found
>
> "There is no main file header in an MPEG audio file. An MPEG audio
> file is built up from a succession of smaller parts called frames. A
> frame is a datablock with its own header and audio information.
> In the case of Layer I or Layer II, frames are some totally
> independent items, so you can cut any part of MPEG file and play it
> correctly. The player will then play the music starting to the first
> plain valid frame founded. However, in the case of Layer III, frames
> are not always independant. Due to the possible use of the "byte
> reservoir", wich is a kind of buffer, frames are often dependent of
> each other. In the worst case, 9 frames may be needed before beeing
> able to decode one frame."

Hopefully, there is http://developer.kde.org/~wheeler/taglib.html

Maybe a component could be made from this library to get meta information 
about audio files.

-- 
Benoit Minisini

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] feature request

2008-06-23 Thread Benoit Minisini
On lundi 23 juin 2008, o.s.p wrote:
> hallo!
> i'm writing a litte app so i've seen i would like some changes in the ide:
> -the hierachy browser at a side of the proprierty editor (into a
> sidepanel) so i can easily select and edit object
> -the hierachy browser with the option to view as tree or grouped by
> group (selecting the group i can select all its object and edit them)
> -the grid in the form editor must be configurable and switchable off
>
> thats all for now!
> ;)
>

Can you make some screenshots mockups, so that everybody is sure to understand
what you want?

-- 
Benoit Minisini

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] How to turn off watch window

2008-06-23 Thread Benoit Minisini
On samedi 21 juin 2008, jbskaggs wrote:
> It's been a few months since Ive asked a question.  But this is frustrating
> me and it's probably a noobie question- even though I am much more familiar
> with Gambas.
>
> Somehow I turned on a watch window  I assume that's the name of the window
> I don't know.
>
> A greyed out window with an eyeball in the topright corner appears whenever
> I run the program.
>
> It turned on when I was Find and replacing a text- that text is in the
> title bar of the window.
>
> I don't know how I turned it on and I can't figure out how to turn it off-
> it won't close while the program runs.
>
> Please help!%-|
>
> JB SKaggs

On KDE, the watch windows all have a close button like any other top-level 
windows. Which window manager or desktop do you use?

-- 
Benoit Minisini

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Select a Tabelview entry?

2008-06-23 Thread Benoit Minisini
On lundi 23 juin 2008, Stefan Miefert wrote:
> > Tableview.MoveTo(Row, Column)
> > Tableview.Current.Selected = True
>
> Hello,
>
> I try this
> Tableview.Rows[3].selected = true
>
> Because your example dosent work.
> This  is running fine but how can I get the rownumber?
> Tableview.find(row,column) #
> Didn't work? Or? How can I get the rownumber ?
>

Your question is not very clear. Which rownumber of what do you want? If you 
are inside the Data event, the row number is given by the 'Row' function 
parameter. Otherwise, I don't see what you are talking about.

-- 
Benoit Minisini

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug report

2008-06-23 Thread Benoit Minisini
On lundi 23 juin 2008, Ron wrote:
> Hi,
>
> This will raise a signal 11 and produce a coredump
>
> PUBLIC SUB Form_Open()
>
>   DIM b[2] AS Byte
>
>   b[0] = &H1
>   b[1] = &H2
>
>   txtBox.Text = Str$(b)
>
> END
>
> I know the Str$ is complete bogus, but to dump core on that...
>
> Gambas 2.7.0
> Debian 4.0
>
> Regards,
> Ron.
>

I admit that static array are bogus: Str$(b) syntactically means nothing, and 
you should get an error instead of a crash.

As for Str$() by itself, I don't think it so bogus. I suggest you read 
carefully the documentation of the function.

Regards,

-- 
Benoit Minisini

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] How to package and distribute our software written in Gambas

2008-06-24 Thread Benoit Minisini
On lundi 23 juin 2008, jbskaggs wrote:
> After six months I have a package that is nearly finished.
>
> I understand how to make an installation package via Gambas.
>
> What I need though is a one-click means of installing my data directories
> into the correct area on the user's drive.
>
> IE
>
> user.home/wwmkr.
>
> Using linux's archive manager does not give me that option automatically.
> Maybe there is a nice liux packager out there for the data files etc?
>
> Second I need to know how to get the software in front of the people's eyes
> who need it.  How does one distribute a software efficiently and
> effectively?  Recruit alpha and beta testers etc.
>
>
> JB SKaggs

Hi,

Files and directories that must go to the user directory are never packaged 
directly, because you do not know what are the user directories at packaging 
time.

So they must be copied to the user directory by the program at first 
execution, as all programs do.

At the moment, Gambas IDE can only put the executable in the final package, so 
you have to put your initialization file inside the project and copy them by 
hand. 

This can be a problem if you have a lot of initialization files. In that case, 
I suggest you create an archive of these file, so that you have only one file 
in your project, and that you unpack it in the user directory. You must 
suppose that the 'tar' and 'gzip' are present on the system, but this is 
usually true.

In the future, the Gambas IDE packager my have support for packaging external 
files and/or adding manual dependencies.

Regards,

-- 
Benoit Minisini

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] feature request

2008-06-24 Thread Benoit Minisini
On mardi 24 juin 2008, o.s.p wrote:
> richard terry ha scritto:
> > On Mon, 23 Jun 2008 10:22:52 pm Benoit Minisini wrote:
> >> On lundi 23 juin 2008, o.s.p wrote:
> >>> hallo!
> >>> i'm writing a litte app so i've seen i would like some changes in the
> >>> ide: -the hierachy browser at a side of the proprierty editor (into a
> >>> sidepanel) so i can easily select and edit object
> >>> -the hierachy browser with the option to view as tree or grouped by
> >>> group (selecting the group i can select all its object and edit them)
> >>> -the grid in the form editor must be configurable and switchable off
> >>>
> >>> thats all for now!
> >>> ;)
> >>
> >> Can you make some screenshots mockups, so that everybody is sure to
> >> understand what you want?
> >
> > enclosed is mockup, identical to search in the popup console
>
> something like this ugly image
> there are 2 side panels one for the proprities and one for the
> hierarchy/groups
> in this i've pasted the image of richard on the top and a snapshot of
> the actual hierachy panel only to show the idea;
> of course this is placed in the Groups tab.
>
> i know i'm not very clear in my english
>
> :(

I don't understand what this "Groups" tab is, and what should be shown in it.

-- 
Benoit Minisini

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Setfocus issue

2008-06-25 Thread Benoit Minisini
On mercredi 25 juin 2008, Ron wrote:
> Hi,
>
> I have a window with 2 Textboxes I want to give focus to TextBox2 upon
> loading of the form, if I open the form as a normal window, it's ok.
> Textbox2 gets the focus.
> If I load the form on a workspace, TextBox2.SetFocus doesn't work.
>
> See attached example project
>
> Do I have to reread the docs and shame myself, or should it work the
> same way with workspace and normal window?
>
> Regards,
> Ron the 2nd.

There were some bugs in both gb.qt, gb.gtk and gb.form.mdi. I fixed them in 
revision #1433.

Regards,

-- 
Benoit Minisini

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Problem implementing events _inside_ a class

2008-06-25 Thread Benoit Minisini
On mardi 24 juin 2008, Patrik Karlsson wrote:
> Hi, since I'm new to Gambas it's a constant struggle, but a nice one that
> is. :)
>
> I'm writng a class, CDiceBoard, that INHERITS Panel.
> Everything went ok until it was time to implement some events for my class.
>
> The following code works, but not the way I want it to be.
> ---
> DIM hDiceBoard2 AS CDiceBoard
> hDiceBoard2 = NEW CDiceBoard(ME) AS "myDiceBoard"
>
> PUBLIC SUB myDiceBoard_MouseDown()
>DEBUG
> END
> ---
>
> How can I put the _MouseDown() inside CDiceBoard.class and make it work?
>
> Regards

The first question is: why do you need to catch MouseDown events inside 
CDiceBoard class?

Anyway, events are intended to the final user of an object. If you need to 
intercept them inside the implementation of the object class, you have to use 
Observers. 

An observer is an object that can intercept any event on any object: look the 
documentation in the wiki about the Observer class in the gb component.

Regards,

-- 
Benoit Minisini

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] How to make your gambas project compile using autoconf tools

2008-06-25 Thread Benoit Minisini
On dimanche 22 juin 2008, M0E Lnx wrote:
> How about making make install support the DESTDIR argument?
>

It should not be too complex to implement...

-- 
Benoit Minisini

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Setfocus issue

2008-06-26 Thread Benoit Minisini
On jeudi 26 juin 2008, Ron wrote:
> Benoit Minisini schreef:
> > On mercredi 25 juin 2008, Ron wrote:
> >> Hi,
> >>
> >> I have a window with 2 Textboxes I want to give focus to TextBox2 upon
> >> loading of the form, if I open the form as a normal window, it's ok.
> >> Textbox2 gets the focus.
> >> If I load the form on a workspace, TextBox2.SetFocus doesn't work.
> >>
> >> See attached example project
> >>
> >> Do I have to reread the docs and shame myself, or should it work the
> >> same way with workspace and normal window?
> >>
> >> Regards,
> >> Ron the 2nd.
> >
> > There were some bugs in both gb.qt, gb.gtk and gb.form.mdi. I fixed them
> > in revision #1433.
>
> Hi,
>
> I just upgraded to #1433, but it doesn't seem to work (when you click
> the "not ok" button) in my example project SetFocus-0.0.1.tar.gz in my
> earlier mail.
>
> Regards,
> Ron the 2nd.
>

Yes, because you call hForm.SetFocus() just after adding it to the Workspace, 
so the SetFocus inside the Open event handler is lost!

-- 
Benoit Minisini

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] How to make your gambas project compile using autoconf tools

2008-06-26 Thread Benoit Minisini
On jeudi 26 juin 2008, Laurent Carlier wrote:
> Le Thursday 26 June 2008 02:04:20 Benoit Minisini, vous avez écrit :
> > On dimanche 22 juin 2008, M0E Lnx wrote:
> > > How about making make install support the DESTDIR argument?
> >
> > It should not be too complex to implement...
>
> This one ? http://www.gnu.org/prep/standards/html_node/DESTDIR.html
>

Yeah. It is used in Gambas Makefiles too (look in the component.am file for 
example).

> Doesn't seem to be hard for executable. The question is for component ?
>
> ++

Is there a problem with components?

-- 
Benoit Minisini

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] How to make your gambas project compile using autoconf tools

2008-06-26 Thread Benoit Minisini
On jeudi 26 juin 2008, Laurent Carlier wrote:
> Le Thursday 26 June 2008 11:40:23 Benoit Minisini, vous avez écrit :
> > On jeudi 26 juin 2008, Laurent Carlier wrote:
> > > Le Thursday 26 June 2008 02:04:20 Benoit Minisini, vous avez écrit :
> > > > On dimanche 22 juin 2008, M0E Lnx wrote:
> > > > > How about making make install support the DESTDIR argument?
> > > >
> > > > It should not be too complex to implement...
> > >
> > > This one ? http://www.gnu.org/prep/standards/html_node/DESTDIR.html
> >
> > Yeah. It is used in Gambas Makefiles too (look in the component.am file
> > for example).
>
> Thks, i've check it and i guess i've done it in the  right way \o/
>
> > > Doesn't seem to be hard for executable. The question is for component ?
> > >
> > > ++
> >
> > Is there a problem with components?
>
> If a component is installed in a non common place (with DESTDIR), how a
> gambas executable know how to use it ? (it seem not to be the first use of
> DESTDIR though).

The goal of DESTDIR is not installing in a different place. You use it for 
packaging, or just to see what happens when I install the software.

Regards,

-- 
Benoit Minisini

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Problem using gb.db component

2008-06-27 Thread Benoit Minisini
On jeudi 26 juin 2008, you wrote:
> Hello! I've got a problem using the GB.DB component. This is the code:
>
> PUBLIC SUB Form_Open()
>
>   DIM hConn AS NEW Connection
>   DIM res AS Result
>
>   WITH hConn
> .User = "root"
> .Password = "asdewq"
> .Host = "localhost"
> .Name = "docemania"
> .type = "mysql"
>   END WITH
>
>   hConn.Open
>
>   hConn.Begin
>
>   res = hConn.Create("Produtos")  ** It crashes here with error
> signal #11
>
>   res!Nome = "Doce de Leite"
>   res!Descricao = "Doce de Leite"
>   res!Preco = "2.00"
>   res!PrecoVenda = "5.00"
>   res!Obs = "Nenhuma"
>   res!Data = "2008-05-01"
>   res!Ativo = 1
>   res.Update
>   hConn.Commit
>
> END
>
> Please help me. My Gambas Version is 2.5
>
> Thanks
>
> Marco

The bug has been fixed in revision #1438.

Regards,

-- 
Benoit Minisini

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Font in datechooser

2008-07-04 Thread Benoit Minisini
On dimanche 29 juin 2008, Peter Mathijssen wrote:
> Hi,
>
> When i use datechooser_activate () i want the day i doubleclicked on to get
> bold. Is this possible?
>
> Peter

No, only the current day is displayed in bold. But you can easily take the 
datechooser source code and adapt it to display the date you want in bold.

Regards,

-- 
Benoit Minisini

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Weird Press Enter > formatting error in IDE

2008-07-04 Thread Benoit Minisini
On lundi 30 juin 2008, richard terry wrote:
> Version 1440.
>
> This should be reproducable.
>
> I'd typed in the  function name and started  writing a comment:
>
> Public Function Letter_Validate_Contents() as Boolean
>   'Checks that there is adequate content in a letter
>   'if there is returns a true flag
>   '-
> end
>
> But I usually segregate my comments by putting a line top and bottom, so I
> clicked on the editor after the word Boolean, thing the  action
> would insert a blank line.
>
> What it did was shift the whole of my subroutine contents **After** the 
> 'end' keyword of the subroutine, as per the followin piccies.
>
> If you look at piccie number 1 you can see the cursor flash captured after
> the word Boolean, and in piccie number 2, the result, with the cursor 2
> lines down (I only hit one  action.
>
> Regards
>
>
> Richard

This bevahiour is not weird: you must type the END keyword first (like in your 
mail, unlike in your screenshots), otherwise the IDE will insert it 
automatically.

Regards,

-- 
Benoit Minisini

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] gstlibs on gambas!

2008-07-04 Thread Benoit Minisini
On jeudi 26 juin 2008, Pietro Di Costanzo wrote:
> Hi to all!
> After spending much time understanding the extern and pointers
> functionality under gambas i've made a little app based on the gstreamer
> libraries.
>
> The application can play audio/video files (with the video embedded in the
> application), play-pause-stop them and has seeking functionality too.
> To make all things work i've created some components based on the gstreamer
> library (using the pygst structure) and a little simple gui based on them.
> The code is very rudimentary for now, i've just implemented the functions
> needed to make the things work, but with some time and your help i'm sure
> we can write a complete gstreamer backend for gambas!
> So if someone is interested in developing the class or an app based on this
> class, please let me know!

Great idea, but I cannot open your attachment...

And it is a better idea to use library directly in C/C++. What I do usually is 
writing the basic library access in C/C++, and the high-level component 
interface in Gambas. 

For example, I did that in Gambas 3 gb.desktop component, and I will do that 
in gb.web to optimize the HTML quoting function.

Regards,

-- 
Benoit Minisini

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] problem sig 11 with 2.7

2008-07-04 Thread Benoit Minisini
On jeudi 03 juillet 2008, Steven Lobbezoo wrote:
> Hi,
>
> I just installed gambas 2.7 (as per instructions on the site from the
> repository on suse for suse 11 (freshly installed also).
>
> I got a signal 11 exeption closing a modal form. It's called as this :
>
> PUBLIC SUB photo_DblClick()
> ' Add/replace the image photo
> DIM Mpath AS String
> DIM sData AS String
>
>   IF rsD THEN
> fileselector.Tag = FALSE
> fileselector.ShowModal
> FOR EACH MPath IN MGlobal.F_Ch
>   photo.Picture = CreatePic(MPath, 320, 0)
>   ' and we write it in the database (if there's one)
>   IF rsD.Available THEN
> sData = File.Load(MPath)
> rsD!photo = sData
> rsD.Update
>   END IF
> NEXT
>   END IF
> END
>
>
> Then, in the form i do this :
> PUBLIC SUB cancel_Click()
>   ME.close
> END
>
>
> The signal occors, just at/after the ME.close.
> I donnot get back into the original routine.
> This worked just fine before (2.0).
>
>
> Steven
>

Can you isolate this bug in a small project?

-- 
Benoit Minisini

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] problem sig 11 with 2.7

2008-07-05 Thread Benoit Minisini
On samedi 05 juillet 2008, Steven Lobbezoo wrote:
> Yes, here it is attached.
>
> Steven
>

Can you use the "make source archive" IDE menu entry to make a source package 
of the project, and send it me?

-- 
Benoit Minisini

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] problem sig 11 with 2.7

2008-07-05 Thread Benoit Minisini
On samedi 05 juillet 2008, Steven Lobbezoo wrote:
> I'm affraid not.
> If I do that, gambas just quits immidiatly.
> No errors, no messages, no archive.
>
> Steven
>

?

You should have at least a segmentation fault!

Anyway, I need at least the ".project" file to recreate your project on my 
computer.

Regards,

-- 
Benoit Minisini

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] problem sig 11 with 2.7

2008-07-05 Thread Benoit Minisini
On samedi 05 juillet 2008, Steven Lobbezoo wrote:
> Ok, I just packed the directory with all it's files
> It's attached
>
> Regards,
>

It works without crashing at all there... Strange!

Please run your project in gdb (cd /path/to/my/project ; gdb gbx2 ; run -p) 
and send me the backtrace of the crash (bt command).

Regards,

-- 
Benoit Minisini

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] problem sig 11 with 2.7

2008-07-05 Thread Benoit Minisini
On samedi 05 juillet 2008, Steven Lobbezoo wrote:
> Is this what you want ?
>
> GNU gdb 6.8
> Copyright (C) 2008 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later
> <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.  Type "show
> copying"
> and "show warranty" for details.
> This GDB was configured as "i586-suse-linux"...
> (no debugging symbols found)
> (gdb) run -p
> Starting program: /usr/bin/gbx2 -p
> (no debugging symbols found)
> (no debugging symbols found)
> (no debugging symbols found)
> (no debugging symbols found)
> (no debugging symbols found)
> (no debugging symbols found)
> (no debugging symbols found)
> (no debugging symbols found)
> (no debugging symbols found)
> (no debugging symbols found)
> (no debugging symbols found)
> (no debugging symbols found)
> (no debugging symbols found)
> (no debugging symbols found)
> (no debugging symbols found)
> (no debugging symbols found)
> (no debugging symbols found)
> (no debugging symbols found)
> (no debugging symbols found)
> (no debugging symbols found)
> (no debugging symbols found)
> (no debugging symbols found)
> (no debugging symbols found)
> (no debugging symbols found)
> (no debugging symbols found)
> (no debugging symbols found)
> (no debugging symbols found)
> ---Type  to continue, or q  to quit---
> (no debugging symbols found)
> (no debugging symbols found)
> (no debugging symbols found)
> (no debugging symbols found)
> (no debugging symbols found)
> (no debugging symbols found)
> (no debugging symbols found)
> (no debugging symbols found)
> (no debugging symbols found)
> (no debugging symbols found)
> (no debugging symbols found)
> (no debugging symbols found)
> (no debugging symbols found)
> (no debugging symbols found)
> (no debugging symbols found)
> (no debugging symbols found)
> (no debugging symbols found)
> (no debugging symbols found)
> (no debugging symbols found)
> (no debugging symbols found)
> [Thread debugging using libthread_db enabled]
> Error while reading shared library symbols:
> Cannot find new threads: generic error
> (no debugging symbols found)
> Cannot find new threads: generic error
> (gdb)
> (gdb) bt
> #0  0xb8088ae1 in _dl_debug_state () from /lib/ld-linux.so.2
> #1  0xb808c0f2 in ?? () from /lib/ld-linux.so.2
> #2  0xb8087e26 in ?? () from /lib/ld-linux.so.2
> #3  0xb808ba2c in ?? () from /lib/ld-linux.so.2
> #4  0xb8027c0f in ?? () from /lib/libdl.so.2
> #5  0xb8087e26 in ?? () from /lib/ld-linux.so.2
> #6  0xb80280dc in ?? () from /lib/libdl.so.2
> #7  0xb8027b41 in dlopen () from /lib/libdl.so.2
> #8  0xb78ee657 in g_module_open () from /usr/lib/libgmodule-2.0.so.0
> #9  0xb7bf58f4 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
> #10 0xb7bf5dce in ?? () from /usr/lib/libgtk-x11-2.0.so.0
> #11 0xb7bdcb30 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
> #12 0xb7880055 in g_option_context_parse ()
> from /usr/lib/libglib-2.0.so.0
> #13 0xb7bdc792 in gtk_parse_args () from /usr/lib/libgtk-x11-2.0.so.0
> #14 0xb7bdc814 in gtk_init_check () from /usr/lib/libgtk-x11-2.0.so.0
> #15 0xb7bdc854 in gtk_init () from /usr/lib/libgtk-x11-2.0.so.0
> #16 0xb7e907ed in ?? () from /usr/lib/gambas2/gb.gtk.so
> #17 0xb7e8f343 in ?? () from /usr/lib/gambas2/gb.gtk.so
> #18 0x080621a5 in ?? ()
> #19 0xb7ef35f5 in __libc_start_main () from /lib/libc.so.6
> #20 0x0804ac81 in ?? ()
> (gdb)
>
>
>
> Steven
>

Not really, as you don't have any crash. Another way of finding the problem is 
running your project with valgrind, this way:

$ cd /path/to/my/project
$ valgrind --tool=memcheck --num-callers=50 gbx2 -p

And send me the full output of valgrind.

At the moment, I think there is something weird on your system, or in the way 
Gambas was packaged...

Regards,

-- 
Benoit Minisini

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Path for open file write

2008-07-06 Thread Benoit Minisini
On dimanche 06 juillet 2008, Jeff Johnson wrote:
> I know this has probably been replied to many times.
>
> This works
>hFile = OPEN "wxaprs.ini" FOR INPUT
>
> This works
>hFile = OPEN "./wxaprs.ini" FOR INPUT
>
>
> This fails with access forbidden
> DIM hFile1 AS File
> hFile1 = OPEN "./wxaprs.ini" FOR OUTPUT CREATE
>
> This fails with access forbidden
> DIM hFile1 AS File
> hFile1 = OPEN "wxaprs.ini" FOR OUTPUT CREATE
>

Relatives paths are paths to files located inside the project, and so are 
read-only.

> This works
> DIM hFile1 AS File
> hFile1 = OPEN "/home/jeffjohnson/aprs/wxaprs.ini" FOR OUTPUT CREATE

...But when you use an absolute path, nothing is checked. But then your code 
does not work once the program is compiled into an executable.

>
> I need to either determine the full working path so I can make it
> hFile1 = OPEN $Path & "wxaprs.ini" FOR OUTPUT CREATE
>
> or the correct way to create a file
>
> Any ideas of where I fell off the trolley?
>

You can't create file inside the project at execution time. You need to store 
your file inside the user home directory.

You can use the Settings class, that creates a settings file like in Windows 
in a standard path inside the user home directory.

Or you can create your own file, as an hidden file (beginning with a dot), or 
as a file stored inside an hidden directory.

Now the standard is defined by freedesktop.org: a configuration file is stored 
in ~/.config/. The Settings class stored its own configuration 
file in ~/.config/gambas[3]/.conf

Regards,

-- 
Benoit Minisini

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] problem with bold in gridview

2008-07-06 Thread Benoit Minisini
On vendredi 04 juillet 2008, John Dizaro wrote:
> I am using gambas  2.6 debian GTK
>
> How do i use bold in gridview in a cell
> when i try:
>  DV_t07_carro[LINHA, 10].Font = Font["Bold"]
> or
> DV_t07_carro[LINHA, 10].Font .Bold = True
>
> it does not works
>
> Thanks for help me

I confirm this is a bug in the GTK+ component. I'm working on it, but it will 
take a little time to solve!

-- 
Benoit Minisini

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Path for open file write

2008-07-06 Thread Benoit Minisini
On dimanche 06 juillet 2008, Jeff Johnson wrote:
> My program also recreates html pages as the program runs, so am I correct
> in thinking that I will not be able to do that either. I am converting a
> hamradio program from VB, and will also need to do my logging. So my
> thinking since everything is RO then I am out of luck on it?
>

Only your project is read-only.

If the pages you create are temporary, i.e. they disappear when the program 
ends, then you can use the process temporary directory created by the 
interpreter (Temp$ function).

If the pages you create are persistent, then you must store them inside the 
user home directory, or in another directory specified by him.

If you are doing a program that is run by root or another priviledged user, 
you should store your logs in /var/log.

Regards,

-- 
Benoit Minisini

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] problem with bold in gridview

2008-07-08 Thread Benoit Minisini
On dimanche 06 juillet 2008, Benoit Minisini wrote:
> On vendredi 04 juillet 2008, John Dizaro wrote:
> > I am using gambas  2.6 debian GTK
> >
> > How do i use bold in gridview in a cell
> > when i try:
> >  DV_t07_carro[LINHA, 10].Font = Font["Bold"]
> > or
> > DV_t07_carro[LINHA, 10].Font .Bold = True
> >
> > it does not works
> >
> > Thanks for help me
>
> I confirm this is a bug in the GTK+ component. I'm working on it, but it
> will take a little time to solve!

That bug, and many others related to font support, should be solved in 
revision #1441.

Regards,

-- 
Benoit Minisini

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Workspace - is it possible to disable the close button?

2008-07-08 Thread Benoit Minisini
On dimanche 06 juillet 2008, richard terry wrote:
> I've embedded a form into a wizard, but I don't want the user to be able to
> close the form embeddedon the workspace, so I wondered if it was possible
> to disable the close button.
>
> Regards
>
> Richard
>

No. But why using a workspace then?

-- 
Benoit Minisini

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Disabling back/forward buttons on the wizard

2008-07-08 Thread Benoit Minisini
On dimanche 06 juillet 2008, richard terry wrote:
> Is it possible disable these buttons, so that the user cannot more forward
> until the progammer decides there's enough informaton collected to proceed?
>
> Regards
>
> Richard
>

At the moment no. But you can stop the BeforeChange event when you want to 
prevent the user to go to a specified step.

Regards,

-- 
Benoit Minisini

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] problem sig 11 with 2.7

2008-07-09 Thread Benoit Minisini
On mercredi 09 juillet 2008, Steven Lobbezoo wrote:
> Benoit,
>
> Did this help in any way ?
> Can I supplie other information ?
>
> Thanks,
> Steven
>

Not really, but it confirms that your system is weird: what is that 
google_breakpad and libgnomebreakpad library?

I suggest you compile Gambas from sources and run valgrind again, so that I 
can get the exact location of the first error detected by valgrind.

Regards,

-- 
Benoit Minisini

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] problem sig 11 with 2.7

2008-07-09 Thread Benoit Minisini
On mercredi 09 juillet 2008, Steven Lobbezoo wrote:
> Le mercredi 09 juillet 2008 à 13:40 +0200, Steven Lobbezoo a écrit :
> > Ok, i did that, it compiled with any errors.
> > B.t.w. : I just have a brand new suse 11 installation, in stalled gnome
> > 2.23 and KDE 4.0
> > Nothing special.
>
> Sorry about the typo : Compiled without any errors.

I forgot to ask: do you run on a 64 bits system?

-- 
Benoit Minisini

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Version 2.7 / Problem with OPEN???

2008-07-09 Thread Benoit Minisini
On mercredi 09 juillet 2008, [EMAIL PROTECTED] wrote:
> Hello List!
>
> Like all other people new to this list, I have to say: Gambas rocks!! :-)
> The last six years I was a perl fellow...this changed in may 2008! ;-)
>
> Here is my problem:
> Docu says:
> Unlike other Basic dialects, Gambas will never delete a file when it is
> opened by the WRITE keyword for instance.  ... To avoid this, open the
> file including the CREATE keyword.
>
> When I do this:
> LOGFILE = OPEN FilePath FOR CREATE WRITE
>
> Compiling my console program, gives me the following error message:
> Unexpected WRITE!
>
> When I do this:
> LOGFILE = OPEN FilePath FOR WRITE CREATE
>
> All went fine!!
>
> Is this a bug or a feature :-)
>
> Greetz
> Stevie
>

This is just the syntax. The CREATE keyword must come after the WRITE keyword. 
See the documentation of OPEN on the wiki.

Regards,

-- 
Benoit Minisini

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] READ-Event on #File.in ???

2008-07-09 Thread Benoit Minisini
On mercredi 09 juillet 2008, [EMAIL PROTECTED] wrote:
> Hi everybody!!!
>
> Is it possible to get a READ-Event on #File.in?
>
> Background is: The external process, which is spawning my program, is a
> little bit flaky regarding its timings. It pushes it's data randomly via
> STDOUT into my prog.
> When I use the "WHILE NOT Eof(File.In)"-Example taken from the online help,
> I always get disconnected from the external process, after the WEND...but I
> have to send some data back, too! ;-)
> To bring some light into the dark: At first, i have to read the whole
> message block (terminated by an empty line), after that, I'm able to send
> my onw data back to the process.
>
> If I didn't misunderstand the concepts of READ-Event, it sit's on the
> stream and every time data arrives, it reads the incoming data
> automagically :-)
>
> TIA
> Stevie
>

If you declare a STATIC PUBLIC SUB named Application_Read() in your startup 
class, then you will get what you want: the File.In stream is watched, and 
the Application_Read() function is called as soon as there is something to 
read on the standard input.

Regards,

-- 
Benoit Minisini

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Background/Foreground

2008-07-09 Thread Benoit Minisini
On mercredi 09 juillet 2008, M0E Lnx wrote:
> instead of using the background and foreground, try using the
> Backcolor and Forecolor properties
>
> b.backcolor = color.selected
> b.forecolor = color.black
>
> On Wed, Jul 9, 2008 at 3:57 PM, serge bouc <[EMAIL PROTECTED]> wrote:
> > Hello Gambas,
> >
> > Pardon me for asking again this question :
> >
> >b is a button, with text.
> >   "b.background=my_color"  works fine : b is now surrounded with
> > "my_color" "b.foreground=my_color"   turns text on b to black, whatever
> > my-color.
> >
> > What am I missing ?
> >
> > Thanks for any help.
> > Serge.
> >
> > gambas2/Mandriva 2008/kde 3.5
> >
> >

I use Plastik, and setting the background or the foreground color of a button 
works as expected. So I think it is a problem in the widget style you use. 
Which style do you use?

-- 
Benoit Minisini

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Embedding another application

2008-07-09 Thread Benoit Minisini
On mercredi 09 juillet 2008, M0E Lnx wrote:
> Hi again, Another small annoyance in my endeavours to use the embedder
> object
>
> I am trying to embed an application into my form using the embedder object.
> The embedding works fine (thanks to the bugfixes :=] ) but here is the
> little annoyance
>
> To be more specific, I'm trying to embed gparted into my form.
> As you may or may not know, gparted takes a few seconds to load. This
> is because it scans the system for drives and stuff, so there is a
> delay from the fime the SHELL command is executed and the time the
> application really shows up on the desktop
>
> This is a problem for me (at least now) because my embedder is looking
> for the application, and sometimes it times out
>
> so I need help ... I need a way to make my sub WAIT just enough to let
> gparted load
> I can't use the WAIT argument on the SHELL like, because then it'll
> never get embedded
>
> any ideas how I might accomplish this?
>

Just wait with the WAIT instruction.

Then check that the window of gparted is on the screen with Desktop.Find()

If it is not, wait again.

Check that gparted didn't die with the Process_Kill event.

Regards,

-- 
Benoit Minisini

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Compiling stand alone program question

2008-07-09 Thread Benoit Minisini
On lundi 07 juillet 2008, richard terry wrote:
> My question is is it possible/could it be made possible, to compile one
> form into a stand alone program, without compiling the whole project.
>
> Within my complex program, I've a number of effectively stand-alone
> programs, which, could run independantly of the whole program and would be
> useful to have them do so (eg. my drug browser for product information),
> but they also are very useful running as a form stuck to the main program.
>
> However, as when one compiles gambas, one seems to need to compile the
> 'whole lot'
>
> At the moment, to compile part of my program as stand-alone, I have to
> create a new project and I guess import the files via making a symbolic
> link to the original program.
>
> Perhaps I'm missing something, but any comments/advice appreciated.
>
> Thanks
>
> Richard
>

It's not possible.

But you can run your program with different names (use symbolic links), and 
use Application.Args[0] at program startup to choose to run the full program, 
or only a specific form.

As the interpreter only loads what it needs from the executable, it will not 
make a big difference with having multiple small executables.

Regards,

-- 
Benoit Minisini

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Bug in directory rename in IDE (1441) (oops previous spelling error)

2008-07-09 Thread Benoit Minisini
On mercredi 09 juillet 2008, richard terry wrote:
> On Wed, 9 Jul 2008 09:00:28 am richard terry wrote:
>
> Sorry, mis-spelt the header, so content is ambiguous, so here it is again.
>
> > I had added a new text file to a directory in my project tree, entered
> > some text, then noticed I'd made a spelling mistake in the directory
> > name:
> >
> > I renamed a directory in my project tree.
> >
> > The busy cursor didn't decrement to normal cusor.
> >
> > Went to close gambas - came up with the save files dialog, said ok, but
> > error message popped up as shown.
> >
> > Returning to the directory tree the contents of my new file had
> > disappeared.
> >
> > No way could I quit gambas - had to kill it with the skull and
> > crossbones.
> >
> > Screen dump of error included.
> >
> >
> > Richard

This should be fixed in revision #1442.

Regards,

-- 
Benoit Minisini

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Database example freezes (1440)

2008-07-10 Thread Benoit Minisini
On jeudi 03 juillet 2008, richard terry wrote:
> I was using the database as a part of a wizard to create my database last
> night and noticed that if I type anything other than localhost (eg
> something nonsensicle like 'adlkfjldjaldkjf' as the host, then the example
> freezes up.
>
> Regards
>
> Richard
>

You should have a connection error. Did you have an internet connection up 
when you tried that? Can you show your code?

-- 
Benoit Minisini

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Draw.Begin signal 11

2008-07-10 Thread Benoit Minisini
On jeudi 10 juillet 2008, Ron wrote:
> When writing some code to display an image blob I got across a signal 11
> bug.
>
> The code below crashes on the line
> Draw.Image...
>
> I didn't specify the correct DrawingArea , it should be 'DrawingArea1'
>
> I guess it should report an error than it couldn't find the DrawingArea
> specified instead.
>
> If you need a backtrace I can try to get one.
>
> Regards,
> Ron_2nd
>
> PRIVATE SUB ShowCapture(iId AS Integer)
>
>   DIM pPicture as Picture
>   DIM rResult AS Result
>   DIM sTempFile AS String = Temp() & ".jpg"
>
>   rResult = Main.hDB.Exec("SELECT id,stamp,image FROM capture_camera" &
> iCam & " WHERE id =" & iId)
>   IF rResult.Count = 0 THEN RETURN
>
>   File.Save(sTempFile, rResult!image.Data)
>
>   pPicture = Picture.Load(sTempFile)
>   Draw.Begin(DrawingArea)'< wrong area filled in, should be
> DrawingArea1
>   Draw.Image(pPicture.Image, 0, 0) '< -- SIGNAL #11
> here Draw.End
>
> END
>

Which version of Gambas do you use? Do you use gb.qt or gb.gtk?

-- 
Benoit Minisini

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Draw.Begin signal 11

2008-07-10 Thread Benoit Minisini
On jeudi 10 juillet 2008, Ron wrote:
> Benoit Minisini schreef:
> > On jeudi 10 juillet 2008, Ron wrote:
> >> When writing some code to display an image blob I got across a signal 11
> >> bug.
> >>
> >> The code below crashes on the line
> >> Draw.Image...
> >>
> >> I didn't specify the correct DrawingArea , it should be 'DrawingArea1'
> >>
> >> I guess it should report an error than it couldn't find the DrawingArea
> >> specified instead.
> >>
> >> If you need a backtrace I can try to get one.
> >>
> >> Regards,
> >> Ron_2nd
> >>
> >> PRIVATE SUB ShowCapture(iId AS Integer)
> >>
> >>   DIM pPicture as Picture
> >>   DIM rResult AS Result
> >>   DIM sTempFile AS String = Temp() & ".jpg"
> >>
> >>   rResult = Main.hDB.Exec("SELECT id,stamp,image FROM capture_camera" &
> >> iCam & " WHERE id =" & iId)
> >>   IF rResult.Count = 0 THEN RETURN
> >>
> >>   File.Save(sTempFile, rResult!image.Data)
> >>
> >>   pPicture = Picture.Load(sTempFile)
> >>   Draw.Begin(DrawingArea)'< wrong area filled in, should be
> >> DrawingArea1
> >>   Draw.Image(pPicture.Image, 0, 0) '< -- SIGNAL #11
> >> here Draw.End
> >>
> >> END
> >
> > Which version of Gambas do you use? Do you use gb.qt or gb.gtk?
>
> Benoit,
>
> I use Gambas 2.7 rev 1433, with gb.qt
> Debian 4.0 and 2 liters of coffee ;-)
>
> Regards.
>

OK, fixed in revision #1444.

Regards,

-- 
Benoit Minisini

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] READ-Event on #File.in ???

2008-07-10 Thread Benoit Minisini
On jeudi 10 juillet 2008, Ron wrote:
> [EMAIL PROTECTED] schreef:
> >> If you declare a STATIC PUBLIC SUB named Application_Read() in your
> >> startup class, then you will get what you want: the File.In stream is
> >> watched, and the Application_Read() function is called as soon as there
> >> is something to read on the standard input.
> >
> > Hi Benoit,
> >
> > sorry, I couldn't find any further docu regarding
> > Apllication_READ(). ..nothing via "F1", nothing in the wiki. It's seem's 
> > to be one of the hidden secrets! ;-)
> > How do I get access on the data?? How must Application_Read() should look
> > like???
> > I'm pretty new to this OO-Stuffso I depend on docu or examples!
> > sorry!!
> >
> > Greetz
> > Stevie
>
> Can you get it triggered?
>
> I have tried to get it running too, but my Application_Read() routine
> never gets called, so I gave for that moment.
> I'm not sure how it works either, sorry.
>
> If someone knows, please put your example code here:
> http://www.gambasdoc.org/help/comp/gb/application/.read?en
>
> Regards,
> Ron_2nd
>

It worked when I implemented it, but now there is a bug that I'm currently 
trying to fix. Stay tune...

-- 
Benoit Minisini

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] READ-Event on #File.in ???

2008-07-10 Thread Benoit Minisini
On jeudi 10 juillet 2008, Benoit Minisini wrote:
> On jeudi 10 juillet 2008, Ron wrote:
> > [EMAIL PROTECTED] schreef:
> > >> If you declare a STATIC PUBLIC SUB named Application_Read() in your
> > >> startup class, then you will get what you want: the File.In stream is
> > >> watched, and the Application_Read() function is called as soon as
> > >> there is something to read on the standard input.
> > >
> > > Hi Benoit,
> > >
> > > sorry, I couldn't find any further docu regarding
> > > Apllication_READ(). ..nothing via "F1", nothing in the wiki. It's
> > > seem's to be one of the hidden secrets! ;-)
> > > How do I get access on the data?? How must Application_Read() should
> > > look like???
> > > I'm pretty new to this OO-Stuffso I depend on docu or examples!
> > > sorry!!
> > >
> > > Greetz
> > > Stevie
> >
> > Can you get it triggered?
> >
> > I have tried to get it running too, but my Application_Read() routine
> > never gets called, so I gave for that moment.
> > I'm not sure how it works either, sorry.
> >
> > If someone knows, please put your example code here:
> > http://www.gambasdoc.org/help/comp/gb/application/.read?en
> >
> > Regards,
> > Ron_2nd
>
> It worked when I implemented it, but now there is a bug that I'm currently
> trying to fix. Stay tune...

OK, a stupid bug was fixed in revision #1445.

-- 
Benoit Minisini

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] READ-Event on #File.in ???

2008-07-10 Thread Benoit Minisini
On jeudi 10 juillet 2008, [EMAIL PROTECTED] wrote:
> > If you declare a STATIC PUBLIC SUB named Application_Read() in your
> > startup class, then you will get what you want: the File.In stream is
> > watched, and the Application_Read() function is called as soon as there
> > is something to read on the standard input.
>
> Hi Benoit,
>
> sorry, I couldn't find any further docu regarding
> Apllication_READ(). ..nothing via "F1", nothing in the wiki. It's seem's 
> to be one of the hidden secrets! ;-)

The Application_Read global event handler is documented in the Application 
class documentation page. But you won't get more information than I wrote 
you.

> How do I get access on the data?? How must Application_Read() should look
> like???
> I'm pretty new to this OO-Stuffso I depend on docu or examples!
> sorry!!
>
> Greetz
> Stevie
>

You must understand how watched file objects work. A file is an object of 
class "File" that will raise events when it is watched: the Read event when 
there is something to read on that File object, the Write event when there is 
something to write. 

As the standard input is a special case, I defined the "Application_Read" 
static public method as the global "Read" event handler for the standard 
input, provided that this method is defined in the startup class.

Here is a little example that write on a file the standard input. But you must 
upgrade to revision #1445 to be sure that it will work!

' Gambas module

PRIVATE $hOut AS File

PUBLIC SUB Main()
  $hOut = OPEN "~/output.txt" FOR WRITE CREATE
END

PUBLIC SUB Application_Read()
  DIM sData AS String
  READ sData, -256
  IF Len(sData) = 0 THEN ' Means that the input was closed
CLOSE #File.In
CLOSE #$hOut
  ELSE
WRITE #$hOut, sData, Len(sData)
  ENDIF
END

Regards,

-- 
Benoit Minisini

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Fresh Install Gambas2 Launch Error

2008-07-15 Thread Benoit Minisini
On mardi 15 juillet 2008, Arief Bayu Purwanto wrote:
> Dear all,
>
> I'm downloading the latest SVN[1] rev.1449.
>
> I've compile it and when I want to run it, it give me error #27[2].
>
> Any idea what should I do?
>
> [1] https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/branches/2.0
> [2]ERROR: #27: Cannot load component '/usr/local/lib/gambas2/gb.qt.so':
> /usr/local/lib/gambas2/gb.qt.so: undefined symbol: _ZTV12MyPictureBox

I think your compilation / installation has failed, and you didn't notice. Can 
you send the output of "./configure", "make" and "make install"?

-- 
Benoit Minisini

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] WebBrowser Reload Event

2008-07-15 Thread Benoit Minisini
On vendredi 11 juillet 2008, Arief Bayu Purwanto wrote:
> Dear all,
>
> I would like to know how do I catch a reload event on web browser
> component? I want to show some "loading" status when loading a web and
> remove it once the web is loaded.
>
> TIA.

Did you try the "Change" event?

-- 
Benoit Minisini

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] project transfer

2008-07-15 Thread Benoit Minisini
On mardi 15 juillet 2008, Mike wrote:
> How do I transfer a gambas2 project from my pc to my notebook
>

Just copy the directory of the project.

-- 
Benoit Minisini

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Aligning text in a text area

2008-07-15 Thread Benoit Minisini
On mercredi 09 juillet 2008, M0E Lnx wrote:
> Is there a way to set the align = align.center property to the text
> displayed inside a text area?
>

No, the TextArea has no Alignment property. Why do you need that?

-- 
Benoit Minisini

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Fonts, sizes and colors

2008-07-15 Thread Benoit Minisini
On mardi 15 juillet 2008, Steven Lobbezoo wrote:
> Hi Jacky,
>
> Yes, ... No, i want to change it for the whole app. All forms, menus
> textboxes etc.
> (and to save it for the next time).
>
> Steven
>

For the font, just read and write the Application.Font property. For colors, 
there is no other way than doing it by hand.

Regards,

-- 
Benoit Minisini

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Fonts, sizes and colors

2008-07-15 Thread Benoit Minisini
On mardi 15 juillet 2008, Steven Lobbezoo wrote:
> Hi Jacky,
>
> Yes, ... No, i want to change it for the whole app. All forms, menus
> textboxes etc.
> (and to save it for the next time).
>
> Steven
>

Note that changing the default font and the default colors of applications are 
a bad thing. These settings are decided by the user of the desktop, not the 
application developer! :-)

-- 
Benoit Minisini

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Aligning text in a text area

2008-07-15 Thread Benoit Minisini
On mardi 15 juillet 2008, M0E Lnx wrote:
> Well, I'm using a text area to display a text file. ( a copy of the
> GPL to be exact) and in my form, the text area is just as wide as the
> form itself... leaving of couse about 8 pixels on either side for a
> nice border effect.
>
> But the text shows up as left-aligned... I'd like to make it look
> center-aligned if possible.
>

If you don't need to edit the text, do not use a TextArea, but a TextLabel or 
a read-only TextEdit (if you use gb.qt).

Regards,

-- 
Benoit Minisini

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Draw.Text orientation

2008-07-16 Thread Benoit Minisini
On mercredi 16 juillet 2008, Ron wrote:
> Hi,
>
> Must be simple, but I don't see it yet...
>
> I want to print text in a drawarea vertically instead of horizontally.
> Someone has a pointer as how to do that?
>
> I see no parameter like 'orientation' in Draw.Text which does it for me...
> and have no clue as how to do it myself...
>
> Regards,
> Ron_2nd
>

It is not yet possible, you have to do that by hand: you must draw the text in 
a picture, convert the picture to an image, rotate the image, and draw the 
image into the drawing area.

Regards,

-- 
Benoit Minisini

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] ComboBox with autocomplete?

2008-07-16 Thread Benoit Minisini
On mercredi 16 juillet 2008, Fox wrote:
> Rolf-Werner Eilert wrote:
> > Does the ComboBox have an autocomplete function (partially taking the
> > next best fitting item from the list and proposing it)? If yes, how can
> > I activate it?
>
> I don't know :(
> In the old version (1.9.92 ) it works
> I search also in changelogs but i didn't find nothing about.
>
> Maybe somebody knows how to enable?
>
> thanks in advance
>
>

ComboBox never had any autocomplete function. This must be implemented "by 
hand". If someone does that in a clean way, it would be welcome and put in a 
component!

Regards,

-- 
Benoit Minisini

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Documentation ?

2008-07-16 Thread Benoit Minisini
On mardi 01 juillet 2008, serge bouc wrote:
> Hello Gambas,
>
>Some years ago, I wrote a program using Gambas 1,
> to produce some pictures in hyperbolic geometry. I recently
> tried to restart this program. In between, I had updated my
> system to Mandriva 2008, and even if Gambas 1 is still included
> in the distribution, it just does'nt work (no fonts available...)

No fonts???

>
>So I installed Gambas2, and after "some" work, I more or less
> succeeded to have my program running.
>
>For this I had to convert a lot of things (e.g. the "Array" function
> is no longer a function..., and I had to guess almost by my own by what
> it has been replaced. This is OK anyway, much nicer now). I still have
> a couple of problems remaining, that I could probably solve easily if I
> could
> find Gambas documentation.
>
>   I mean *not* http://gambasdoc.org/help/,
> which may certainly help experts... in some cases. :-(
>
>One of the concrete problems I have is :
>
> - How to change the color of the text in a button ? The assignment
> button.foreground=my_nice_color_kivabien
> used to work in Gambas 1, but its only effect now seems to turn
> the color to black, independently of the value in input.
> I am sure I'm missing something here, but what ?

It depends on the KDE widget theme you are using. I use Plastik, and setting 
the foreground or the background color of a button works as expected. Which 
theme do you use?

-- 
Benoit Minisini

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] ComboBox with autocomplete?

2008-07-16 Thread Benoit Minisini
On mercredi 16 juillet 2008, Fox wrote:
> Benoit Minisini wrote:
> > ComboBox never had any autocomplete function. This must be implemented
> > "by hand". If someone does that in a clean way, it would be welcome and
> > put in a component!
>
> *hum...*
> well... I assure you about that... or maybe I give a wrong mean to
> "autocomplete function"
> I have a combobox filled with customer names. (taked from a mysql query,
> ordered by name)
> I click to open the list
> If I start to write it bring me to correct destination or near it.
>
> In the old version it works.
> In the new no. Seems that it doesn't listen any key event.
> I try to play with "sorted" and "readonly" but withous success.
> I know it because i have my laptop in debian sid and the work server in
> etch.
>
> Christian
>

OK, this is not what I name "autocomplete"!

Do you use gb.qt or gb.gtk? In gb.qt, the combobox didn't change, so I would 
find strange that its behaviour is not the same anymore.

-- 
Benoit Minisini

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] program ended with Signal #6

2008-07-16 Thread Benoit Minisini
On mercredi 16 juillet 2008, Diego Fernández wrote:
> hi,
>
> Yesterday i update Gambas 3, from revision 1440 to revision 1450, and
> now every time i close a running app it ends with a signal #6, the app
> runs just fines, it sends the error ONLY when it is closed.
>
> I am using ubuntu 8.04.  I did the update on 3 diferent pcs, and i get
> the error in the 3 of them.  Theres the error from the console from
> gambas.  If anything else is needed please let me know.
>

Just upgrade to revision 1452. :-)

-- 
Benoit Minisini

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Background/Foreground (Benoit Minisini)

2008-07-16 Thread Benoit Minisini
On mercredi 16 juillet 2008, serge bouc wrote:
> >> > On Wed, Jul 9, 2008 at 3:57 PM, serge bouc <[EMAIL PROTECTED]> wrote:
> >>> > > Hello Gambas,
> >>> > >
> >>> > > Pardon me for asking again this question :
> >>> > >
> >>> > >b is a button, with text.
> >>> > >   "b.background=my_color"  works fine : b is now surrounded with
> >>> > > "my_color" "b.foreground=my_color"   turns text on b to black,
> >>> > > whatever my-color.
> >>> > >
> >>> > > What am I missing ?
> >>> > >
> >>> > > Thanks for any help.
> >>> > > Serge.
> >>> > >
> >>> > > gambas2/Mandriva 2008/kde 3.5
> >
> > I use Plastik, and setting the background or the foreground color of a
> > button works as expected. So I think it is a problem in the widget style
> > you use. Which style do you use?
> >
> > -- Benoit Minisini
>
> I am using Mandriva widget style. I have tried Plastik, and the problem
> is exactly the same : no way to change the color of text in a button,
> except to black.
> This is strange, since at startup, the text color is as specified in the
> form editor.
> But whenever I try to change it by
>
> "b.background=my_color"
>
> the color turns to black.
>
> Could this be a conversion problem, since my program (class+form) was
> initially written for Gambas 1, and then converted to Gambas 2 ? I made no
> changes in the form, since it works, apart from this problem.
>
> --
> Serge Bouc
>

Can you show me the detailed source code?

-- 
Benoit Minisini

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Using TrayIcon from gb.qt not shown in Gnome environment

2008-07-16 Thread Benoit Minisini
On mardi 15 juillet 2008, Arief Bayu Purwanto wrote:
> Hello,
>
> On 7/11/08, Arief Bayu Purwanto <[EMAIL PROTECTED]> wrote:
> > I'll update this post once I'm using the latest revision.
>
> As a follow up, I did see an icon in system tray, but it's too small to be
> usable.
> I attach the picture.

Yes! I finally succeeded in fixing this problem, after reading the source code 
of KDE system tray, GNOME system tray and GTK+ XEmbed implementation, until I 
found what GTK+ did that KDE/Qt didn't.

Unfortunately, sourceforge subversion server seems to be broken at the moment, 
my commits fail. So you have to be patient...

Regards,

-- 
Benoit Minisini

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Using TrayIcon from gb.qt not shown in Gnome environment

2008-07-16 Thread Benoit Minisini
On jeudi 17 juillet 2008, Benoit Minisini wrote:
> On mardi 15 juillet 2008, Arief Bayu Purwanto wrote:
> > Hello,
> >
> > On 7/11/08, Arief Bayu Purwanto <[EMAIL PROTECTED]> wrote:
> > > I'll update this post once I'm using the latest revision.
> >
> > As a follow up, I did see an icon in system tray, but it's too small to
> > be usable.
> > I attach the picture.
>
> Yes! I finally succeeded in fixing this problem, after reading the source
> code of KDE system tray, GNOME system tray and GTK+ XEmbed implementation,
> until I found what GTK+ did that KDE/Qt didn't.
>
> Unfortunately, sourceforge subversion server seems to be broken at the
> moment, my commits fail. So you have to be patient...
>
> Regards,

OK, this was fixed in revision #1454.

-- 
Benoit Minisini

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Sendmail tool and Gambas2

2008-07-16 Thread Benoit Minisini
On mardi 15 juillet 2008, Nx GT-R BOY wrote:
> Hi, As part of my development in Gambas2 I am making a feature in my
> software that remains people a to-do list daily via email.
>
> So far I am working with sendmail, but If you know a better alternative
> would be appreciated.
>
> At shell I do:
> sendmail [EMAIL PROTECTED]
> From: [EMAIL PROTECTED]
> Subject: To-do list remind
> Remember to pickup some things at 2:00pm
> CTRL+D
>
> I cant find a way to use sendmail in a single line, I think must be all in
> different lines, so, How do I execute this from gambas (different lines?)?,
> Do you think that write in real time a script and then call it from gambas
> could be the best (optimum?) option?
>
> And the most important thing, How do I send a CTRL+D to the shell, without
> it, the mail wont be send.
>
> Thanks in advance.

First, run sendmail from your program:

hProcess = SHELL "sendmail" FOR INPUT OUTPUT

Then, to send something to sendmail, just PRINT to it:

PRINT #hProcess, "First Line"
PRINT #hProcess, "Second Line"
...

To send what is usually named "CTRL+D", just close the stream.

CLOSE #hProcess

Regards,

-- 
Benoit Minisini

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature Request

2008-07-17 Thread Benoit Minisini
On lundi 14 juillet 2008, Arief Bayu Purwanto wrote:
> Dear all,
>
> I have a small feature request for gambas 3 development. Benoit, Can you
> add an information about current revision installed on About page on gambas
> IDE. Something similar to geany's about page.
> I attach it for reference.

Done in revision 1455/1456.

Regards,

-- 
Benoit Minisini

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Rename of a datacontrol field not 100% correct

2008-07-17 Thread Benoit Minisini
On jeudi 17 juillet 2008, Ron wrote:
> Bug report:
>
> If you rename a datacontrol field (change the name from lets say
> DataControl1 to DataControl11)
> The nametext inside the control field in editor mode doesn't change,
> which is quite confusing later.
>
> Gambas 2.7 rev 1445
> gb.qt
>
> Regards,
> Ron_2nd
>

It should be fixed in revision 1460.

Regards,

-- 
Benoit Minisini

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Datacontrol boxes different height

2008-07-17 Thread Benoit Minisini
On jeudi 17 juillet 2008, Ron wrote:
> Benoit Minisini schreef:
> > On jeudi 19 juin 2008, Ron wrote:
> >>> Hi,
> >>>
> >>> a default textbox is 24 pixels heigh.
> >>>
> >>> a default datacontrol box is 128 pixels heigh, if you resize it to 24
> >>> px with your mouse, the contents doesn't fit properly,
> >>> you get a scrollbar when you put some text (one line) in it.
> >>>
> >>> you have to manually enter 25 px before it fits correctly.
> >>>
> >>>
> >>> Regards,
> >>> Ron
> >>
> >> Note.
> >> I forgot to add, this is when the database field name, is type string,
> >> unlimited.
> >
> > OK, it is fixed in revision #1416.
> >
> > Note that the default size is not in pixels internally, but in multiple
> > of Desktop.Scale.
> >
> > Regards,
>
> Benoit,
>
> It seems this annoyance/bug popped up again in rev #1445 (or a rev close
> to it), or maybe was only partially fixed.
>
> A default height datacontrol field (24), linked to a _mysql text
> unlimited length field_ gives a scrollbar on the right.
> (even with no text in the field)
> You have to make it non default height 25 to let this scrollbar dissapear.
>
> Gambas 2.7, gb.qt.
>
> Regards,
> Ron_2nd
>

Unlimited text fields are edited with a TextArea widget with a vertical 
scrollbar. The scrollbar is displayed because a one line TextArea is higher 
than a one line TextBox in QT. So this is not really a bug...

Regards,

-- 
Benoit Minisini

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature Request

2008-07-17 Thread Benoit Minisini
On jeudi 17 juillet 2008, Ron wrote:
> Benoit Minisini schreef:
> > On lundi 14 juillet 2008, Arief Bayu Purwanto wrote:
> >> Dear all,
> >>
> >> I have a small feature request for gambas 3 development. Benoit, Can you
> >> add an information about current revision installed on About page on
> >> gambas IDE. Something similar to geany's about page.
> >> I attach it for reference.
> >
> > Done in revision 1455/1456.
> >
> > Regards,
>
> A suggestion, maybe also handy to store the revision in
> Application.Revision so it can be displayed in logfiles and other
> (debug) output.
>
> My 2ct's..
>
> Regards,
> Ron_2nd
>

There is actually no concept of application revision. Each file has its own 
revision.

The revision displayed in the about box is the revision of the Gambas IDE 
project directory. This revision is more or less accurate, it depends on the 
state of your local repository.

Regards,

-- 
Benoit Minisini

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] balloon help needed (maybe a bug?)

2008-07-17 Thread Benoit Minisini
On lundi 14 juillet 2008, M0E Lnx wrote:
> Almost forgot to mention...
>
> Using Gambas2-2.7
> gb.gtk component used in my application
>
> gb.qt has been disabled.
>
> On 7/14/08, M0E Lnx <[EMAIL PROTECTED]> wrote:
> > I'm trying to add a balloon message to my application, but I'm having
> >  a little problem
> >
> >  The balloon seems flash before my eyes for just a split second and then
> > vanishes
> >
> >  I've tried setting the Balloon.Delay property to an extemely high
> >  value (like 50) and it makes no difference at all
> >
> >  Could this be a bug? or am I doing something wrong? missing something?
> >
> >  Thanks

That is a bug for sure... Can you provide me some code of what you are doing? 
A full project being the better as usual.

Regards,

-- 
Benoit Minisini

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


  1   2   3   4   5   6   7   >