Re: [Gambas-user] How to library of a form or graphic obj? wiki dons said any info

2017-06-18 Thread PICCORO McKAY Lenz
ahhh ok so components are more like extensions to the Gambas language, but
then this its like as should be distributed with the Gambas source code.

i wish a control specific to my programs! not as extension of the gambas
languaje!

i only components a way to made this?

Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com

2017-06-18 18:49 GMT-04:00 adamn...@gmail.com :

> On Sun, 18 Jun 2017 18:16:30 -0400
> PICCORO McKAY Lenz  wrote:
>
> > errr, component no! i wish library! component its to put with gambas..
> > library its to specifically interact with user own programs
> Correct
>
> > i already made a library and use it, but only standar process or
> > functions..
> Correct
>
> > when i made graphical controls, and put as library, these thinks does not
> > appears to select in the box of controls!
> Absolutely correct!
>
> The IDE is not your "user own programs", it is part of Gambas. So if you
> want the Gambas IDE to recognize a custom control then it must be a
> component.
> The fact that you are also using that control in one of your "user own
> programs" is imaterial.
>
> (You could package it as a library and use it in your own program - but
> you would have to code that program outside the IDE.)
>
> b
>
> --
> B Bruen 
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] How to library of a form or graphic obj? wiki dons said any info

2017-06-18 Thread PICCORO McKAY Lenz
and that wiki page have some misctakes.. as example:

"Consequently, you have to set the version of your component project to the
current Gambas version!"

seems does not understand the difference between components and librarys..

components are to implements direct with each version of gambas.. and
include as gambas specific feature of release

library its a featured independent of the release of gambas.. or gambas
installations, forward compatible

that's why the "set the version to current gambas"..

and many other thinks.. i'm not expert in "components" but i think the
behaviour expected that this wiki page said are not complety corrected

Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com

2017-06-18 17:42 GMT-04:00 adamn...@gmail.com :

> On Sun, 18 Jun 2017 09:17:59 -0430
> PICCORO McKAY Lenz  wrote:
>
> > i have a override componet of gambas, lest said a improve combobox, and i
> > want to made as library to reuse in other projects
> >
> > wiki dont said too much http://gambaswiki.org/wiki/doc/library but i
> > remenber that if the library(program) has graphical things , extra steps
> > must be done..
> >
> > so due documentation are VERY FEW i need many info.. please
> >
> >
> > Lenz McKAY Gerardo (PICCORO)
> > http://qgqlochekone.blogspot.com
> > 
> --
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > ___
> > Gambas-user mailing list
> > Gambas-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
>
> http://gambaswiki.org/wiki/dev/gambas
>
> every word ! :-)
> --
> B Bruen 
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] How to library of a form or graphic obj? wiki dons said any info

2017-06-18 Thread adamn...@gmail.com
On Sun, 18 Jun 2017 18:16:30 -0400
PICCORO McKAY Lenz  wrote:

> errr, component no! i wish library! component its to put with gambas..
> library its to specifically interact with user own programs
Correct

> i already made a library and use it, but only standar process or
> functions..
Correct

> when i made graphical controls, and put as library, these thinks does not
> appears to select in the box of controls!
Absolutely correct!

The IDE is not your "user own programs", it is part of Gambas. So if you want 
the Gambas IDE to recognize a custom control then it must be a component.
The fact that you are also using that control in one of your "user own 
programs" is imaterial. 

(You could package it as a library and use it in your own program - but you 
would have to code that program outside the IDE.)

b

-- 
B Bruen 

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] How to library of a form or graphic obj? wiki dons said any info

2017-06-18 Thread PICCORO McKAY Lenz
errr, component no! i wish library! component its to put with gambas..
library its to specifically interact with user own programs

or its same to apply?

i already made a library and use it, but only standar process or
functions..

when i made graphical controls, and put as library, these thinks does not
appears to select in the box of controls!

Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com

2017-06-18 17:42 GMT-04:00 adamn...@gmail.com :

> On Sun, 18 Jun 2017 09:17:59 -0430
> PICCORO McKAY Lenz  wrote:
>
> > i have a override componet of gambas, lest said a improve combobox, and i
> > want to made as library to reuse in other projects
> >
> > wiki dont said too much http://gambaswiki.org/wiki/doc/library but i
> > remenber that if the library(program) has graphical things , extra steps
> > must be done..
> >
> > so due documentation are VERY FEW i need many info.. please
> >
> >
> > Lenz McKAY Gerardo (PICCORO)
> > http://qgqlochekone.blogspot.com
> > 
> --
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> > ___
> > Gambas-user mailing list
> > Gambas-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
>
> http://gambaswiki.org/wiki/dev/gambas
>
> every word ! :-)
> --
> B Bruen 
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] How to library of a form or graphic obj? wiki dons said any info

