Re: [Gambas-user] Editing still blocked

2017-05-16 Thread Glaucio Araujo
That's it!


The TextEditor in your script didn't worked here, just like the code editor.





From: Fabien Bodard  - 2017-05-16 20:47:05

Do you have the same problems on others qt apps ?
>
>
> Can you try that : If you don't have install the scripter package to
> get gbs3 script interpreter
>
> then launch the joined file with 'gbs3 testqt.gbs'
>
> and tell us if the textbox work and if the editor work there are both
> in the generated form.
>
>
---

Gláucio de Araujo

Mail : glaucio.de.ara...@gmail.com
TIM  : (11) 95900-7801 (WhatsApp / Telegram)
--
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] Huge data in gridview documentation wiki does not explain how

2017-05-16 Thread PICCORO McKAY Lenz
Ingo, that My german is not very good, quite limited, a regret to have
family, that German gambas wiki is the best in information, the shrimp
documentation should be so, I mean the amount of documentation aimed
at implementing pieces of code..

the example in the documentation was a good started point thanks.. and
for better the example its attached in each wiki page! wonderfully

if that wiki were in english or spanish, . oh men!
Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com


2017-05-16 16:53 GMT-04:00 ingo :
> Hi,
> have look to the german Gambas-Buch with an example how to load date from a
> db and show it in the gridView.
> http://gambas-buch.de/dw/doku.php?id=k17:k17.7:k17.7.5:start[]=gridview
> 
>
> Hope that helps.
> Ingo
>
>
>
> --
> View this message in context: 
> http://gambas.8142.n7.nabble.com/Huge-data-in-gridview-documentation-wiki-does-not-explain-how-tp59004p59007.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] Huge data in gridview documentation wiki does not explain how

2017-05-16 Thread PICCORO McKAY Lenz
2017-05-16 17:29 GMT-04:00 Tobias Boege :
> On Tue, 16 May 2017, PICCORO McKAY Lenz wrote:
>> if this the case, how can i implement a search input that retrieve data
>> when i put strings!?
>>
>
> At the risk that I didn't understand your question: The GridView does
> not store the data permanently, so you can't search it, but your data
> is stored somewhere, right? In your case your data comes from a data-
> base, so you search the database.

umm and right! but wel the DB are via ODBC and too much communication
could close the connection on the brigde layer! has right, Fabien has
right too, its just a viewer.. so i must made any implmenttion by own
when just user typing.. arrggg

there-s sometigh similar to the trick of json and request/response?

of some trick to made many search to the DB... ?

--
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] Huge data in gridview documentation wiki does not explain how

2017-05-16 Thread Fabien Bodard
2017-05-16 23:21 GMT+02:00 PICCORO McKAY Lenz :
> umm so then as you said, the rs number 3 does not load until i get down
> the gridview to the row 3! ?
>
> if this the case, how can i implement a search input that retrieve data
> when i put strings!?

gridview is just a viewer !
>
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com
>
> 2017-05-16 17:10 GMT-04:00 Tobias Boege :
>
>> On Tue, 16 May 2017, PICCORO McKAY Lenz wrote:
>> > In gambas wiki documentation said:
>> >
>> > You can fill the grid explicitly, or implement the Data
>> >  event to display
>> > the grid contents on demand.
>> >
>> > You should use the last method if you have a lot of rows to display. The
>> > control can handle millions of lines gracefully.
>> >
>> > but i try to set gridview.data event and set GridView1*.*Data*.*Text but
>> > when comes the object said it null (Data) ...
>> >
>> > its there any example to load? i have a CSV and also a table db.. please
>> > its the documentation wrong?
>> >
>>
>> It's not. This method is so fast and easy on memory because you load the
>> GridView contents *on demand*. Read the text carefully: it tells you that
>> the GridView will raise the Data *event* (not the Data property; it even
>> links to the Data event documentation [1] which is IMHO comprehensive
>> enough) when it needs the contents of certain cells.
>>
>> So, when the GridView control detects that it should display a certain
>> cell,
>> identified by a Row and a Column number, it will raise the GridView_Data
>> event with just these Row and Column arguments. *During* such a Data event,
>> the GridView.Data property will contain a valid object and you have to
>> retrieve the cell data somehow (from your CSV file or database or ...) and
>> store it inside the GridView.Data property. You may only use the Data
>> property during the Data event.
>>
>> If you still need an example, the IDE source code has some. You can also
>> look at the implementation of the ListBox control in gb.gui.base. It uses
>> the Data event of a GridView internally, too. (Who would've thought that
>> the ListBox is also just a GridView in disguise?)
>>
>> Regards,
>> Tobi
>>
>> [1] http://gambaswiki.org/wiki/comp/gb.qt4/gridview/.data
>>
>> --
>> "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
>>
> --
> 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



