> Using Gambas 2.7, Debian Lenny 32
> --
> 
> Hello!
> 

Hello!

> Main question.

I think you should have been make a thread for each question, because now we 
are lost when reading the answers!

> I want to run my gambas2-application from USB-FLASH-DISK on the
> computers, that do not have gambas2 installed.
> 
> There is a folder on my USB-FLASH-DISK with my application and
> subfolders:
> 1) "bin", includes files "gba2", "gbc2", "gbi2", "gbx2", soft links;
> 2) "lib", includes files "*.so.0.0.0", "*.component", "*.gambas", soft
> links;
> 3) "share", includes "icons/*.png", "info/*" (strange files),
> "mime/*.xml".
> It also includes bash-script for copying all above to system
> folders /usr/bin/, /usr/lib/ and /usr/share.
> 
> Can I run my application with just some command, without copying?
> 

Alas the interpreter relies on the /usr/bin/gbx2(or 3) symbolic link to know 
where Gambas is installed, so you cannot run gambas from a USB disk.

But we can imagine an environmental variable that tells where Gambas is 
installed, without relying on a symbolic link. This will solve the first 
problem.

But now you must have all shared libraries directly or indirectly used by 
Gambas on your USB disk, which may be huge. To know them, you must run "ldd" 
on each shared library of each component used by your project.

And you won't be able to run Gambas executables directly as they find the 
interpreter with "#!/usr/bin/env gbr2", but by changing the PATH variable so 
that the gbr2 symbolic link on the USB disk is found first, it will run!

I will tell you when I make the environmental variable change. His name will 
be something like GB_DIR, or GB_ROOT.

> 
> Another questions:
> 1) May I create proprietary (not open-scource) gambas2-applications and
> components for gambas2?
> 

It depends on the license of each component you use. For example, you can't if 
you use Qt3. For Qt4 I don't know...

> 2) I have the GridView in my program, that displays 4 thousands of rows.
> When it updates the data (4-10 seconds), program do not reflexes.
> There is a string in the documentation:
> "You should use the last <method> if you have thousands of rows to
> display.".
> I'm sorry, I do not understand this at all.
> Could anybody explain this on a simple example?

The sentence means: "You should use the Data event handler if you have 
thousands of rows to display." (I fixed it in the wiki).

Instead of explicitely setting the GridView cell contents, just write event 
handler for the "Data" event, so that data is filled on demand. The Data event 
is raised each time the GridView needs the contents of one cell.

> 
> 3) When I hide persistent Form, how to display it again?
> 

Show() ?

> 4) On my monitore with resolution "1024x768" Forms and widgets on them
> look great. But when I come to my friends with big wide monitors, some
> widgets (Buttons) became bigger while another widgets don't or not in
> such proportions. Why it happens?
> 

By default, form and control size is proportional to the height of the default 
font in pixels. If you don't want this behaviour on a form, just set the 
"(Scaled)" property to FALSE.

> 5) Can I easily convert my big project from the gambas2-project to the
> gambas3-project?
> 

Actually yes, provided you use the "Update all forms" menu entry in the IDE, 
and that you are aware of all the syntax changes.

> 6) My project uses gb.qt3, gb.qt3.ext, gb.kde, gb.kde.html components.
> Can I easily switch them to gb.qt4 and other components, when my favour
> Linux-distr Debian will be updated?

gb.qt --> gb.qt4
gb.qt.ext --> gb.qt4.ext
gb.kde --> disappear
gb.kde.html --> gb.qt4.webkit, but the syntax of the WebBrowser control 
changed.

Beware that gb.qt4 will be renamed in gb.qt, and the old gb.qt will be 
removed.

> 
> 
> Some suggestions:
> 1) In gambas2-IDE I need the "insert mode" of type, that replaces the
> next character.

Indeed. I never use it, so I didn't implement it. I will put that in my TODO 
file.

Regards,

-- 
Benoît Minisini

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

Reply via email to