set of questions

View: New views
20 Messages — Rating Filter:   Alert me  
< Prev | 1 - 2 | Next >

set of questions

by Dima Malkov :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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?


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

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?

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

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?

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

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?


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

P.S.
Thanks to Benoît Minisini for help (Problem with UTF-8 in
Gambas-connection to MySQL). The "--default-character-set" really was
"Latin1".


Regards,

--
Dima Malkov (Russia)


------------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/gambas-user

Re: set of questions

by charlesg :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hopefully this answers question 2. It is a distillation of the database example that comes with Gambas:

You just need a gridview, a button called btnRun and a preferably large database with lots of columns so that you can scroll around with ease

'========================================================
' Gambas class file
PUBLIC $hConnLocl AS NEW Connection
PUBLIC $resData AS Result
'--------------------------------------------------------
PUBLIC SUB Form_Open()
  DIM sql AS String
 
  'open the database
  WITH $hConnLocl
    .type = "mysql"
    .host = "localhost"
    .Name = "stock"
    .login = "charles"
    .password="dog"
  END WITH
  $hConnLocl.Open()
 
  'create a result
  sql = "SELECT * FROM grnLine"
  $resData = $hConnLocl.Exec(sql)
  END
'---------------------------------------------------------
PUBLIC SUB btnRun_Click()
  DIM hForm AS FRequest
  DIM hField AS ResultField
  DIM iInd AS Integer

  GridView1.Rows.count = 0
  'set the required number of columns
  GridView1.Columns.count = $resData.Fields.Count
 
  'define the column headers and width
  FOR EACH hField IN $resData.Fields
    WITH hField
      GridView1.Columns[iInd].text = .Name
      GridView1.Columns[iInd].width = 60
    END WITH
    INC iInd
  NEXT
 
  'create the empty rows. Each empty and visible cell created calls GridView1_data
  GridView1.Rows.Count = $resData.Count
END
'---------------------------------------------------------
PUBLIC SUB GridView1_Data(Row AS Integer, Column AS Integer)
  'move to the required result row
  $resData.MoveTo(row)
  'set the data for the cell in the GridView from the column in the selected row of the result
  GridView1.Data.text = Str($resData[GridView1.Columns[column].text])
  'lets you see how _data is being called as you scroll around the GridView
  PRINT row & ":" & column & ":" & Str($resData[GridView1.Columns[column].text])
END
'----------------------------------------------------------


rgds

Re: set of questions

by Doriano Blengino :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...
https://lists.sourceforge.net/lists/listinfo/gambas-user

Re: set of questions

by degreane :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Doriano...

do you have a sample src package of what you have just explained ?
can u share a simple running example with source files and forms ?

much regards

On Wed, Oct 21, 2009 at 11:11 AM, Doriano Blengino <
doriano.blengino@...> wrote:

> 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@...
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



--
============================
        Faysal Banna
Meteorological Services
Rafic Harriri International Airport
     Beirut - Lebanon
   Mob: +961-3-258043
=============================
------------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/gambas-user

Re: set of questions

by Doriano Blengino :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Faysal Banna ha scritto:
> Doriano...
>
> do you have a sample src package of what you have just explained ?
> can u share a simple running example with source files and forms ?
>  
About what? I suppose about running a gambas app out of a usb stick?
Never tried but, if this is your request, I can try.

I played a bit, but it does not work. The path "lib/gambasX" seems to be
hardcoded in the gbx executable.
I discovered that there are two environment variables, LD_PRELOAD and
GAMBAS_PRELOAD. The first is well known - it forces to preload the
indicated libraries, and it works; but then gambas crashes. The second
one does not seem to do anything; I peeked in the sources, but I didn't
understand what's the trick - copy GAMBAS_PRELOAD to LD_PRELOAD, then
copy it back again and unset the other...

May be I am missing something, but for what I have seen, there is no way
to load the required library from a path different than the one compiled-in.

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@...
https://lists.sourceforge.net/lists/listinfo/gambas-user

Re: set of questions

by degreane :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

no no sir
i was asking about the Grid View u were explaining to Dima ...
besides i care to know a bit more about in place editing of cells inside the
Grid View
just click on the cell change the value..


much regards

On Wed, Oct 21, 2009 at 2:38 PM, Doriano Blengino <
doriano.blengino@...> wrote:

> Faysal Banna ha scritto:
> > Doriano...
> >
> > do you have a sample src package of what you have just explained ?
> > can u share a simple running example with source files and forms ?
> >
> About what? I suppose about running a gambas app out of a usb stick?
> Never tried but, if this is your request, I can try.
>
> I played a bit, but it does not work. The path "lib/gambasX" seems to be
> hardcoded in the gbx executable.
> I discovered that there are two environment variables, LD_PRELOAD and
> GAMBAS_PRELOAD. The first is well known - it forces to preload the
> indicated libraries, and it works; but then gambas crashes. The second
> one does not seem to do anything; I peeked in the sources, but I didn't
> understand what's the trick - copy GAMBAS_PRELOAD to LD_PRELOAD, then
> copy it back again and unset the other...
>
> May be I am missing something, but for what I have seen, there is no way
> to load the required library from a path different than the one
> compiled-in.
>
> 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@...
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



--
============================
        Faysal Banna
Meteorological Services
Rafic Harriri International Airport
     Beirut - Lebanon
   Mob: +961-3-258043
=============================
------------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/gambas-user

Re: set of questions

by Doriano Blengino :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Faysal Banna ha scritto:
> no no sir
> i was asking about the Grid View u were explaining to Dima ...
> besides i care to know a bit more about in place editing of cells inside the
> Grid View
> just click on the cell change the value..
>  
Uhm...