-- 
Fabien Bodard

--
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] Huge data in gridview documentation wiki does not explain how

2017-05-16 Thread Tobias Boege
On Tue, 16 May 2017, PICCORO McKAY Lenz wrote:
> umm so then as you said, the rs number 3 does not load until i get down
> the gridview to the row 3! ?
> 

Yes, why don't you try it yourself?

> if this the case, how can i implement a search input that retrieve data
> when i put strings!?
> 

At the risk that I didn't understand your question: The GridView does
not store the data permanently, so you can't search it, but your data
is stored somewhere, right? In your case your data comes from a data-
base, so you search the database.

Regards,
Tobi

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


Re: [Gambas-user] Huge data in gridview documentation wiki does not explain how

2017-05-16 Thread PICCORO McKAY Lenz
umm so then as you said, the rs number 3 does not load until i get down
the gridview to the row 3! ?

if this the case, how can i implement a search input that retrieve data
when i put strings!?

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

2017-05-16 17:10 GMT-04:00 Tobias Boege :

> On Tue, 16 May 2017, PICCORO McKAY Lenz wrote:
> > In gambas wiki documentation said:
> >
> > You can fill the grid explicitly, or implement the Data
> >  event to display
> > the grid contents on demand.
> >
> > You should use the last method if you have a lot of rows to display. The
> > control can handle millions of lines gracefully.
> >
> > but i try to set gridview.data event and set GridView1*.*Data*.*Text but
> > when comes the object said it null (Data) ...
> >
> > its there any example to load? i have a CSV and also a table db.. please
> > its the documentation wrong?
> >
>
> It's not. This method is so fast and easy on memory because you load the
> GridView contents *on demand*. Read the text carefully: it tells you that
> the GridView will raise the Data *event* (not the Data property; it even
> links to the Data event documentation [1] which is IMHO comprehensive
> enough) when it needs the contents of certain cells.
>
> So, when the GridView control detects that it should display a certain
> cell,
> identified by a Row and a Column number, it will raise the GridView_Data
> event with just these Row and Column arguments. *During* such a Data event,
> the GridView.Data property will contain a valid object and you have to
> retrieve the cell data somehow (from your CSV file or database or ...) and
> store it inside the GridView.Data property. You may only use the Data
> property during the Data event.
>
> If you still need an example, the IDE source code has some. You can also
> look at the implementation of the ListBox control in gb.gui.base. It uses
> the Data event of a GridView internally, too. (Who would've thought that
> the ListBox is also just a GridView in disguise?)
>
> Regards,
> Tobi
>
> [1] http://gambaswiki.org/wiki/comp/gb.qt4/gridview/.data
>
> --
> "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
>
--
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] why not a forum event a complicates instruction on list and mail list

2017-05-16 Thread Tyrone Lucero
Hello, I was inscribe here,  but  I don' t see  any forum... there are
one way to know about use this list?

--
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] Huge data in gridview documentation wiki does not explain how

2017-05-16 Thread Tobias Boege
On Tue, 16 May 2017, PICCORO McKAY Lenz wrote:
> In gambas wiki documentation said:
> 
> You can fill the grid explicitly, or implement the Data
>  event to display
> the grid contents on demand.
> 
> You should use the last method if you have a lot of rows to display. The
> control can handle millions of lines gracefully.
> 
> but i try to set gridview.data event and set GridView1*.*Data*.*Text but
> when comes the object said it null (Data) ...
> 
> its there any example to load? i have a CSV and also a table db.. please
> its the documentation wrong?
> 