2017-06-18 Thread adamn...@gmail.com
On Sun, 18 Jun 2017 09:17:59 -0430
PICCORO McKAY Lenz  wrote:

> i have a override componet of gambas, lest said a improve combobox, and i
> want to made as library to reuse in other projects
> 
> wiki dont said too much http://gambaswiki.org/wiki/doc/library but i
> remenber that if the library(program) has graphical things , extra steps
> must be done..
> 
> so due documentation are VERY FEW i need many info.. please
> 
> 
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user

http://gambaswiki.org/wiki/dev/gambas

every word ! :-)
-- 
B Bruen 

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Help needed from regexp gurus / String.Mid() and Mid$() implementation

2017-06-18 Thread Fernando Cabral
Tobi, I have been learning a lot with your comments and suggestions.

Usually, I don't stress performance too much.  In this case, I have tried
to do things a little faster because I am using Gambas as a kind of add-on
to LibreOffice. I use it to check readability, wordiness, sentences that
are too long, things like that. In order to avoid coding, I resorted to RE.
My first try at it resulted in very slow code. In fact, a 150-page long
document took about two and a half minute to check. That's not short enough
to stimulate someone to run the code repeatedly. That's when I tried
introducing RegExp.Replace to canonize the input text and then applying
split(). Split () is fast, but canonizing the input text proved slow.  Then
I resorted to RegExp.Compile and RegExp. Way faster than Regex.Replace(),
but still slow. That's when I asked for help.

Today, following Jussi's suggestion, I went back to Split(). Without the
canonization phase, the same 150-page document was processed in 1,5 second.
That' s 100 times faster than the original version. That is great.
Nevertheless, there a few issues I have not been able to solve in an
elegant way.

Anyway, for this magnitude of performance gain, I am quite willing to go
back to Split () and then do soma massaging in those situations where
results are less than perfect.

Thank you for the many hints you've provided me with.

Regards

- fernando






2017-06-18 11:08 GMT-03:00 Tobias Boege :

> On Sat, 17 Jun 2017, Fernando Cabral wrote:
> > Tobi
> >
> > One more thing about the way I wish it could work (I remember having done
> > this in C perhaps 30 years ago). The pseudo-code bellow is pretty
> > schematic, but I think it will clarify the issue.
> >
> > Let p and l be arrays of integers and s be the string "abc defg hijkl"
> >
> > So, after traversing the string we would have the following result:
> > p[0] = offset of "a" (0)
> > l[0] = length of "abc" (3)
> > p[1] = offset of "d" (4)
> > l[1] = lenght of "defg" (4)
> > p[2] = offset of "h" (9)
> > l[2] = lenght of "hijkl" (5).
> >
> > After this, each word could be retrieved in the following manner:
> >
> > for i = 0 to 2
> > print mid(s, p[i], l[i])
> > next
> >
> > I think this would be the most efficient way to do it. But I can't find
> how
> > to do it in Gambas using Regex.
> >
>
> As I said before, the Gambas String.Mid() and Mid$() functions do just
> that.
> The internal representation of a string is some base data (which is usually
> shared among many strings, via reference counting), an offset and a length.
> If you apply String.Mid() or Mid$() to a string, no copying takes place,
> only
> the offset and length members of the Gambas string structure are adjusted.
> This is why Gambas strings are sometimes called "read-only" in the wiki
> (the
> same string base data is shared by many strings, so you can't have external
> libraries modify the data behind a Gambas string). Even the statement
>
>   s = String.Mid$(s, 10, 20)
>
> will *not* require a copy operation. You simply add 10 (UTF-8 positions) to
> the offset member of the string structure and set the length member to 20
> (UTF-8 positions) (or to the remaining length of s if it's smaller than
> 20).
>
> String.Mid() and Mid$() are implemented exactly by manipulating offsets and
> lengths, like you want to do. In fact there are multiple places in the
> Gambas
> source tree where those two are used in place of a C-style
>
>   for (i = 0; i < len; i++)
> do something with str[i];
>
> loop. I suggest you look at the implementations yourself if you don't
> believe it:
>
>   String datatype: https://sourceforge.net/p/gambas/code/HEAD/tree/gambas/
> trunk/main/share/gambas.h#l126
>   Mid$():  https://sourceforge.net/p/gambas/code/HEAD/tree/gambas/
> trunk/main/gbx/gbx_exec_loop.c#l3820
>   String.Mid():https://sourceforge.net/p/gambas/code/HEAD/tree/gambas/
> trunk/main/gbx/gbx_c_string.c#l399
>
> (I recommend downloading the source tree and using ctags or something to
> navigate through it, of course, instead of the SF web interface.)
>
> You should also try the following: create a console project with this code
> in the Main.module:
>
>1 ' Gambas module file
>2
>3 Public Sub Main()
>4   Dim s As String = ""
>5   Dim i As Integer
>6
>7   For i = 1 To 5
>8 s = String.Mid$(s, i, 2*i)
>9   Next
>   10   s &= "a"
>   11 End
>
> It will call String.Mid$() multiple times. Now compile and run this program
> through callgrind:
>
>   $ cd /path/to/project
>   $ gbc3 -ga
>   $ valgrind --tool=callgrind gbx3
>
> and use kcachegrind to visualise the callgraph. I'll attach the two
> interesting graphs to this mail. One shows that the single invocation
> of SUBR_cat (the &= operation at the end) needed a malloc() and hence
> did something like copying the string, whereas the multiple invocations
> of String_Mid do not lead to malloc or any other means of 