I never used a Gridview in that way, I simply worked out with my words
something that already is in the docs (in a very unixish fashion). I
tried to explain better what the idea behind Data event is.

But after that I have seen, in this thread, a complete example: I cut
and paste:

> Hopefully this answers question 2. It is a distillation of the database
> example that comes with Gambas:
>
> You just need a gridview, a button called btnRun and a preferably large
> database with lots of columns so that you can scroll around with ease
>
> '========================================================
> ' Gambas class file
> PUBLIC $hConnLocl AS NEW Connection
> PUBLIC $resData AS Result
> '--------------------------------------------------------
> PUBLIC SUB Form_Open()
>   DIM sql AS String
>  
>   'open the database
>   WITH $hConnLocl
>     .type = "mysql"
>     .host = "localhost"
>     .Name = "stock"
>     .login = "charles"
>     .password="dog"
>   END WITH
>   $hConnLocl.Open()
>  
>   'create a result
>   sql = "SELECT * FROM grnLine"
>   $resData = $hConnLocl.Exec(sql)
>   END
> '---------------------------------------------------------
> PUBLIC SUB btnRun_Click()
>   DIM hForm AS FRequest
>   DIM hField AS ResultField
>   DIM iInd AS Integer
>
>   GridView1.Rows.count = 0
>   'set the required number of columns
>   GridView1.Columns.count = $resData.Fields.Count
>  
>   'define the column headers and width
>   FOR EACH hField IN $resData.Fields
>     WITH hField
>       GridView1.Columns[iInd].text = .Name
>       GridView1.Columns[iInd].width = 60
>     END WITH
>     INC iInd
>   NEXT
>  
>   'create the empty rows. Each empty and visible cell created calls
> GridView1_data
>   GridView1.Rows.Count = $resData.Count
> END
> '---------------------------------------------------------
> PUBLIC SUB GridView1_Data(Row AS Integer, Column AS Integer)
>   'move to the required result row
>   $resData.MoveTo(row)
>   'set the data for the cell in the GridView from the column in the selected
> row of the result
>   GridView1.Data.text = Str($resData[GridView1.Columns[column].text])
>   'lets you see how _data is being called as you scroll around the GridView
>   PRINT row & ":" & column & ":" &
> Str($resData[GridView1.Columns[column].text])
> END
> '----------------------------------------------------------
>  
Hope this is what you need.

Thanks for your nice appellation, "sir" :-), and regards.
Doriano Blengino




------------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/gambas-user

Re: set of questions

by Jussi Lahtinen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

 Yes, but Qt3 is not free for proprietary use.


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

 FromName.Show works with me..?


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

 With my project it was easy.
 Tools menu --> Update forms.
 Then possibly some minor changes to code.
 Example Write and Read, see documentation for details.


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

 I think gb.qt4 is not completely ready yet. But in future you can, if
I have understand correctly.
 Qt3 <--> GTK+ works well.


Jussi



On Wed, Oct 21, 2009 at 15:15, Doriano Blengino
<doriano.blengino@...> wrote:

> Faysal Banna ha scritto:
>> no no sir
>> i was asking about the Grid View u were explaining to Dima ...
>> besides i care to know a bit more about in place editing of cells inside the
>> Grid View
>> just click on the cell change the value..
>>
> Uhm...
>
> I never used a Gridview in that way, I simply worked out with my words
> something that already is in the docs (in a very unixish fashion). I
> tried to explain better what the idea behind Data event is.
>
> But after that I have seen, in this thread, a complete example: I cut
> and paste:
>
>> Hopefully this answers question 2. It is a distillation of the database
>> example that comes with Gambas:
>>
>> You just need a gridview, a button called btnRun and a preferably large
>> database with lots of columns so that you can scroll around with ease
>>
>> '========================================================
>> ' Gambas class file
>> PUBLIC $hConnLocl AS NEW Connection
>> PUBLIC $resData AS Result
>> '--------------------------------------------------------
>> PUBLIC SUB Form_Open()
>>   DIM sql AS String
>>
>>   'open the database
>>   WITH $hConnLocl
>>     .type = "mysql"
>>     .host = "localhost"
>>     .Name = "stock"
>>     .login = "charles"
>>     .password="dog"
>>   END WITH
>>   $hConnLocl.Open()
>>
>>   'create a result
>>   sql = "SELECT * FROM grnLine"
>>   $resData = $hConnLocl.Exec(sql)
>>   END
>> '---------------------------------------------------------
>> PUBLIC SUB btnRun_Click()
>>   DIM hForm AS FRequest
>>   DIM hField AS ResultField
>>   DIM iInd AS Integer
>>
>>   GridView1.Rows.count = 0
>>   'set the required number of columns
>>   GridView1.Columns.count = $resData.Fields.Count
>>
>>   'define the column headers and width
>>   FOR EACH hField IN $resData.Fields
>>     WITH hField
>>       GridView1.Columns[iInd].text = .Name
>>       GridView1.Columns[iInd].width = 60
>>     END WITH
>>     INC iInd
>>   NEXT
>>
>>   'create the empty rows. Each empty and visible cell created calls
>> GridView1_data
>>   GridView1.Rows.Count = $resData.Count
>> END
>> '---------------------------------------------------------
>> PUBLIC SUB GridView1_Data(Row AS Integer, Column AS Integer)
>>   'move to the required result row
>>   $resData.MoveTo(row)
>>   'set the data for the cell in the GridView from the column in the selected
>> row of the result
>>   GridView1.Data.text = Str($resData[GridView1.Columns[column].text])
>>   'lets you see how _data is being called as you scroll around the GridView
>>   PRINT row & ":" & column & ":" &
>> Str($resData[GridView1.Columns[column].text])
>> END
>> '----------------------------------------------------------
>>
> Hope this is what you need.
>
> Thanks for your nice appellation, "sir" :-), and regards.
> Doriano Blengino
>
>
>
>
> ------------------------------------------------------------------------------
> 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@...
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>