It's not. This method is so fast and easy on memory because you load the
GridView contents *on demand*. Read the text carefully: it tells you that
the GridView will raise the Data *event* (not the Data property; it even
links to the Data event documentation [1] which is IMHO comprehensive
enough) when it needs the contents of certain cells.

So, when the GridView control detects that it should display a certain cell,
identified by a Row and a Column number, it will raise the GridView_Data
event with just these Row and Column arguments. *During* such a Data event,
the GridView.Data property will contain a valid object and you have to
retrieve the cell data somehow (from your CSV file or database or ...) and
store it inside the GridView.Data property. You may only use the Data
property during the Data event.

If you still need an example, the IDE source code has some. You can also
look at the implementation of the ListBox control in gb.gui.base. It uses
the Data event of a GridView internally, too. (Who would've thought that
the ListBox is also just a GridView in disguise?)

Regards,
Tobi

[1] http://gambaswiki.org/wiki/comp/gb.qt4/gridview/.data

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


Re: [Gambas-user] Huge data in gridview documentation wiki does not explain how

2017-05-16 Thread PICCORO McKAY Lenz
2017-05-16 16:52 GMT-04:00 Fabien Bodard :

>
> First
> MyGridView.Columns.Count = 1
> hResult = DB.Exec.
>
> A THAT's the problem, THE ODBC row count does not exist, due the
MS/sybase ODBC freedts implementaion or gambas i dont know does not retunr
any more than "-1"


> MyGridView.Rows.Count = hResult.Count
>
> so i set this to a fixed knowed (only for test), and then


>
> then
>
> Public sub MyGridView_Data(Row as integer, Column as Integer)
>
> hResult.MoveTo(Row)
>
> Select case Column
> Case 0
>   Last.Data.Text = hResult!Name
> end Select
>
> end
>

i assume the grid will be filled as the cursor will get down the navigation
vertical bar?


>
>
>
>
>
> 2017-05-16 22:44 GMT+02:00 PICCORO McKAY Lenz :
> > In gambas wiki documentation said:
> >
> > You can fill the grid explicitly, or implement the Data
> >  event to display
> > the grid contents on demand.
> >
> > You should use the last method if you have a lot of rows to display. The
> > control can handle millions of lines gracefully.
> >
> > but i try to set gridview.data event and set GridView1*.*Data*.*Text but
> > when comes the object said it null (Data) ...
> >
> > its there any example to load? i have a CSV and also a table db.. please
> > its the documentation wrong?
> >
> > 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
>
>
>
> --
> Fabien Bodard
>
> 
> --
> 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] Huge data in gridview documentation wiki does not explain how

2017-05-16 Thread ingo
Hi,
have look to the german Gambas-Buch with an example how to load date from a
db and show it in the gridView.
http://gambas-buch.de/dw/doku.php?id=k17:k17.7:k17.7.5:start[]=gridview
  

Hope that helps.
Ingo



--
View this message in context: 
http://gambas.8142.n7.nabble.com/Huge-data-in-gridview-documentation-wiki-does-not-explain-how-tp59004p59007.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


Re: [Gambas-user] Huge data in gridview documentation wiki does not explain how

2017-05-16 Thread Fabien Bodard
Well have you a better exemple.


First
MyGridView.Columns.Count = 1
hResult = DB.Exec.

MyGridView.Rows.Count = hResult.Count


then

Public sub MyGridView_Data(Row as integer, Column as Integer)

hResult.MoveTo(Row)

Select case Column
Case 0
  Last.Data.Text = hResult!Name
end Select

end