Re: [Gambas-user] reparent menu item

2017-06-18 Thread Leon Davis
I have created a form with containing a component I designed. When the
program is started the menu is created: MenuItem = new Menu(FormMain) as
"FileMenu" and is displayed as a text menu of the form. There is also a
context menu that is created for when the user right clicks on the control:
MenuItem = new Menu(Control) as "PopupMenu". One of the options I want to
present is to the user is to move the "FileMenu" to the "PopupMenu" so that
the "FileMenu" is no longer displayed on the form but on the "PopupMenu".

On Sun, Jun 18, 2017 at 4:48 AM, Charlie  wrote:

> Can you supply more detail and an example of what you are trying to do?
>
>
>
> -
> Check out www.gambas.one
> --
> View this message in context: http://gambas.8142.n7.nabble.
> com/reparent-menu-item-tp59386p59397.html
> Sent from the gambas-user mailing list archive at Nabble.com.
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Help needed from regexp gurus / String.Mid() and Mid$() implementation

2017-06-18 Thread Tobias Boege
On Sat, 17 Jun 2017, Fernando Cabral wrote:
> Tobi
> 
> One more thing about the way I wish it could work (I remember having done
> this in C perhaps 30 years ago). The pseudo-code bellow is pretty
> schematic, but I think it will clarify the issue.
> 
> Let p and l be arrays of integers and s be the string "abc defg hijkl"
> 
> So, after traversing the string we would have the following result:
> p[0] = offset of "a" (0)
> l[0] = length of "abc" (3)
> p[1] = offset of "d" (4)
> l[1] = lenght of "defg" (4)
> p[2] = offset of "h" (9)
> l[2] = lenght of "hijkl" (5).
> 
> After this, each word could be retrieved in the following manner:
> 
> for i = 0 to 2
> print mid(s, p[i], l[i])
> next
> 
> I think this would be the most efficient way to do it. But I can't find how
> to do it in Gambas using Regex.
> 

As I said before, the Gambas String.Mid() and Mid$() functions do just that.
The internal representation of a string is some base data (which is usually
shared among many strings, via reference counting), an offset and a length.
If you apply String.Mid() or Mid$() to a string, no copying takes place, only
the offset and length members of the Gambas string structure are adjusted.
This is why Gambas strings are sometimes called "read-only" in the wiki (the
same string base data is shared by many strings, so you can't have external
libraries modify the data behind a Gambas string). Even the statement

  s = String.Mid$(s, 10, 20)