------------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/gambas-user

Re: set of questions

by degreane :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

what is the way to get modifying a cell inside  a grid view like
u click on a cell and start writing inside it then when u click away its
already modified ?

regards

On Wed, Oct 21, 2009 at 4:47 PM, Jussi Lahtinen <jussi.lahtinen@...>wrote:

> > 1) May I create proprietary (not open-scource) gambas2-applications and
> > components for gambas2?
>
>  Yes, but Qt3 is not free for proprietary use.
>
>
> > 3) When I hide persistent Form, how to display it again?
>
>  FromName.Show works with me..?
>
>
> > 5) Can I easily convert my big project from the gambas2-project to the
> > gambas3-project?
>
>  With my project it was easy.
>  Tools menu --> Update forms.
>  Then possibly some minor changes to code.
>  Example Write and Read, see documentation for details.
>
>
> > 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?
>
>  I think gb.qt4 is not completely ready yet. But in future you can, if
> I have understand correctly.
>  Qt3 <--> GTK+ works well.
>
>
> Jussi
>
>
>
> On Wed, Oct 21, 2009 at 15:15, Doriano Blengino
> <doriano.blengino@...> wrote:
> > Faysal Banna ha scritto:
> >> no no sir
> >> i was asking about the Grid View u were explaining to Dima ...
> >> besides i care to know a bit more about in place editing of cells inside
> the
> >> Grid View
> >> just click on the cell change the value..
> >>
> > Uhm...
> >
> > I never used a Gridview in that way, I simply worked out with my words
> > something that already is in the docs (in a very unixish fashion). I
> > tried to explain better what the idea behind Data event is.
> >
> > But after that I have seen, in this thread, a complete example: I cut
> > and paste:
> >
> >> Hopefully this answers question 2. It is a distillation of the database
> >> example that comes with Gambas:
> >>
> >> You just need a gridview, a button called btnRun and a preferably large
> >> database with lots of columns so that you can scroll around with ease
> >>
> >> '========================================================
> >> ' Gambas class file
> >> PUBLIC $hConnLocl AS NEW Connection
> >> PUBLIC $resData AS Result
> >> '--------------------------------------------------------
> >> PUBLIC SUB Form_Open()
> >>   DIM sql AS String
> >>
> >>   'open the database
> >>   WITH $hConnLocl
> >>     .type = "mysql"
> >>     .host = "localhost"
> >>     .Name = "stock"
> >>     .login = "charles"
> >>     .password="dog"
> >>   END WITH
> >>   $hConnLocl.Open()
> >>
> >>   'create a result
> >>   sql = "SELECT * FROM grnLine"
> >>   $resData = $hConnLocl.Exec(sql)
> >>   END
> >> '---------------------------------------------------------
> >> PUBLIC SUB btnRun_Click()
> >>   DIM hForm AS FRequest
> >>   DIM hField AS ResultField
> >>   DIM iInd AS Integer
> >>
> >>   GridView1.Rows.count = 0
> >>   'set the required number of columns
> >>   GridView1.Columns.count = $resData.Fields.Count
> >>
> >>   'define the column headers and width
> >>   FOR EACH hField IN $resData.Fields
> >>     WITH hField
> >>       GridView1.Columns[iInd].text = .Name
> >>       GridView1.Columns[iInd].width = 60
> >>     END WITH
> >>     INC iInd
> >>   NEXT
> >>
> >>   'create the empty rows. Each empty and visible cell created calls
> >> GridView1_data
> >>   GridView1.Rows.Count = $resData.Count
> >> END
> >> '---------------------------------------------------------
> >> PUBLIC SUB GridView1_Data(Row AS Integer, Column AS Integer)
> >>   'move to the required result row
> >>   $resData.MoveTo(row)
> >>   'set the data for the cell in the GridView from the column in the
> selected
> >> row of the result
> >>   GridView1.Data.text = Str($resData[GridView1.Columns[column].text])
> >>   'lets you see how _data is being called as you scroll around the
> GridView
> >>   PRINT row & ":" & column & ":" &
> >> Str($resData[GridView1.Columns[column].text])
> >> END
> >> '----------------------------------------------------------
> >>
> > Hope this is what you need.
> >
> > Thanks for your nice appellation, "sir" :-), and regards.
> > Doriano Blengino
> >
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> > 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@...
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
>
>
> ------------------------------------------------------------------------------
> 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@...
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



--
============================
        Faysal Banna
Meteorological Services
Rafic Harriri International Airport
     Beirut - Lebanon
   Mob: +961-3-258043
=============================
------------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/gambas-user

Re: set of questions

by Ron_1st :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wednesday 21 October 2009, Faysal Banna wrote:

> what is the way to get modifying a cell inside  a grid view like
> u click on a cell and start writing inside it then when u click away its
> already modified ?
>
> regards
>
> On Wed, Oct 21, 2009 at 4:47 PM, Jussi Lahtinen <jussi.lahtinen@...>wrote:
>
> > > 1) May I create proprietary (not open-scource) gambas2-applications and
> > > components for gambas2?
> >
> >  Yes, but Qt3 is not free for proprietary use.
> >
> >
> > > 3) When I hide persistent Form, how to display it again?
> >
> >  FromName.Show works with me..?
> >
> >
> > > 5) Can I easily convert my big project from the gambas2-project to the
> > > gambas3-project?
> >
> >  With my project it was easy.
> >  Tools menu --> Update forms.
> >  Then possibly some minor changes to code.
> >  Example Write and Read, see documentation for details.
> >
> >
> > > 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?
> >
> >  I think gb.qt4 is not completely ready yet. But in future you can, if
> > I have understand correctly.
> >  Qt3 <--> GTK+ works well.
> >
> >
> > Jussi
> >
> >
> >
> > On Wed, Oct 21, 2009 at 15:15, Doriano Blengino
> > <doriano.blengino@...> wrote:
> > > Faysal Banna ha scritto:
> > >> no no sir
> > >> i was asking about the Grid View u were explaining to Dima ...
> > >> besides i care to know a bit more about in place editing of cells inside
> > the
> > >> Grid View
> > >> just click on the cell change the value..
> > >>
> > > Uhm...
> > >
> > > I never used a Gridview in that way, I simply worked out with my words
> > > something that already is in the docs (in a very unixish fashion). I
> > > tried to explain better what the idea behind Data event is.
> > >
> > > But after that I have seen, in this thread, a complete example: I cut
> > > and paste:
> > >
> > >> Hopefully this answers question 2. It is a distillation of the database
> > >> example that comes with Gambas:
> > >>
> > >> You just need a gridview, a button called btnRun and a preferably large
> > >> database with lots of columns so that you can scroll around with ease
> > >>
> > >> '========================================================
> > >> ' Gambas class file
> > >> PUBLIC $hConnLocl AS NEW Connection
> > >> PUBLIC $resData AS Result
> > >> '--------------------------------------------------------
> > >> PUBLIC SUB Form_Open()
> > >>   DIM sql AS String
> > >>
> > >>   'open the database
> > >>   WITH $hConnLocl
> > >>     .type = "mysql"
> > >>     .host = "localhost"
> > >>     .Name = "stock"
> > >>     .login = "charles"
> > >>     .password="dog"
> > >>   END WITH
> > >>   $hConnLocl.Open()
> > >>
> > >>   'create a result
> > >>   sql = "SELECT * FROM grnLine"
> > >>   $resData = $hConnLocl.Exec(sql)
> > >>   END
> > >> '---------------------------------------------------------
> > >> PUBLIC SUB btnRun_Click()
> > >>   DIM hForm AS FRequest
> > >>   DIM hField AS ResultField
> > >>   DIM iInd AS Integer
> > >>
> > >>   GridView1.Rows.count = 0
> > >>   'set the required number of columns
> > >>   GridView1.Columns.count = $resData.Fields.Count
> > >>
> > >>   'define the column headers and width
> > >>   FOR EACH hField IN $resData.Fields
> > >>     WITH hField
> > >>       GridView1.Columns[iInd].text = .Name
> > >>       GridView1.Columns[iInd].width = 60
> > >>     END WITH
> > >>     INC iInd
> > >>   NEXT
> > >>
> > >>   'create the empty rows. Each empty and visible cell created calls
> > >> GridView1_data
> > >>   GridView1.Rows.Count = $resData.Count
> > >> END
> > >> '---------------------------------------------------------
> > >> PUBLIC SUB GridView1_Data(Row AS Integer, Column AS Integer)
> > >>   'move to the required result row
> > >>   $resData.MoveTo(row)
> > >>   'set the data for the cell in the GridView from the column in the
> > selected
> > >> row of the result
> > >>   GridView1.Data.text = Str($resData[GridView1.Columns[column].text])
> > >>   'lets you see how _data is being called as you scroll around the
> > GridView
> > >>   PRINT row & ":" & column & ":" &
> > >> Str($resData[GridView1.Columns[column].text])
> > >> END
> > >> '----------------------------------------------------------
> > >>
> > > Hope this is what you need.
> > >
> > > Thanks for your nice appellation, "sir" :-), and regards.
> > > Doriano Blengino
> > >
> > >
> > >

I don't see the connection with gambas from usb stick.
Can you enligth me?


Best regards,

Ron_1st

--
 A: Hijacking the thread from other subjects.
 Q: What is the second most annoying thing in e-mail?
--
 A: Delete the text you reply on.
 Q: What to do to get my post on top?
---
 A: Because it messes up the order in which people normally read text.
 Q: Why is top-posting such a bad thing?
---
 A: Top-posting.
 Q: What is the most annoying thing in e-mail?
 

------------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/gambas-user

Re: set of questions

by Doriano Blengino :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ron_1st ha scritto:
>
> I don't see the connection with gambas from usb stick.
> Can you enligth me?
>  
The first message of the thread, "set of questions", contained a
question about launching a gambas app in a host system not having the
gambas runtime installed. Or so I think - I have already deleted the
relevant messages and now I can not check. May be I was confused... sorry.

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@...
https://lists.sourceforge.net/lists/listinfo/gambas-user

Re: set of questions

by Ron_1st :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thursday 22 October 2009, Doriano Blengino wrote:

> Ron_1st ha scritto:
> >
> > I don't see the connection with gambas from usb stick.
> > Can you enligth me?
> >  
> The first message of the thread, "set of questions", contained a
> question about launching a gambas app in a host system not having the
> gambas runtime installed. Or so I think - I have already deleted the
> relevant messages and now I can not check. May be I was confused... sorry.
>
> Regards,
> Doriano
>

It was for this message

On Wednesday 21 October 2009, Faysal Banna wrote:
> what is the way to get modifying a cell inside  a grid view like
> u click on a cell and start writing inside it then when u click away its
> already modified ?
>
> regards
>

He is mumbling about a gridview in this thread and is not related to it
and as reply to something total different.
We call that hijacking the thread. :)
See the signature.



Best regards,

Ron_1st

--
 A: Hijacking the thread from other subjects.
 Q: What is the second most annoying thing in e-mail?