2017-05-16 22:44 GMT+02:00 PICCORO McKAY Lenz :
> In gambas wiki documentation said:
>
> You can fill the grid explicitly, or implement the Data
>  event to display
> the grid contents on demand.
>
> You should use the last method if you have a lot of rows to display. The
> control can handle millions of lines gracefully.
>
> but i try to set gridview.data event and set GridView1*.*Data*.*Text but
> when comes the object said it null (Data) ...
>
> its there any example to load? i have a CSV and also a table db.. please
> its the documentation wrong?
>
> 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



-- 
Fabien Bodard

--
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] Editing still blocked

2017-05-16 Thread Fabien Bodard
Do you have the same problems on others qt apps ?


Can you try that : If you don't have install the scripter package to
get gbs3 script interpreter

then launch the joined file with 'gbs3 testqt.gbs'

and tell us if the textbox work and if the editor work there are both
in the generated form.


2017-05-10 11:21 GMT+02:00 Fernando Cabral :
> After some more testing, I found the problem seems to be related to the
> keyboard.
> After all, I've found that I  can edit the source code, as long I only use
> the mouse for editing (cutting, copying, pasting).
> I can click and save the program, I can compile it.
>
> As to the keyboard, no regular key works (digits, alpha or editing: arrow,
> home, pgup or down, insert, delete, etc.)
> Keys that are intercepted by the windows managers do work (for instance,
> ALT+TAB, CTRL^+ALT+T, etc.).
>
> So the problem has now narrowed down to a frozen keyboard. The rub now
> seems to be finding why the IDE is not reading the keyboard.
>
> Regards
>
> - fernando
>
> 2017-05-10 3:47 GMT-03:00 Rolf-Werner Eilert :
>
>> Am 10.05.2017 01:04, schrieb Jussi Lahtinen:
>> > Maybe some window manager setting steal focus from the editor..?
>> >
>> >
>> > Jussi
>> >
>>
>>
>> Further upstairs in the thread, Fernando answered to a question from me:
>>
>> "Nevertheless, the problem appeared after I had
>> downloaded
>> docEditor from the farm. After that, editing has been locked. But I can't
>> affirm there is
>> a cause/effect here.For the time being, I see it as a coincidence."
>>
>> Sounds strange, especially after re-installation, but source code isn't
>> de-installed after all, so the blocking element might still be there.
>>
>> Rolf
>>
>>
>>
>> 
>> --
>> 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
>>
>
>
>
> --
> Fernando Cabral
> Blogue: http://fernandocabral.org
> Twitter: http://twitter.com/fjcabral
> e-mail: fernandojosecab...@gmail.com
> Facebook: f...@fcabral.com.br
> Telegram: +55 (37) 99988-8868
> Wickr ID: fernandocabral
> WhatsApp: +55 (37) 99988-8868
> Skype:  fernandojosecabral
> Telefone fixo: +55 (37) 3521-2183
> Telefone celular: +55 (37) 99988-8868
>
> Enquanto houver no mundo uma só pessoa sem casa ou sem alimentos,
> nenhum político ou cientista poderá se gabar de nada.
> --
> 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



-- 
Fabien Bodard


testqt.gbs
Description: Binary 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


[Gambas-user] Huge data in gridview documentation wiki does not explain how

2017-05-16 Thread PICCORO McKAY Lenz
In gambas wiki documentation said:

You can fill the grid explicitly, or implement the Data
 event to display
the grid contents on demand.

You should use the last method if you have a lot of rows to display. The
control can handle millions of lines gracefully.

but i try to set gridview.data event and set GridView1*.*Data*.*Text but
when comes the object said it null (Data) ...

its there any example to load? i have a CSV and also a table db.. please
its the documentation wrong?

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


[Gambas-user] delivery bounces due bugtracker response

2017-05-16 Thread PICCORO McKAY Lenz
i noted that the bugtracker seems does not understand the mail activity..

1) i made a comment, so i receive two mail, one from bugtracker another
from maillist!

2) i respond the comment due comes from maillist,.. this have two
consecuences:

2.1) the mtu send a mail to bugtracker and also to mail list

2.2) the bugtraker rejects the mail and maillist detect that..


