Re: [Gambas-user] Cannot find Gambas on Suse Leap 42.2

2017-10-31 Thread Rolf-Werner Eilert

Am 30.10.2017 17:48, schrieb Benoît Minisini:

Le 30/10/2017 à 17:09, Rolf-Werner Eilert a écrit :

I had it installed twice on two different systems, but on the third
one, it suddenly doesn't appear anymore. Yast as well as zypper don't
want to know it anymore.

I looked on the website 1-click-install and downloaded a package from
"education", but it does not contain gbs3 for instance.

In this case, I urgently need gbs3.

Has someone an idea why I do not find the complete package?

Thanks !!!

Rolf



Please stop using the old mailing-list, and use the new one instead.

Regards,



Yes, I am on the new list. This time, however, I just picked the address 
from another mail in the list and chose "write mail to".


Regards
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


[Gambas-user] Cannot find Gambas on Suse Leap 42.2

2017-10-30 Thread Rolf-Werner Eilert
I had it installed twice on two different systems, but on the third one, 
it suddenly doesn't appear anymore. Yast as well as zypper don't want to 
know it anymore.


I looked on the website 1-click-install and downloaded a package from 
"education", but it does not contain gbs3 for instance.


In this case, I urgently need gbs3.

Has someone an idea why I do not find the complete package?

Thanks !!!

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


Re: [Gambas-user] Function to count substrings

2017-09-13 Thread Rolf-Werner Eilert

Thank you Luigi,

This is what I had programmed myself (more or less). I just thought 
there might be a ready-made function like CountStr() or StrCtr() or 
something :)


Regars
Rolf


Am 13.09.2017 11:01, schrieb Gianluigi:

Sorry the link to see it work is this :-(
https://gambas-playground.proko.eu/?gist=d0fc775a24c00f2d5271865a565739ef

Regards
Gianluigi

2017-09-13 10:53 GMT+02:00 Gianluigi <bagone...@gmail.com>:


And something like that?
https://gist.github.com/anonymous/d0fc775a24c00f2d5271865a565739ef

Regards
Gianluigi

2017-09-13 10:04 GMT+02:00 Rolf-Werner Eilert <rwe-...@osnanet.de>:


Thanks Julio,

good idea! - but: isn't this a bit too much? After all, you have to
instantiate a string[] for it each time, even though you don't see it. Or
am I wrong? At least when it has to be called many times (for a table like
in my case).

Regards
Rolf


Am 13.09.2017 09:32, schrieb Julio Sanchez:


Hi Rolf:

"how many times does .."
Maybe this may be worth this:

count=split(mystring,chr$(10)).count

Regards,
Julio

2017-09-13 9:18 GMT+02:00 Rolf-Werner Eilert <rwe-...@osnanet.de>:

Hi folks,


Somehow I don't remember this - wasn't there a function to count the
number of substrings occuring within a string?

For instance, how many times does myString contain chr$(10) (to count
the
number of linefeeds). So it would be a blend of Instr() and String$().

Thanks for your input!

Regards
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



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





--
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] Function to count substrings

2017-09-13 Thread Rolf-Werner Eilert

Thanks Julio,

good idea! - but: isn't this a bit too much? After all, you have to 
instantiate a string[] for it each time, even though you don't see it. 
Or am I wrong? At least when it has to be called many times (for a table 
like in my case).


Regards
Rolf


Am 13.09.2017 09:32, schrieb Julio Sanchez:

Hi Rolf:

"how many times does .."
Maybe this may be worth this:

count=split(mystring,chr$(10)).count

Regards,
Julio

2017-09-13 9:18 GMT+02:00 Rolf-Werner Eilert <rwe-...@osnanet.de>:


Hi folks,

Somehow I don't remember this - wasn't there a function to count the
number of substrings occuring within a string?

For instance, how many times does myString contain chr$(10) (to count the
number of linefeeds). So it would be a blend of Instr() and String$().

Thanks for your input!

Regards
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


--
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] Function to count substrings

2017-09-13 Thread Rolf-Werner Eilert

Hi folks,

Somehow I don't remember this - wasn't there a function to count the 
number of substrings occuring within a string?


For instance, how many times does myString contain chr$(10) (to count 
the number of linefeeds). So it would be a blend of Instr() and String$().


Thanks for your input!

Regards
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


Re: [Gambas-user] Thunderbird issue

2017-08-28 Thread Rolf-Werner Eilert

Am 28.08.2017 06:08, schrieb Christof Thalhofer:

Am 28.08.2017 um 05:48 schrieb Christof Thalhofer:


We will have to wait until TB 57


Ahm sorry, "TB 52.4 at the end of September".

Alles Gute

Christof Thalhofer



Strange that you see this only now. I have had this problem for ages. On 
my main system, I work with Thunderbird 17, and it has shown this forever.


The problem arises when I get 2 mails from someone, one mail is with the 
personal adress and one Answer button only, the other one has Answer AND 
Answer to List. In most cases, the two mails appear in different fonts. 
So I am pretty much used to looking for the right one and clicking 
Answer To List.


As this has been going for years, I would not wonder anymore. The only 
thing that changed recently is that I now get mails with "mailing list 
for Gambas users" instead of the sender's name.


Regards
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


Re: [Gambas-user] CRYPT function - a little help please?

2017-08-25 Thread Rolf-Werner Eilert

Ok Adrien,

> First of all, the documentation of gb.crypt is completely wrong. As

Tobias says,
its methods have *nothing* to do with encryption : they only make
hashes, and NONE



is there a way to make real encryption in Gambas? If I wanted to encrypt 
some file with a password for instance, what would I do?


Regards
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


Re: [Gambas-user] CRYPT function - a little help please?

2017-08-25 Thread Rolf-Werner Eilert


NOW - if anyone out there has a minute and knows - where does

this encrypted file or string reside after it is created?




Guess where strings reside, somewhere in memory, with a pointer to it... 
Depends on the interpreter.


Why do you care? It's encrypted. If you care for security, the 
unencrypted original would be more interesting, but can easily be 
deleted or written over.


Or did I get you completely wrong here?

Regards
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


Re: [Gambas-user] Connect to and control LibreOffice

2017-08-22 Thread Rolf-Werner Eilert

Am 22.08.2017 13:05, schrieb Benoît Minisini via Gambas-user:

Le 22/08/2017 à 12:52, Rolf-Werner Eilert a écrit :

Am 22.08.2017 12:41, schrieb Benoît Minisini via Gambas-user:

Le 22/08/2017 à 05:47, Doug Hutcheson a écrit :

On the page http://gambaswiki.org/wiki/doc/intro?nh is this
information:

Gambas is build on top of many free softwares, and could not exist
without them.
So I would like to thank every people involved in the following
projects:
  * Linux
  * KDE
  * GCC and all of the GNU tools, of course.
  * The Qt toolkit.
  * The GIMP and its toolkit GTK+.
  * Libre Office.
  * The MySQL, PostgreSQL and SQLite database management systems.
  * And any other libraries used by Gambas.

The reference to LibreOffice is interesting. Does it mean there are
built-in 'hooks' into LibreOffice? I suppose that would be too much to
hope for, but perhaps there is a 'bridge' between LO and Gambas? I need
to update several LO spreadsheets in tandem with creating and
maintaining a new PostgreSQL database storing the same data but in
properly normalised tables.I cannot change the structure of the
existing spreadsheets, so just uncompressing them and running search-
and-replace processes is not quite good enough.

Any pointers to help in this would be welcome, even if only to say I am
wasting my time."8-)
Kind regards,
Doug


No, it just means that I used LibreOffice to write some presentation
files. :-)

When I want to create a LibreOffice file, I do the following:

- I create a "template" LibreOffice file that has the look of the final
file, and where the data I want to put is replaced by string patterns.

- I unzip the LibreOffice file.

- I modify the content.xml file by replacing the string patterns with
the final data.

- I zip the result, and I get my final LibreOffice file.

Regards,



Clever :) I will print this and pin it to the wall... Might even be a
way to cope with Scribus.

Regards

Rolf



Of course it is actually more complex: the structure of the content.xml
file is sometimes difficult to manage, especially with LibreOffice
sheets. Using the XML components may help.

Regards,



Yeah, ok, I am fully aware of that. But if I would need a single sheet 
of paper with some graphical stuff (a form to fill and check some 
squares etc.) this might help.


Regards
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


Re: [Gambas-user] Connect to and control LibreOffice

2017-08-22 Thread Rolf-Werner Eilert

Am 22.08.2017 12:41, schrieb Benoît Minisini via Gambas-user:

Le 22/08/2017 à 05:47, Doug Hutcheson a écrit :

On the page http://gambaswiki.org/wiki/doc/intro?nh is this
information:

Gambas is build on top of many free softwares, and could not exist
without them.
So I would like to thank every people involved in the following
projects:
  * Linux
  * KDE
  * GCC and all of the GNU tools, of course.
  * The Qt toolkit.
  * The GIMP and its toolkit GTK+.
  * Libre Office.
  * The MySQL, PostgreSQL and SQLite database management systems.
  * And any other libraries used by Gambas.

The reference to LibreOffice is interesting. Does it mean there are
built-in 'hooks' into LibreOffice? I suppose that would be too much to
hope for, but perhaps there is a 'bridge' between LO and Gambas? I need
to update several LO spreadsheets in tandem with creating and
maintaining a new PostgreSQL database storing the same data but in
properly normalised tables.I cannot change the structure of the
existing spreadsheets, so just uncompressing them and running search-
and-replace processes is not quite good enough.

Any pointers to help in this would be welcome, even if only to say I am
wasting my time."8-)
Kind regards,
Doug


No, it just means that I used LibreOffice to write some presentation
files. :-)

When I want to create a LibreOffice file, I do the following:

- I create a "template" LibreOffice file that has the look of the final
file, and where the data I want to put is replaced by string patterns.

- I unzip the LibreOffice file.

- I modify the content.xml file by replacing the string patterns with
the final data.

- I zip the result, and I get my final LibreOffice file.

Regards,



Clever :) I will print this and pin it to the wall... Might even be a 
way to cope with Scribus.


Regards

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


Re: [Gambas-user] Creating a picture and inserting

2017-08-10 Thread Rolf-Werner Eilert
There was a typo in what I programmed yesterday, I found it - sorry for 
the noise and thank you very much again, Fabien!


Regards
Rolf


Am 09.08.2017 18:20, schrieb Rolf-Werner Eilert:

One more question:

If I need a Picture (e.g. for a GridView), how do I convert it?

Regards
Rolf

Am 09.08.2017 17:23, schrieb Fabien Bodard:

   Dim i As Integer
   Dim hImg As Image

   For i = 0 To 200
 hImg = New Image(32, 32, Color.Transparent)

 Paint.Begin(hImg)
 Paint.Font.Bold = True

 Paint.Ellipse(0, 0, Paint.Width, Paint.Height)

 Paint.Brush = Paint.Color(Color.Yellow)
 Paint.Fill(True)
 Paint.Brush = Paint.Color(Color.Black)
 Paint.Stroke

 Paint.Text(i, 0, 0, Paint.Width, Paint.Height, Align.Center)
 Paint.Brush = Paint.Color(Color.red)
 Paint.Fill

 Paint.End

 ListView1.Add(i, "Item " & i, hImg.Picture)
   Next



--

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] Creating a picture and inserting

2017-08-09 Thread Rolf-Werner Eilert

One more question:

If I need a Picture (e.g. for a GridView), how do I convert it?

Regards
Rolf

Am 09.08.2017 17:23, schrieb Fabien Bodard:

   Dim i As Integer
   Dim hImg As Image

   For i = 0 To 200
 hImg = New Image(32, 32, Color.Transparent)

 Paint.Begin(hImg)
 Paint.Font.Bold = True

 Paint.Ellipse(0, 0, Paint.Width, Paint.Height)

 Paint.Brush = Paint.Color(Color.Yellow)
 Paint.Fill(True)
 Paint.Brush = Paint.Color(Color.Black)
 Paint.Stroke

 Paint.Text(i, 0, 0, Paint.Width, Paint.Height, Align.Center)
 Paint.Brush = Paint.Color(Color.red)
 Paint.Fill

 Paint.End

 ListView1.Add(i, "Item " & i, hImg.Picture)
   Next



--
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] Creating a picture and inserting

2017-08-09 Thread Rolf-Werner Eilert

Yes! That was it! Thank you very much, Fabien!

Regards
Rolf


Am 09.08.2017 17:23, schrieb Fabien Bodard:

   Dim i As Integer
   Dim hImg As Image

   For i = 0 To 200
 hImg = New Image(32, 32, Color.Transparent)

 Paint.Begin(hImg)
 Paint.Font.Bold = True

 Paint.Ellipse(0, 0, Paint.Width, Paint.Height)

 Paint.Brush = Paint.Color(Color.Yellow)
 Paint.Fill(True)
 Paint.Brush = Paint.Color(Color.Black)
 Paint.Stroke

 Paint.Text(i, 0, 0, Paint.Width, Paint.Height, Align.Center)
 Paint.Brush = Paint.Color(Color.red)
 Paint.Fill

 Paint.End

 ListView1.Add(i, "Item " & i, hImg.Picture)
   Next



--
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] Creating a picture and inserting

2017-08-09 Thread Rolf-Werner Eilert
I meant the latter: drawing the picture by the program dynamically and 
then use it directly.


The only way I found was Picture.Save(), then Picture.Load() in the 
ListView or whatever, but that is somewhat roundabout. In my program, I 
could use it, because the picture would have to be made only once and 
then could stay the same, but it still needs to use the filesystem for it.


Regards
Rolf


Am 09.08.2017 16:46, schrieb Fabien Bodard:

well i do not understand what you want exactly ...

drawing a picture with the mouse on the drawing area and copy the
picture in a list view ?

or

Drawing picture/image dynamiquely in memory and then use it in a list view ?



2017-08-09 16:14 GMT+02:00 Rolf-Werner Eilert <rwe-...@osnanet.de>:

A similar question like a few days ago - now with a list view...

Is there a way to create some form of a Picture and use it for the running
program?

What I think about: Using a DrawingArea, draw something small, make it a
Picture and then directly use it to insert it into a ListView, GridView, on
any Button etc.

How can I save/re-use a Picture? Or do I have to draw it somewhere else?

Thank you for your insight!

Regards
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







--
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] Creating a picture and inserting

2017-08-09 Thread Rolf-Werner Eilert

A similar question like a few days ago - now with a list view...

Is there a way to create some form of a Picture and use it for the 
running program?


What I think about: Using a DrawingArea, draw something small, make it a 
Picture and then directly use it to insert it into a ListView, GridView, 
on any Button etc.


How can I save/re-use a Picture? Or do I have to draw it somewhere else?

Thank you for your insight!

Regards
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


Re: [Gambas-user] Gambas ML problem

2017-08-09 Thread Rolf-Werner Eilert

Am 09.08.2017 15:29, schrieb Gianluigi:

What is happening to our ML?
It does not seem to work anymore.
Charlie here [0] asks this but I do not have receive it, and the last mails
I received after 2 August here [0] do not appear.
Probably Benoit has announced that version 3.10 is official but I have not
received ...

[0] http://gambas.8142.n7.nabble.com/gambas-user-f3.html
--


Everything fine on my side today.

Regards
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


Re: [Gambas-user] Two colors and two entries in a GridView

2017-08-04 Thread Rolf-Werner Eilert

Am 04.08.2017 09:16, schrieb Tobias Boege:

On Fri, 04 Aug 2017, Rolf-Werner Eilert wrote:

In a GridView, it occurs that I need two different entries with two
different background colors in a few of the cells. So I thought about
different solutions for this.



You mean two different colors in the same cell and that's why you can't use
the Background property of the cell?


Yes, that is what I meant.




1. Using RichText doesn't produce any entries here on my system, don't know
why, but it might have been an easy way to use it with a  with two
columns. But even .Data.RichText = "Hello" doesn't show anything in the
cell...



GridView.Data is only to be used to provide data to the GridView inside its
Data event (see the documentation). To access a particular cell use

   GridView[Row, Column].RichText = ...


Well, I did put it into the Data event, and using .Data.Text = "hello" 
runs. Using RichText does not.


Do you remember the thread I started some two weeks ago, when I found 
that RichText showed pure text but would show nothing if I used 
? That was on my laptop, newer system, now I am on my 
office system, maybe that is why. (Gambas is the same, 3.9.2)


Anyway, I have made so many bad experiences with RichText in the 
GridView that I thought about other ways of implementing this.


Regards
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


[Gambas-user] Two colors and two entries in a GridView

2017-08-04 Thread Rolf-Werner Eilert
In a GridView, it occurs that I need two different entries with two 
different background colors in a few of the cells. So I thought about 
different solutions for this.


1. Using RichText doesn't produce any entries here on my system, don't 
know why, but it might have been an easy way to use it with a  
with two columns. But even .Data.RichText = "Hello" doesn't show 
anything in the cell...


2. Once upon a time, I used TextLabels created dynamically at runtime to 
show calendar entries. This means, however, they are hovering above the 
GridView, not alowing direct mouse-click access to the cell below. On my 
calendar it doesn't matter, but it would screw up things unnecessarily 
in my current project.


3. It is possible to add a picture to a cell, the picture being shown on 
the left-hand side of the cell with the text at its right. Now, I 
thought it might be possible to create a little Picture with the second 
color and second entry virtually in the background and simply send it to 
the cell. Do you think this is possible, and how?


This is what I came about:

- DrawingArea, Not Visible, Cached
- its size = cell height, but cell width / 2
- Background for the second entry
- Font as in the cell
- write text for the second entry

Then I would have to send this as a Picture to the GridView cell - but how?

Thank you for reading up to here and for any ideas!

Regards
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


[Gambas-user] Dragging from one control to another

2017-07-21 Thread Rolf-Werner Eilert

Hello,

Still having trouble with this:

I have two GridViews. I want the user to drag and drop elements from one 
table to the other.


When the mouse leaves the first GridView, the second doesn't register 
MouseUp. (It does run within one and the same GridView.)


The GridView_Drop event doesn't fire at all. No idea why.

Can someone point me to a simple way to manage this?

Thanks for your help!

Regards
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


[Gambas-user] New Gambas on Suse

2017-07-20 Thread Rolf-Werner Eilert

Hi folks,

Now that the next version of Gambas is en route, I wonder whether it 
will come on Suse Leap 42.2 automatically, as there are lots of updates 
to Gambas each time I update the system.


Or will I have to compile myself, as I was used to do on my older systems?

Thank you for your insight!

Regards

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


Re: [Gambas-user] How to use drag-and-drop

2017-07-13 Thread Rolf-Werner Eilert



Am 11.07.2017 um 12:23 schrieb Charlie:

Rolf-Werner Eilert-2 wrote

The basic usage of the drag-and-drop functions isn't quite clear to me.
I couldn't find much information in the wiki about it. Here is my code.
I use t$ as a simple storage place and TextBox1 is only to see what the
thing does.

The user should pick the red cell in GridView1 and drag it to another
cell. The contents should appear there.

I use "MouseUp" and not "Drop" because Drop didn't have any result. But
maybe the way I implemented the whole thing isn't the right one anyhow?

Your code works. Is it that you want to drag the Background colour as well?
You can only drag Text or Images so if you want the Background as well you
will need to use other tricks. Try your modified code below. If I have
missed the point let me know.

Public Sub GridView1_MouseUp()

TextBox1.Text = GridView1.Row & "::" & GridView1.Column
GridView1.Current.Text = t$
GridView1.Current.Background = iBackGround

End




Thank you Charlie for your answer.

I wonder why GridView1_Drop doesn't fire here. So I was forced to use 
MouseUp instead. The inconvenience here is that I have to use a flag to 
distinguish whether it was a Drag-and-Drop action that fired MouseUp, or 
a usual Mouse action that ended there. Otherwise you may get errors when 
you click or pull handles or whatever.


So, when GridView1.Drop is True, and I implemented everything correctly, 
why is GridView1_Drop not fired?


Regards
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


[Gambas-user] RichText in Gambas

2017-07-10 Thread Rolf-Werner Eilert
Is there an information about the RichText property? I mean, which HTML 
tags are accepted etc.?


I could imagine at least Benoit should know where to get information 
about it.


In my GridView example, I tried RichText for the cell. Pure font style 
tags run well, like bold, italics etc. But I had a problem with center.


 results in not showing the text in the cell at all.

Same thing happens if I try GridView1.Data.Alignment = Align.Center and 
then give RichText.


When I use simple Text instead, Align.Center will run. But then I cannot 
vary the fontstyles anymore...


Any idea how to solve this?

Regards
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


[Gambas-user] How to use drag-and-drop

2017-07-10 Thread Rolf-Werner Eilert
The basic usage of the drag-and-drop functions isn't quite clear to me. 
I couldn't find much information in the wiki about it. Here is my code. 
I use t$ as a simple storage place and TextBox1 is only to see what the 
thing does.


The user should pick the red cell in GridView1 and drag it to another 
cell. The contents should appear there.


I use "MouseUp" and not "Drop" because Drop didn't have any result. But 
maybe the way I implemented the whole thing isn't the right one anyhow?


Thank you for your insight!

Rolf


Public t$ As String


Public Sub Form_Open()

  GridView1.Rows.Count = 7
  GridView1.Columns.Count = 5

  TextBox1.Text = t$

End



Public Sub GridView1_Data(Row As Integer, Column As Integer)

  If Row = 4 And Column = 3 Then
GridView1.Data.Background = Color.Red
GridView1.Data.Alignment = Align.Center
GridView1.Data.Text = "E\nKorr\nWg"
t$ = GridView1.Data.Text

  Endif

End

Public Sub GridView1_Click()

  t$ = GridView1.Current.Text
  TextBox1.Text = ""

End


Public Sub GridView1_MouseDrag()

  TextBox1.Text = t$

End



Public Sub GridView1_MouseUp()

  TextBox1.Text = GridView1.Row & "::" & GridView1.Column

  GridView1.Current.Text = t$

End


--
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 in a tablet. Is it possible?

2017-07-10 Thread Rolf-Werner Eilert
Basically, someone would have to do what Benoit once did: sacrifice 
"some" time and write a library that links Gambas functions to Android GUI.


Android is similar to Linux, at its core. So very basic Gambas functions 
should run on an Android without too much adaptation. The GUI however is 
completely different, with finger-wipes etc., that would have to be 
re-designed.


If someone would do that, the community would be happy!

Rolf


Am 10.07.2017 um 21:22 schrieb PICCORO McKAY Lenz:

hi, sorry for revivin old threaths, but i'm interesting in gambas in other
systems..

its there any new or something about gambas in androit? tablets?

Message: 1

Date: Thu, 31 Oct 2013 11:51:16 -0400
From: Rob Kudla 


One way you could get a virtual keyboard and mouse input is to use one of

the Linux installers available on Google Play (preferably a free one;
I've.


this looks like a complicated solution... for users i mean... but
reasonable for a static instalation by "service"



Running an Android X server app in conjunction with one of those Linux
installers would be another option, probably a cleaner one, but that's
one


sound better.. still complicated



https://play.google.com/store/apps/details?id=au.com.darkside.XServer

Running Linux in a chroot (as many Android Linux installers will set up for
you) will probably give you far better performance than a virtual
machine...


this may affect the performance due limited resource in device..



As you can see, there's no easy turnkey solution, but a number of
possibilities. Personally, I'd go with something like Phonegap, which just
uses Javascript/jquery and HTML, if I wanted to write Android apps (at
least the kind of app I would have used Gambas for on the Linux desktop)


that env "thing" only are for MAC and guindows...
seems easy to develop.. but dev env are very limited..



without dealing with Java. You can even put them in Google Play if you
want.

Rob


--
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] OT: Is this junk or really a sourforge mail?

2017-06-12 Thread Rolf-Werner Eilert

Ok, thank you for the tip!

Regards
Rolf

Am 12.06.2017 09:38, schrieb Gianluigi:

I replied that I only want Gambas's mail and that's enough.

Regards
Gianluigi

2017-06-12 9:13 GMT+02:00 Tobias Boege <tabo...@gmail.com>:


On Mon, 12 Jun 2017, Rolf-Werner Eilert wrote:

This morning, I got a mail asking for confirmation of my mailing list
accounts with sourceforge.

They have never ever done this before, so I am somewhat sceptical if this
might be just a junk mail and I will start receiving tons of spams over

that

account.



It seems to have been announced here: https://sourceforge.net/blog/
sourceforge-project-e-mail-policy-update/

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





--
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] OT: Is this junk or really a sourforge mail?

2017-06-12 Thread Rolf-Werner Eilert

Am 12.06.2017 09:13, schrieb Tobias Boege:

On Mon, 12 Jun 2017, Rolf-Werner Eilert wrote:

This morning, I got a mail asking for confirmation of my mailing list
accounts with sourceforge.

They have never ever done this before, so I am somewhat sceptical if this
might be just a junk mail and I will start receiving tons of spams over that
account.



It seems to have been announced here: 
https://sourceforge.net/blog/sourceforge-project-e-mail-policy-update/




Oh, I see, thank you for the link!

Regards
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


[Gambas-user] OT: Is this junk or really a sourforge mail?

2017-06-12 Thread Rolf-Werner Eilert
This morning, I got a mail asking for confirmation of my mailing list 
accounts with sourceforge.


They have never ever done this before, so I am somewhat sceptical if 
this might be just a junk mail and I will start receiving tons of spams 
over that account.


This is the mail, I cut the personal part out:

Hi,

Thanks for being a SourceForge user. Our records indicate that you are 
subscribed to the following project mailing lists:


gambas-user
ltsp-discuss

We are contacting you to confirm you are still interested in receiving 
emails from these SourceForge project lists.  If you do not confirm your 
subscriptions by June 29th, you will be unsubscribed from the above 
mailing lists.


Please click here to confirm your subscriptions:

https://sourceforge.net/mailman/reconfirm?confirm=


Thanks,
The SourceForge Team
A Slashdot Media Company


Thanks for your advice.

Regards
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


Re: [Gambas-user] ComboBox as a SearchBox?

2017-05-19 Thread Rolf-Werner Eilert
Am 18.05.2017 20:18, schrieb Matti:
> My idea was: entering the beginning of a word in a ComboBox, the list should 
> display all the possible matches, then either select from the list or narrow 
> the search by entering more letters.
> This works perfect - but when I fill the list with the matches, my search 
> string (= ComboBox.Text) is overridden with the first result of the search. 
> So there is no chance of searching farther.
>
> Ok, I have built the same now with a TextBox to search and a ListBox to show 
> the results, but I still wonder why. It would be far more elegant...


Just a vague idea - have you tried leaving the first entry out or blank 
when you fill the list?

Regards
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


[Gambas-user] Best way to upgrade Gambas

2017-05-12 Thread Rolf-Werner Eilert
Yesterday I installed Gambas on a machine with Suse Leap. Under Suse, I 
like to use Yast to collect the necessary libraries etc. to go sure that 
nothing is missing. So far so good.

Now I have a somewhat current Gambas version on this machine, but if I 
want to follow its development and install future versions, how should I 
proceed?

Up to now, I used to have  a self-compiled Gambas, but if I de-install 
the distro's version, won't I loose the linked libraries too?

Maybe there is someone here who knows Suse. As to Tumbleweed, I wouldn't 
use it here because this machine is going to be a production server system.

Regards
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


Re: [Gambas-user] Editing still blocked

2017-05-10 Thread 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


Re: [Gambas-user] Editing still blocked

2017-05-08 Thread Rolf-Werner Eilert
Am 08.05.2017 12:55, schrieb Fernando Cabral:
> I really need your help. I can't edit any code. Everything is locked. I
> have even taken two extreme measures: changed the whole directory tree to
> 777 (chmod-R 777 .) and re-installed gambas from scratch (this time using
> the PPA).
>
> Still does not work. Perhaps there is a specific file that  tells gambas
> to keep the whole thing locked. Isn't there?
>
> I'd appreciate if someone can give me some more ideas to try.
>
> Regards
>
> - fernando
>
>

Are these projects which you have coded yourself, saved and then closed 
and opened again? Or are these project which were made by others?

In the past (before software farm), there used to be the problem that 
when I loaded one of the examples offered on the website, they could be 
run but not edited. It's not that problem, is it? It was the rights 
thing, but not chmod but chown which caused it. Or maybe you loaded your 
own stuff from another machine where your username has another Uid?

There is a lock-file, but it will only cause Gambas asking if you are 
sure you are not working with the project already before loading it into 
the IDE.

Regards
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


Re: [Gambas-user] Help with Observer 'Stop Event'

2017-03-29 Thread Rolf-Werner Eilert
Am 27.03.2017 21:29, schrieb Riccardo:
> I have an observer on a ValueBox control to prevent it changing to zero and
> to prevent it becoming larger than the value in a different ValueBox.
>
> Public Sub valNumObserver_change()
>
>If valNum.value = 0 Then valNum.Value = 1
>If valNum.Value > valDen.Value Then Stop Event
>
> End
>
> With first case, where the zero value is changed to one, works. But the Stop
> Event doesn't do what I expect (it does nothing actually) in the second
> line...
>

When valNumObserver_change() starts, the Value has already been changed. 
So why not changing it back as you do in line 1?

 If valNum.Value > valDen.Value Then valNum.Value = valDen.Value


Regards
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


Re: [Gambas-user] New in Gambas Farm: A gridview with automatic row height

2017-03-17 Thread Rolf-Werner Eilert
Ah, I understand! It's like with Gambas: It's not a bug, it's a feature :)

Thanks for the hint. When I apply it next time, I will try both versions.

