[Gambas-user] IconView strange behavior.

2017-07-04 Thread Gianluigi
Or I did not understand how it works or ... If I set Editable property on true, I expect to be able to change the icon text and receive the Rename event to complete with Move. This does not happen in Trunk 8113, should I report it as an error? Regards Gianluigi --

Re: [Gambas-user] IconView strange behavior.

2017-07-04 Thread Fabien Bodard
can you send an example ? 2017-07-04 10:40 GMT+02:00 Gianluigi : > Or I did not understand how it works or ... > > If I set Editable property on true, I expect to be able to change the icon > text and receive the Rename event to complete with Move. > > This does not happen in Trunk 8113, should I

Re: [Gambas-user] Any (easy) way to render RTF or HTML with gambas?

2017-07-04 Thread Fabien Bodard
Maybe you can send me a source. So i can take an eyes. 2017-07-02 23:17 GMT+02:00 Fernando Cabral : > 2017-07-02 17:19 GMT-03:00 Fabien Bodard : > >> Well DocumentView is just a viewer i've done for gb.report. In fact >> it's abilities is to manages different Image in a paging style layout. >> > >

Re: [Gambas-user] Any (easy) way to render RTF or HTML with gambas?

2017-07-04 Thread Fernando Cabral
Sure, Fabien, here it is. Note that basically, I took your program and deleted what I didn' t need. I didn't need, for instance, a file pickup list -- That's because I know beforehand which file I want to display. I could put to good use some niceties like a zooming button, but I can do without th

Re: [Gambas-user] IconView strange behavior.

2017-07-04 Thread Gianluigi
Hi Fabien, I attach the rename test as required. Regards Gianluigi 2017-07-04 12:03 GMT+02:00 Fabien Bodard : > can you send an example ? > > 2017-07-04 10:40 GMT+02:00 Gianluigi : > > Or I did not understand how it works or ... > > > > If I set Editable property on true, I expect to be able to

Re: [Gambas-user] System.Language (gb)

2017-07-04 Thread PICCORO McKAY Lenz
2017-07-03 17:57 GMT-04:00 bb : > Thanks Tobi, > > ( I looked but couldn't find it in main ???) > > WIki updated. > wiki spanish translated but.. > > Any comment on the UTF-8 bit? yeah? seems there's its no care of? > > > b > > > >

Re: [Gambas-user] Fwd: Problem to be examined by those who must use UTF8 with Gambas

2017-07-04 Thread Benoît Minisini via Gambas-user
Le 02/07/2017 à 01:12, Fernando Cabral a écrit : -- Forwarded message -- From: Fernando Cabral Date: 2017-07-01 17:34 GMT-03:00 Subject: Re: [Gambas-user] Problem to be examined by those who must use UTF8 with Gambas To: Jussi Lahtinen 2017-07-01 16:15 GMT-03:00 Jussi Lahtinen

[Gambas-user] Is it possible to read a file directly into an array?

2017-07-04 Thread Fernando Cabral
Is there a straightforward way to read a file directly into an array? Say I have a file with several lines (lines ended with "\n"). I want to read each line and push its content as an item of an array. Lets say the file contents are "a\nb\nc\n" and what I need is: word[0] = "a" word[1] = "b" word

Re: [Gambas-user] Is it possible to read a file directly into an array?

2017-07-04 Thread Fernando Cabral
Well, I found a very easy way to do it: *Dim Wordlist as string []* *Wordlist = Split(File.Load("strings.txt"), "\n")* It seems it can't be easier, can it? 2017-07-04 12:06 GMT-03:00 Fernando Cabral : > Is there a straightforward way to read a file directly into an array? > Say I have a fil

Re: [Gambas-user] who to detect if are running inside IDE

2017-07-04 Thread PICCORO McKAY Lenz
so in short investigations i have Public Sub Main() print "running" #If Exec print "in ide" #Endif End so testing by normal steps to compile produce a exec (either a cgi or not) so works for cgi: $ gbc3 -ga $ gba3 $ ./test.gambas running but for other cases i see tha if gambas

[Gambas-user] gambas for MAC OS ppc/intel ?

2017-07-04 Thread PICCORO McKAY Lenz
i can see that there a FreeBSD install/compile how to in wiki: http://gambaswiki.org/wiki/install/freebsd since MacOS / ppc flavor are based lossely on FreeBSD, there's a MacOS version of Gambas ? and also a MacOS /intel version of gambas at least? Len

[Gambas-user] Isn't bracket regular expression compatible with UTF8?

2017-07-04 Thread Fernando Cabral
I have been trying something like *poder[^[:alpha:]* so I could find the word "poder " ("poder" followed by an space) but not "poderão" ("ã" being an alpha character in Portuguese.) In English it could be like finding "power" but not "powerless". Problem is that it seems [^[alpha]] includes acc

[Gambas-user] Mystery with file.load and regexp

2017-07-04 Thread Fernando Cabral
Concerning RegExp I have another mysterious thing to understand If I do something like: *Searchfor.Push("Word")Searchfor.Push("Power")Searchfor.Push("The same")For Each searchedfor In searchfor re.Compile(searchedfor, re.utf8)Next* The expression gest compiled. No error. Neverthelesse, i

Re: [Gambas-user] Mystery with file.load and regexp

2017-07-04 Thread Fernando Cabral
I have found and worked around the problem. When you do the following: *Dim Expressions as string[] = Split(File.Load("/home/fernando/.config/libreoffice/4/user/basic/indesejaveis.txt"), "\n") * The last item pushed into *Expressions* is an empty string ("") even though it DOES NOT exist in the f

[Gambas-user] [Gambas Bug Tracker] Bug #1113: ODBC driver problem: driver connects but does not exec query

2017-07-04 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1113&from=L21haW4- Comment #14 by PICCORO LENZ MCKAY: hi, how its the progress on this?, gambas 3.10 i think could be released soon i guess/suspect i'm very interesting that of all the reported issues of odbc this about inmediate query could be r

Re: [Gambas-user] Mystery with file.load and regexp

2017-07-04 Thread Tony Morehen
File.Load is working fine. It is just loading a file that has a trailing "\n". Split then adds an empty string as the last entry in the array. This is Split's documented behaviour. Adding the True option suppresses empty entries. Note that Split will also add an empty entry for any blank l

Re: [Gambas-user] Mystery with file.load and regexp

2017-07-04 Thread bb
On 05/07/17 11:58, Fernando Cabral wrote: I have found and worked around the problem. When you do the following: *Dim Expressions as string[] = Split(File.Load("/home/fernando/.config/libreoffice/4/user/basic/indesejaveis.txt"), "\n") * The last item pushed into *Expressions* is an empty string