the final consecuence its a bounce behaviour and then disabling delivery!


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] How to use gb.map ".AddPolyLine( )" method ?

2017-05-16 Thread Fabien Bodard
This is done in the last revision. So you can use the polyline to draw
endless line worms and change the line thinkness.

map["MyShapeLayer"][MyObject].LineWidth

Or for all layer objects (default Value =2):

Map["MyShapeLayer"].LineWidth


2017-05-16 22:01 GMT+02:00 Fabien Bodard :
> 2017-05-14 20:26 GMT+02:00 ingo :
>> Hi Fabien,
>> the gb.map works very well. Thank you for this.
>> But I have questions about AddPolyLine:
>>
>> 1) The AddPolyLine() always draws the outline of polygon. Is it possible to
>> have only lines with an 'open end'?
>> I tried to set the last Mappoint to the same values as the next-to-last
>> Mappoint. That does'nt help.
>
> you are right i've done a misstake. i use the paint.polygone to draw
> the polyline. oups
>
>
>>
>> 2) Can I manipulate the thickness of the line?
>
> I can add this but it will be only on the svn version first.
>
>>
>> Thank you in advance.
>> Ingo
>>
>>
>>
>> --
>> View this message in context: 
>> http://gambas.8142.n7.nabble.com/How-to-use-gb-map-AddPolyLine-method-tp57682p58976.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
>
>
>
> --
> Fabien Bodard



-- 
Fabien Bodard

--
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 use gb.map ".AddPolyLine( )" method ?

2017-05-16 Thread Fabien Bodard
2017-05-14 20:26 GMT+02:00 ingo :
> Hi Fabien,
> the gb.map works very well. Thank you for this.
> But I have questions about AddPolyLine:
>
> 1) The AddPolyLine() always draws the outline of polygon. Is it possible to
> have only lines with an 'open end'?
> I tried to set the last Mappoint to the same values as the next-to-last
> Mappoint. That does'nt help.

you are right i've done a misstake. i use the paint.polygone to draw
the polyline. oups


>
> 2) Can I manipulate the thickness of the line?

I can add this but it will be only on the svn version first.

>
> Thank you in advance.
> Ingo
>
>
>
> --
> View this message in context: 
> http://gambas.8142.n7.nabble.com/How-to-use-gb-map-AddPolyLine-method-tp57682p58976.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



-- 
Fabien Bodard

--
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] String[].Find finds nothing

2017-05-16 Thread Matti
Thank you all for your help.
Now, my search is really fast.

For anyone having similar problems:
1. My source was a huge unsorted JSON file. I converted it to a much smaller 
sorted text file. So, reading it into a String array, the array is already 
sorted.
2. String[].Find() indeed works with Mode=gb.Like=4. It's faster than doing the 
For...Next work yourself.
3. But gb.Like doesn't mean it finds anything matching your first characters, 
case insensitive. You have to use 'i = MyStringArray.Find(SearchString & "*", 
gb.Like, 0).

Regards, Matti

Am 10.05.2017 um 18:57 schrieb Matti:
> I tried to search an array with the 'Find' function instead of 'For...Next' 
> and 'InStr'.
>
> The wiki says:
> "String[].Find (gb)
> Function Find ( Value As String [ , Mode As Integer, Start As Integer ] ) As 
> Integer
> Returns the position of the first occurrence of Value in the array.
> If Value cannot be found, -1 is returned."
>
> But I can do what I want, I always get '-1'. No positive result ever.
>
> Attached is a tiny project that should show this behaviour.
> Where is my mistake?
> Thanks in advance
> Matti
>
> Gambas 3.9.2
>
>
> --
> 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 create executable for my application

2017-05-16 Thread rterry


Do You mean the executable was created ok but when you run it the actual 
executable crashes? I'm assuming that if you run your project via the IDE it 
doesn't  crash? More details please


Sent from my Samsung GALAXY S5

 Original message 
From: cheikh diabang  
Date: 16/05/2017  21:27  (GMT+10:00) 
To: Benoît Minisini , 
gambas-user@lists.sourceforge.net 
Subject: [Gambas-user] how create executable for my application 