Rolf

Am 16.03.2017 19:05, schrieb Jorge Carrión:
> It isn't a bug is the expected behaviour for the example. I set the .expand
> property of columns to true, so they change it's width at Form's resize
> If you doesn' like that behaviour, comment this lines in Test.Class
>
> For n = 0 To wordWrapGrid1.Columns.Max
>  wordWrapGrid1.Columns[n].Expand = True
> Next
>
> Then the width of columns is "static" and remains under the mouse pointer.
>
> Best Regards.
>
>
> 2017-03-16 13:01 GMT+01:00 Rolf-Werner Eilert <rwe-...@osnanet.de>:
>
>> Am 16.03.2017 08:55, schrieb Jorge Carrión:
>>> Hi
>>> I've upload to Gambas Farm a new control that I called hGrid (the "h" of
>>> "Height" and yes, I know that h usually means "handle" but I'm lack of
>>> imagination, I'm afraid)
>>>
>>> Its a control that inherits of GridView with a new boolean property
>>> "wordWrap". If it is setted to True, the wordWrap property of cells its
>> set
>>> to true too and the height of the rows is fitted to show all the cell
>>> contents.
>>>
>>> I hope it'll be usefull for someone.
>>>
>>
>>
>> Ok, tested it :) Runs very well, BUT:
>>
>> When dragging one of the Columns to the left, the column doesn't stay
>> under the mouse pointer. Somehow, the position is counted wrong, and
>> after dragging forth and back a bit, the cursor is here and the column
>> is there...
>>
>> Hope you can reproduce and fix this ;)
>>
>> Regards
>> 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
>>
> --
> 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] New in Gambas Farm: A gridview with automatic row height

2017-03-16 Thread Rolf-Werner Eilert
Am 16.03.2017 12:57, schrieb PICCORO McKAY Lenz:
> very usefully
> 2017-03-16 7:15 GMT-04:00 Rolf-Werner Eilert <rwe-...@osnanet.de>:
>
>>
>> Why not calling it "wwGridView" or "WWgridview" or "GridVieWW"?
>>
>
> umm WW as mean WorldWar? jajajaja

WorldWrap :)))

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


Re: [Gambas-user] New in Gambas Farm: A gridview with automatic row height

2017-03-16 Thread Rolf-Werner Eilert
Am 16.03.2017 08:55, schrieb Jorge Carrión:
> Hi
> I've upload to Gambas Farm a new control that I called hGrid (the "h" of
> "Height" and yes, I know that h usually means "handle" but I'm lack of
> imagination, I'm afraid)
>
> Its a control that inherits of GridView with a new boolean property
> "wordWrap". If it is setted to True, the wordWrap property of cells its set
> to true too and the height of the rows is fitted to show all the cell
> contents.
>
> I hope it'll be usefull for someone.
>


Ok, tested it :) Runs very well, BUT:

When dragging one of the Columns to the left, the column doesn't stay 
under the mouse pointer. Somehow, the position is counted wrong, and 
after dragging forth and back a bit, the cursor is here and the column 
is there...

Hope you can reproduce and fix this ;)

Regards
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


Re: [Gambas-user] New in Gambas Farm: A gridview with automatic row height

2017-03-16 Thread Rolf-Werner Eilert
Am 16.03.2017 08:55, schrieb Jorge Carrión:
> Hi
> I've upload to Gambas Farm a new control that I called hGrid (the "h" of
> "Height" and yes, I know that h usually means "handle" but I'm lack of
> imagination, I'm afraid)

Why not calling it "wwGridView" or "WWgridview" or "GridVieWW"?

>
> Its a control that inherits of GridView with a new boolean property
> "wordWrap". If it is setted to True, the wordWrap property of cells its set
> to true too and the height of the rows is fitted to show all the cell
> contents.
>
> I hope it'll be usefull for someone.

Oh yes! Great thing! I would love it, and I have instantly ideas where 
to use it.

Regards
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


Re: [Gambas-user] ... Is mailing list dead ?

2017-03-02 Thread Rolf-Werner Eilert
Am 02.03.2017 10:07, schrieb Fabien Bodard:
> This is a try to get some contact to the extern world :-)
>

Gambas is so good, nobody has a problem ;)

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


Re: [Gambas-user] WebForm runs - and suddenly does no more

2017-02-23 Thread Rolf-Werner Eilert
Am 24.02.2017 03:04, schrieb Benoît Minisini:
> Le 24/02/2017 à 03:01, Benoît Minisini a écrit :
>> Le 23/02/2017 à 18:17, Rolf-Werner Eilert a écrit :
>>> I started a new WebForm project which I copied from my first test
>>> project I mentioned the other day.
>>>
>>> I just let it make a binary and copied it into the cgi-bin folder of my
>>> own apache on our server here in the school. First it ran flawlessly,
>>> but when I started to work on it and changed things, it suddenly showed
>>> an Error 500: Premature end of script headers: WebKalender1.gambas
>>>
>>> I looked into the apache error.log, but I cannot see anything more
>>> detailed, apart from "Null Object" in relationship with the WebTable.
>>>
>>> The strange thing is, I still can start the program from the IDE: This
>>> will start Konqueror, and everything appears normally. It is the binary
>>> in cgi-bin which doesn't start anymore.
>>>
>>> Has anyone here an explanation?
>>>
>>> I will append the two sources: the original test project and WebKalender
>>> which hangs. I just tried the test project, it still runs on apache, so
>>> there really must be something wrong with the WebKalender.
>>>
>>> Is there a way to be pointed to a line in code, like the debug output in
>>> a GUI application?
>>>
>>> Regards
>>> Rolf
>>>
>>
>> Strange. I have just tested WebKalender1.gambas as a CGI script
>> executable, and it apparently works as expected.
>>
>
> Beware that if you remake the executable, the browser keeps the old
> session opened, and that may lead to strange behaviour (an old session
> with new executable).
>
> You have to close your browser and open it again (or destroy the session
> cookie by hand from the browser).
>

Ah ok, that explains a lot of things. Sometimes (not always) I had the 
impression I had to stop and start even Konqueror until changes showed up.

Regards
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


[Gambas-user] WebForm runs - and suddenly does no more

2017-02-23 Thread Rolf-Werner Eilert
I started a new WebForm project which I copied from my first test 
project I mentioned the other day.


I just let it make a binary and copied it into the cgi-bin folder of my 
own apache on our server here in the school. First it ran flawlessly, 
but when I started to work on it and changed things, it suddenly showed 
an Error 500: Premature end of script headers: WebKalender1.gambas


I looked into the apache error.log, but I cannot see anything more 
detailed, apart from "Null Object" in relationship with the WebTable.


The strange thing is, I still can start the program from the IDE: This 
will start Konqueror, and everything appears normally. It is the binary 
in cgi-bin which doesn't start anymore.


Has anyone here an explanation?

I will append the two sources: the original test project and WebKalender 
which hangs. I just tried the test project, it still runs on apache, so 
there really must be something wrong with the WebKalender.


Is there a way to be pointed to a line in code, like the debug output in 
a GUI application?


Regards
Rolf



WebformTest1-0.0.2.tar.gz
Description: GNU Zip compressed data


WebKalender1-0.0.7.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] Sort multidimensional array?

2017-02-07 Thread Rolf-Werner Eilert
Hi Matti,

I don't find your method so dirty - I have used it a lot of times 
myself. And I use it in table-like arrays with more than 2 columns, all 
as strings.

However, I use a character which does not appear in normal strings, like 
TAB (chr$(9)) or chr$(6).

To pack and unpack a single line, I use Split and Join which work so 
incredibly fast they can be used within milliseconds over thousands of 
strings.

As my rule of thumb, when I have a fixed number of columns, I make a 
number of named one-dimensional arrays, one for each column. If the 
number of columns is not known, I make a single one-dimensional array of 
strings and split the columns as described above.

Regards
Rolf

Am 06.02.2017 23:26, schrieb Matti:
> Hi Riccardo,
>
> this is a question I had long years ago. At this time it was not possible.
> As I remember, I used a dirty workaround, reducing the
> two-dimensionsional array by inserting a "/" to a one-dimensional array,
> sorting it and removing the "/" later.
>
> Depends on what array you have to sort.
>
> Example for the workaround is attatched. Look at the FMain 'mnuSortA'
> and 'mnuSortT' Subs.
>
> Hope this helps, but I'm really not up to date.
>
> Matti
>
> Am 06.02.2017 um 22:23 schrieb Riccardo:
>> Hi,
>>
>> Is it possible to use the array.sort() method on a two-dimensional array?
>>
>>
>>
>>
>>>  Public arr_Response As New String[][]
>>>
>>
>>
>>
>> Specifically, I'd like to sort the entire array based on the contents
>> of the second column something like: arr_Response[][1].sort() ...
>>
>>
>>
>>
>>   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
>


--
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] Array data to Gridview?

2017-02-06 Thread Rolf-Werner Eilert
Hi Riccardo,

just use the DATA event for the Gridview.

In short: You just define the number of Columns and Rows for the 
Gridview. As soon as you define the Rows, the Gridview will begin to 
load the contents for the cells by jumping into the Data event over and 
over again.

You only have to make sure that for every Row there are data somewhere 
in the program or make sure that if there are no data yet, there is some 
code in the Data event which controls that. All other code for 
displaying the contents in the cells is in the Data event.

The Data event will also be jumped in when the user scrolls the table. 
The Gridview will only load the part of the Gridview which is visible. 
Or when the user clicks on the form or makes it come to the front. That 
means, besides from providing the cell data you don't have to care about 
anything, and it is extremely fast.

Regards
Rolf


Am 06.02.2017 22:24, schrieb Riccardo:
> Hi,
>
>
>
>
>
>
>> I have a multidimensional array with 32,000 records. It takes quite a while 
>> to load this into a Gridview, and even longer if I provide the user with 
>> some feedback during the process (an updating label, a progress bar and so 
>> on...).
>
>
>
>> Is there a faster way to load the array data into the Gridview? Currently, 
>> I'm iterating over the array and updating the Gridview cell by cell. Should 
>> I hide the Gridview during this process?
>>
>> For i = 1 To arr_Response.Length - 1
>>  For j = 0 To arr_Response[i].Length - 1
>>grd_Response[i - 1, j].Text = arr_Response[i][j]
>>  Next
>> Next
>>
>> 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


[Gambas-user] System.User.Home or User.Home?

2017-02-03 Thread Rolf-Werner Eilert
Just stumbled over this one:

System.User.Home and User.Home seem to be the same, or is there a 
difference?

Thank you

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


Re: [Gambas-user] Timer

2017-01-27 Thread Rolf-Werner Eilert
Hi,

 >
> The program has a form with 3 buttons and a valuebox.
> Button 1 starts timer.
> Button 2 stops timer.
> Button 3 restarts timer.

Restart? What for, you have Button 1... Or do you mean "resume"?

>
> As usual I just cannot get the syntax correct to make it work.
> When I copy/paste from the help browser still not right!
>
> I really want to like and use Gambas but am put off by the unclear help and 
> lack of very simple examples.

I agree, that could be improved. You're welcome to help ;)

> ' Gambas class file
>
> Public Sub Form_Open()
>
>
>
> End
>
> Public Sub Timer1_Timer()
>
>ValueBox1.Value = Timer1
>
>
> End

Hm, guess you got this Timer thing wrong. As soon as activated, Timer 
will just run and the program will jump into the Timer event each time 
it "ticks" (the time you adjust, e. g. 1000 ms for 1 second).

So, if you want your clock to tick every second, make a counter variable 
for the whole class file and set

Inc MyCounterVariable

within the Timer1_Timer() event and let the clock show it.


Public Sub Timer1_Timer()

Inc MyCounterVariable

'show the value in this line

End

For the beginning, use a Label to show the value.


> Public Sub Button1_Click()
>
> Timer1.Enabled = True
>
> End
>
>
>
> Public Sub Button2_Click()
>
>
>
> End
>
> Public Sub Button3_Click()
>
>
>
> End
>
>
>

Won't be back before Monday, but hope it helps :)

Regards
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


Re: [Gambas-user] How to get started with WebView

2017-01-25 Thread Rolf-Werner Eilert
Yes, you are right, thank you!

Sometimes I do not see the forest for all the trees :)

Rolf

Am 25.01.2017 18:01, schrieb Fabien Bodard:
> OUPS I think it's like the gridview :
> Data.Text = CStr(Row) & "-" & CStr(Column)
>
> 2017-01-25 17:58 GMT+01:00 Benoît Minisini <gam...@users.sourceforge.net>:
>> Le 25/01/2017 à 17:54, Rolf-Werner Eilert a écrit :
>>> Am 25.01.2017 17:29, schrieb Benoît Minisini:
>>>> Le 25/01/2017 à 17:23, Rolf-Werner Eilert a écrit :
>>>>>
>>>>> Ah! Now it says "Type mismatch: Wanted WebTableData, got String instead"
>>>>>
>>>>> So, what is WebTableData?
>>>>>
>>>>> Rolf
>>>>>
>>>>
>>>> It's the datatype of the 'Data' argument of the WebTable 'Data' event
>>>> handler.
>>>>
>>>
>>> Yes, but what is expected by it? How is it defined? The online help
>>> isn't there yet ;)
>>>
>>> I thought "put in a string, what else?" But obviously, WebTableData is
>>> something else...
>>>
>>> Regards
>>> Rolf
>>>
>>
>> It's an object with properties you must fill in. Use the autocompletion
>> to get the names of the properties.
>>
>> --
>> Benoît Minisini
>>
>> --
>> 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 get started with WebView

2017-01-25 Thread Rolf-Werner Eilert
Am 25.01.2017 17:58, schrieb Benoît Minisini:
> Le 25/01/2017 à 17:54, Rolf-Werner Eilert a écrit :
>> Am 25.01.2017 17:29, schrieb Benoît Minisini:
>>> Le 25/01/2017 à 17:23, Rolf-Werner Eilert a écrit :
>>>>
>>>> Ah! Now it says "Type mismatch: Wanted WebTableData, got String instead"
>>>>
>>>> So, what is WebTableData?
>>>>
>>>> Rolf
>>>>
>>>
>>> It's the datatype of the 'Data' argument of the WebTable 'Data' event
>>> handler.
>>>
>>
>> Yes, but what is expected by it? How is it defined? The online help
>> isn't there yet ;)
>>
>> I thought "put in a string, what else?" But obviously, WebTableData is
>> something else...
>>
>> Regards
>> Rolf
>>
>
> It's an object with properties you must fill in. Use the autocompletion
> to get the names of the properties.
>

Ok, Data.Text did the job :)

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


Re: [Gambas-user] How to get started with WebView

2017-01-25 Thread Rolf-Werner Eilert
Am 25.01.2017 17:29, schrieb Benoît Minisini:
> Le 25/01/2017 à 17:23, Rolf-Werner Eilert a écrit :
>>
>> Ah! Now it says "Type mismatch: Wanted WebTableData, got String instead"
>>
>> So, what is WebTableData?
>>
>> Rolf
>>
>
> It's the datatype of the 'Data' argument of the WebTable 'Data' event
> handler.
>