will *not* require a copy operation. You simply add 10 (UTF-8 positions) to
the offset member of the string structure and set the length member to 20
(UTF-8 positions) (or to the remaining length of s if it's smaller than 20).

String.Mid() and Mid$() are implemented exactly by manipulating offsets and
lengths, like you want to do. In fact there are multiple places in the Gambas
source tree where those two are used in place of a C-style

  for (i = 0; i < len; i++)
do something with str[i];

loop. I suggest you look at the implementations yourself if you don't
believe it:

  String datatype: 
https://sourceforge.net/p/gambas/code/HEAD/tree/gambas/trunk/main/share/gambas.h#l126
  Mid$():  
https://sourceforge.net/p/gambas/code/HEAD/tree/gambas/trunk/main/gbx/gbx_exec_loop.c#l3820
  String.Mid():
https://sourceforge.net/p/gambas/code/HEAD/tree/gambas/trunk/main/gbx/gbx_c_string.c#l399

(I recommend downloading the source tree and using ctags or something to
navigate through it, of course, instead of the SF web interface.)

You should also try the following: create a console project with this code
in the Main.module:

   1 ' Gambas module file
   2
   3 Public Sub Main()
   4   Dim s As String = ""
   5   Dim i As Integer
   6
   7   For i = 1 To 5
   8 s = String.Mid$(s, i, 2*i)
   9   Next
  10   s &= "a"
  11 End

It will call String.Mid$() multiple times. Now compile and run this program
through callgrind:

  $ cd /path/to/project
  $ gbc3 -ga
  $ valgrind --tool=callgrind gbx3

and use kcachegrind to visualise the callgraph. I'll attach the two
interesting graphs to this mail. One shows that the single invocation
of SUBR_cat (the &= operation at the end) needed a malloc() and hence
did something like copying the string, whereas the multiple invocations
of String_Mid do not lead to malloc or any other means of allocating
memory, meaning no copy operation takes place.

Assuming you aren't prematurely optimising here and performance is actually
poor with Gambas code you should look into doing it in C and possibly avoid
regular expressions altogether. If you always just want all the words in a
given string, you can do it in a single linear pass through your text.

But honestly, I would be surprised if you have bad performance by using
String.Mid$(), since it is really just using a map of offsets and lengths
on a single shared base string.

Regards,
Tobi

PS: Again about the definition of "word in a string". My point was that if
you say "a word in a string is a sequence of alphabetic characters followed
by a non-alphabetic character", then "c", "bc" and "abc" will be words in
the string "abc.", right? "c" is a (length-1) sequence of alphabetic
characters which is followed by the non-alphabetic character "." in the
string. But you don't want to call "c" alone a word because there are further
alphabetic characters in front of it. You want any *longest* sequence of
alphabetic characters which is followed by a non-alphabetic one, which in
the string above, would only be "abc".

-- 
"There's an old saying: Don't change anything... ever!" -- Mr. Monk
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] How to library of a form or graphic obj? wiki dons said any info

2017-06-18 Thread PICCORO McKAY Lenz
i have a override componet of gambas, lest said a improve combobox, and i
want to made as library to reuse in other projects

wiki dont said too much http://gambaswiki.org/wiki/doc/library but i
remenber that if the library(program) has graphical things , extra steps
must be done..

so due documentation are VERY FEW i need many info.. please


Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] search over the gridview and not to the database and refill grid its possible?

2017-06-18 Thread PICCORO McKAY Lenz
again me, tested in gambas 3.5, i just send a mail to your personal, as i
said great.. but seems some mistakes are due many variables are with
similar names

the wgrid seems acts as improvement gridview componente object, that
implements column autodetection and sort order over the data..

the wgridfilter implements the wgrid and added filter capabilities..

so in the private mail i'll send many more quiestions.. due the filter does
not work.. and ide raised many errors due similar names in variables..


> 2017-06-18 11:14 GMT+02:00 Jorge Carrión :
>>
>> > Hey, Piccoro,
>> > Take a look at this, maybe it will serve or give you some idea of how to
>> > do it.
>> > It is a class inheriting from gridView and has a new property called
>> > source, which can be a two-dimensional array, an array of collections
>> or,
>> > directly, a Result.
>> > With this it is conformed a gridView that you can order (click on column
>> > header) and on which you can do searches and certain level of filtering
>> > (Shift + Click on cell).
>> > I can not guarantee that it will not have bugs, because it has been very
>> > little tested, but if it serves you, there you have it.
>> >
>> >
>> >
>> > Best Regards
>> > ​
>> >
>> > 2017-06-18 7:55 GMT+02:00 PICCORO McKAY Lenz :
>> >
>> >> as subject said: search over the gridview event to the database and
>> refill
>> >> grid its possible?
>> >>
>> >> i have a gridview object filled with data from the db, note: column
>> names
>> >> are autodetected.
>> >>
>> >> its there any way to search over gridview data and filter the results
>> in
>> >> gridview or there-s some object with that behaviour?
>> >>
>> >> Lenz McKAY Gerardo (PICCORO)
>> >> http://qgqlochekone.blogspot.com
>> >> 
>> >> --
>> >> Check out the vibrant tech community on one of the world's most
>> >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> >> ___
>> >> Gambas-user mailing list
>> >> Gambas-user@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/gambas-user
>> >>
>> >
>> >
>>
>> 
>> --
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>>
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] search over the gridview and not to the database and refill grid its possible?