hi everybody. i have finish to create my application but i have some problème 
to generate the executable.

I use gambas 3.9.2

i have tried in the GUI: Projet--->generate--->executable

But the gambas application crashes


I need help please.
--
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


[Gambas-user] how create executable for my application

2017-05-16 Thread cheikh diabang
hi everybody. i have finish to create my application but i have some problème 
to generate the executable.

I use gambas 3.9.2

i have tried in the GUI: Projet--->generate--->executable

But the gambas application crashes


I need help please.
--
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] Gambas-user Digest, Vol 132, Issue 29

2017-05-16 Thread Glaucio Araujo
Hi, Jussi


My Xorg.0.log is in ~/.local/share/xorg/

Log attached.

My Xinput:


gda@acer:~$ xinput list
⎡ Virtual core pointerid=2[master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer  id=4[slave  pointer
(2)]
⎜   ↳ Logitech M215 2nd Gen   id=11[slave  pointer
(2)]
⎜   ↳ Logitech K330   id=10[slave  pointer
(2)]
⎜   ↳ ETPS/2 Elantech Touchpadid=13[slave  pointer
(2)]
⎣ Virtual core keyboard   id=3[master keyboard (2)]
↳ Virtual core XTEST keyboard id=5[slave  keyboard
(3)]
↳ Power Buttonid=6[slave  keyboard
(3)]
↳ Video Bus   id=7[slave  keyboard
(3)]
↳ Power Buttonid=8[slave  keyboard
(3)]
↳ Sleep Buttonid=9[slave  keyboard
(3)]
↳ AT Translated Set 2 keyboardid=12[slave  keyboard
(3)]
↳ Acer WMI hotkeysid=14[slave  keyboard
(3)]
↳ Logitech K330   id=15[slave  keyboard
(3)]
↳ HD WebCam   id=16[slave  keyboard
(3)]






---

Gláucio de Araujo

Mail : glaucio.de.ara...@gmail.com
TIM  : (11) 95900-7801 (WhatsApp / Telegram)


Date: Mon, 15 May 2017 23:54:16 +0300
> From: Jussi Lahtinen 
> Subject: Re: [Gambas-user] Keyboard locked -- insisting one more time
> To: ferna...@fcabral.com.br,mailing list for gambas users
> 
> Message-ID:
> 

Re: [Gambas-user] Serial I/O with byte data

2017-05-16 Thread Mike Crean
Hi, as I said before most likely Modbus RTU or similar protocol. If so you will 
need to do some BIT bashing and probably 
some CRC conversion. You will need to know the frame size among other things.

Public Sub HbLb()
  Dim Xz2 As Long
  Hb = Fix(DataS / 256)
  Xz2 = Fix(256 * Hb)
  Lb = DataS - Xz2
End
RegardsMike
 

On Monday, 15 May 2017, 23:29, ML  wrote:
 

 Alex,

Without knowing the protocol/device you're communicating with, I don't
think anyone will be able to give substantial help.
But, after years of interfacing very diverse hardware via RS-232 (fiscal
printers, cash-hanlding hardware, GPS, you name it!), I can tell you
that it's not always easy, and docs sometimes lack info or are plain wrong.
Unfortunately the bulk of my experience with hardware is in VB6...
Maybe you're looking at some kind of protocol wrapper bytes... Can't
really say without the detail.

On 15/05/17 08:52, alexchernoff wrote:
> Thanks, it works (both with .tostring and reading one by one...
> But I get values I don't know how to convert, e.g. where I expect a
> decimal 83 or hex 53 I get byte value of 253 ... Or instead of Decimal
> 15 I get 225 :(
> cheers!


--
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] Serial I/O with byte data

2017-05-16 Thread alexchernoff
it works fine - it was a strange serial port hardware issue. All the "Read"
methods suggested above work, Thanks to all!




--
View this message in context: 
http://gambas.8142.n7.nabble.com/Serial-I-O-with-byte-data-tp58933p58995.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