--
 A: Delete the text you reply on.
 Q: What to do to get my post on top?
---
 A: Because it messes up the order in which people normally read text.
 Q: Why is top-posting such a bad thing?
---
 A: Top-posting.
 Q: What is the most annoying thing in e-mail?
 

------------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/gambas-user

Re: set of questions

by Benoît Minisini :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> 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@...
https://lists.sourceforge.net/lists/listinfo/gambas-user

Re: set of questions

by Doriano Blengino :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ron_1st ha scritto:

> On Thursday 22 October 2009, Doriano Blengino wrote:
>  
>> Ron_1st ha scritto:
>>    
>>> I don't see the connection with gambas from usb stick.
>>> Can you enligth me?
>>>  
>>>      
>> The first message of the thread, "set of questions", contained a
>> question about launching a gambas app in a host system not having the
>> gambas runtime installed. Or so I think - I have already deleted the
>> relevant messages and now I can not check. May be I was confused... sorry.
>>
>> Regards,
>> Doriano
>>
>>    
>
> It was for this message
>
> On Wednesday 21 October 2009, Faysal Banna wrote:
>  
>> what is the way to get modifying a cell inside  a grid view like
>> u click on a cell and start writing inside it then when u click away its
>> already modified ?
>>
>> regards
>>
>>    
>
> He is mumbling about a gridview in this thread and is not related to it
> and as reply to something total different.
> We call that hijacking the thread. :)
> See the signature.
>  
Funny signature.
Really, I didn't know what hijacking was, and even now I don't
understand why one would desire to hijack (in other words, where is the
advantage in hijacking?). Provided that there is no advantage, so nobody
wants to do it, if I did it I did it without awareness.

The start of the thread, posted by user "Dima", where I replied is
(citation):
> I want to run my gambas2-application from USB-FLASH-DISK on the
> > computers, that do not have gambas2 installed.
> >
followed by a numbered list of other questions. I replied to a few. The
most important was about the Data event.

Then someone else, Faysal Banna, asked about "what I replied to Dima",
without specifying more. I assumed he was talking about usb flash disk,
because the other argument is already explained in the docs. Banna
replied "no no, it was about editing cells". But what he really wrote is
(citation):

> no no sir
> > > >> i was asking about the Grid View u were explaining to Dima ...
> > > >> besides i care to know a bit more about in place editing of cells inside
>  
Now, for my poor english, I suppose the adjective "besides" acts as a
junction between two predicates. So he wanted to know about gridview,
and *besides*, something about editing of cells. Is it clear to you? For
me, just not enough... :-)

I did the best I could do about the Data event: I posted the good source
provided by another user on the same thread. And I simply ignored the
phrase following that "besides".

I write this full explanation (sorry) because I feel a little flamed. If
you can, and if you want, go to see the whole thread on gambas-user. It
started with a "set of question", and just now Benoit is replying "you
should have been make a thread for each question" to the poster. Then
someone else (Banna) wrote something not clear to me, and even changed
topic. Lastly, you teach to me that I am hijacking! :-) Better for me to
take some course about computers... I like them but I don't understand
them; and while I'm at it, an english course too... :-)

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@...
https://lists.sourceforge.net/lists/listinfo/gambas-user

Re: set of questions

by degreane :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

for all those who assumed i "hijacked"  the thread and subject ....

the subject of the whole was posted by Dima (My regards to her ) about set
of questions and not specific to USB !!!!!

she asked a set of questions including USB startup and also including the
gridview which is of my interest at the moment ....

and instead of u mumbling about Hijacking and bla bla bla u could have
pointed to the solution if u know it or either directed to the documentation
.............
Doriano ... Could you please point to a good documentation about GridView
utilisation and/or TableView, besides your english is good just other people
need to follow threads from the beginning.



Regards...
and please stay on track of events before u rush into mumbling bla bla stuff
....


On Thu, Oct 22, 2009 at 5:43 PM, Doriano Blengino <
doriano.blengino@...> wrote:

> Ron_1st ha scritto:
> > On Thursday 22 October 2009, Doriano Blengino wrote:
> >
> >> Ron_1st ha scritto:
> >>
> >>> I don't see the connection with gambas from usb stick.
> >>> Can you enligth me?
> >>>
> >>>
> >> The first message of the thread, "set of questions", contained a
> >> question about launching a gambas app in a host system not having the
> >> gambas runtime installed. Or so I think - I have already deleted the
> >> relevant messages and now I can not check. May be I was confused...
> sorry.
> >>
> >> Regards,
> >> Doriano
> >>
> >>
> >
> > It was for this message
> >
> > On Wednesday 21 October 2009, Faysal Banna wrote:
> >
> >> what is the way to get modifying a cell inside  a grid view like
> >> u click on a cell and start writing inside it then when u click away its
> >> already modified ?
> >>
> >> regards
> >>
> >>
> >
> > He is mumbling about a gridview in this thread and is not related to it
> > and as reply to something total different.
> > We call that hijacking the thread. :)
> > See the signature.
> >
> Funny signature.
> Really, I didn't know what hijacking was, and even now I don't
> understand why one would desire to hijack (in other words, where is the
> advantage in hijacking?). Provided that there is no advantage, so nobody
> wants to do it, if I did it I did it without awareness.
>
> The start of the thread, posted by user "Dima", where I replied is
> (citation):
> > I want to run my gambas2-application from USB-FLASH-DISK on the
> > > computers, that do not have gambas2 installed.
> > >
> followed by a numbered list of other questions. I replied to a few. The
> most important was about the Data event.
>
> Then someone else, Faysal Banna, asked about "what I replied to Dima",
> without specifying more. I assumed he was talking about usb flash disk,
> because the other argument is already explained in the docs. Banna
> replied "no no, it was about editing cells". But what he really wrote is
> (citation):
>
> > no no sir
> > > > >> i was asking about the Grid View u were explaining to Dima ...
> > > > >> besides i care to know a bit more about in place editing of cells
> inside
> >
> Now, for my poor english, I suppose the adjective "besides" acts as a
> junction between two predicates. So he wanted to know about gridview,
> and *besides*, something about editing of cells. Is it clear to you? For
> me, just not enough... :-)
>
> I did the best I could do about the Data event: I posted the good source
> provided by another user on the same thread. And I simply ignored the
> phrase following that "besides".
>
> I write this full explanation (sorry) because I feel a little flamed. If
> you can, and if you want, go to see the whole thread on gambas-user. It
> started with a "set of question", and just now Benoit is replying "you
> should have been make a thread for each question" to the poster. Then
> someone else (Banna) wrote something not clear to me, and even changed
> topic. Lastly, you teach to me that I am hijacking! :-) Better for me to
> take some course about computers... I like them but I don't understand
> them; and while I'm at it, an english course too... :-)
>
> 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@...
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