Yes, but what is expected by it? How is it defined? The online help 
isn't there yet ;)

I thought "put in a string, what else?" But obviously, WebTableData is 
something else...

Regards
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


Re: [Gambas-user] How to get started with WebView

2017-01-25 Thread Rolf-Werner Eilert
Am 25.01.2017 16:24, schrieb Benoît Minisini:
> Le 25/01/2017 à 16:19, Rolf-Werner Eilert a écrit :
>>
>> Thank you very much, that makes it much clearer. Now I have a Button1
>> and a WebTable1
>>
>> Public Sub WebButton1_Click()
>>
>> WebLabel1.Text = "Button geklickt"
>>
>> WebTable1.AddColumn("Spalte 1")
>> WebTable1.AddColumn("Spalte 2")
>> WebTable1.Count = 5
>>
>> End
>>
>>
>> Public Sub WebTable1_Data(Row As Integer, Column As Integer, Data As
>> WebTableData)
>>
>> Data = CStr(Row) & "-" & CStr(Column)
>>
>> End
>>
>> But it says "circular reference detected", and nothing appears in the
>> tableview. What is wrong?
>>
>> Rolf
>>
>
> No idea, send your project!
>

Ah! Now it says "Type mismatch: Wanted WebTableData, got String instead"

So, what is WebTableData?

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


Re: [Gambas-user] How to get started with WebView

2017-01-25 Thread Rolf-Werner Eilert
Am 25.01.2017 15:45, schrieb Benoît Minisini:
> Le 25/01/2017 à 15:33, Rolf-Werner Eilert a écrit :
>>
>> The only thing I could not make out is how to control the tableview. As
>> there is no treeview and no listview, I would use tableview to replace
>> both of them. No real problem, but
>>
>> - How can I determine the number of rows and columns
>> - How can I add contents
>> - How can I delete contents / rows
>>
>> Could you explain in a few lines?
>>
>> Regards
>> Rolf
>>
>
> WebTableView does not store any contents. It just raises a 'Data' event
> for each cell, and you must fill the 'Data' argument of the event
> handler with the cell contents.
>
> But before that, you have to define the number of rows and columns.
>
> The number of rows is defined by the WebTableView.Count property.
>
> The number of columns is defined by successive calls to the
> WebTableView.AddColumn(,[,]) method, or by
> setting the WebTableVieW.Columns.Count property and the properties of
> each column.
>
> The WebTableView displays only the first 100 rows. It loads the other
> rows when scrolling as needed.
>
> If you want to add or delete rows, you have to redefine the Count
> property. That will trigger a refresh, and call the Data event accordingly.
>
> The Mode property allows to switch between no selection / single
> selection / multiple selection modes.
>
> There is no column click / sorting feature yet.
>
> Regards,
>

Thank you very much, that makes it much clearer. Now I have a Button1 
and a WebTable1

Public Sub WebButton1_Click()

   WebLabel1.Text = "Button geklickt"

   WebTable1.AddColumn("Spalte 1")
   WebTable1.AddColumn("Spalte 2")
   WebTable1.Count = 5

End


Public Sub WebTable1_Data(Row As Integer, Column As Integer, Data As 
WebTableData)

   Data = CStr(Row) & "-" & CStr(Column)

End

But it says "circular reference detected", and nothing appears in the 
tableview. What is wrong?

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


Re: [Gambas-user] How to get started with WebView

2017-01-25 Thread Rolf-Werner Eilert

This thing is awesome, Benoit!

Am 24.01.2017 11:27, schrieb Benoît Minisini:
> Le 24/01/2017 à 11:24, Rolf-Werner Eilert a écrit :
>>
>> Now I got it. When I make a gb.web.form application, I just mark one of
>> the forms as startup class (as I did) and add all control code for the
>> application there, just as I would do with a normal GUI application, right?
>
> Yes. But you must read my other posts about gb.web.form on the mailing-list!

Well, actually I followed the discussions here over the last weeks, but 
it's only now that I find the time to play around with it a bit.

Within minutes, I could group the most important elements to form 
something like web version of my students database. Though the help 
texts are missing, I could find most of the functionality by guessing. 
It's amazing to see how communication runs from Gambas to the browser 
and back.

The only thing I could not make out is how to control the tableview. As 
there is no treeview and no listview, I would use tableview to replace 
both of them. No real problem, but

- How can I determine the number of rows and columns
- How can I add contents
- How can I delete contents / rows

Could you explain in a few lines?

Regards
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


Re: [Gambas-user] detecting menus actions

2017-01-25 Thread Rolf-Werner Eilert
Am 25.01.2017 13:10, schrieb bill-lancaster:
> Is it possible to log which menu items have been selected?
> In other words, can I create a general event to catch and identify menu
> activity?
>
> Gambas 3.8.2
>
>


Maybe it's possible via a group name?



--
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 get started with WebView

2017-01-24 Thread Rolf-Werner Eilert
Am 24.01.2017 10:36, schrieb Benoît Minisini:
> Le 24/01/2017 à 10:11, Rolf-Werner Eilert a écrit :
>> Am 23.01.2017 20:28, schrieb Benoît Minisini:
>>> Le 23/01/2017 à 18:41, Rolf-Werner Eilert a écrit :
>>>> Hi,
>>>>
>>>> I have 3.9.2 installed and started a new project as WebView project.
>>>>
>>>> Then added WebForm from the components.
>>>>
>>>> Then added a new form called Webform1.
>>>>
>>>> Then added a button, text area etc.
>>>>
>>>> When I press start, I get a Konqueror instance showing the example table
>>>> from the Main.webpage. But there is nothing to see from the Webform.
>>>>
>>>> I guess I have to call the Webform from the Main.webpage somehow, but
>>>> how? Or am I totally wrong here?
>>>>
>>>> Thanks for your insight!
>>>>
>>>> Regards
>>>> Rolf
>>>>
>>>
>>> Are you using gb.web or gb.web.form?
>>>
>>> If you use gb.web only:
>>>
>>> Remove the Main.webpage, and make your own webpage the startup form.
>>>
>>> If you have several forms, and want to decide which one to show, you
>>> have to create a startup module (or class), and from the Main()
>>> function, you have to analyze the Request object, and decide which form
>>> to show by calling the Render() method of the form. The Render() method
>>> will use the Response class to send back to the browser the page contents.
>>>
>>> Regards,
>>>
>>
>> Thank you for the tip with the startup form. I made Webform1.webform the
>> startup form, now I get a response with the webform. But I haven't tried
>> Render() and Response class yet, just played around a bit with a button,
>> text area and label.
>
> You are confused. I said "if you use gb.web only".

Ah ok.

>
> Response and Request are the low-level class of the gb.web component.
>
> If you make a 'gb.web.form' application, you have less use of them, are
> most of the things are managed directly by the gb.web.form component.

Now I got it. When I make a gb.web.form application, I just mark one of 
the forms as startup class (as I did) and add all control code for the 
application there, just as I would do with a normal GUI application, right?

>
>>
>> Whenever I start, I get two errors in the konsole window:
>>
>> gb.httpd: bind 0.0.0.0 - Address already in use
>> gbx3: warning: cannot switch to language 'de.UTF-8': No such file or
>> directory. Did you install the corresponding locale packages?
>>
>> Anything to worry about?
>
> The first message is not important. I didn't take the time to see why
> the 'gb.httpd' component always display it.
>
> The second message means that your web browser has requested the german
> language, and that the german localization is not installed on your system.
>
> Regards,
>

Ok, when I press Start, Konqueror comes up, and usually I don't use that 
browser. So maybe there's something wrong with it, but for the time 
being I can live with it.

Regards
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


Re: [Gambas-user] How to get started with WebView

2017-01-24 Thread Rolf-Werner Eilert
Am 23.01.2017 20:28, schrieb Benoît Minisini:
> Le 23/01/2017 à 18:41, Rolf-Werner Eilert a écrit :
>> Hi,
>>
>> I have 3.9.2 installed and started a new project as WebView project.
>>
>> Then added WebForm from the components.
>>
>> Then added a new form called Webform1.
>>
>> Then added a button, text area etc.
>>
>> When I press start, I get a Konqueror instance showing the example table
>> from the Main.webpage. But there is nothing to see from the Webform.
>>
>> I guess I have to call the Webform from the Main.webpage somehow, but
>> how? Or am I totally wrong here?
>>
>> Thanks for your insight!
>>
>> Regards
>> Rolf
>>
>
> Are you using gb.web or gb.web.form?
>
> If you use gb.web only:
>
> Remove the Main.webpage, and make your own webpage the startup form.
>
> If you have several forms, and want to decide which one to show, you
> have to create a startup module (or class), and from the Main()
> function, you have to analyze the Request object, and decide which form
> to show by calling the Render() method of the form. The Render() method
> will use the Response class to send back to the browser the page contents.
>
> Regards,
>

Thank you for the tip with the startup form. I made Webform1.webform the 
startup form, now I get a response with the webform. But I haven't tried 
Render() and Response class yet, just played around a bit with a button, 
text area and label.

Whenever I start, I get two errors in the konsole window:

gb.httpd: bind 0.0.0.0 - Address already in use
gbx3: warning: cannot switch to language 'de.UTF-8': No such file or 
directory. Did you install the corresponding locale packages?

Anything to worry about?

Regards
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


[Gambas-user] How to get started with WebView

2017-01-23 Thread Rolf-Werner Eilert
Hi,

I have 3.9.2 installed and started a new project as WebView project.

Then added WebForm from the components.

Then added a new form called Webform1.

Then added a button, text area etc.

When I press start, I get a Konqueror instance showing the example table 
from the Main.webpage. But there is nothing to see from the Webform.

I guess I have to call the Webform from the Main.webpage somehow, but 
how? Or am I totally wrong here?

Thanks for your insight!

Regards
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


Re: [Gambas-user] variable in WebForm not remember

2017-01-23 Thread Rolf-Werner Eilert
Am 21.01.2017 19:46, schrieb Benoît Minisini:
> Le 17/01/2017 à 08:26, Rolf-Werner Eilert a écrit :
>>
>> Where does the webform store the values until the next call? And can it
>> remember calls from different users?
>>
>> Regards
>> Rolf
>>
>
> This is exactly what is named a "session".
>
> A session in Gambas is a collection that is associated with an HTTP cookie.
>
> With gb.web.form, the session is automatically created for each user
> that connect to the application. It automatically remembers the
> variables associated with the webforms.
>
> It is up to you to implement a login/password check to identify the
> user, and modify your application according to its rights.
>
> Regards,
>


Ah, very interesting concept. So if I don't want a personal check, I can 
rely on the webform to automagically serve different users. :)

Regards
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


Re: [Gambas-user] variable in WebForm not remember

2017-01-16 Thread Rolf-Werner Eilert
Am 16.01.2017 01:37, schrieb Benoît Minisini:
> Le 16/01/2017 à 01:20, מיוסט שרון a écrit :
 hello

 I have WebForm1
 I put on the WebForm1 two controls of WebButton1 WebButton2
 I have a variable of type String named my_A
 I would like when I press the WebButton1 the my_A = "sharon" and when I 
 click on
 WebButton2 I want to get the value found in my_A


 The problem that when I click on WebButton2
 The value of the variable my_A is empty ""

 It's what's inside that WebForm1.class

 ' Gambas class file

 Export
 Private my_A As String

 Public Sub WebButton1_Click()

my_A = "sharon"

 End

 Public Sub WebButton2_Click()

WebButton2.Text = my_A

 End

>>>
>>> Yes, this is the main difference between a "normal" application (one
>>> process that runs continuously) and a "webform" application (one process
>>> by request).
>>>
>>> With a web application, the only way to keep things persistent is using
>>> the Session object.
>>>
>>> With a WebForm, you can store permanent things by using it like an
>>> array, which use internally the Session object of course.
>>>
>>> So you can write:
>>>
>>> Export
>>>
>>> Public Sub WebButton1_Click()
>>>
>>> Me["my_A"] = "sharon"
>>>
>>> End
>>>
>>> Public Sub WebButton2_Click()
>>> 
>>> WebButton2.Text = Me["my_A"]
>>>
>>> End
>>>
>>> So, never forget that your application is a web application that is not
>>> persistent between two events (the request is mostly the full handling
>>> of one event coming from the web browser. The response is the refresh of
>>> the web browser contents).
>>>
>>> Regards,
>>>
>>> --
>>> Benoît Minisini
>>
>>
>> Thank you it works
>>
>>
>>
>> I have another question that code:
>>
>> ' Gambas class file
>>
>> Export
>>
>> Public Sub WebButton1_Click()
>>Dim hWeb As WebButton
>>
>>WebButton1.Text = "btn1_text"
>>WebButton1.Tag = "btn1_tag"
>>Me["my_A"] = WebButton1
>>
>>hweb = Me["my_A"]
>>WebTextBox1.Text = hWeb.Text
>>WebTextBox2.Text = hWeb.Tag
>> End
>>
>> Public Sub WebButton2_Click()
>>Dim hWeb As WebButton
>>
>>hWeb = Me["my_A"]
>>WebTextBox1.Text = hWeb.Text
>>WebTextBox2.Text = hWeb.Tag
>> End
>>
>>
>> WebButton1 the event of a hWeb this is fine value of WebButton1
>> But the event of WebButton2 value of hWeb get "NULL"
>>
>
> Not everything can be stored in the session. Especially object
> references (as they are valid only in the same process).
>
> You can put in a "WebForm variable" (i.e. Me[xxx]) : booleans, numbers,
> strings, dates, variant, arrays and collections.
>
> I hope I will be able to start writing the documentation of the
> gb.web.form component soon.
>
> Regards,
>

Where does the webform store the values until the next call? And can it 
remember calls from different users?

Regards
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


Re: [Gambas-user] A simple spreadsheet

2016-12-07 Thread Rolf-Werner Eilert
Am 07.12.2016 14:31, schrieb Fabien Bodard:
> This is the example on how to use the gambas Expression class.

Thank you very much, this looks very interesting!

Regards
Rolf