2017-06-18 Thread PICCORO McKAY Lenz
hi Jorge, great.. thanks for the sample, its just that i need

when my skills in gambas grow i'll try to make a componente that looks like
the "vanilla datatables"

now i'll take a look and report feedback

Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com

2017-06-18 5:57 GMT-04:00 Jorge Carrión :

> "Dress me slowly that I'm on a hurry"...
> There is a Copy-Paste bug on the previous attached file.
> This on works (I hope).
>
> I forgot to mention that the class has a "Value" property that return a
> collection with the selected row texts as values and the columns heads text
> as keys.
>
> Best Regards
>
>
> 2017-06-18 11:14 GMT+02:00 Jorge Carrión :
>
> > Hey, Piccoro,
> > Take a look at this, maybe it will serve or give you some idea of how to
> > do it.
> > It is a class inheriting from gridView and has a new property called
> > source, which can be a two-dimensional array, an array of collections or,
> > directly, a Result.
> > With this it is conformed a gridView that you can order (click on column
> > header) and on which you can do searches and certain level of filtering
> > (Shift + Click on cell).
> > I can not guarantee that it will not have bugs, because it has been very
> > little tested, but if it serves you, there you have it.
> >
> >
> >
> > Best Regards
> > ​
> >
> > 2017-06-18 7:55 GMT+02:00 PICCORO McKAY Lenz :
> >
> >> as subject said: search over the gridview event to the database and
> refill
> >> grid its possible?
> >>
> >> i have a gridview object filled with data from the db, note: column
> names
> >> are autodetected.
> >>
> >> its there any way to search over gridview data and filter the results in
> >> gridview or there-s some object with that behaviour?
> >>
> >> Lenz McKAY Gerardo (PICCORO)
> >> http://qgqlochekone.blogspot.com
> >> 
> >> --
> >> Check out the vibrant tech community on one of the world's most
> >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> >> ___
> >> Gambas-user mailing list
> >> Gambas-user@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/gambas-user
> >>
> >
> >
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] search over the gridview and not to the database and refill grid its possible?

2017-06-18 Thread Jorge Carrión
"Dress me slowly that I'm on a hurry"...
There is a Copy-Paste bug on the previous attached file.
This on works (I hope).

I forgot to mention that the class has a "Value" property that return a
collection with the selected row texts as values and the columns heads text
as keys.

Best Regards


2017-06-18 11:14 GMT+02:00 Jorge Carrión :

> Hey, Piccoro,
> Take a look at this, maybe it will serve or give you some idea of how to
> do it.
> It is a class inheriting from gridView and has a new property called
> source, which can be a two-dimensional array, an array of collections or,
> directly, a Result.
> With this it is conformed a gridView that you can order (click on column
> header) and on which you can do searches and certain level of filtering
> (Shift + Click on cell).
> I can not guarantee that it will not have bugs, because it has been very
> little tested, but if it serves you, there you have it.
>
>
>
> Best Regards
> ​
>
> 2017-06-18 7:55 GMT+02:00 PICCORO McKAY Lenz :
>
>> as subject said: search over the gridview event to the database and refill
>> grid its possible?
>>
>> i have a gridview object filled with data from the db, note: column names
>> are autodetected.
>>
>> its there any way to search over gridview data and filter the results in
>> gridview or there-s some object with that behaviour?
>>
>> Lenz McKAY Gerardo (PICCORO)
>> http://qgqlochekone.blogspot.com
>> 
>> --
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>
>


wGridFilterSample-0.0.1.tar.gz
Description: GNU Zip compressed data
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] reparent menu item

2017-06-18 Thread Charlie
Can you supply more detail and an example of what you are trying to do?



