M. Cs. | 1 Jun 2012 10:03
Picon

Silly behavior on Mageia 2

Hi,
I'm testing my Gambas3 application on the new Mageia 2 release, and
I'm encountering weird things:
1. There's no mp3 playback with gb.sdl.sound component
2. The Exist() cannot find existing files.
I have no such errors on Kubuntu..

I was a big fan of Mandriva, so I wanted to give a try to its fork,
but the result isn't very impressive. Moreover, I never had decent
results with any of big RPM based distributions ( openSuse, Fedora,
Mandriva and now Mageia too). There are nearly always dependency
problems. But in present case I just don't know what's wrong.

Any similar experiences, solutions?

Csaba

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Benoît Minisini | 1 Jun 2012 10:20
Picon

Re: Silly behavior on Mageia 2

Le 01/06/2012 10:03, M. Cs. a écrit :
> Hi,
> I'm testing my Gambas3 application on the new Mageia 2 release, and
> I'm encountering weird things:
> 1. There's no mp3 playback with gb.sdl.sound component

SDL must be allowed to play mp3 files, but I don't know if it is enabled 
at compilation time or by installing a specific library.

> 2. The Exist() cannot find existing files.

Please provide the value of System.Charset and System.Language.

> I have no such errors on Kubuntu..
>
> I was a big fan of Mandriva, so I wanted to give a try to its fork,
> but the result isn't very impressive. Moreover, I never had decent
> results with any of big RPM based distributions ( openSuse, Fedora,
> Mandriva and now Mageia too). There are nearly always dependency
> problems. But in present case I just don't know what's wrong.

My own experience is the contrary: I now use Kubuntu since two years, 
and it has been always far more buggy than Mandriva. I just find dpkg 
faster than rpm.

At the moment I'm trying to find why my right control key suddenly 
stopped working by emitting a key code that no application recognizes...

Regards,

(Continue reading)

Rolf-Werner Eilert | 1 Jun 2012 10:42
Picon
Favicon

Re: Gridview Q and determining width of a string

Hi Richard,

>
> I'm loading a grid with variable length strings, and want to adjust the
> column widths to match, or have the option to increase the height of a
> cell with word-wrap within the cell.
>
> I wondered if anyone has gone down this path before.

Yes and no :-)

To adjust the width, use Table.Font.Width(LongestString), maybe with a 
for-next loop at first to check the contents of all cells in a column, 
delivering a pointer to the longest string. As far as I understand, the 
Table (or Grid) has one font only, so it can be easily set this way. 
Correct me if I'm wrong.