>
> 2016-12-07 14:30 GMT+01:00 Fabien Bodard <gambas...@gmail.com>:
>> 2016-12-07 13:30 GMT+01:00 Rolf-Werner Eilert <rwe-...@osnanet.de>:
>>> Fabien, I have followed your discussion and have a question:
>>>
>>>   > believe me. This time, I will base the solver on the Gambas expression
>>>> class. This will have several advantages. First, I will not reinvent
>>>
>>> Where is this class, and how would I use it?
>>
>> http://gambas.8142.n7.nabble.com/Custom-expression-evaluator-in-rev-7545-td55155.html
>> And joined example
>>
>>
>>>
>>>> spreadsheets. My first job is to create a display component, which is
>>>> not based on gridview. GridView is great because adaptable has many
>>>> uses. But suddenly it becomes too heavy for the use I want to make of
>>>> it. Well I admit that I draw a lot from the code of Benoit too. But I
>>>> purify it and add inherent functions to spreadsheets. As the display
>>>> of a cellul, the modes and selections by columns and blocks. The code
>>>> in the end is lighter but by what it is specialized.
>>>
>>> I had a similar case with a list of articles needed which I couldn't
>>> realize with a common GridView. So I used a graphical thing and painted
>>> everything myself. It looks very nice, but it was kinda effort to make
>>> it react to mouse clicks and all that stuff.
>>
>> Well i have now a long experience. So these little things are already
>> resolved ;-)
>>
>> The big job will be on the resolver.
>>
>>>
>>> Regards
>>> Rolf
>>>
>>>
>>> --
>>> Developer Access Program for Intel Xeon Phi Processors
>>> Access to Intel Xeon Phi processor-based developer platforms.
>>> With one year of Intel Parallel Studio XE.
>>> Training and support from Colfax.
>>> Order your platform today.http://sdm.link/xeonphi
>>> ___
>>> Gambas-user mailing list
>>> Gambas-user@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>>
>>
>> --
>> Fabien Bodard
>
>
>
>
>
> --
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today.http://sdm.link/xeonphi
>
>
>
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>


--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] A simple spreadsheet

2016-12-07 Thread Rolf-Werner Eilert
Fabien, I have followed your discussion and have a question:

 > believe me. This time, I will base the solver on the Gambas expression
> class. This will have several advantages. First, I will not reinvent

Where is this class, and how would I use it?

> spreadsheets. My first job is to create a display component, which is
> not based on gridview. GridView is great because adaptable has many
> uses. But suddenly it becomes too heavy for the use I want to make of
> it. Well I admit that I draw a lot from the code of Benoit too. But I
> purify it and add inherent functions to spreadsheets. As the display
> of a cellul, the modes and selections by columns and blocks. The code
> in the end is lighter but by what it is specialized.

I had a similar case with a list of articles needed which I couldn't 
realize with a common GridView. So I used a graphical thing and painted 
everything myself. It looks very nice, but it was kinda effort to make 
it react to mouse clicks and all that stuff.

Regards
Rolf


--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] SpreadSheet

2016-12-05 Thread Rolf-Werner Eilert
Oh, and I was curious, thinking "something new to learn from" :)

Rolf

Am 05.12.2016 15:25, schrieb Fabien Bodard:
> But it's (canvas) gambas and all goes fast
>
> (damned android corrector !)
>
> 2016-12-05 13:51 GMT+01:00 Fabien Bodard :
>
>> You can send me your work . 
>>
>> So I can use it and blend it with the gb internal solver.
>>
>> I'm happy to find a little bit help.
>> Actually only selection and zoom work... But it's canvas and all goes fast
>> Le 5 déc. 2016 12:44, "Martin Cristia"  a écrit :
>>
>>> I have a working recursive cell formula solver, if you want.
 --

 Message: 8
 Date: Sun, 4 Dec 2016 22:35:26 +0100
 From: Fabien Bodard 
 Subject: [Gambas-user] SpreadSheet
 To: gambas-user@lists.sourceforge.net
 Message-ID:
>> mail.com>
 Content-Type: text/plain; charset="utf-8"

 First Steps

>>>
>>> --
>>> Saludos
>>>
>>> Ing. Martin P Cristia
>>>
>>>
>>> 
>>> --
>>> ___
>>> Gambas-user mailing list
>>> Gambas-user@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>>
>>
>
>


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Arrays of Structs

2016-11-30 Thread Rolf-Werner Eilert
Thought so :)

Am 30.11.2016 16:03, schrieb Fabien Bodard:
> no
>
> 2016-11-30 15:46 GMT+01:00 Rolf-Werner Eilert <eilert-sprac...@t-online.de>:
>> Would this be possible?
>>
>> Static Private WorldMap[100, 100] As New MapObject
>>
>>
>> or in a similar way... Just ask because I tend to use New in the first
>> declaration line if possible.
>>
>> Regards
>> Rolf
>>
>> Am 30.11.2016 07:27, schrieb nand...@nothingsimple.com:
>>> I use structs to write binary to a file in struct order.
>>> Nice and easy.
>>> Not so easy with a class.
>>>
>>> Your example is possible.  I have done similar.
>>>
>>> The STRUCT only defines the structure...it doesn't create the memory 
>>> allocation.
>>> Static Private WorldMap[100, 100] As MapObject  just defines arrays to 
>>> point to objects.
>>> You need to run code to actually create new objects at each array element.
>>> hint:
>>> Loop  x
>>>Loop  y
>>>  [x][y] = new MapObject  'the new actually creates a memory allocation 
>>> for it.
>>>
>>> -Fernando
>>>
>>> --
>>> Open WebMail Project (http://openwebmail.org)
>>>
>>>
>>> -- Original Message ---
>>> From: Tony Morehen <tmore...@ajmconsulting.ca>
>>> To: gambas-user@lists.sourceforge.net
>>> Sent: Tue, 29 Nov 2016 15:29:03 -0500
>>> Subject: Re: [Gambas-user] Arrays of Structs
>>>
>>>> I may just be responding to a typo but your struct is named MapObjec
>>>> while the code using it refers to MapObject.
>>>>
>>>> On 28/11/16 10:40 PM, Cam Era wrote:
>>>>> I expect I'm trying to do something that's not possible with Gambas, but
>>>>> I'll ask this anyway.
>>>>>
>>>>> I'm trying to create an n x n array of a STRUCT which itself contains an
>>>>> array of type STRUCT.
>>>>>
>>>>> I have this declaration:
>>>>>
>>>>>Public Struct MapObjec
>>>>>  xPos As Integer
>>>>>  yPos As Integer
>>>>>  ObjectType As Integer
>>>>>  isVisible As Boolean
>>>>>  ObjectPicture As Picture
>>>>>End Struct
>>>>>
>>>>>Public Struct MapRoom
>>>>>  MapObjects[50] As MapObject
>>>>>End Struct
>>>>>
>>>>>Static Private WorldMap[100, 100] As MapObject
>>>>>
>>>>>
>>>>> and this code:
>>>>>
>>>>>WorldMap[5, 10].MapObjects.yPos = 100
>>>>>
>>>>>
>>>>> which generates a "NULL object" error.
>>>>>
>>>>> Any pointers as to whether this is possible and if so, how?
>>>>>
>>>>>
>>>>> Cheers
>>>>>
>>>>> -- Cam
>>>>> --
>>>>> ___
>>>>> Gambas-user mailing list
>>>>> Gambas-user@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>>> --
>>>> ___
>>>> Gambas-user mailing list
>>>> Gambas-user@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>> --- End of Original Message ---
>>>
>>>
>>> --
>>> ___
>>> Gambas-user mailing list
>>> Gambas-user@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>>
>>
>> --
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Arrays of Structs

2016-11-30 Thread Rolf-Werner Eilert
Would this be possible?

Static Private WorldMap[100, 100] As New MapObject


or in a similar way... Just ask because I tend to use New in the first 
declaration line if possible.

Regards
Rolf

Am 30.11.2016 07:27, schrieb nand...@nothingsimple.com:
> I use structs to write binary to a file in struct order.
> Nice and easy.
> Not so easy with a class.
>
> Your example is possible.  I have done similar.
>
> The STRUCT only defines the structure...it doesn't create the memory 
> allocation.
> Static Private WorldMap[100, 100] As MapObject  just defines arrays to point 
> to objects.
> You need to run code to actually create new objects at each array element.
> hint:
> Loop  x
>   Loop  y
> [x][y] = new MapObject  'the new actually creates a memory allocation for 
> it.
>
> -Fernando
>
> --
> Open WebMail Project (http://openwebmail.org)
>
>
> -- Original Message ---
> From: Tony Morehen 
> To: gambas-user@lists.sourceforge.net
> Sent: Tue, 29 Nov 2016 15:29:03 -0500
> Subject: Re: [Gambas-user] Arrays of Structs
>
>> I may just be responding to a typo but your struct is named MapObjec
>> while the code using it refers to MapObject.
>>
>> On 28/11/16 10:40 PM, Cam Era wrote:
>>> I expect I'm trying to do something that's not possible with Gambas, but
>>> I'll ask this anyway.
>>>
>>> I'm trying to create an n x n array of a STRUCT which itself contains an
>>> array of type STRUCT.
>>>
>>> I have this declaration:
>>>
>>>   Public Struct MapObjec
>>> xPos As Integer
>>> yPos As Integer
>>> ObjectType As Integer
>>> isVisible As Boolean
>>> ObjectPicture As Picture
>>>   End Struct
>>>
>>>   Public Struct MapRoom
>>> MapObjects[50] As MapObject
>>>   End Struct
>>>
>>>   Static Private WorldMap[100, 100] As MapObject
>>>
>>>
>>> and this code:
>>>
>>>   WorldMap[5, 10].MapObjects.yPos = 100
>>>
>>>
>>> which generates a "NULL object" error.
>>>
>>> Any pointers as to whether this is possible and if so, how?
>>>
>>>
>>> Cheers
>>>
>>> -- Cam
>>> --
>>> ___
>>> Gambas-user mailing list
>>> Gambas-user@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>> --
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
> --- End of Original Message ---
>
>
> --
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Setting focus to form.

2016-11-29 Thread Rolf-Werner Eilert
In one of my projects, there are two forms the user switches forth and 
back with "F9". I use ".Main" to show the other form, so

FMain.Main

would it be in your case. But the calling form must still exist for this 
to run, so the splash screen would have to disappear later.

Try and tell if it does what you mean... Maybe Gianluigi's way is better...

Regards
Rolf

Am 29.11.2016 11:38, schrieb Gianluigi:
> frmGenerating.ShowModal or ShowDialog?
>
> Regards
> Gianluigi
>
> 2016-11-29 1:50 GMT+01:00 Cam Era :
>
>> Greetings all.
>>
>> I suspect that this is a question with an easy answer, but I've had no luck
>> in finding it.
>>
>> In short, I have a project with two forms. One is the main form, the other
>> a splash screen.
>> While the first form loads, I display the splash screen with:
>>
>>  frmGenerating.show
>>
>> and when the application has completed its loading stage, I close the
>> splash screen with:
>>
>>  frmGenerating.close
>>
>> At that point, I'd like the focus to come back to my main form, but I have
>> found no way for this to occur. Things like FMain.SetFocus and
>> FMain.Activate don't achieve this.
>>
>> Am using stock standard Ubuntu 16.04.
>>
>> Any suggestions?
>>
>> TIA
>>
>> -- Cam
>> 
>> --
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
> --
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Load modules dynamically ?

2016-11-15 Thread Rolf-Werner Eilert

Am 14.11.2016 19:56, schrieb gbwi...@openmailbox.org:
> On 2016-11-14 18:17, u...@gmx.ch wrote:
>> Dear Gambas users,
>>
>>
>> The situation:
>> - Different gambas-programs,
>> - all using similar functions
>> - All those functions are packed in modules.
>>
>> The question:
>> I there a way to load those modules at runtime?
>> As for example in the FMain.Form_Open, something like:
>> - "ModuleXY.Load(Path_to_Module)", or
>> - "ImportModule("Path_to_module","LoadAsModuleName")
>>
>> My hope:
>> Stopping to struggle with similar but diverging functions in different
>> programs by loading a "Master-Module" at runtime.
>>
>>
>> Sorry if there is a simple and stupid answer, I've not found it yet.
>>
>>
> In short:
> I would put the modules in a seperate gambas application and make that a
> library, instead of regular application.
> Next make your applications depend on the library (done in project
> properties of the applications -> refers to an executable of the
> library), and they can use the common functions.
>
> More info: http://gambaswiki.org/wiki/doc/library
>
> If you have any questions, just ask.
>
> gbWilly
>
>
>

What will the Gambas IDE do when a program is packaged (Make 
installation package)? Will it add the library to the package, or will I 
have to take care for it myself?

Rolf


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Fwd: Some screenshots of my current work on Terminal forms

2016-11-14 Thread Rolf-Werner Eilert

Am 14.11.2016 13:50, schrieb Fabien Bodard:
> 2016-11-14 13:19 GMT+01:00 Christof Thalhofer :
>> Am 14.11.2016 um 12:21 schrieb Fabien Bodard:
>>
>>> More widgets
>> Great! Tn the future the Debian installer will be programmed with Gambas!
>>
>> And mc, and htop and so on.
> Something like mc can be done... maybe an editor
>
> I want to add menus too. In fact it remember me some learning time on
> Money.Bas a demo in QBasic.
>
> I need benoit to do some work on a gb.term component. As i can't get
> any input from the terminal. So I'm just doing all th infrastructure
> for
> rendering.
>
> The goal of this component is to make application drawing as easy in
> terminal as it is in graphical mode.
>

Long, long time ago... in another galaxy... I used to program the first 
PCs with Turbo Basic. For my ever-lasting project, the school database, 
I made myself a simple library with widgets for some primitive kind of 
menues and OK boxes.

Some years later, the Turbo Basic thing was distributed by Kirschbaum in 
Germany, and they added a clever library with the same functionality 
your widget set shows.

This gave a tremendous boost, and with the so-called PowerTools 
included, at that time good olde Turbo Basic was as comprehensive as is 
Gambas today.

Yes, I like the idea :)

Regards
Rolf


--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] a possible bug-report

2016-11-03 Thread Rolf-Werner Eilert

Am 31.10.2016 13:51, schrieb Moviga Technologies:
> Hi!
>
> There is a warning in the console in the Gambas IDE that says:
> gbx3: warning: 2 allocation(s) non freed.
> Not sure where that comes from, but as C++ needs to free up stuff, I
> suppose it has to do with the gb.sdl2 component?
>
>

Just saw this thread, and there is a similar problem with one of my 
Gambas hacks. Every 10 minutes, the program calls the email server of 
our website and asks for application forms that might have been sent. If 
there is one, it processes the data and makes a nice PDF which is then 
sent to the customer.

If the webserver fails in that moment or there is no internet 
connection, the program stops and sends me a system mail with "3 
allocations non freed".

I have never found the reason, and it didn't really bother me, but if 
someone is interested in finding out, I would post some code and start 
looking for it...

Regards
Rolf


--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Val function changed behaviour, porting gambas2 to gambas3

2016-11-03 Thread Rolf-Werner Eilert

Am 02.11.2016 17:16, schrieb Benoît Minisini:
> Le 02/11/2016 à 16:49, Rolf-Werner Eilert a écrit :
>> The new behaviour of val() drove me nuts when it appeared first ;) I had
>> used it in so many places, and all over my code. Sometimes it lasts for
>> weeks until your program hits this place, and AGAIN val() Arrgh... :)
>>
>> So in most cases, I ended up either checking for null before (somewhat
>> roundabout) or just using CInt() instead.
>>
>> Regards
>> Rolf
>>
> This change was needed, because Val() now takes thousand separators into
> account, and some language uses spaces for that.
>
> Regards,
>