--
============================
        Faysal Banna
Meteorological Services
Rafic Harriri International Airport
     Beirut - Lebanon
   Mob: +961-3-258043
=============================
------------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/gambas-user

Re: set of questions

by Doriano Blengino :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Faysal Banna ha scritto:

> for all those who assumed i "hijacked"  the thread and subject ....
>
> the subject of the whole was posted by Dima (My regards to her ) about set
> of questions and not specific to USB !!!!!
>
> she asked a set of questions including USB startup and also including the
> gridview which is of my interest at the moment ....
>
> and instead of u mumbling about Hijacking and bla bla bla u could have
> pointed to the solution if u know it or either directed to the documentation
> .............
> Doriano ... Could you please point to a good documentation about GridView
> utilisation and/or TableView, besides your english is good just other people
> need to follow threads from the beginning.
>  
Dear Faysal,
I am sorry - I don't know any other good place to find documentation,
apart from the official docs (wiki) and the normal internet sites. To be
sincere, I don't even know gambas so well - perhaps when, rarely or
perhaps too often, I know something and I write about it, I write so
much that what I write can be over-estimated.

Now I must add that perhaps I am writing too much in this list, or I
know english too little, or both. It is the second time in a few days
that threads grow too much because of my messages; I will think about it.

Regards to everyone,
Doriano

>
>
> Regards...
> and please stay on track of events before u rush into mumbling bla bla stuff
> ....
>
>
> On Thu, Oct 22, 2009 at 5:43 PM, Doriano Blengino <
> doriano.blengino@...> wrote:
>
>  
>> Ron_1st ha scritto:
>>    
>>> On Thursday 22 October 2009, Doriano Blengino wrote:
>>>
>>>      
>>>> Ron_1st ha scritto:
>>>>
>>>>        
>>>>> I don't see the connection with gambas from usb stick.
>>>>> Can you enligth me?
>>>>>
>>>>>
>>>>>          
>>>> The first message of the thread, "set of questions", contained a
>>>> question about launching a gambas app in a host system not having the
>>>> gambas runtime installed. Or so I think - I have already deleted the
>>>> relevant messages and now I can not check. May be I was confused...
>>>>        
>> sorry.
>>    
>>>> Regards,
>>>> Doriano
>>>>
>>>>
>>>>        
>>> It was for this message
>>>
>>> On Wednesday 21 October 2009, Faysal Banna wrote:
>>>
>>>      
>>>> what is the way to get modifying a cell inside  a grid view like
>>>> u click on a cell and start writing inside it then when u click away its
>>>> already modified ?
>>>>
>>>> regards
>>>>
>>>>
>>>>        
>>> He is mumbling about a gridview in this thread and is not related to it
>>> and as reply to something total different.
>>> We call that hijacking the thread. :)
>>> See the signature.
>>>
>>>      
>> Funny signature.
>> Really, I didn't know what hijacking was, and even now I don't
>> understand why one would desire to hijack (in other words, where is the
>> advantage in hijacking?). Provided that there is no advantage, so nobody
>> wants to do it, if I did it I did it without awareness.
>>
>> The start of the thread, posted by user "Dima", where I replied is
>> (citation):
>>    
>>> I want to run my gambas2-application from USB-FLASH-DISK on the
>>>      
>>>> computers, that do not have gambas2 installed.
>>>>
>>>>        
>> followed by a numbered list of other questions. I replied to a few. The
>> most important was about the Data event.
>>
>> Then someone else, Faysal Banna, asked about "what I replied to Dima",
>> without specifying more. I assumed he was talking about usb flash disk,
>> because the other argument is already explained in the docs. Banna
>> replied "no no, it was about editing cells". But what he really wrote is
>> (citation):
>>
>>    
>>> no no sir
>>>      
>>>>>>> i was asking about the Grid View u were explaining to Dima ...
>>>>>>> besides i care to know a bit more about in place editing of cells
>>>>>>>              
>> inside
>>    
>> Now, for my poor english, I suppose the adjective "besides" acts as a
>> junction between two predicates. So he wanted to know about gridview,
>> and *besides*, something about editing of cells. Is it clear to you? For
>> me, just not enough... :-)
>>
>> I did the best I could do about the Data event: I posted the good source
>> provided by another user on the same thread. And I simply ignored the
>> phrase following that "besides".
>>
>> I write this full explanation (sorry) because I feel a little flamed. If
>> you can, and if you want, go to see the whole thread on gambas-user. It
>> started with a "set of question", and just now Benoit is replying "you
>> should have been make a thread for each question" to the poster. Then
>> someone else (Banna) wrote something not clear to me, and even changed
>> topic. Lastly, you teach to me that I am hijacking! :-) Better for me to
>> take some course about computers... I like them but I don't understand
>> them; and while I'm at it, an english course too... :-)
>>
>> 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@...
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>>    
>
>
>
>  