-
Check out www.gambas.one 
--
View this message in context: 
http://gambas.8142.n7.nabble.com/reparent-menu-item-tp59386p59397.html
Sent from the gambas-user mailing list archive at Nabble.com.

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] [Gambas Bug Tracker] Bug #1122: SQL syntax highlighter does not respect continued (multiline) strings

2017-06-18 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1122=L21haW4-

Bruce BRUEN added an attachment:

Daily Database Updates_055.png



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] [Gambas Bug Tracker] Bug #1122: SQL syntax highlighter does not respect continued (multiline) strings

2017-06-18 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1122=L21haW4-

Comment #1 by Bruce BRUEN:

The attached project is just a modded version of the component itself.



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] [Gambas Bug Tracker] Bug #1122: SQL syntax highlighter does not respect continued (multiline) strings

2017-06-18 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1122=L21haW4-

Bruce BRUEN reported a new bug.

Summary
---

SQL syntax highlighter does not respect continued (multiline) strings

Type : Bug
Priority : Low
Gambas version   : 3.9.90 (TRUNK)
Product  : GUI components


Description
---

SQL string literals can continue over multiple lines without any special 
treatment as the string is terminated by the first occurrence of the string 
delimiter used. For example, the SQL source file may contain:

COMMENT ON TABLE jockey_stats IS 'At the moment this table contains the 
crosstabulated monthly figures for the jockey over the last 12 months. It is 
created by an involved query that is run daily.
The column names need changing (desperatley)';

The string is totally delimited by the ' character pair and any CR/LF are 
ignored.

The SQL syntax highlighter does not respect that convention and treats 
everything after the "... run daily." as more of the same string.


System information
--

[System]
Gambas=3.9.90 r8135
OperatingSystem=Linux
Kernel=4.1.15-pclos1
Architecture=x86
Distribution=PCLinuxOS
Desktop=LXDE
Theme=Gtk
Language=en_AU.UTF-8
Memory=1005M

[Libraries]
Cairo=libcairo.so.2.11400.6
Curl=libcurl.so.3.0.0
Curl=libcurl.so.4.4.0
DBus=libdbus-1.so.3.14.6
GStreamer=libgstreamer-0.10.so.0.30.0
GStreamer=libgstreamer-1.0.so.0.603.0
GTK+2=libgtk-x11-2.0.so.0.2400.26
GTK+3=libgtk-3.so.0.1400.14
OpenGL=libGL.so.1.2.0
OpenGL=libGL.so.173.14.39
OpenGL=libGL.so.96.43.23
Poppler=libpoppler.so.13.0.0
Poppler=libpoppler.so.19.0.0
Poppler=libpoppler.so.46.0.0
Poppler=libpoppler.so.54.0.0
QT4=libQtCore.so.4.8.7
QT5=libQt5Core.so.5.4.2
SDL=libSDL-1.2.so.0.11.4
SQLite=libsqlite3.so.0.8.6