No problem, Benoit, I see the advantages. After all, my problem was due 
to sloppy programming... ;)

But in BASIC, one is used to everything being converted from one format 
to another without raising an error that can stop the program. So in 
normal BASIC thinking, if val() cannot find a value in a string, it 
would be expected to send "0", though it isn't fully logical I have to 
admit. In the scope of my programming, this would do the job. Maybe I 
should make my own Val()...

Regards
Rolf


--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Val function changed behaviour, porting gambas2 to gambas3

2016-11-02 Thread Rolf-Werner Eilert
The new behaviour of val() drove me nuts when it appeared first ;) I had 
used it in so many places, and all over my code. Sometimes it lasts for 
weeks until your program hits this place, and AGAIN val() Arrgh... :)

So in most cases, I ended up either checking for null before (somewhat 
roundabout) or just using CInt() instead.

Regards
Rolf

Am 02.11.2016 16:18, schrieb Richard Welch:
> This is just noting the change in case it might help someone else - not
> a plea for a change.
>
> In g2, the Val function would ignore that part of its input string after
> the first space, so that, for instance Val("12  3 5") would return the
> integer value 12.
>
> Here and there, I use this feature when parsing a string into discrete
> numbers.
>
> Converting to g3 (specifically g3.8.2) this no longer works as before;
> Val now returns Null on such a string.
>
> The solution is obvious: append a space to the string (to guarantee
> there is one!) and then extract up to the first space before using Val.
>
>
>
> --
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today. http://sdm.link/xeonphi
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>


--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] What the... Help doesn't show help texts

2016-06-10 Thread Rolf-Werner Eilert

Am 10.06.2016 09:02, schrieb Tobias Boege:
> On Fri, 10 Jun 2016, Rolf-Werner Eilert wrote:
>> Am 10.06.2016 08:52, schrieb Rolf-Werner Eilert:
>>> This morning, the IDE help texts don't show up anymore.
>>>
>>> When I type a command, the help texts appear in the small window. But
>>> when I press F1, I can see the tree on the left, but no text on the
>>> right. There is a short blink of the waiting circle thing appearing,
>>> then it stays white.
>>>
>>> It seems, however, to be white-on-white: Mouse cursor changes to text
>>> cursor over the right-hand side, there seems to be text.
>>>
>>> Has anyone had this problem before?
>>>
>>> Regards
>>> Rolf
>>>
>>>
>> Now, a few minutes later, even the small help doesn't show most of the
>> text. The only thing I can see are the headings.
>>
>> Rolf
>>
> The whole wiki doesn't seem to work.
>
> Regards,
> Tobi
>

Ah yes, the website shows blank text. Is anyone working on it?

Rolf


--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] What the... Help doesn't show help texts

2016-06-10 Thread Rolf-Werner Eilert

Am 10.06.2016 08:52, schrieb Rolf-Werner Eilert:
> This morning, the IDE help texts don't show up anymore.
>
> When I type a command, the help texts appear in the small window. But
> when I press F1, I can see the tree on the left, but no text on the
> right. There is a short blink of the waiting circle thing appearing,
> then it stays white.
>
> It seems, however, to be white-on-white: Mouse cursor changes to text
> cursor over the right-hand side, there seems to be text.
>
> Has anyone had this problem before?
>
> Regards
> Rolf
>
>

Now, a few minutes later, even the small help doesn't show most of the 
text. The only thing I can see are the headings.

Rolf


--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] What the... Help doesn't show help texts

2016-06-10 Thread Rolf-Werner Eilert
This morning, the IDE help texts don't show up anymore.

When I type a command, the help texts appear in the small window. But 
when I press F1, I can see the tree on the left, but no text on the 
right. There is a short blink of the waiting circle thing appearing, 
then it stays white.

It seems, however, to be white-on-white: Mouse cursor changes to text 
cursor over the right-hand side, there seems to be text.

Has anyone had this problem before?

Regards
Rolf


--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Question about gb.cairo

2016-05-23 Thread Rolf-Werner Eilert
I have used Cairo in a non GUI application, and it runs very well.

Maybe you are using some other function which refers to GUI somewhere in 
the code?

Regards
Rolf



Am 23.05.2016 16:31, schrieb wi...@develop.earthshipeurope.org:
> Hi all,
>
> I have written a function to make a pdf from data in a mysql database.
> This function is in a library. A command line application
> 'PrintKwartaal' uses this function.
> Goal is to print the pdf on a quarterly base using a cron job on Debain
> server. The cron job starts the Gambas application 'PrintKwartaal', that
> has to make the pdf and print it and next quit.
>
> To write the function is started coding in a GUI environment (Gambas
> 3.6.2 on Linux Mint 17.1 Rebecca), so I could check the layout more
> easily and adjust.
>
> When I run the function in a GUI application, it renders the pdf to the
> location required (and I used Desktop.Open(sPdfFile) to get a preview of
> the pdf to check for layout adjustment).
> So, using Gambas 3.6.2 om Linux Mint 17.1 Rebecca the pdf does get made
> on location sPdfFile
>
> Once I was fine with the layout I wrote the 'PrintKwartaal' application
> using the same function from the library.
> In the function. the 'Desktop.Open(sPdfFile)' was replaced with 'Shell
> "lpr " & sPdfFile Wait' as it is of little use to do a preview of a pdf
> in a non-gui environment.
> And the need is for a printed version of the quarterly overview of the
> table content.
> This change is past the Cairo.End and should be of no influence on the
> rendering of the pdf.
> That is all that changed in the function.
>
> When I run the function in a commandline application 'PrintKwartaal' on
> a non-gui system (Gambas 3.6.2 on Debian 7.10 Wheezy server), it doesn't
> renders the pdf to the location required.
> So, using Gambas 3.6.2 on Debian 7.10 Wheezy the pdf never gets made on
> location sPdfFile
>
> Could it be gb.cairo can be selected as component for a non GUI
> application, but will not work when run in a non GUI environment?
> Or could something else be wrong.
>
> Kindest regards,
>
> gbWilly
>
> --
> Mobile security can be enabling, not merely restricting. Employees who
> bring their own devices (BYOD) to work are irked by the imposition of MDM
> restrictions. Mobile Device Manager Plus allows you to control only the
> apps on BYO-devices by containerizing them, leaving personal data untouched!
> https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>


--
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] HSplit and VSplit without "handles"

2016-05-23 Thread Rolf-Werner Eilert
Yes, that would be the nicest way I think: a property like "grip" or 
"graphical" to leave it to the programmer to use this feature or not.

Rolf

Am 20.05.2016 21:17, schrieb Jussi Lahtinen:
> Maybe there could be option for more graphically obvious split?
>
>
> Jussi
>
> On Fri, May 20, 2016 at 2:50 PM, Benoît Minisini <
> gam...@users.sourceforge.net> wrote:
>
>> Le 20/05/2016 08:13, Rolf-Werner Eilert a écrit :
>>> I guess it is a matter of Qt who might have thought a simple line is
>>> more "elegant" or so.
>>>
>>> In my Thunderbird for example there is no indication at all, just thin
>>> lines, and some can be moved, some can not.
>>>
>>> When I found this yesterday, I thought it might be configurable somehow
>>> via some of the properties. But it seems to be a "feature" ;)
>>>
>>> Regards
>>> Rolf
>>>
>> It's not a QT thing, it's a Gambas thing. Splitters are entirely made
>> with Gambas now.
>>
>> If you want to know what is made with Gambas, and what is not, look at
>> the gb.gui.base component source code.
>>
>> Regards,
>>
>> --
>> Benoît Minisini
>>
>>
>> --
>> Mobile security can be enabling, not merely restricting. Employees who
>> bring their own devices (BYOD) to work are irked by the imposition of MDM
>> restrictions. Mobile Device Manager Plus allows you to control only the
>> apps on BYO-devices by containerizing them, leaving personal data
>> untouched!
>> https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
> --
> Mobile security can be enabling, not merely restricting. Employees who
> bring their own devices (BYOD) to work are irked by the imposition of MDM
> restrictions. Mobile Device Manager Plus allows you to control only the
> apps on BYO-devices by containerizing them, leaving personal data untouched!
> https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user


--
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] HSplit and VSplit without "handles"

2016-05-20 Thread Rolf-Werner Eilert
I guess it is a matter of Qt who might have thought a simple line is 
more "elegant" or so.

In my Thunderbird for example there is no indication at all, just thin 
lines, and some can be moved, some can not.

When I found this yesterday, I thought it might be configurable somehow 
via some of the properties. But it seems to be a "feature" ;)

Regards
Rolf

Am 20.05.2016 00:17, schrieb Jussi Lahtinen:
> Yes, it is similar on my system as well. I can see how that can be a
> problem.
> Not sure what is going on. With quick test switching a theme doesn't seem
> to change anything of it...
>
>
> Jussi
>
> On Thu, May 19, 2016 at 6:47 PM, Rolf-Werner Eilert <
> eilert-sprac...@t-online.de> wrote:
>
>> Here you are:
>>
>> vsplit1 is from Gambas2, vsplit2 from Gambas3
>>
>>
>> Am 19.05.2016 17:35, schrieb Jussi Lahtinen:
>>
>>> Not sure what you mean. Screenshot would be useful.
>>> But how the GUI appears to you is largely dependent on your used theme.
>>>
>>>
>>> Jussi
>>>
>>> On Thu, May 19, 2016 at 10:13 AM, Rolf-Werner Eilert <
>>> eilert-sprac...@t-online.de> wrote:
>>>
>>> In a comparison with the older brew of the same project under Gambas2, I
>>>> just found that the grips/handles (dotted surfaces) on the lines have
>>>> disappeared under Gambas3. There are just dark gray lines instead.
>>>>
>>>> The functionality is there, the mouse arrow changes, you can drag the
>>>> line etc. But unless you hover over the lines, you will not understand
>>>> that the line can be used this way.
>>>>
>>>> Does it show up on your systems like this too?
>>>>
>>>> Rolf
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Mobile security can be enabling, not merely restricting. Employees who
>>>> bring their own devices (BYOD) to work are irked by the imposition of MDM
>>>> restrictions. Mobile Device Manager Plus allows you to control only the
>>>> apps on BYO-devices by containerizing them, leaving personal data
>>>> untouched!
>>>> https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
>>>> ___
>>>> Gambas-user mailing list
>>>> Gambas-user@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>>>
>>>>
>>> --
>>> Mobile security can be enabling, not merely restricting. Employees who
>>> bring their own devices (BYOD) to work are irked by the imposition of MDM
>>> restrictions. Mobile Device Manager Plus allows you to control only the
>>> apps on BYO-devices by containerizing them, leaving personal data
>>> untouched!
>>> https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
>>> ___
>>> Gambas-user mailing list
>>> Gambas-user@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>>
>>>
>>
>> --
>> Mobile security can be enabling, not merely restricting. Employees who
>> bring their own devices (BYOD) to work are irked by the imposition of MDM
>> restrictions. Mobile Device Manager Plus allows you to control only the
>> apps on BYO-devices by containerizing them, leaving personal data
>> untouched!
>> https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>>
> --
> Mobile security can be enabling, not merely restricting. Employees who
> bring their own devices (BYOD) to work are irked by the imposition of MDM
> restrictions. Mobile Device Manager Plus allows you to control only the
> apps on BYO-devices by containerizing them, leaving personal data untouched!
> https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>


--
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] HSplit and VSplit without "handles"

2016-05-19 Thread Rolf-Werner Eilert

Here you are:

vsplit1 is from Gambas2, vsplit2 from Gambas3

Am 19.05.2016 17:35, schrieb Jussi Lahtinen:

Not sure what you mean. Screenshot would be useful.
But how the GUI appears to you is largely dependent on your used theme.


Jussi

On Thu, May 19, 2016 at 10:13 AM, Rolf-Werner Eilert <
eilert-sprac...@t-online.de> wrote:


In a comparison with the older brew of the same project under Gambas2, I
just found that the grips/handles (dotted surfaces) on the lines have
disappeared under Gambas3. There are just dark gray lines instead.

The functionality is there, the mouse arrow changes, you can drag the
line etc. But unless you hover over the lines, you will not understand
that the line can be used this way.

Does it show up on your systems like this too?

Rolf



--
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data
untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


--
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user



--
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] HSplit and VSplit without "handles"

2016-05-19 Thread Rolf-Werner Eilert
In a comparison with the older brew of the same project under Gambas2, I 
just found that the grips/handles (dotted surfaces) on the lines have 
disappeared under Gambas3. There are just dark gray lines instead.

The functionality is there, the mouse arrow changes, you can drag the 
line etc. But unless you hover over the lines, you will not understand 
that the line can be used this way.

Does it show up on your systems like this too?

Rolf


--
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Balloon with black background

2016-05-12 Thread Rolf-Werner Eilert
Thank you Gianluigi, but does GTK have anything in common with my KDE stuff?

Rolf

Am 12.05.2016 16:40, schrieb Gianluigi:
> See Ron's trick [0] and this article[0], I hope can be useful.
> Regards
> Gianluigi
> [0]http://gambas.8142.n7.nabble.com/System-Colors-td56130.html
> [1]
> http://www.iwillfolo.com/how-to-change-gtk-apps-tooltips-text-and-background-color/
>
> 2016-05-12 11:16 GMT+02:00 Rolf-Werner Eilert <eilert-sprac...@t-online.de>:
>
>> This has not priority 1 for me, but it looks somewhat ugly.
>>
>> Currently I am migrating an older project from Gambas2 to Gambas3.
>>
>> On my system, there is qt4 with KDE4, but due to performance reasons I
>> use qt3 and KDE3 for display.
>>
>> The same project shows a Balloon with yellow background when started the
>> old way with Gambas2, but the background is black (and font negative =
>> white) when I start it in Gambas3.
>>
>> Maybe it fails at some missing theme, or some system variable which is
>> declared differently under qt3 and 4. Anyway, do I have any influence on
>> this?
>>
>> For the moment, I cannot check this on a newer system, so I would like
>> to hear your comments on this first. You will know Balloon better...
>>
>> Thank you!
>>
>> Rolf
>>
>>
>>
>> --
>> Mobile security can be enabling, not merely restricting. Employees who
>> bring their own devices (BYOD) to work are irked by the imposition of MDM
>> restrictions. Mobile Device Manager Plus allows you to control only the
>> apps on BYO-devices by containerizing them, leaving personal data
>> untouched!
>> https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
> --
> Mobile security can be enabling, not merely restricting. Employees who
> bring their own devices (BYOD) to work are irked by the imposition of MDM
> restrictions. Mobile Device Manager Plus allows you to control only the
> apps on BYO-devices by containerizing them, leaving personal data untouched!
> https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>