------------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/gambas-user

Re: set of questions

by Ron_1st :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thursday 22 October 2009, Doriano Blengino wrote:

> Ron_1st ha scritto:
> > On Thursday 22 October 2009, Doriano Blengino wrote:
> >  
> >> Ron_1st ha scritto:
> >>    
> >>> I don't see the connection with gambas from usb stick.
> >>> Can you enligth me?
> >>>  
> >>>      
> >> The first message of the thread, "set of questions", contained a
> >> question about launching a gambas app in a host system not having the
> >> gambas runtime installed. Or so I think - I have already deleted the
> >> relevant messages and now I can not check. May be I was confused... sorry.
> >>
> >> Regards,
> >> Doriano
> >>
> >>    
> >
> > It was for this message
> >
> > On Wednesday 21 October 2009, Faysal Banna wrote:
> >  
> >> what is the way to get modifying a cell inside  a grid view like
> >> u click on a cell and start writing inside it then when u click away its
> >> already modified ?
> >>
> >> regards
> >>
> >>    
> >
> > He is mumbling about a gridview in this thread and is not related to it
> > and as reply to something total different.
> > We call that hijacking the thread. :)
> > See the signature.
> >  
> Funny signature.
> Really, I didn't know what hijacking was, and even now I don't
> understand why one would desire to hijack (in other words, where is the
> advantage in hijacking?). Provided that there is no advantage, so nobody
> wants to do it, if I did it I did it without awareness.

No Doriano, you didn't hijack.
Hijack is jumping in a tread with a new question and disturb the
conversation in the current thread.
It can happen so as did in this tread to top poster had some questions.
The tread splits in top with answers to the several questions.
In this case the tread was at the point talking about the usb-stick.

In your first answer in this tread you did give answers to point 1(usb) and point 2(gridview)
Then Faysal did ask for some example/

A few posts before Jussi answer with his situation for the gambas install on usb.
Faysal jumps in and ask something [2009-10-21 12:52].
> Doriano...

> do you have a sample src package of what you have just explained ?
> can u share a simple running example with source files and forms ?

Your answer was [2009-10-21 13:38]
> can u share a simple running example with source files and forms ?
>  
> About what? I suppose about running a gambas app out of a usb stick?
> Never tried but, if this is your request, I can try.
> ---8<---
> I played a bit, but it does not work. The path "lib/gambasX" seems to be
> hardcoded in the gbx executable.

So  Faysal wrote [2009-10-21 13:44]
> no no sir
> i was asking about the Grid View u were explaining to Dima ...
> ---8<---

Then Jussi comes in at [2009-10-21 15:47]
He answers some questions from the TOP (Topic Opening Poster)
for Q 1, 3, 5 and 6. None of them refers to the gridview.
Here Jussi should have answered in a reply to the opening post insted this place.
The tread here was oriented at one of the questions, the usb case.

Now Faysal ask [2009-10-21 16:51] again about the gridview.
So I did replay [2009-10-22 09:10] as answer to Faysal.
> I don't see the connection with gambas from usb stick.
> Can you enligth me?

Doriano did answer my post [2009-10-22 09:20]
> The first message of the thread, "set of questions", contained a
> question about launching a gambas app in a host system not having the
> gambas runtime installed. Or so I think - I have already .....
So it was clear this branch in the topic was about the usb/gambas install.

I did answer:[2009-10-22 11:13]
> He is mumbling about a gridview in this thread and is not related to it
> and as reply to something total different.
You may say I'm wrong because it is in the TOP, that is correct.
My mistake, I was following the usb/install branch and had forgotten the TOP.

IMHO Faysal should have ask his gridview case on your first answer where you
did talk about it. At that moment there was no misunderstanding as did
happen on the place he did request it [2009-10-21 12:52] where he asked for
some src/example code.

Because at this place the answers where the usb/install related
you respond about this and not the gridview and he did answer with 'no no no'
No ringing bells at Faysal there was some misunderstanding about
the specific subjec part in discussion.

Now you replay to my second post  [2009-10-22 16:43]
folowed by Faysal to your post.
> ---8<---
> gridview which is of my interest at the moment ....
>
> and instead of u mumbling about Hijacking and bla bla bla u could have
> pointed to the solution if u know it or either directed to the documentation
>---8<---
So he did attack you about mumbling. He did reply to the wrong post :)

> Doriano ... Could you please point to a good documentation about GridView
> utilisation and/or TableView, besides your english is good
I agree.

> just other people need to follow threads from the beginning.
And that is what you should do also and special pay attention to reply
to the right message. This last one should be to me and the other one to
the first post Doriano talked about the gridview.

His later answers where to another question related and not the gridview.
In the post you did ask src/example you could at least specify where the
request was for. Than yo had no need to cry 'no no no'.

And I was follow the thread for the usb/install and as Dorian did also
understand you wanted some src/example about usb/install gambas.

>From the reply I reply back:
>
> The start of the thread, posted by user "Dima", where I replied is
> (citation):
> > I want to run my gambas2-application from USB-FLASH-DISK on the
> > > computers, that do not have gambas2 installed.
> > >
> followed by a numbered list of other questions. I replied to a few. The
> most important was about the Data event.
>
> Then someone else, Faysal Banna, asked about "what I replied to Dima",
> without specifying more. I assumed he was talking about usb flash disk,

You see here is the mistake by Doriano