The WordWrap feature is switched on in one of my projects here, but I 
cannot find where quickly. Maybe I simply switched it on in the IDE as a 
default. Anyway, I'm having difficulties with the height of the line as 
it is not adapted automatically (at least this is my problem in Gambas2, 
I don't know how this is in Gambas3 yet).

In this context I really like your idea with the label though the way 
you use it is not necessary as you have Table.Font.Width to do this:

>
> I tried having a hidden label with auto-resize = false, setting the
> label.text property to the string, reading the width, then setting the
> max width of all the strings to the column width. This works but seems
(Continue reading)

Rolf-Werner Eilert | 1 Jun 2012 11:53
Picon
Favicon

Re: Gridview Q and determining width of a string

Am 01.06.2012 00:27, schrieb Richard Terry:
> Hi List
>
> A few qridview questions if anyone has time.
>
> I'm loading a grid with variable length strings, and want to adjust the
> column widths to match, or have the option to increase the height of a
> cell with word-wrap within the cell.
>
> I wondered if anyone has gone down this path before.
>
> I tried having a hidden label with auto-resize = false, setting the
> label.text property to the string, reading the width, then setting the
> max width of all the strings to the column width. This works but seems
> messy, plus I found I had to put a Wait command after each label update
> or the label didn't resize.
>
> Also would be interested in how to wrap text within a grid cell.
>
> Regards
>
> richard

Ok, I just did some trial code, and it may run like this:

- Give a fixed Column.Width.
- Browse the strings and find out if Table.Font.Width(of the 
investigated Cell) is greater than the appropriate Column.Width.
- If yes: set the string into a TextLabel which has AutoResize = True 
and the Width of which is the same like Column.Width.
(Continue reading)

Benoît Minisini | 1 Jun 2012 12:09
Picon

Re: Bug with rev 4772

Le 31/05/2012 19:09, Jussi Lahtinen a écrit :
> I'm trying to isolate this problem, and while messing up with things I
> found bug (signal 11) that might be related.
> Project attached.
>

I fixed circular initialization problem in revision #4799.

Of course, now, you cannot suppose that a class is entirely initialized 
when using it as soon as there is a circular dependency like in your 
test project.

Regards,

--

-- 
Benoît Minisini

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Richard Terry | 1 Jun 2012 13:55
Favicon

Re: Gridview Q and determining width of a string

Rolf-Werner Eilert wrote:
> Hi Richard,
>
>
>   
>> I'm loading a grid with variable length strings, and want to adjust the
>> column widths to match, or have the option to increase the height of a
>> cell with word-wrap within the cell.
>>
>> I wondered if anyone has gone down this path before.
>>     
>
> Yes and no :-)
>
> To adjust the width, use Table.Font.Width(LongestString), maybe with a 
> for-next loop at first to check the contents of all cells in a column, 
> delivering a pointer to the longest string. As far as I understand, the 
> Table (or Grid) has one font only, so it can be easily set this way. 
> Correct me if I'm wrong.
>
> The WordWrap feature is switched on in one of my projects here, but I 
> cannot find where quickly. Maybe I simply switched it on in the IDE as a 
> default. Anyway, I'm having difficulties with the height of the line as 
> it is not adapted automatically (at least this is my problem in Gambas2, 
> I don't know how this is in Gambas3 yet).
>
> In this context I really like your idea with the label though the way 
> you use it is not necessary as you have Table.Font.Width to do this:
>
>   
(Continue reading)

Richard Terry | 1 Jun 2012 15:27
Favicon

Re: Gridview Q and determining width of a string

Rolf-Werner Eilert wrote:
> Am 01.06.2012 00:27, schrieb Richard Terry:
>   
>> Hi List
>>
>> A few qridview questions if anyone has time.
>>
>> I'm loading a grid with variable length strings, and want to adjust the
>> column widths to match, or have the option to increase the height of a
>> cell with word-wrap within the cell.
>>
>> I wondered if anyone has gone down this path before.
>>
>> I tried having a hidden label with auto-resize = false, setting the
>> label.text property to the string, reading the width, then setting the
>> max width of all the strings to the column width. This works but seems
>> messy, plus I found I had to put a Wait command after each label update
>> or the label didn't resize.
>>
>> Also would be interested in how to wrap text within a grid cell.
>>
>> Regards
>>
>> richard
>>     
>
> Ok, I just did some trial code, and it may run like this:
>
> - Give a fixed Column.Width.
> - Browse the strings and find out if Table.Font.Width(of the 
(Continue reading)

Benoît Minisini | 1 Jun 2012 16:30
Picon

Transparent side panels

Hi,

In revision #4800, I added a "Transparent" to the SidePanel property to 
restore its old behaviour.

By default, Transparent is FALSE, and you get the old behaviour.

If you set Transparent to TRUE, you get the new behaviour, with the 
SidePanel handles appearing when the SidePanel border is hovered.

Regards,

--

-- 
Benoît Minisini

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
Benoît Minisini | 1 Jun 2012 17:43
Picon

Re: Suggestion: Packaging preferences in gambas3.config

Le 31/05/2012 05:38, Bruce a écrit :
> Hi Benoît,
>
> Attached are three diffs that add a small benefit to those whose package
> up a lot of projects.  Basically it adds "default" settings for the
> items on the first page of the FMakeInstall wizard.  These are help in
> the gambas3.config file.
>
> The changes are:
> 1) add another tab to the Preferences form to allow the user to
> set/change the defaults for packaging info.
> 2) changes the name of the "Packages" tab to "Source Archives" (ditto
> the label on that tab.
> 3) adds logic to FOptions.class to manage the default values in and out
> of Settings
> 4) adds logic to the FMakeInstall form to look for these defaults in
> Settings[FMakeInstall/...]
>
> The benefits are only to those who do package a lot of projects.
>
> Hope you see your way to adopting these.  I wrote them after having to
> type in the same info 20 times and retype them after mispelling the
> email address every time. (And I hate managing conflicts in trunk.)
>
> regards
> Bruce
>

Cool, but I hugely prefer that you commit your changes directly with 
subversion. Integrating a diff file from a past revision is a bit of 
(Continue reading)

Benoît Minisini | 1 Jun 2012 17:46
Picon

Re: sqlite database inside an executable

Le 29/05/2012 07:43, Bruce a écrit :
> Is there any way to access (read-only of course) an sqlite database
> inside the gambas executable?
>
> Strange idea I know, but I've got this "really good idea".
>
> Bruce
>

At program startup, you must copy the sqlite file from the executable 
(with COPY) to a real file in a temporary directory, and then open it.

Some methods of some components can do that automatically and 
transparently. But not gb.db.sqlite at the moment.

Regards,

--

-- 
Benoît Minisini

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

Gmane