--
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Warning from Shell command

2016-05-10 Thread Rolf-Werner Eilert
Aah, the same message - thank you!

Rolf

Am 10.05.2016 16:47, schrieb Jussi Lahtinen:
> What happens if you run the same command in actual terminal?
>
>
> Jussi
>
> On Tue, May 10, 2016 at 5:40 PM, Rolf-Werner Eilert <
> eilert-sprac...@t-online.de> wrote:
>
>> When I shell out after having made a PDF with
>>
>> Shell "okular " & myPDFfile
>>
>> I get a warning in the IDE:
>>
>> okular(12453)/kdeui (kdelibs) KXMLGUIClient::~KXMLGUIClient: 0x7bcc08
>> deleted without having been removed from the factory first. This will
>> leak standalone popupmenus and could lead to crashes.
>>
>> Anything to worry about?
>>
>> Rolf
>>
>>
>>
>> --
>> Mobile security can be enabling, not merely restricting. Employees who
>> bring their own devices (BYOD) to work are irked by the imposition of MDM
>> restrictions. Mobile Device Manager Plus allows you to control only the
>> apps on BYO-devices by containerizing them, leaving personal data
>> untouched!
>> https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
> --
> Mobile security can be enabling, not merely restricting. Employees who
> bring their own devices (BYOD) to work are irked by the imposition of MDM
> restrictions. Mobile Device Manager Plus allows you to control only the
> apps on BYO-devices by containerizing them, leaving personal data untouched!
> https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>


--
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Warning from Shell command

2016-05-10 Thread Rolf-Werner Eilert

Am 10.05.2016 16:49, schrieb Benoît Minisini:
> Le 10/05/2016 16:40, Rolf-Werner Eilert a écrit :
>> When I shell out after having made a PDF with
>>
>> Shell "okular " & myPDFfile
>>
>> I get a warning in the IDE:
>>
>> okular(12453)/kdeui (kdelibs) KXMLGUIClient::~KXMLGUIClient: 0x7bcc08
>> deleted without having been removed from the factory first. This will
>> leak standalone popupmenus and could lead to crashes.
>>
>> Anything to worry about?
>>
>> Rolf
>>
> This is a message from okular, this has nothing to do with Gambas.
>
> KDE programs usually emit tons of debugging messages. They are
> redirected to ~/.xsession-errors when the program is launched from the
> GUI. Otherwise you get them in the terminal.
>
Well, as I just found out, the same message comes when I start it from 
terminal. So nothing to worry about :)

Thank you!

Rolf


--
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Warning from Shell command

2016-05-10 Thread Rolf-Werner Eilert
When I shell out after having made a PDF with

Shell "okular " & myPDFfile

I get a warning in the IDE:

okular(12453)/kdeui (kdelibs) KXMLGUIClient::~KXMLGUIClient: 0x7bcc08 
deleted without having been removed from the factory first. This will 
leak standalone popupmenus and could lead to crashes.

Anything to worry about?

Rolf


--
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] String[] in Sub, what is going wrong

2016-04-28 Thread Rolf-Werner Eilert

Am 27.04.2016 18:39, schrieb T Lee Davidson:
> On 04/27/2016 12:02 PM, Rolf-Werner Eilert wrote:
>> This is the code:
>>
>> Public Sub setFontNameList(fontliste As String[])
>> Dim i As Integer
>>
>>  fntexc.Clear
>>
>>  For i = 0 To fontliste.count - 1
>>fntexc.Add(fontliste[i])
>>  Next
>>
>> End
>>
>> It didn't run, so I set a Wait to the line fntexc.Clear. "fontliste[]"
>> is delivered as it should, it has 3 items. But fontliste.Count is 0,
>> fontliste.Max would be -1. So it is never copied.
>>
>> What is going wrong here???
>>
>> Regards
>> Rolf
>>
> I have to assume that "fntexc" is a 'global' since it is not declared in the 
> Sub.
>
> This code...
>
> ' Gambas module file
>
> Public fntexc As String[]
>
> Public Sub Main()
>
> Dim sFont As String
>
> fntexc = []
> setFontNameList(["courier", "helvetica", "arial"])
> For Each sFont In fntexc
>   Print sFont
> Next
> End
>
> Public Sub setFontNameList(fontliste As String[])
> Dim i As Integer
>
> Debug fontliste.Count
>
> fntexc.Clear
>
> For i = 0 To fontliste.count - 1
>   fntexc.Add(fontliste[i])
> Next
>
> End
>
> ...works, and outputs:
> MMain.setFontNameList.19: 3
> courier
> helvetica
> arial
>
>
> Hope that helps,
>

Well, thank you. I will answer here to avoid double explanations. Thank 
you all for your answers!

You are right, fntexc is declared upstairs in the module where this 
function is. The problem is, however, not fntexc but fontliste. The 
function is called from another module. Fontliste is declared PUBLIC 
there, and when the function is called, fontliste contains the items. 
But when fontliste shall be used within the function, it appears to be 
empty.

So it is module 1 which has a string array named FontListe:

Public FontListe As New String[]
.
.
.
Public Sub btnOK_Click()
.
.
 ini.setFontNameList(FontListe)
.
.
End

And in module 2 ("ini") the contents is to be copied into the string 
array which is there:

Private fntexc As New String[]
.
.
.
Public Sub setFontNameList(fontliste As String[])
'Dim i As Integer

   fntexc.Clear'When I stop here, fontliste is filled

   fntexc.Insert(fontliste) 'When I stop here, fontliste is empty

   ' For i = 0 To fntliste.count - 1 'Thanks to Christof for the tip, 
but it doesn't run with Insert either
   '   fntexc.Add(fntliste[i])
   ' Next

End

So my explanation is that I might need another string array which I 
declare within the calling Sub in module 1. But I cannot remember I have 
ever had a similar issue before. What confuses me most is that I can see 
the contents of the array when I enter the function, but it appears 
empty when I want to access it there.

Rolf


--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] String[] in Sub, what is going wrong

2016-04-27 Thread Rolf-Werner Eilert
This is the code:

Public Sub setFontNameList(fontliste As String[])
Dim i As Integer

   fntexc.Clear

   For i = 0 To fontliste.count - 1
 fntexc.Add(fontliste[i])
   Next

End

It didn't run, so I set a Wait to the line fntexc.Clear. "fontliste[]" 
is delivered as it should, it has 3 items. But fontliste.Count is 0, 
fontliste.Max would be -1. So it is never copied.

What is going wrong here???

Regards
Rolf


--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] FontChooser setting fontname

2016-04-27 Thread Rolf-Werner Eilert

Am 27.04.2016 10:12, schrieb adamn...@gmail.com:
> On Wed, 27 Apr 2016 09:44:55 +0200
> Rolf-Werner Eilert <eilert-sprac...@t-online.de> wrote:
>
>> Does really nobody know why I cannot set the SelectedFont value as
>> mentioned in the documentation?
>>
>> Rolf
>>
>> Am 26.04.2016 12:57, schrieb Rolf-Werner Eilert:
>>> "Courrier" is French, in my list there is "Courier". I can choose it
>>> from the list, but I cannot set the list to this value/index/string.
>>>
>>> Rolf
>>>
>>> Am 26.04.2016 12:39, schrieb Fabien Bodard:
>>>> Courrier
>>>> Le 26 avr. 2016 12:12, "Rolf-Werner Eilert" <eilert-sprac...@t-online.de> a
>>>> écrit :
>>>>
>>>>> The docu reads:
>>>>>
>>>>> FontChooser.SelectedFont (gb.form)
>>>>>
>>>>> Property SelectedFont As String
>>>>>
>>>>> Returns or sets the selected font as a string.
>>>>>
>>>>> When I try to do
>>>>>
>>>>> Dim MyFont As String
>>>>>
>>>>> MyFont = "Courier"
>>>>> fcMyFont.SelectedFont = MyFont
>>>>>
>>>>> nothing happens.
>>>>>
>>>>> Am I expecting too much?
>>>>>
>>>>> Rolf
>>>>>
> hmm
> ' Gambas class file
>
> Public Sub _new()
>
>FontChooser1.SelectedFont = "Courier"
>Print FontChooser1.SelectedFont
>
> End
> seems to work ok here?
>
>

Ahh ok, this makes sense. It does run like this, but the dropdown list 
still doesn't reflect it.

But I found the reason. I only needed the dropdown list visible, so I 
decreased the control to 29 px. This way, however, the preview area 
isn't visible, and the control seems to need the preview area to refresh 
the dropdown list.

So my solution was

FontChooser1.Height = 110
FontChooser1.SelectedFont = "Courier"
FontChooser1.Height = 29

This way it runs like expected... :)

Regards
Rolf


--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] FontChooser setting fontname

2016-04-27 Thread Rolf-Werner Eilert
Does really nobody know why I cannot set the SelectedFont value as 
mentioned in the documentation?

Rolf

Am 26.04.2016 12:57, schrieb Rolf-Werner Eilert:
> "Courrier" is French, in my list there is "Courier". I can choose it
> from the list, but I cannot set the list to this value/index/string.
>
> Rolf
>
> Am 26.04.2016 12:39, schrieb Fabien Bodard:
>> Courrier
>> Le 26 avr. 2016 12:12, "Rolf-Werner Eilert" <eilert-sprac...@t-online.de> a
>> écrit :
>>
>>> The docu reads:
>>>
>>> FontChooser.SelectedFont (gb.form)
>>>
>>> Property SelectedFont As String
>>>
>>> Returns or sets the selected font as a string.
>>>
>>> When I try to do
>>>
>>> Dim MyFont As String
>>>
>>> MyFont = "Courier"
>>> fcMyFont.SelectedFont = MyFont
>>>
>>> nothing happens.
>>>
>>> Am I expecting too much?
>>>
>>> Rolf
>>>
>>>
>>>
>>> --
>>> Find and fix application performance issues faster with Applications
>>> Manager
>>> Applications Manager provides deep performance insights into multiple
>>> tiers of
>>> your business applications. It resolves application problems quickly and
>>> reduces your MTTR. Get your free trial!
>>> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
>>> ___
>>> Gambas-user mailing list
>>> Gambas-user@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>>
>> --
>> Find and fix application performance issues faster with Applications Manager
>> Applications Manager provides deep performance insights into multiple tiers 
>> of
>> your business applications. It resolves application problems quickly and
>> reduces your MTTR. Get your free trial!
>> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
> --
> Find and fix application performance issues faster with Applications Manager
> Applications Manager provides deep performance insights into multiple tiers of
> your business applications. It resolves application problems quickly and
> reduces your MTTR. Get your free trial!
> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user


--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] FontChooser setting fontname

2016-04-26 Thread Rolf-Werner Eilert
"Courrier" is French, in my list there is "Courier". I can choose it 
from the list, but I cannot set the list to this value/index/string.

Rolf

Am 26.04.2016 12:39, schrieb Fabien Bodard:
> Courrier
> Le 26 avr. 2016 12:12, "Rolf-Werner Eilert" <eilert-sprac...@t-online.de> a
> écrit :
>
>> The docu reads:
>>
>> FontChooser.SelectedFont (gb.form)
>>
>> Property SelectedFont As String
>>
>> Returns or sets the selected font as a string.
>>
>> When I try to do
>>
>> Dim MyFont As String
>>
>> MyFont = "Courier"
>> fcMyFont.SelectedFont = MyFont
>>
>> nothing happens.
>>
>> Am I expecting too much?
>>
>> Rolf
>>
>>
>>
>> --
>> Find and fix application performance issues faster with Applications
>> Manager
>> Applications Manager provides deep performance insights into multiple
>> tiers of
>> your business applications. It resolves application problems quickly and
>> reduces your MTTR. Get your free trial!
>> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
> --
> Find and fix application performance issues faster with Applications Manager
> Applications Manager provides deep performance insights into multiple tiers of
> your business applications. It resolves application problems quickly and
> reduces your MTTR. Get your free trial!
> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user


--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] FontChooser setting fontname

2016-04-26 Thread Rolf-Werner Eilert
The docu reads:

FontChooser.SelectedFont (gb.form)

Property SelectedFont As String

Returns or sets the selected font as a string.

When I try to do

Dim MyFont As String

MyFont = "Courier"
fcMyFont.SelectedFont = MyFont

nothing happens.

Am I expecting too much?

Rolf


--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Warning Could not connect to Gambas Documentation

2016-04-22 Thread Rolf-Werner Eilert
Here was a problem for about an hour, too.

It makes typing code very slowly.

Rolf

Am 22.04.2016 12:44, schrieb Gianluigi:
> now is fine working
>
> Regards
> Gianluigi
>
> 2016-04-22 11:46 GMT+02:00 Gianluigi :
>
>> Warning Could not connect to Gambas Documentation
>>
>> Regards
>> Gianluigi
>>
> --
> Find and fix application performance issues faster with Applications Manager
> Applications Manager provides deep performance insights into multiple tiers of
> your business applications. It resolves application problems quickly and
> reduces your MTTR. Get your free trial!
> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>


--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Balloon in help window partly covered

2016-04-21 Thread Rolf-Werner Eilert
Ah, what a shame... Ok, but I understand. Thanks for the explanation!

Rolf

Am 21.04.2016 16:41, schrieb Benoît Minisini:
> Le 21/04/2016 08:59, Rolf-Werner Eilert a écrit :
>> This is a little thing that got my attention:
>>
>> When I hover the mouse over an underlined item in the help window, a
>> balloon help comes up. This will always open to the right. When the item
>> is near the right window border, the balloon disappears under the
>> window's edge. There is no difference when you drag the window border to
>> make it wider - it still is partly hidden.
>>
>> Somehow the balloon help seems to care for screen limits rather than
>> window limits.
>>
>> I try to add a screenshot.
>>
>> Regards
>> Rolf
>>
> It's not a GUI balloon, it's an HTML + CSS trick. This is the reason why
> it cannot be on top of the window.
>


--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] IconPanel in IDE click behaviour

2016-04-21 Thread Rolf-Werner Eilert
Here comes another "feature" :)

In the Form Editor of the IDE, when I have an IconPanel I can click on 
the items to let the related working spaces appear. But clicking here  
will not activate the IconPanel itself, neither will the property 
palette with the IconPanel's properties react.

I have to click on the working space of the IconPanel to really activate 
it, which is a bit confusing I found. If this behaviour is intended, 
what's the idea behind it?

Regards
Rolf


--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Balloon in help window partly covered

2016-04-21 Thread Rolf-Werner Eilert

This is a little thing that got my attention:

When I hover the mouse over an underlined item in the help window, a 
balloon help comes up. This will always open to the right. When the item 
is near the right window border, the balloon disappears under the 
window's edge. There is no difference when you drag the window border to 
make it wider - it still is partly hidden.


Somehow the balloon help seems to care for screen limits rather than 
window limits.


I try to add a screenshot.

Regards
Rolf

--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] ListEditor Icons