[Environment]
BROWSER=/usr/bin/www-browser
CANBERRA_DRIVER=pulse
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-6AOFReU3eQ,guid=967e3250abf3a8a11787da3259458417
DESKTOP_SESSION=LXDE
DISPLAY=:0
GB_GUI=gb.qt4
GCONF_TMPDIR=/tmp
GDMSESSION=04LXDE
GDM_XSERVER_LOCATION=local
GIT_PAGER=less -FRS
GPG_AGENT_INFO=/tmp/gpg-5uywEs/S.gpg-agent:3147:1
GTK_MODULES=canberra-gtk-module
GUILE_LOAD_PATH=/usr/share
G_FILENAME_ENCODING=@locale
HISTCONTROL=ignoredups
HISTSIZE=1000
HOME=
HOSTNAME=
INPUTRC=/etc/inputrc
LANG=en_AU.UTF-8
LANGUAGE=en_AU:en_GB:en
LC_ADDRESS=en_AU.UTF-8
LC_COLLATE=en_AU.UTF-8
LC_CTYPE=en_AU.UTF-8
LC_IDENTIFICATION=en_AU.UTF-8
LC_MEASUREMENT=en_AU.UTF-8
LC_MESSAGES=en_AU.UTF-8
LC_MONETARY=en_AU.UTF-8
LC_NAME=en_AU.UTF-8
LC_NUMERIC=en_AU.UTF-8
LC_PAPER=en_AU.UTF-8
LC_SOURCED=1
LC_TELEPHONE=en_AU.UTF-8
LC_TIME=en_AU.UTF-8
LESS=-MM
LESSCHARSET=utf-8
LESSKEY=/etc/.less
LESSOPEN=|/usr/bin/lesspipe.sh %s
LOGNAME=
LS_COLORS=
MAIL=/var/spool/mail/
MDV_MENU_STYLE=discovery
META_CLASS=desktop
NLSPATH=/usr/share/locale/%l/%N
PATH=/bin:/usr/bin:/usr/local/bin:/usr/games:/usr/lib/qt4/bin:/usr/lib/qt5/bin:/usr/bin:/usr/sbin:/usr/lib/kde4/libexec:/bin:/sbin:/usr/X11R6/bin:/usr/games:/usr/local/bin:/usr/local/sbin:/usr/lib/qt5/bin:/usr/bin:/usr/sbin:/usr/lib/kde4/libexec:/bin:/sbin:/usr/X11R6/bin:/usr/games:/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/lib/kde4/libexec
PKG_CONFIG_PATH=/usr/lib/pkgconfig
PWD=
PYTHONDONTWRITEBYTECODE=1
PYTHONSTARTUP=/etc/pythonrc.py
QT4DOCDIR=/usr/share/doc/qt4
QT5DOCDIR=/usr/share/doc/qt5
QTDIR=/usr/lib/qt4
QTDIR5=/usr/lib/qt5
QTINC=/usr/lib/qt3/include
QTLIB=/usr/lib
QT_PLUGIN_PATH=/usr/lib/qt4/plugins/:/usr/lib/kde4/plugins/:/usr/lib64/kde4/plugins:/usr/lib/kde4/plugins
QT_XFT=0
SAL_USE_VCLPLUGIN=gtk
SHELL=/bin/bash
SHLVL=2
SSH_AGENT_PID=3091
SSH_ASKPASS=/usr/lib/ssh/ssh-askpass
SSH_AUTH_SOCK=/tmp/ssh-ARhV7y8AZBzn/agent.3083
TMP=/tmp
TMPDIR=/tmp
TZ=:/etc/localtime
USER=
WINDOWPATH=8
XAUTHORITY=/.Xauthority
XDG_CONFIG_DIRS=/etc/xdg/discovery:/etc/xdg
XDG_CONFIG_HOME=/.config
XDG_CURRENT_DESKTOP=LXDE
XDG_DATA_DIRS=/usr/local/share:/usr/share/gdm:/var/lib/menu-xdg:/usr/share:/usr/share/gdm/
XDG_MENU_PREFIX=lxde-
XDG_SESSION_COOKIE=82ab6c261883e9ffe2a80b674b7b435e-1497728016.181950-1353101201
XMODIFIERS=@im=none
_=/usr/bin/gambas3
_LXSESSION_PID=2617



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] [Gambas Bug Tracker] Bug #1122: SQL syntax highlighter does not respect continued (multiline) strings

2017-06-18 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1122=L21haW4-

Bruce BRUEN added an attachment:

test.form.editor-3.9.90.tar.gz



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] search over the gridview and not to the database and refill grid its possible?

2017-06-18 Thread Jorge Carrión
Hey, Piccoro,
Take a look at this, maybe it will serve or give you some idea of how to do
it.
It is a class inheriting from gridView and has a new property called
source, which can be a two-dimensional array, an array of collections or,
directly, a Result.
With this it is conformed a gridView that you can order (click on column
header) and on which you can do searches and certain level of filtering
(Shift + Click on cell).
I can not guarantee that it will not have bugs, because it has been very
little tested, but if it serves you, there you have it.



Best Regards
​

2017-06-18 7:55 GMT+02:00 PICCORO McKAY Lenz :

> as subject said: search over the gridview event to the database and refill
> grid its possible?
>
> i have a gridview object filled with data from the db, note: column names
> are autodetected.
>
> its there any way to search over gridview data and filter the results in
> gridview or there-s some object with that behaviour?
>
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] search over the gridview and not to the database and refill grid its possible?

2017-06-18 Thread Unaise EK
Is there any substitute for flexgrid in VB for gambas.

On 18 Jun 2017 11:26 a.m., "PICCORO McKAY Lenz" 
wrote:

> as subject said: search over the gridview event to the database and refill
> grid its possible?
>
> i have a gridview object filled with data from the db, note: column names
> are autodetected.
>
> its there any way to search over gridview data and filter the results in
> gridview or there-s some object with that behaviour?
>
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user