Dima Malkov ha scritto:
> Using Gambas 2.7, Debian Lenny 32
> --
>
> Hello!
>
> Main question.
> 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?
>   
Copying is a very bad idea - there is the risk of messing up the host 
system.
In theory it is possible to do what you want, at a variable degree of 
difficulty.
The only problem can arise if gambas searches its components using 
absolute paths without querying environment variables. You can refer, in 
your script, to relative paths for executables, and use the environment 
variable LD_LIBRARY_PATH for shared libraries. About /usr/lib and 
/usr/share, I am not sure about what gambas does.
>
> 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 "second method" refers to the Data event, and works like this: you 
don't load all the data in the GridView; instead, you wait for Gridview 
to ask for the data through the Data event. In the event handler, you 
load the requested data. This method if far faster because Gridview asks 
for data only when needed (ie, when they are visible).
You put a Gridview in a form, and setup the Data event. When the form 
shows up, there will be, say, 10 rows visible; Gridview will raise the 
event 10 times, asking for data of each visible row. If you scroll the 
Gridview, as more rows will become visible, more data will be requested 
by mean of Data event.

Sorry for the missing answers - I told you the few things I knew.
Regards,
Doriano


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