2016-04-19 Thread Rolf-Werner Eilert
Ah, alright, will look for it later...

Rolf

Am 19.04.2016 17:57, schrieb Gianluigi:
> List Editor is a ListBox with sorting methods etc.
> You can see it from the source code in gb.fom.
> Starting from there you can try to change the appearance.
> Regards
> Gianluigi
>
> 2016-04-19 16:29 GMT+02:00 Charlie :
>
>> /1) The ListEditor has four icons. If I don't like them, is there a chance
>> to
>> change them?/
>> I don't know how to do this, or even if it can be done.
>> /2) And how is the Insert/Add button handled? Is there an event?/
>> When the list is displayed you can click on an item and then click the
>> *Add*
>> button.
>> /3) I tried ListEditor1.List.Add("Hello") but it doesn't appear in the
>> list/.
>> You need an array string e.g.
>> Dim sString as String[] = ["Hello", "world"]
>> ListEditor1.List = sString
>> Have a look at the attached example: -
>> ListEditor_example.tar
>> 
>>
>>
>>
>> --
>> View this message in context:
>> http://gambas.8142.n7.nabble.com/ListEditor-Icons-tp56001p56002.html
>> Sent from the gambas-user mailing list archive at Nabble.com.
>>
>> --
>> Find and fix application performance issues faster with Applications
>> Manager
>> Applications Manager provides deep performance insights into multiple
>> tiers of
>> your business applications. It resolves application problems quickly and
>> reduces your MTTR. Get your free trial!
>> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
> --
> Find and fix application performance issues faster with Applications Manager
> Applications Manager provides deep performance insights into multiple tiers of
> your business applications. It resolves application problems quickly and
> reduces your MTTR. Get your free trial!
> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>


--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] ListEditor Icons

2016-04-19 Thread Rolf-Werner Eilert
Ok, thank you, this makes it clear! Will try the tar tomorrow.

Rolf

Am 19.04.2016 16:29, schrieb Charlie:
> /1) The ListEditor has four icons. If I don't like them, is there a chance to
> change them?/
> I don't know how to do this, or even if it can be done.
> /2) And how is the Insert/Add button handled? Is there an event?/
> When the list is displayed you can click on an item and then click the *Add*
> button.
> /3) I tried ListEditor1.List.Add("Hello") but it doesn't appear in the
> list/.
> You need an array string e.g.
> Dim sString as String[] = ["Hello", "world"]
> ListEditor1.List = sString
> Have a look at the attached example: -
> ListEditor_example.tar
> 
>
>
>
> --
> View this message in context: 
> http://gambas.8142.n7.nabble.com/ListEditor-Icons-tp56001p56002.html
> Sent from the gambas-user mailing list archive at Nabble.com.
> --
> Find and fix application performance issues faster with Applications Manager
> Applications Manager provides deep performance insights into multiple tiers of
> your business applications. It resolves application problems quickly and
> reduces your MTTR. Get your free trial!
> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>


--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] ListEditor Icons

2016-04-19 Thread Rolf-Werner Eilert
Three questions:

1) The ListEditor has four icons. If I don't like them, is there a 
chance to change them?

2) And how is the Insert/Add button handled? Is there an event?

3) I tried ListEditor1.List.Add("Hello") but it doesn't appear in the list.

Thank you for your help!

Rolf


--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Proposal about Separator

2016-04-13 Thread Rolf-Werner Eilert
Yes, that works well, too.

Rolf

Am 13.04.2016 11:52, schrieb Fabien Bodard:
> Prefer a Panel with Arrange to none to a HBox. HBox alway call an
> arrange internal procedure.
>
>
> 2016-04-13 11:10 GMT+02:00 Rolf-Werner Eilert <eilert-sprac...@t-online.de>:
>> Aaaah thanks so much, that does the job perfectly!
>>
>> Rolf
>>
>> Am 13.04.2016 11:06, schrieb Tobias Boege:
>>> On Wed, 13 Apr 2016, Rolf-Werner Eilert wrote:
>>>> That's the point, I like the look without border. What I intended was to
>>>> make an optical separation between the list + toolbutton on the left and
>>>> the two at the right.
>>>>
>>>> Or did you mean something else?
>>>>
>>> I'm also confused how "optical" the separation should be. You don't want to
>>> separate the two by a visible line, right? Just some horizontal space. Then
>>> replace the Separator by an empty HBox of the desired size. That's what I do
>>> in these cases.
>>>
>>> Regards,
>>> Tobi
>>>
>>
>> --
>> Find and fix application performance issues faster with Applications Manager
>> Applications Manager provides deep performance insights into multiple tiers 
>> of
>> your business applications. It resolves application problems quickly and
>> reduces your MTTR. Get your free trial!
>> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>


--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Proposal about Separator

2016-04-13 Thread Rolf-Werner Eilert
Aaaah thanks so much, that does the job perfectly!

Rolf

Am 13.04.2016 11:06, schrieb Tobias Boege:
> On Wed, 13 Apr 2016, Rolf-Werner Eilert wrote:
>> That's the point, I like the look without border. What I intended was to
>> make an optical separation between the list + toolbutton on the left and
>> the two at the right.
>>
>> Or did you mean something else?
>>
> I'm also confused how "optical" the separation should be. You don't want to
> separate the two by a visible line, right? Just some horizontal space. Then
> replace the Separator by an empty HBox of the desired size. That's what I do
> in these cases.
>
> Regards,
> Tobi
>


--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Proposal about Separator

2016-04-13 Thread Rolf-Werner Eilert
That's the point, I like the look without border. What I intended was to 
make an optical separation between the list + toolbutton on the left and 
the two at the right.

Or did you mean something else?


Am 13.04.2016 10:46, schrieb Jorge Carrión:
> Why don't use a Button instead a ToolButton? A toolButton is a button that
> doesn't show  its borders without mouse cursor upon it...
>
> 2016-04-13 10:38 GMT+02:00 Rolf-Werner Eilert <eilert-sprac...@t-online.de>:
>
>> What I miss is a Border property. If you switch Visible off, the whole
>> separator distance is skipped, i. e. it is "out of order", same like
>> Enabled switched off.
>>
>> Rolf
>>
>> Am 13.04.2016 09:59, schrieb Jorge Carrión:
>>> I don't understand: If you don't want see it, don't set it... int' it?
>>>
>>> Regards
>>>
>>> 2016-04-13 8:40 GMT+02:00 Rolf-Werner Eilert <
>> eilert-sprac...@t-online.de>:
>>>> Look at the screenshot. I set a separator between the ToolButton and the
>>>> next ComboBox.
>>>>
>>>> The separator produces a thin gray line which looks as if it was the
>>>> border of the ToolButton on its left. So it would be great if the
>>>> separator's border could be switched off to make it completely
>> "invisible".
>>>> Is it possible to implement that?
>>>>
>>>> Regards
>>>> Rolf
>>>>
>>>>
>>>>
>>>>
>> --
>>>> Find and fix application performance issues faster with Applications
>>>> Manager
>>>> Applications Manager provides deep performance insights into multiple
>>>> tiers of
>>>> your business applications. It resolves application problems quickly and
>>>> reduces your MTTR. Get your free trial!
>>>> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
>>>> ___
>>>> Gambas-user mailing list
>>>> Gambas-user@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>>>
>>>>
>> --
>>> Find and fix application performance issues faster with Applications
>> Manager
>>> Applications Manager provides deep performance insights into multiple
>> tiers of
>>> your business applications. It resolves application problems quickly and
>>> reduces your MTTR. Get your free trial!
>>> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
>>> ___
>>> Gambas-user mailing list
>>> Gambas-user@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>>
>>
>>
>> --
>> Find and fix application performance issues faster with Applications
>> Manager
>> Applications Manager provides deep performance insights into multiple
>> tiers of
>> your business applications. It resolves application problems quickly and
>> reduces your MTTR. Get your free trial!
>> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
> --
> Find and fix application performance issues faster with Applications Manager
> Applications Manager provides deep performance insights into multiple tiers of
> your business applications. It resolves application problems quickly and
> reduces your MTTR. Get your free trial!
> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user


--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Proposal about Separator

2016-04-13 Thread Rolf-Werner Eilert
What I miss is a Border property. If you switch Visible off, the whole 
separator distance is skipped, i. e. it is "out of order", same like 
Enabled switched off.

Rolf

Am 13.04.2016 09:59, schrieb Jorge Carrión:
> I don't understand: If you don't want see it, don't set it... int' it?
>
> Regards
>
> 2016-04-13 8:40 GMT+02:00 Rolf-Werner Eilert <eilert-sprac...@t-online.de>:
>
>> Look at the screenshot. I set a separator between the ToolButton and the
>> next ComboBox.
>>
>> The separator produces a thin gray line which looks as if it was the
>> border of the ToolButton on its left. So it would be great if the
>> separator's border could be switched off to make it completely "invisible".
>>
>> Is it possible to implement that?
>>
>> Regards
>> Rolf
>>
>>
>>
>> --
>> Find and fix application performance issues faster with Applications
>> Manager
>> Applications Manager provides deep performance insights into multiple
>> tiers of
>> your business applications. It resolves application problems quickly and
>> reduces your MTTR. Get your free trial!
>> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>>
> --
> Find and fix application performance issues faster with Applications Manager
> Applications Manager provides deep performance insights into multiple tiers of
> your business applications. It resolves application problems quickly and
> reduces your MTTR. Get your free trial!
> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>


--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Proposal about Separator

2016-04-13 Thread Rolf-Werner Eilert
Look at the screenshot. I set a separator between the ToolButton and the 
next ComboBox.


The separator produces a thin gray line which looks as if it was the 
border of the ToolButton on its left. So it would be great if the 
separator's border could be switched off to make it completely "invisible".


Is it possible to implement that?

Regards
Rolf

--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] How to replace chr$(13) from a text file

2016-04-12 Thread Rolf-Werner Eilert
The New Line in Linux is chr$(10), not chr$(13).

So here the Replace will not find anything:

Am 11.04.2016 17:18, schrieb José Monteiro:
> By now I tried to use:
>
> Mglobal.info = Replace$(TextArea1.Text, Chr$(13), "|")
>
> Unfortunately, the global variable "info" still has new lines and a parser
> refuses to accept it.

When you use Chr$(10) instead, it will run as expected. The "\n" in 
Linux means Chr$(10), just like gb.NewLine.

If you had a Windows text file, it would be Chr$(10) Chr$(13) instead 
and you would have to delete both. But in a pure Windows environment, a 
"\n" would mean this automatically.

Regards
Rolf


--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Get html tags from RichText

2016-03-19 Thread Rolf-Werner Eilert
Try to write that text into a file like

File.Save(...)

Then open that file via mc or whatever plain text editor...

Does it work?

Regards
Rolf

Am 18.03.2016 12:32, schrieb abbat81:
> There is a RichText in my TableView.Cell.RichText
> Can I get source of that content?
> (I need to know what color ther is.)
>
> Thanks in advance
>
>
>
> --
> View this message in context: 
> http://gambas.8142.n7.nabble.com/Get-html-tags-from-RichText-tp55710.html
> Sent from the gambas-user mailing list archive at Nabble.com.
>
> --
> Transform Data into Opportunity.
> Accelerate data analysis in your applications with
> Intel Data Analytics Acceleration Library.
> Click to learn more.
> http://pubads.g.doubleclick.net/gampad/clk?id=278785231=/4140
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>


--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231=/4140
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] .Find only from position "1"?

2016-03-15 Thread Rolf-Werner Eilert
I found the reason: There is a white space starting the string with the 
fieldnames, i. e. the first element begins with " ".

In the Gambas IDE (list with array contents) a whitespace is hardly 
visible. Maybe it would be an idea to indicate it by replacing it with 
another, unique character like a small middle-dot or coloring it with 
light gray, blue or so?

Anyway, my problem is solved, and sorry for the noise :)

Regards
Rolf

Am 14.03.2016 16:12, schrieb Rolf-Werner Eilert:
> Have just stumbled over this one.
>
> To make things short, elements of an address have to be collected. This
> is the code snippet:
>
> feld = Split(felderKopieAdresse[lsKopieAdresse.Index], ",")
>
> For i = 0 To feld.Max
>   If links.Find(feld[i]) > -1 Then
> adresse.Add(rechts[links.Find(feld[i])])
>   End If
> Next
>
> feld contains the names of the address fields, i. e. "Anr1", "Vorname1",
> "Name1" etc.
>
> "links" is the pointer to the address contents in "rechts", i. e. if
> links[x] = "Anr1", its index points to "Herr" or "Frau" in rechts[x]
>
> Now this runs well:
>
> - feld will contain a collection of fields to be delivered, i. e.
> "Anr1", "Vorname1", "Name1" etc.
> - it starts with 0
>
> But on the first loop, Find will deliver -1
>
> On later loops, it runs well. So the first element of the address is
> ignored.
>
> I have checked all brackets and stuff, I have run it step-by-step, and
> each time I run it, but the first search item isn't found.
>
> "Anr1" is in links[0], it is definitely there. It is also in feld[0].
> And when i=0, links.Find(feld[i]) should find it and deliver "0", not -1.
>
> I even tried with another list of search items: Same behaviour, the
> first loop doesn't find anything.
>
> Am I blind???
>
> Thanks for any help!
>
> Rolf
>
>
> --
> Transform Data into Opportunity.
> Accelerate data analysis in your applications with
> Intel Data Analytics Acceleration Library.
> Click to learn more.
> http://pubads.g.doubleclick.net/gampad/clk?id=278785231=/4140
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>


--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231=/4140
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] .Find only from position "1"?

2016-03-14 Thread Rolf-Werner Eilert
Have just stumbled over this one.

To make things short, elements of an address have to be collected. This 
is the code snippet:

   feld = Split(felderKopieAdresse[lsKopieAdresse.Index], ",")

   For i = 0 To feld.Max
 If links.Find(feld[i]) > -1 Then
   adresse.Add(rechts[links.Find(feld[i])])
 End If
   Next

feld contains the names of the address fields, i. e. "Anr1", "Vorname1", 
"Name1" etc.

"links" is the pointer to the address contents in "rechts", i. e. if 
links[x] = "Anr1", its index points to "Herr" or "Frau" in rechts[x]

Now this runs well:

- feld will contain a collection of fields to be delivered, i. e. 
"Anr1", "Vorname1", "Name1" etc.
- it starts with 0

But on the first loop, Find will deliver -1

On later loops, it runs well. So the first element of the address is 
ignored.

I have checked all brackets and stuff, I have run it step-by-step, and 
each time I run it, but the first search item isn't found.

"Anr1" is in links[0], it is definitely there. It is also in feld[0]. 
And when i=0, links.Find(feld[i]) should find it and deliver "0", not -1.

I even tried with another list of search items: Same behaviour, the 
first loop doesn't find anything.

Am I blind???

Thanks for any help!

Rolf


--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231=/4140
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


  1   2   3   4   5   6   7   8   >