> because the other argument is already explained in the docs. Banna
> replied "no no, it was about editing cells". But what he really wrote is
> (citation):
>
> > no no sir
> > > > >> i was asking about the Grid View u were explaining to Dima ...
> > > > >> besides i care to know a bit more about in place editing of cells inside
> >  
> Now, for my poor english, I suppose the adjective "besides" acts as a
> junction between two predicates. So he wanted to know about gridview,
> and *besides*, something about editing of cells. Is it clear to you? For
> me, just not enough... :-)

I can only say the both predicates are about the gridview.
The first is just an answer and after the beside is a new request IMHO.

>
> I did the best I could do about the Data event: I posted the good source
> provided by another user on the same thread. And I simply ignored the
> phrase following that "besides".
>
> I write this full explanation (sorry) because I feel a little flamed. If
> you can, and if you want, go to see the whole thread on gambas-user.
In the Netherlands 'flame' has a little negative status.
I do not want flame you Doriano. I suppose because English is not you
native language you feel so. I understand, its not the case.
If someone is then it could be Faysal.
Sorry Faysal but that was also not my intention at that moment.
I just wanted to attent you about the wrong subject at that place
in the thread. You only didn't see it.
 
> It started with a "set of question", and just now Benoit is replying "you
> should have been make a thread for each question" to the poster. Then
> someone else (Banna) wrote something not clear to me, and even changed
> topic.
This change is a (rude) way of hijack.
> Lastly, you teach to me that I am hijacking! :-)
no no no, you did not hijack. :)

> Better for me to take some course about computers...
You can teach me I suppose.

> I like them but I don't understand  them;
After 25 years working with those boxes I don't understand them too.

> and while I'm at it, an english course too... :-)
That I should do also but at my age it is not easy.

>
> Regards,
> Doriano
>

So This was a very long reply from me. Had some mixed feelings
during typing and my excuse if I hurt someone. That was not the
intention. just pointing the misunderstanding about the specific
subject in place at moment of reply to.
Now I go read the remaining.
Happy programming.


Best regards,

Ron_1st

--

111.111111 x 111.111111 = 12345.678987654321

P.S.
Faysal, Does the IDE use the gridview in a little or some way as you want.
Then the gambas source code of the IDE is a realy good example.
Look special for form and class for properties.
Just masterly construction/code. At least some idea should come in mind.


------------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/gambas-user

Re: set of questions

by Ron_1st :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thursday 22 October 2009, Faysal Banna wrote:
> just other people need to follow threads from the beginning.

> Regards...  and please stay on track of events before u rush into mumbling bla bla stuff
> ....
>
Do you mean Doriano with 'u rush'?
Please wake up before you write something as reply.

See my reply to Doriano just send.


just other people need to follow treads from the beginning and
reply to the relevant reply containing the subject part those people
want answers to as i.e. src/example. That way they do not cry 'no no no'

Best regards,

Ron_1st

--


------------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/gambas-user

Re: set of questions

by Ron_1st :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thursday 22 October 2009, Doriano Blengino wrote:

> Faysal Banna ha scritto:
> > for all those who assumed i "hijacked"  the thread and subject ....
> >
> > the subject of the whole was posted by Dima (My regards to her ) about set
> > of questions and not specific to USB !!!!!
> >
> > she asked a set of questions including USB startup and also including the
> > gridview which is of my interest at the moment ....
> >
> > and instead of u mumbling about Hijacking and bla bla bla u could have
> > pointed to the solution if u know it or either directed to the documentation
> > .............
> > Doriano ... Could you please point to a good documentation about GridView
> > utilisation and/or TableView, besides your english is good just other people
> > need to follow threads from the beginning.
> >  
> Dear Faysal,
> I am sorry - I don't know any other good place to find documentation,
> apart from the official docs (wiki) and the normal internet sites. To be
> sincere, I don't even know gambas so well - perhaps when, rarely or
> perhaps too often, I know something and I write about it, I write so
> much that what I write can be over-estimated.
I like you writing very much. You help people where you can.

>
> Now I must add that perhaps I am writing too much in this list, or I
> know english too little, or both. It is the second time in a few days
> that threads grow too much because of my messages; I will think about it.
I do not have problems with your english. May be the grammar is not right
but I think most people can follow. My grammar is also not top of the top.
It's symple not our native language.

>
> Regards to everyone,
> Doriano
> >



Best regards to all gambas lovers,

Ron_1st

--

111.111111 x 111.111111 = 12345.678987654321

--
 A: Delete the text you reply on.
 Q: What to do to get my post on top?
---
 A: Because it messes up the order in which people normally read text.
 Q: Why is top-posting such a bad thing?
---
 A: Top-posting.
 Q: What is the most annoying thing in e-mail?
 

------------------------------------------------------------------------------
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@...
https://lists.sourceforge.net/lists/listinfo/gambas-user

Re: set of questions

by charlesg :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Doriano

While you are busy dumping on yourself, let me join in: you are wrong.

1) You are wrong that you do not have a good command of the English language. I have often marvelled (in that vaguely condescending British sort of a way :)) how good your (in particular) and every contributors (in general) English is. You write better English than half of Britain. This does not say much but is intended as a compliment.

2) You are wrong that you do not know anything about Gambas. Less skilled users, like myself, learn a lot from your contributions and your obvious knowledge of Linux. There are complaints that some posts 'have nothing do do with Gambas'. I do not accept that and suggest that most of the posts relate to the interface between Gambas and Linux.

I am sure the problem here is that too many questions were asked in a single post. I am also sure that Ron's response is a bite without venom.

The boss is an amazing chap: he writes and maintains Gambas, holds down a job and is, I believe, a Thespian of repute. To avoid any unrecoverable read errors, he needs the help of people like you on this forum.
< Prev | 1 - 2 | Next >