[Gambas-user] Events not firing in dynamically instantiated forms.

2014-11-27 Thread Stephen

  GAMBAS: 3.5.4
  Fedora 20 in a VM under 64 bit CentOS 6.5
  MATE Desktop

  I'm a bit confused (some would say it's my normal state:) as to why, 
when a form is dynamically instantiated within a tabstrip (or other 
container) the Open and Show events for the instantiated form don't 
fire. This can be worked around by making a Show subroutine that can be 
manually called from the parent form.


  Have a look at the source demonstration project attached to this email.

  Should these events fire? If not then why?

--
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site Information Systems



InstantiateFormTest-0.0.1.tar.gz
Description: GNU Zip compressed data
--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Events not firing in dynamically instantiated forms.

2014-11-27 Thread Stephen
I'm not consciously overriding the event observer so I'm not clear how 
to not do it.
Obviously I still have much to learn.

On 11/27/2014 08:20 AM, Benoît Minisini wrote:
> Le 27/11/2014 14:08, Stephen a écrit :
>> GAMBAS: 3.5.4
>> Fedora 20 in a VM under 64 bit CentOS 6.5
>> MATE Desktop
>>
>> I'm a bit confused (some would say it's my normal state:) as to why,
>> when a form is dynamically instantiated within a tabstrip (or other
>> container) the Open and Show events for the instantiated form don't
>> fire. This can be worked around by making a Show subroutine that can be
>> manually called from the parent form.
>>
>> Have a look at the source demonstration project attached to this email.
>>
>> Should these events fire? If not then why?
>>
> Because you override the event observer when instanciating Form1, which
> is by default itself. Don't override it, and it will work.
>


-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site Information Systems


--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Events not firing in dynamically instantiated forms.

2014-11-27 Thread Stephen
On 11/27/2014 08:39 AM, Benoît Minisini wrote:
> Le 27/11/2014 14:29, Stephen a écrit :
>> I'm not consciously overriding the event observer so I'm not clear how
>> to not do it.
>> Obviously I still have much to learn.
>>
> mhForm1 = New Form1(TabStrip1) As "Form1"
>  \/
>  .
> /|\
>  |
>  '
> There.
>
   Ah NOW I see what's happening and why. Merci Benoit!

-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site Information Systems


--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Project already open... but it isn't.

2014-12-01 Thread Stephen
   What is GAMBAS looking at/for when it attempts to load a project in 
order to pop up the warning that it "seems to be already opened"? I've 
been hunting around for lock files and/or other flotsam that might have 
been left over from an IDE crash but see nothing *obvious*.

-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site Information Systems


--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Project already open... but it isn't.

2014-12-01 Thread Stephen
   Yeah.. I thought it might be something like that.. but I don't see 
any file .lock in the project directory. Very strange.

On 12/01/2014 01:55 PM, Tobias Boege wrote:
> On Mon, 01 Dec 2014, Stephen wrote:
>> What is GAMBAS looking at/for when it attempts to load a project in
>> order to pop up the warning that it "seems to be already opened"? I've
>> been hunting around for lock files and/or other flotsam that might have
>> been left over from an IDE crash but see nothing *obvious*.
>>
> I guess it's the file ".lock" in the project directory.
>


-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site Information Systems


--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Project already open... but it isn't.

2014-12-01 Thread Stephen
On 12/01/2014 01:55 PM, Tobias Boege wrote:
> On Mon, 01 Dec 2014, Stephen wrote:
>> What is GAMBAS looking at/for when it attempts to load a project in
>> order to pop up the warning that it "seems to be already opened"? I've
>> been hunting around for lock files and/or other flotsam that might have
>> been left over from an IDE crash but see nothing *obvious*.
>>
> I guess it's the file ".lock" in the project directory.
>
I'm gonna restart the VM (gee... Linux is getting like Windoze).

-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site Information Systems


--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Project already open... but it isn't.

2014-12-01 Thread Stephen
   Restarted VM, now loads with no message... very strange... but OK, 
keep moving forward.

On 12/01/2014 02:04 PM, Stephen wrote:
> On 12/01/2014 01:55 PM, Tobias Boege wrote:
>> On Mon, 01 Dec 2014, Stephen wrote:
>>>  What is GAMBAS looking at/for when it attempts to load a project in
>>> order to pop up the warning that it "seems to be already opened"? I've
>>> been hunting around for lock files and/or other flotsam that might have
>>> been left over from an IDE crash but see nothing *obvious*.
>>>
>> I guess it's the file ".lock" in the project directory.
>>
> I'm gonna restart the VM (gee... Linux is getting like Windoze).
>


-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site Information Systems


--
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Communicating to hosted forms...

2014-12-30 Thread Stephen

  Attached is a test harness that tries to implement the following.

  FormMain hosts two other forms (Form1 and Form2) within two frames 
(Frame1 and Frame2). On each of these hosted forms there are two text 
boxes and a button. Pressing the button on either of the hosted forms 
raises an event that pushes the value in TextBox1 up to the forms 
parent. The object of the exercise is to push the value received in the 
event to TextBox2 of the other hosted form.


  Have a look at the project example, I can't seem to get a handle 
(sic) on how to communicate to the child forms from the parent.


--
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site Information Systems



MercuryFramework-0.0.1.tar.gz
Description: GNU Zip compressed data
--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Communicating to hosted forms...

2015-01-01 Thread Stephen
I just extracted the archive from the email, loaded it and of course it 
works perfectly.

I had this;

mhform1.textbox2.text = value

and

mgform2.textbox2.text = value

in my original code but I kept getting "null object" every time it tried 
execute the line.

Thanks for putting up with my stupidity and taking the time to help out.

Steve.

On 12/30/2014 11:53 AM, Charlie Reinl wrote:
> Am Dienstag, den 30.12.2014, 16:45 +0100 schrieb Tobias Boege:
>> On Tue, 30 Dec 2014, Charlie Reinl wrote:
>>> Am Dienstag, den 30.12.2014, 07:27 -0500 schrieb Stephen:
>>>> Attached is a test harness that tries to implement the following.
>>>>
>>>> FormMain hosts two other forms (Form1 and Form2) within two frames
>>>> (Frame1 and Frame2). On each of these hosted forms there are two text
>>>> boxes and a button. Pressing the button on either of the hosted forms
>>>> raises an event that pushes the value in TextBox1 up to the forms
>>>> parent. The object of the exercise is to push the value received in the
>>>> event to TextBox2 of the other hosted form.
>>>>
>>>> Have a look at the project example, I can't seem to get a handle
>>>> (sic) on how to communicate to the child forms from the parent.
>>>>
>>> Salut Stephen,
>>>
>>> now its to you to find all my changes
>>>
>> You can still send a patch :-P
>>
> Salut Tobi,
>
> while never used, I jump to the occasion and made one.
> Q: I would like choose the files but couldn't uncheck
>
> And if you are on the listview with the checkbuttons and every time
> you step back to the source archive and the forward again the file list
> is added one more time to the listview.
>
> einen Guten Rutsch


-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site Information Systems


--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Communicating to hosted forms...

2015-01-01 Thread Stephen
When, at the project level, all controls on all forms are set to be 
public, the 'Public' property for each control on each form continues to 
indicate that it is NOT Public. This is misleading.

   The 'Public' property of all controls should reflect the reality, 
that it is publicly visible, and that property should then be made 
uneditable. A tool-tip might have to be put in to explain why it is 
uneditable, i.e. that the property was set at the project level.

   The only way that I can see out of my conundrum is to create a 
property in in each form to which updated information is to be pushed. 
The property write will process the received data and put it where it 
needs to go. It promises to be a pain in the neck to implement but will 
give more granular control, it may also make maintenance a nightmare, so 
I'll have to give this more thought.

   Once again, thanks for the assistance.

On 01/01/2015 03:57 PM, Tobias Boege wrote:
> On Thu, 01 Jan 2015, Stephen wrote:
>> I just extracted the archive from the email, loaded it and of course it
>> works perfectly.
>>
>> I had this;
>>
>> mhform1.textbox2.text = value
>>
>> and
>>
>> mgform2.textbox2.text = value
>>
>> in my original code but I kept getting "null object" every time it tried
>> execute the line.
>>
>> Thanks for putting up with my stupidity and taking the time to help out.
>>
> That's why I found it better to send a patch in this case (I attach the one
> with Charlie's changes). You will see that he switched a setting in the
> project properties:
>
>+ControlPublic=1
>
> which makes all controls on all forms public variables (they're private by
> default for reasons of sanity). With this setting enabled, your problem is
> trivial as you see.
>
> I think Charlie wanted you to find that setting by yourself. I think this is
> a bit unfair as the setting is well hidden in the project options dialog :-)
>
> Regards,
> Tobi
>
>
>
> --
> Dive into the World of Parallel Programming! The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is your
> hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net
>
>
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user


-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site Information Systems

--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Communicating to hosted forms...

2015-01-02 Thread Stephen


On 01/01/2015 05:59 PM, Tobias Boege wrote:
> On Thu, 01 Jan 2015, Stephen wrote:
>> The only way that I can see out of my conundrum is to create a
>> property in in each form to which updated information is to be pushed.
>> The property write will process the received data and put it where it
>> needs to go.
>>
> Sounds suspiciously like you just want a method (or multiple) in your
> embedded forms. No need for a property and to "process" its data.
>
   Actually it's all about messaging within the app,  I just got focused 
on setting control values because no matter what I did I failed at it; 
but I learned something! The controls had to be set to public at the 
project level; which is something I would try my best never to do.

-- 

Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site Information Systems


--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Desktop Developed in Gambas 3.6

2015-03-08 Thread Stephen
On 03/07/2015 11:18 PM, herberth guzman wrote:
> Desktop Developed in Gambas 3.6 (The Desktop of Gambas -  Innova Desktop)
>
> Containing Innova Desktop
> Suggested by Benoit
>
> Nothing possible without the special help of Benoit and Fabien.
>
> - Innova Desktop Scheduled in Gambas 3.6 100%
> - Graphical interface simple and straightforward user
>(Not dependent and does not require KDE / Gnome)
> -Interact with GTK and KDE interchangeably
> -It has its own panel (most used app buttons and basic)
> -It has its own systray
> -It has its own launcher (start menu) "DesktopApps" by Fabien
> -Widgets to display the time, date, calculator (any user can add the widget
> or create)
> -Theme (anyone can do theme and configure a text file and picture)
> -The configuration is stored in a text file
> -MyInnova - Configure the desktop of the system:
>(Wallpaper, System Language, Style Launcher, icon start ,
> icon size, Panel (Color,   background and size), Applets, Desktop Themes,
> type icons, gtk appearance, font and size, favorite applications (FM, WM,
> Shell, Broser), splash screen)
> -It is fast
> -File Manager (under development by 80%)
>
> External Programs:
>
> Calc
> GambNafen
> gbEdit
> GbScan
> gbVideoConvert
> I-nex
> Jtube
> Lighttable
> PCinfo
> PDFViewer
> PhotoTouch
> pintaScreen
> Scanip
> Teclado Virtual
> VirtualCd
> WebBrowser
> XT7-Player
> Yumi
>
>
> If anyone wants to see screenshots I leave a link.
>
> https://drive.google.com/open?id=0B2gI4jYOofp0fk5xcUJXN0dFS2RsWmRxWnJuTXhnTmp1UGM2SUFkSWhKMXpRdXJuVFBid1E&authuser=0
>
> I need little to release the project.
> Tips and suggestions are received.
>
> Regards
> Herberth Guzman
> --
> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for all
> things parallel software development, from weekly thought leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> _______
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
   Nice work.

-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site Information Systems


--
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Calculated fields

2015-05-25 Thread Stephen
gt; One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>


-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site Information Systems


--
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] POSSIBLE! bug in while loop

2015-12-29 Thread Stephen
Reading this, in addition to seeing the need for a "Wait", I thought the 
following;

   Does putting the desired global variable in a class mean the class 
needs to be instantiated within the scope of the code example given? i.e.

PUBLIC GlobalVar as globalVars ' Change the name of the class to keep 
the var name within the example unchanged.

within the code of the form which contains the GObtn and exitBtn objects?

The above would make GlobalVars.iexit visible to all classes outside of 
the scope of where it was instantiated, so all forms in the project 
could then see it.

However this can be avoided if the variable "iexit" is declared in a 
"module" as opposed to a "class". Doing this it instantly becomes global 
within the scope of the project, requiring only the addition of the 
"Wait" to process the exitBtn_Click() event and exit the loop.

The change to the code is minimal;

' Gambas class file

' Static Private iexit As Integer = 0
Public Sub _new()
End

Public Sub Form_Open()
  GlobalVars.iexit = 0
End

Public Sub GObtn_Click()
  Dim n As Integer

  n = 0

  While n < 10
Print n
n = n + 1
Wait ' This is new
If GlobalVars.iexit > 0 Then Break
  Wend
End

Public Sub exitBtn_Click()
   GlobalVars.iexit = 10
End

   This works, tested under GAMBAS 3 on Fedora 14.


On 12/28/2015 09:55 PM, Robert Boykin wrote:
> Test Program code is:
> ' Gambas class file
>
> ' Static Private iexit As Integer = 0
> Public Sub _new()
> End
>
> Public Sub Form_Open()
>   GlobalVar.iexit = 0
> End
>
> Public Sub GObtn_Click()
>   Dim n As Integer
>   n = 0
>   While n<  10
>   Print n
>   n = n + 1
>   If GlobalVar.iexit>  0 Then Break
>   Wend
> End
> Public Sub exitBtn_Click()
>   GlobalVar.iexit = 10
> End
>
> This is gambas3 on linux mint 17.3 using gb.qt4
> running on a generic desktop PC
>
> The simple form has two buttons,
> one to start a while loop
> that prints numbers to the console, and
> one to set a global variable to a value which
> should cause a break in the while loop.
>
> The global variable is defined in the class GlobalVar
> ' Gambas class file
>
> Static Public iexit As Integer = 0
>
> The program begins printing numbers upon clicking the Gobtn
> but will not stop printing when the exitBtn is cliked.
>
> It appears that the exitBtn _Click() event is not recognized
>   during execution of the while loop.
>
> I am just learning gambas on my own using
>   what examples and tutorials I can find on the internet
> and believe I may have left something out.
>
> Robert S. Boykin
> ------
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>


-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site Information Systems


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


Re: [Gambas-user] Global variables

2015-12-29 Thread Stephen

On 12/29/2015 12:14 PM, Tobias Boege wrote:
> On Tue, 29 Dec 2015, Stephen wrote:
>> Reading this, in addition to seeing the need for a "Wait", I thought the
>> following;
>>
>> Does putting the desired global variable in a class mean the class
>> needs to be instantiated within the scope of the code example given? i.e.
>>
> Strictly speaking, yes.
>
>> PUBLIC GlobalVar as globalVars ' Change the name of the class to keep
>> the var name within the example unchanged.
>>
>> within the code of the form which contains the GObtn and exitBtn objects?
>>
>> The above would make GlobalVars.iexit visible to all classes outside of
>> the scope of where it was instantiated, so all forms in the project
>> could then see it.
>>
> Not really. If Form1 is the form where the Public declaration above is made,
> then another class would have to use Form1.GlobalVar.iexit to access the
> iexit variable. It cannot directly *see* the GlobalVar object.
Yes, of course.
>> However this can be avoided if the variable "iexit" is declared in a
>> "module" as opposed to a "class". Doing this it instantly becomes global
>> within the scope of the project, requiring only the addition of the
>> "Wait" to process the exitBtn_Click() event and exit the loop.
>>
> I take it that your question is "why?".
   No, not at all. It was just a statement of fact, another way of doing it.

> You can think of a module as a class
> which has an implicit
>
>Create Static
>
> statement in its header and where every symbol is implicitly Static. [ Note
> that you *can* instantiate a module using New, i.e. it is not implicitly
> Create Private, but you cannot do anything with an instance of a module
> because every symbol is static (accessing any symbol from the instance
> throws a ".  is static" error). ]
>
   Yes, exactly.

> Read about the Create Static statement here[0]. To explain my first comment
> above: You need to have an object of your global variables class available
> to use those variables. But employing Create Static you can basically make a
> class name (and class names are project-global) refer to an object (the
> automatic instance of that class). The result is that you have a globally
> accessible object.
   Yes. Is that not equivalent to using a module, albeit perhaps with 
more control.

> Regards,
> Tobi
>
> [0] http://gambaswiki.org/wiki/lang/createstatic
>


-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site Information Systems


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


Re: [Gambas-user] non printable char "Ⱶ" how to remove from string!!!!!

2015-12-29 Thread Stephen
On 12/29/2015 10:54 AM, Fabien Bodard wrote:
> To resume ... in the old past of ascii all standart printer or monitor
> can manage ascii and print 32 to 127 chars. So Ansi C provide a
> standart function named IsPrint that allow to say if a char was able
> to be printed.
>
> IN 2015... Ascii is known in it's 8 bit format so printable chars are
> from 32 to 255.
>
> Characters lower than 32 are for monitor, modem and printer management.
>
> Thanks to my terminal studie i'm now able to understand all of that :-).
>
> It's really interresting to study the past ...
>
   It's more interesting to have LIVED it and now be working with UTF-8.
ASCII was SOOO simple, but also S restrictive.

> 2015-12-29 16:39 GMT+01:00 Fabien Bodard:
>> But is print just take into account the old asci table
>>
>>
>> 2015-12-29 16:35 GMT+01:00 ML:
>>> All,
>>>
>>> I might be utterly wrong, but since Linux normally uses UTF-8, any
>>> high-bit-set char may be interpreted as one of the "multibyte char" flags.
>>> If isprint() takes this into account, then it's dead right that char by
>>> itself is not printable!
>>>
>>> Hope that helps and makes sense...
>>>
>>> On 2015-12-29 11:53, Ru Vuott wrote:
>>>> Tchao Fabien,
>>>> Ru ..  Characters>  to 127 are printable...
>>>> uhmmm... excuse me, but I do not understand.
>>>> If I test the "printability" :-)  of "characters>  to 127" by using C 
>>>> "isprint()" function (that checks whether the passed character is 
>>>> printable), I obtain only zero results.
>>>> Where: "isprint()" function returns a non-zero value (true) if character 
>>>> is printable, else zero (false) if character is NOT printable.
>>>>
>>>> *
>>>> #include
>>>> int main() {
>>>>int i, c;
>>>>for (i=128; i<= 255; ++i) {
>>>>c = isprint(i);
>>>>printf("%d %d\n", i, c);
>>>>}
>>>> return (0);
>>>> }
>>>> *
>>>> So, it seems resulting that "characters>  to 127" are NOT printable 
>>>> characters.
>>>> Ciao
>>> --
>>> ___
>>> Gambas-user mailing list
>>> Gambas-user@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>>
>> --
>> Fabien Bodard
>
>


-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site Information Systems


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


[Gambas-user] Tab size setting...

2016-01-10 Thread Stephen
GAMBAS 3.8.3
Fedora 23 in a VM
Mate Desktop

   I have set the tab size to 1 in Tools->Preferences->Editor and in 
Project->Properties->Options, yet pressing the TAB key still yields 2 
spaces.
I've saved the project and reloaded (equivalent to turning it off and 
turning it on) but no Joy. Am I missing something?

-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site Information Systems


--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Tab size setting...

2016-01-10 Thread Stephen
On 01/10/2016 10:00 AM, Benoît Minisini wrote:
> Le 10/01/2016 15:27, Stephen a écrit :
>> GAMBAS 3.8.3
>> Fedora 23 in a VM
>> Mate Desktop
>>
>>  I have set the tab size to 1 in Tools->Preferences->Editor and in
>> Project->Properties->Options, yet pressing the TAB key still yields 2
>> spaces.
>> I've saved the project and reloaded (equivalent to turning it off and
>> turning it on) but no Joy. Am I missing something?
>>
> That tab size is the "default" tab size. Tab size is actually a project
> property, you have to go the project property dialog.
>
> Regards,
>

Hi Benoit!

I did go to Project->Properties. There under "Options" is "Tab size". It 
is set to "1", yet pressing the Tab key still produces 2 spaces.

-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site Information Systems


--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] New console

2016-03-07 Thread Stephen
On 04/05/2014 12:53 PM, Jussi Lahtinen wrote:
> Yes, it's good now.
> Thanks!
>
> Jussi
>
>
> On Sat, Apr 5, 2014 at 3:30 AM, Benoît Minisini<
> gam...@users.sourceforge.net>  wrote:
>
>> Le 05/04/2014 01:06, Benoît Minisini a écrit :
>>> Le 05/04/2014 01:04, Jussi Lahtinen a écrit :
>>>> Is there possibility to have option for old styled IDE console?
>>>> I found it handier, because it showed not only results but exactly from
>>>> where the results came. I used it even as general calculator.
>>>>
>>>>
>>>> Jussi
>>> And if I add an echo of the entered command?
>>>
>> I added an echo mode in revision #6222, through a toggle button.
>>
>> Regards,
>>
>> --
>> Benoît Minisini
>>
>>
>> --
>> ___
>> 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
>
   I'm just starting to use V3.8.4 of GAMBAS. What was the motivation 
for making this version of the console?

-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site Information Systems


--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://makebettercode.com/inteldaal-eval
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Console in V 3.8.4

2016-03-07 Thread Stephen
Is the console SUPPOSED to have a one line input field with a massive 
results area above it? Please tell me sanity has returned and later 
versions have a console in the traditional sense.
-- 

Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site Information Systems


--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://makebettercode.com/inteldaal-eval
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Console in V 3.8.4

2016-03-07 Thread Stephen
Why not?

Because full screen editing (full window in this case) as it was 
implemented is better in every way.

While the console is not a class editor, would this data entry paradigm 
be an improvement if applied to the class editor? I'll vote "No" on that 
one.

The new console breaks consistency with the IDE's UI, it feels like an 
antique wooden-wheel on vehicle that is otherwise very advanced.

So I have to ask Benoit: what was the driving force?


On 03/07/2016 11:20 AM, Jussi Lahtinen wrote:
> Why not?
> You need to put the input on one line anyway and the result can have
> multiple lines (or you may want to compare multiple results). So I think it
> is logical in that way.
>
>
> Jussi
>
> On Mon, Mar 7, 2016 at 5:21 PM, Stephen  wrote:
>
>> Is the console SUPPOSED to have a one line input field with a massive
>> results area above it? Please tell me sanity has returned and later
>> versions have a console in the traditional sense.
>> --
>>
>> Kindest Regards
>> Stephen A. Bungay, Prop.
>> Smarts On Site Information Systems
>>
>>
>>
>> --
>> Transform Data into Opportunity.
>> Accelerate data analysis in your applications with
>> Intel Data Analytics Acceleration Library.
>> Click to learn more.
>> http://makebettercode.com/inteldaal-eval
>> ___
>> 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://makebettercode.com/inteldaal-eval
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>


-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site Information Systems


--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://makebettercode.com/inteldaal-eval
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Console in V 3.8.4

2016-03-09 Thread Stephen
Different is not the problem, going backwards by implementing a bad 
design is the problem. Easier to use, faster in use, and more intuitive 
to use, all of those are good; sadly a scrollable single line command 
entry area with a kludge to echo the commands to the output area, is 
none of those things.  When compared to using print statements in the 
code it is a (marginal) improvement... an evolutionary step, the next of 
which would be to become what it replaced.

Anyway, my moaning about it isn't getting the code debugged, which was 
that caused a "WTF" moment and these messages, nor is it making life 
better by replacing what we lost. Is it (the console) written entirely 
in GAMBAS? If I can get some time I might do something about it.

On 03/07/2016 05:55 PM, Jussi Lahtinen wrote:
> I personally like the old way, but there is nothing I cannot do with this
> new way. And it doesn't have any effect on my working speed.
>
> Do you mean you need the console to its own window?
> Go to Debug menu and select "Use terminal emulator".  Maybe that will do it?
>
> So far you haven't said anything of what is actually the problem with the
> new console. Yes, it's different, but that might not motive anyone to do
> anything about it.
>
>
> Jussi
>
>
> On Mon, Mar 7, 2016 at 10:21 PM, Stephen  wrote:
>
>> Why not?
>>
>> Because full screen editing (full window in this case) as it was
>> implemented is better in every way.
>>
>> While the console is not a class editor, would this data entry paradigm
>> be an improvement if applied to the class editor? I'll vote "No" on that
>> one.
>>
>> The new console breaks consistency with the IDE's UI, it feels like an
>> antique wooden-wheel on vehicle that is otherwise very advanced.
>>
>> So I have to ask Benoit: what was the driving force?
>>
>>
>> On 03/07/2016 11:20 AM, Jussi Lahtinen wrote:
>>> Why not?
>>> You need to put the input on one line anyway and the result can have
>>> multiple lines (or you may want to compare multiple results). So I think
>> it
>>> is logical in that way.
>>>
>>>
>>> Jussi
>>>
>>> On Mon, Mar 7, 2016 at 5:21 PM, Stephen
>> wrote:
>>>> Is the console SUPPOSED to have a one line input field with a massive
>>>> results area above it? Please tell me sanity has returned and later
>>>> versions have a console in the traditional sense.
>>>> --
>>>>
>>>> Kindest Regards
>>>> Stephen A. Bungay, Prop.
>>>> Smarts On Site Information Systems
>>>>
>>>>
>>>>
>>>>
>> --
>>>> Transform Data into Opportunity.
>>>> Accelerate data analysis in your applications with
>>>> Intel Data Analytics Acceleration Library.
>>>> Click to learn more.
>>>> http://makebettercode.com/inteldaal-eval
>>>> ___
>>>> 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://makebettercode.com/inteldaal-eval
>>> ___
>>> Gambas-user mailing list
>>> Gambas-user@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>>
>>
>> --
>> Kindest Regards
>> Stephen A. Bungay, Prop.
>> Smarts On Site Information Systems
>>
>>
>>
>> --
>> Transform Data into Opportunity.
>> Accelerate data analysis in your applications with
>> Intel Data Analytics Acceleration Library.
>> Click to learn more.
>> http://makebettercode.com/inteldaal-eval
>> ___
>> 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://makebettercode.com/inteldaal-eval
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>


-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site Information Systems


--
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=278785111&iu=/4140
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Console in V 3.8.4

2016-03-09 Thread Stephen
On 03/09/2016 11:37 AM, Benoît Minisini wrote:
> Le 09/03/2016 14:21, Stephen a écrit :
>> Different is not the problem, going backwards by implementing a bad
>> design is the problem. Easier to use, faster in use, and more intuitive
>> to use, all of those are good; sadly a scrollable single line command
>> entry area with a kludge to echo the commands to the output area, is
>> none of those things.  When compared to using print statements in the
>> code it is a (marginal) improvement... an evolutionary step, the next of
>> which would be to become what it replaced.
>>
>> Anyway, my moaning about it isn't getting the code debugged, which was
>> that caused a "WTF" moment and these messages, nor is it making life
>> better by replacing what we lost. Is it (the console) written entirely
>> in GAMBAS? If I can get some time I might do something about it.
>>
> The problem was that before, some users thought that the IDE console was
> a true terminal, whereas it was just a read-only text-editor with
> tweaks. Which lead to confusion.
>
> I agree that the new interface is not very nice, but there is no
> confusion anymore that way.
>
> Moreover, it has a command history, which was impossible with the
> previous interface.
>
> And as said Fabien, as soon as he will be able to produce a true
> terminal emulator, we will be able to go back to a terminal-like interface.
>
> Regards,
>
Some users being confused could have been fixed with education. The 
original didn't have a command history like bash, but it did let you 
scroll up, place your cursor st the end of a command and press [Enter] 
to execute it again, or edit the line and execute it, or copy the line, 
past it, edit it and execute it.
-- 

Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site Information Systems


--
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=278785111&iu=/4140
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Console in V 3.8.4

2016-03-09 Thread Stephen
On 03/09/2016 10:31 AM, Fabien Bodard wrote:
> The console is just a TextArea that show the output of your program on
> the standard out.
>
> Well the good thing will be what i've begin but by lack of time and
> maybe because i want to touch the clouds
> i've not finished.
>
> I wanted to draw a true virtual terminal (VT100 compatible) in gambas.
> So what is possible to me is to just make on a first step a
> minimalistic terminal that talk with a stream. The stream will be the
> standart I/O during the execution and the Gambas Interpreter in debug
> time with a true prompt.
>
> So i'll rework on gb.terminal to just manage the basic commands and
> excape on a first time all the VT spécific one. (Accepted : letters,
> linefeed, return, tab, bkspace).
>
> Just give me one month. But help and suggestion will be welcome.
>
> --
> 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=278785111&iu=/4140
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
Hi ya Fabian!

   Sounds interesting, I have a couple of nice DEC mico-VAX's here I 
could test it out on LOL :)

-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site Information Systems


--
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=278785111&iu=/4140
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] 3.5.2 and CentOS 6.5 64 bit.

2014-02-05 Thread Stephen
  Anyone got the combination in the subject line up and running?

-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site


--
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Need a little help getting things going

2014-02-07 Thread Stephen
   Getting a sore forehead from banging against this wall
Trying to get gambas 2.2.24.0 up and running on a rather hefty CentOS 
box. Here's the specs...

CentOS 6.5 (final)
Kernel: 2.6.32-431.3.10el6.x86_64
GNOME 2.28.2

RAM: 32GB
CPU: AMD FX-8320

reconf-all appeared to complete OK.


./configure produces this as the final result
||
|| THESE COMPONENTS ARE DISABLED:
|| - gb.jit
|| - gb.media
|| - gb.openal
||


   OK, nothing to see there, I'm not interested in .media, openal, or 
JIT (yet).

Running make produces this tasty morsel...

/usr/bin/ld: .libs/gb_qt4_la-main_moc.o: relocation R_X86_64_32 against 
`.rodata' can not be used when making a shared object; recompile with -fPIC
.libs/gb_qt4_la-main_moc.o: could not read symbols: Bad value

Now qt-devel 4.6.2-26.el6_4 x86_64 is installed, can someone help me 
understand what the error message is telling me?


Steve.

--
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] help with gb.qt4.

2014-02-07 Thread Stephen
Gambas 3.5.2 is close to being successfully built but I have run into a 
snag with the gb.qt4 component.

./reconf-all works OK.

./configure results in the following

||
|| THESE COMPONENTS ARE DISABLED:
|| - gb.jit
|| - gb.media
|| - gb.openal
||

no errors, but when then make fails with the following;

Making all in gb.qt4
make[2]: Entering directory `/home/User/Downloads/gambas3-3.5.2/gb.qt4'
make  all-recursive
make[3]: Entering directory `/home/User/Downloads/gambas3-3.5.2/gb.qt4'
Making all in src
make[4]: Entering directory `/home/User/Downloads/gambas3-3.5.2/gb.qt4/src'
Making all in .
make[5]: Entering directory `/home/User/Downloads/gambas3-3.5.2/gb.qt4/src'
   CXXLD  gb.qt4.la
/usr/bin/ld: .libs/gb_qt4_la-main_moc.o: relocation R_X86_64_32 against 
`.rodata' can not be used when making a shared object; recompile with -fPIC
.libs/gb_qt4_la-main_moc.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[5]: *** [gb.qt4.la] Error 1
make[5]: Leaving directory `/home/User/Downloads/gambas3-3.5.2/gb.qt4/src'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/User/Downloads/gambas3-3.5.2/gb.qt4/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/User/Downloads/gambas3-3.5.2/gb.qt4'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/User/Downloads/gambas3-3.5.2/gb.qt4'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/User/Downloads/gambas3-3.5.2'
make: *** [all] Error 2

   OK. I'm not a C or C++ programmer, the suggestion seems to be to 
recompile gb_qt4_la-main_moc.o with -fPIC, am I on the right track with 
this? If so how do I accomplish this task?

Steve.


--
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Class editor toolbar keyboard shortcuts?

2014-02-14 Thread Stephen
   Being able to comment and uncomment large blocks of selected code is 
a wonderful thing, being able to do it without having to mouse up to the 
editor tool bar would be even more so. Is there keyboard shortcut to 
perform the aforementioned function?

-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site


--
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Frames don't have visually persistent borders at design time.

2014-02-15 Thread Stephen
   Frame borders do not visually persist at design time, showing 
themselves only when the mouse enters the frame area. Contrast this with 
the behaviour in GAMBAS 2 which visually persists the frame, showing 
exactly how the container will look at run-time. Is there something 
preventing the frame from being shown at design time?

Gambas 3.5.2
GNOME 2.X

-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site


--
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Annoying automatic comment creation...

2014-03-31 Thread Stephen
When creating a new comment line, after pressing [ENTER] the editor 
assumes that the next line is also a comment and  helpfully 
 puts in the single quote to make it so. Now I can see how 
some might like this, and thats fine, but could we have the option to 
turn this feature off? I've been caught too many times writing code into 
auto-generated comment lines and it is getting quite annoying.

-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site


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


Re: [Gambas-user] R: Form.Show by name as string of form

2014-04-28 Thread Stephen
  This will work, it might not be exactly what you had in mind but then this 
isn't BASIC of old :)

  Public Sub Button1_Click()
   
' the 'h' prefix is just my personal style... and is not
' requirement... use whatever you like to differentiate
' the variable from the actual form.

Dim hForm_name_2 As New Form_Name_2

hForm_name_2.Show

  End

Steve.

On 04/28/2014 04:17 AM, Ru Vuott wrote:
> ...I would use a Form[ ] variable array, not string.
>
> bye
> vuott
>
>
> 
> Lun 28/4/14, abbat81  ha scritto:
>
>   Oggetto: [Gambas-user] Form.Show by name as string of form
>   A: gambas-user@lists.sourceforge.net
>   Data: Lunedì 28 Aprile 2014, 09:54
>
>   Hi,
>
>   I have a four forms in my project:
>   Form_name_1
>   Form_name_2
>   Form_name_3
>   Form_name_4
>   Form_name_5
>
>
>   How can I show a form by name of a form by string.
>
>   Public Sub Button1_Click()
>
> Dim Form_name As String = "Form_name_2"
>
> Form_name.Show
>
>   End
>
>
>
>   --
>   View this message in context: 
> http://gambas.8142.n7.nabble.com/Form-Show-by-name-as-string-of-form-tp46270.html
>   Sent from the gambas-user mailing list archive at
>   Nabble.com.
>
>   
> --
>   "Accelerate Dev Cycles with Automated Cross-Browser Testing
>   - For FREE
>   Instantly run your Selenium tests across 300+ browser/OS
>   combos.  Get
>   unparalleled scalability from the best Selenium testing
>   platform available.
>   Simple to use. Nothing to install. Get started now for
>   free."
>   http://p.sf.net/sfu/SauceLabs
>   ___
>   Gambas-user mailing list
>   Gambas-user@lists.sourceforge.net
>   https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
> --
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos.  Get
> unparalleled scalability from the best Selenium testing platform available.
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>


-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site


--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] R: Form.Show by name as string of form

2014-04-28 Thread Stephen
As many instances of Form_Name_2 can be created as you want/need. For 
example;
If we create a single form application (I'll call it FormMain) with only 
one button on the form (Button1) and the click event of button one looks 
like this;

PUBLIC SUB Button1_Click()
DIM hFormMain AS NEW FormMain
hFormMain.Show
END SUB


Each time you click on Button1 a new FormMain will appear on your 
screen, click on Button1 of the new form and another new form will appear.
Now if you have a hidden window and want to bring it into view then 
that's a different problem. I've done this kind of thing and had my share of
trouble with it, give me a bit more info regarding your situation and 
perhaps I can help you out like others helped me.



On 04/28/2014 05:43 AM, abbat81 wrote:
> Hi Stephen
>
> My forms already exists, so I can't use "As New Form_Name_2"
>
> I need to use name of forms
>
>
>
> --
> View this message in context: 
> http://gambas.8142.n7.nabble.com/Form-Show-by-name-as-string-of-form-tp46270p46275.html
> Sent from the gambas-user mailing list archive at Nabble.com.
>
> --
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos.  Get
> unparalleled scalability from the best Selenium testing platform available.
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>


-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site


--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] R: Form.Show by name as string of form

2014-04-28 Thread Stephen
Hi;

   Were you asking me or Ru Vuott?

On 04/28/2014 08:27 AM, abbat81 wrote:
> Thank you, and
> how can I show some of forms.
> I have a name of form "form2".
> So, how can I call that form2 in your example?
> Thanks
>
>
>
> --
> View this message in context: 
> http://gambas.8142.n7.nabble.com/Form-Show-by-name-as-string-of-form-tp46270p46278.html
> Sent from the gambas-user mailing list archive at Nabble.com.
>
> --
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos.  Get
> unparalleled scalability from the best Selenium testing platform available.
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>


-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site


--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] New Syntax, SUPER && !comprehension(mine) Re.: SUPER example at gambasdoc

2014-05-08 Thread Stephen
   Looking at the thread "New syntax for using variables arguments in a 
function call" I realized that I needed to really brush up on my 
somewhat marginal understanding of the evolving (a good thing) GAMBAS 
and OOP. Not fully understanding "SUPER" (I've never used it but can see 
a use for it) I trotted off to Google and the GAMBAS documentation, 
where much reading was done, and (as usual) more questions raised.
   Studying the "SUPER" example at http://gambasdoc.org/hemp/lang/super, 
I wondered at the purpose of a collection that seems not to be used but 
once and some syntax in it's use in the example, which didn't make any 
sense to my old brain. Below is a snippet from the example (where $cPos 
is a collection, $aKey an Array of String Objects (I think) and Key a 
string object;

$cPos.Clear
$cPos[Key] = $aKey.Count
$aKey.Add(Key)

   OK, the first line clears the collection, got it, and the last line 
adds the contents of "String" to $aKey, got that but what does the 
second line do? It looks like it is adding the count of elements in 
$aKey to the collection $cPos... but in OOP I would use a method call 
i.e. $cPos.Add(Key,Key). Oh, and in trying to implement the example 
GAMBAS (3.5.3) complained that "ListBox.Add is incorrectly overridden".

-- 
Kindest Regards
Steve :)


--
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
• 3 signs your SCM is hindering your productivity
• Requirements for releasing software faster
• Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] My confusion Re: New Syntax, SUPER && !comprehension(mine) Re.: SUPER example at gambasdoc

2014-05-12 Thread Stephen
Hi Tobias, thanks for the reply, things got busy and I'm just getting 
back to the keyboard.

It was how things were being done in the (broken) GAMBASDOC example 
confused me.
In one area the programmer is using the Add method of a string object 
array, but this line

$cPos[Key] = $aKey.Count

caused me to pause.

My thought at the time of reading it went something like this:

"What being done here? There's been no use of the Add method! How can 
you reference
something that doesn't yet exist and why is no error being thrown for 
doing so"?

Now I think that the Add method of the collection is being implicitly 
called using older
non OOP array assignment syntax.

IMHO enforcing the explicit use of the object's Add method

$cPos.Add($aKey.Count, Key)

might take more keystrokes, but it definitely better communicates what 
is being manipulated (an object vs an array) and what is being done 
(Adding).


On 05/08/2014 09:28 AM, Tobias Boege wrote:
> On Thu, 08 May 2014, Stephen wrote:
>> Looking at the thread "New syntax for using variables arguments in a
>> function call" I realized that I needed to really brush up on my
>> somewhat marginal understanding of the evolving (a good thing) GAMBAS
>> and OOP. Not fully understanding "SUPER" (I've never used it but can see
>> a use for it) I trotted off to Google and the GAMBAS documentation,
>> where much reading was done, and (as usual) more questions raised.
> If you write a class and inherit from another class, you can override
> methods and properties in your inheriting class. However, sometimes the
> inherited class does a pretty good job already and you don't want to
> reinvent the wheel for doing something. That's when Super comes into play
> because Super knows where the method and property implementations of the
> inherited class (the super class) are. So you can still call methods of
> the super class in your subclass that you have actually just overridden.
>
> In the example below, you want to skim data in ListBox' Add() method but
> you don't want to implement the actual addition of a new element so you
> resort to the original ListBox' Add() implementation - which is available
> as Super.Add() and knows how to do the thing.
>
>> Studying the "SUPER" example at http://gambasdoc.org/hemp/lang/super,
>> I wondered at the purpose of a collection that seems not to be used but
>> once and some syntax in it's use in the example, which didn't make any
>> sense to my old brain. Below is a snippet from the example (where $cPos
>> is a collection, $aKey an Array of String Objects (I think) and Key a
>> string object;
>>
>> $cPos.Clear
>> $cPos[Key] = $aKey.Count
>> $aKey.Add(Key)
>>
>> OK, the first line clears the collection, got it, and the last line
>> adds the contents of "String" to $aKey, got that but what does the
>> second line do? It looks like it is adding the count of elements in
>> $aKey to the collection $cPos... but in OOP I would use a method call
>> i.e. $cPos.Add(Key,Key). Oh, and in trying to implement the example
>> GAMBAS (3.5.3) complained that "ListBox.Add is incorrectly overridden".
>>
> $cPos[Key] = $aKey.Count followed by $aKey.Add(Key) will store the *index*
> of Key in the $aKey array in the $cPos collection, indexed by the *value* of
> the key. (Think about it.)
>
> That means if the user gives you a Key, you can look up the index of that
> key in the $aKey array using $cPos[Key], i.e. the statement
>
>$aKey[$cPos[Key]]
>
> will always return Key (or raise an error, but see below for that). This
> also explains why the Collection is named $cPos.
>
> Not sure what that implies or what we can do with it and how $cPos.Clear()
> fits into the picture because it already deletes that additional information
> we collected...
>
> Either I don't get it or the example is just broken (I'd prefer the second
> option, of course :-)).
>
> Regards,
> Tobi
>


-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site


--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] My confusion Re: New Syntax, SUPER && !comprehension(mine) Re.: SUPER example at gambasdoc

2014-05-12 Thread Stephen
  Hi Fabien!


> Le 12 mai 2014 12:12, "Stephen"  a écrit :
>> Hi Tobias, thanks for the reply, things got busy and I'm just getting
>> back to the keyboard.
>>
>> It was how things were being done in the (broken) GAMBASDOC example
>> confused me.
>> In one area the programmer is using the Add method of a string object
>> array, but this line
>>
>> $cPos[Key] = $aKey.Count
>>
>> caused me to pause.
>>
>> My thought at the time of reading it went something like this:
>>
>> "What being done here? There's been no use of the Add method! How can
>> you reference
>> something that doesn't yet exist and why is no error being thrown for
>> doing so"?
> A collection automatically add an non existant entry ... Or just assign the
> new value... If the value is null then the entry is deleted.
>
Yes, it is a convenient way of adding, editing, or deleting items from a 
collection,
but I personally will never use it. Why? Because IMHO it introduces
inconsistencies in the language. The short form of adding, updating, or
deleting items to/from a collection exactly mimics the syntax of assigning
a value to an array element, but they can not actually be used the same way;

' This throws an error
DIM X AS NEW Integer[]
X[0] = 1


' This doesn't
DIM X AS NEW Collection
X[0] = 1

Even GambasDoc lead me astray as it says a collection is a "class" that 
"acts like a read 
<http://gambasdoc.org/help/comp/gb/collection/_get?view> / write 
<http://gambasdoc.org/help/comp/gb/collection/_put?view> array.", but it
doesn't does it? The second example above doesn't work with an array 
unless the element has been Added
first, which IMHO is as it should be.

>> Now I think that the Add method of the collection is being implicitly
>> called using older
>> non OOP array assignment syntax.
>>
>> IMHO enforcing the explicit use of the object's Add method
>>
>> $cPos.Add($aKey.Count, Key)
>>
>> might take more keystrokes, but it definitely better communicates what
>> is being manipulated (an object vs an array) and what is being done
>> (Adding).
>>
>>
>> On 05/08/2014 09:28 AM, Tobias Boege wrote:
>>> On Thu, 08 May 2014, Stephen wrote:
>>>>  Looking at the thread "New syntax for using variables arguments in
> a
>>>> function call" I realized that I needed to really brush up on my
>>>> somewhat marginal understanding of the evolving (a good thing) GAMBAS
>>>> and OOP. Not fully understanding "SUPER" (I've never used it but can
> see
>>>> a use for it) I trotted off to Google and the GAMBAS documentation,
>>>> where much reading was done, and (as usual) more questions raised.
>>> If you write a class and inherit from another class, you can override
>>> methods and properties in your inheriting class. However, sometimes the
>>> inherited class does a pretty good job already and you don't want to
>>> reinvent the wheel for doing something. That's when Super comes into
> play
>>> because Super knows where the method and property implementations of the
>>> inherited class (the super class) are. So you can still call methods of
>>> the super class in your subclass that you have actually just overridden.
>>>
>>> In the example below, you want to skim data in ListBox' Add() method but
>>> you don't want to implement the actual addition of a new element so you
>>> resort to the original ListBox' Add() implementation - which is
> available
>>> as Super.Add() and knows how to do the thing.
>>>
>>>>  Studying the "SUPER" example at
> http://gambasdoc.org/hemp/lang/super,
>>>> I wondered at the purpose of a collection that seems not to be used but
>>>> once and some syntax in it's use in the example, which didn't make any
>>>> sense to my old brain. Below is a snippet from the example (where $cPos
>>>> is a collection, $aKey an Array of String Objects (I think) and Key a
>>>> string object;
>>>>
>>>> $cPos.Clear
>>>> $cPos[Key] = $aKey.Count
>>>> $aKey.Add(Key)
>>>>
>>>>  OK, the first line clears the collection, got it, and the last line
>>>> adds the contents of "String" to $aKey, got that but what does the
>>>> second line do? It looks like it is adding the count of elements in
>>>> $aKey to the collection $cPos... but in OOP I would use a method call
>>>> i.e. $cP

Re: [Gambas-user] My confusion Re: New Syntax, SUPER && !comprehension(mine) Re.: SUPER example at gambasdoc

2014-05-12 Thread Stephen
Well, now I am aware of the inconsistency so when I see it I'll know 
what is being done and double check the datatype to see what is being 
manipulated. I still think it is bad form; but that's just me.

On 05/12/2014 01:18 PM, Fabien Bodard wrote:
> yes and that's why you need to use good naming for your variables !!
>
>
> Dim cX as New Collection
>
> Dim aX as New Integer[]
>
>
> You now all classes can use that syntax too :
>
> MyClass[0]=toto
>
> If the special procedure _put(index as integer) is declared. The []
> are not specific to the arrays or collections.
>
>
>
>
>
> 2014-05-12 18:31 GMT+02:00 Stephen:
>>Hi Fabien!
>>
>>
>>> Le 12 mai 2014 12:12, "Stephen"   a écrit :
>>>> Hi Tobias, thanks for the reply, things got busy and I'm just getting
>>>> back to the keyboard.
>>>>
>>>> It was how things were being done in the (broken) GAMBASDOC example
>>>> confused me.
>>>> In one area the programmer is using the Add method of a string object
>>>> array, but this line
>>>>
>>>> $cPos[Key] = $aKey.Count
>>>>
>>>> caused me to pause.
>>>>
>>>> My thought at the time of reading it went something like this:
>>>>
>>>> "What being done here? There's been no use of the Add method! How can
>>>> you reference
>>>> something that doesn't yet exist and why is no error being thrown for
>>>> doing so"?
>>> A collection automatically add an non existant entry ... Or just assign the
>>> new value... If the value is null then the entry is deleted.
>>>
>> Yes, it is a convenient way of adding, editing, or deleting items from a
>> collection,
>> but I personally will never use it. Why? Because IMHO it introduces
>> inconsistencies in the language. The short form of adding, updating, or
>> deleting items to/from a collection exactly mimics the syntax of assigning
>> a value to an array element, but they can not actually be used the same way;
>>
>> ' This throws an error
>> DIM X AS NEW Integer[]
>> X[0] = 1
>>
>>
>> ' This doesn't
>> DIM X AS NEW Collection
>> X[0] = 1
>>
>> Even GambasDoc lead me astray as it says a collection is a "class" that
>> "acts like a read
>> <http://gambasdoc.org/help/comp/gb/collection/_get?view>  / write
>> <http://gambasdoc.org/help/comp/gb/collection/_put?view>  array.", but it
>> doesn't does it? The second example above doesn't work with an array
>> unless the element has been Added
>> first, which IMHO is as it should be.
>>
>>>> Now I think that the Add method of the collection is being implicitly
>>>> called using older
>>>> non OOP array assignment syntax.
>>>>
>>>> IMHO enforcing the explicit use of the object's Add method
>>>>
>>>> $cPos.Add($aKey.Count, Key)
>>>>
>>>> might take more keystrokes, but it definitely better communicates what
>>>> is being manipulated (an object vs an array) and what is being done
>>>> (Adding).
>>>>
>>>>
>>>> On 05/08/2014 09:28 AM, Tobias Boege wrote:
>>>>> On Thu, 08 May 2014, Stephen wrote:
>>>>>>   Looking at the thread "New syntax for using variables arguments in
>>> a
>>>>>> function call" I realized that I needed to really brush up on my
>>>>>> somewhat marginal understanding of the evolving (a good thing) GAMBAS
>>>>>> and OOP. Not fully understanding "SUPER" (I've never used it but can
>>> see
>>>>>> a use for it) I trotted off to Google and the GAMBAS documentation,
>>>>>> where much reading was done, and (as usual) more questions raised.
>>>>> If you write a class and inherit from another class, you can override
>>>>> methods and properties in your inheriting class. However, sometimes the
>>>>> inherited class does a pretty good job already and you don't want to
>>>>> reinvent the wheel for doing something. That's when Super comes into
>>> play
>>>>> because Super knows where the method and property implementations of the
>>>>> inherited class (the super class) are. So you can still call methods of
>>>>> the super class in your subclass that you have actually just overridden.
>>>>>
&g

Re: [Gambas-user] chessboard

2014-06-13 Thread Stephen
   All I see is a message and a smiley face waving a sign. Still not 
working?

On 06/12/2014 03:52 AM, Fabien Bodard wrote:
> This is corrected ... Thanks to adrien... I'm without internet at home
> since three week
> Le 11 juin 2014 23:46, "richard terry"  a écrit :
>
>> On 11/06/14 23:17, Jack wrote:
>>> hi,
>>>
>>> a chessboard which is scrolling and circles emerging from a spinning
>>> cube. And any music and scrolltext. All in Gambas? Incredible and yet it
>>> is here http://www.gambasforge.org/code-113-damier.html
>>>
>>> Jack
>>>
>>>
>>>
>> --
>>> HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
>>> Find What Matters Most in Your Big Data with HPCC Systems
>>> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
>>> Leverages Graph Analysis for Fast Processing&  Easy Data Exploration
>>> http://p.sf.net/sfu/hpccsystems
>>> ___
>>> Gambas-user mailing list
>>> Gambas-user@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>>
>>Une erreur est survenue
>>
>> Un problème a été recontré lors de la génération de cette page.
>> Veuillez contacter un administrateur en lui communiquant les
>> informations de débogage suivantes.
>>
>>
>>  Informations de débogage
>>
>> *Cannot open database: Can't conneAb*
>> /À Main.DBSubmitAnalytics.416/
>>
>>* Main.DBSubmitAnalytics.416
>>* Main.SubmitAnalytics.404
>>* Main.Main.30
>>
>>
>> --
>> HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
>> Find What Matters Most in Your Big Data with HPCC Systems
>> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
>> Leverages Graph Analysis for Fast Processing&  Easy Data Exploration
>> http://p.sf.net/sfu/hpccsystems
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
> --
> HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
> Find What Matters Most in Your Big Data with HPCC Systems
> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
> Leverages Graph Analysis for Fast Processing&  Easy Data Exploration
> http://p.sf.net/sfu/hpccsystems
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user


-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site


--
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] chessboard

2014-06-14 Thread Stephen
   Egads I was being thick! For some reason I was expecting it to appear 
on the web-page... "it is here" is slightly different than "it is 
available here" but no excuse really... I should have clued in when I 
saw "Gambas Forge". Is there an English version of the site?

On 06/13/2014 11:07 AM, Fabien Bodard wrote:
> Le 13 juin 2014 15:05, "Stephen"  a écrit :
>> All I see is a message and a smiley face waving a sign. Still not
>> working?
> It work for me here on chrome and firefox.
>
> http://www.gambasforge.org/code-113-damier.html
>
>> On 06/12/2014 03:52 AM, Fabien Bodard wrote:
>>> This is corrected ... Thanks to adrien... I'm without internet at home
>>> since three week
>>> Le 11 juin 2014 23:46, "richard terry"   a
> écrit :
>>>> On 11/06/14 23:17, Jack wrote:
>>>>> hi,
>>>>>
>>>>> a chessboard which is scrolling and circles emerging from a spinning
>>>>> cube. And any music and scrolltext. All in Gambas? Incredible and yet
> it
>>>>> is here http://www.gambasforge.org/code-113-damier.html
>>>>>
>>>>> Jack
>>>>>
>>>>>
>>>>>
> --
>>>>> HPCC Systems Open Source Big Data Platform from LexisNexis Risk
> Solutions
>>>>> Find What Matters Most in Your Big Data with HPCC Systems
>>>>> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
>>>>> Leverages Graph Analysis for Fast Processing&   Easy Data Exploration
>>>>> http://p.sf.net/sfu/hpccsystems
>>>>> ___
>>>>> Gambas-user mailing list
>>>>> Gambas-user@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>>>>
>>>> Une erreur est survenue
>>>>
>>>> Un problème a été recontré lors de la génération de cette page.
>>>> Veuillez contacter un administrateur en lui communiquant les
>>>> informations de débogage suivantes.
>>>>
>>>>
>>>>   Informations de débogage
>>>>
>>>> *Cannot open database: Can't conneAb*
>>>> /À Main.DBSubmitAnalytics.416/
>>>>
>>>> * Main.DBSubmitAnalytics.416
>>>> * Main.SubmitAnalytics.404
>>>> * Main.Main.30
>>>>
>>>>
>>>>
> --
>>>> HPCC Systems Open Source Big Data Platform from LexisNexis Risk
> Solutions
>>>> Find What Matters Most in Your Big Data with HPCC Systems
>>>> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
>>>> Leverages Graph Analysis for Fast Processing&   Easy Data Exploration
>>>> http://p.sf.net/sfu/hpccsystems
>>>> ___
>>>> Gambas-user mailing list
>>>> Gambas-user@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>>>
> --
>>> HPCC Systems Open Source Big Data Platform from LexisNexis Risk
> Solutions
>>> Find What Matters Most in Your Big Data with HPCC Systems
>>> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
>>> Leverages Graph Analysis for Fast Processing&   Easy Data Exploration
>>> http://p.sf.net/sfu/hpccsystems
>>> ___
>>> Gambas-user mailing list
>>> Gambas-user@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>> --
>> Kindest Regards
>> Stephen A. Bungay, Prop.
>> Smarts On Site
>>
>>
>>
> --
>> HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
>> Find What Matters Most in Your Big Data with HPCC Systems
>> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
>> Leverages Graph Analysis for Fast Processing&  Easy Data Exploration
>> http://p.sf.net/sfu/hpccsystems
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
> ---

Re: [Gambas-user] Fwd: Feature request: IDE

2014-06-14 Thread Stephen
   I use [Ctrl]+[x] & [Ctrl]+[v] all the time too, Just highlight the 
line... [home] and then [Shift]+[End] followed by [Ctrl]+[x] or 
[Ctrl]+[v], more keystrokes, but less chance of accidentsmaking a mistake.

On 06/13/2014 04:39 PM, Jussi Lahtinen wrote:
> Maybe it could be optional feature? Just set is "off" by default.
>
>
> Jussi
>
>
> On Fri, Jun 13, 2014 at 9:28 PM, Tom  wrote:
>
>> On 6/13/2014 11:35 AM, Patrik Karlsson wrote:
>>>5. CTRL X cuts current row if nothing is selected 6. CTRL C copies
>>>>> current row if nothing is selected
>>>>>
>>> I find that confusing, so no.
>>>
>> I would like that.  CTRL X and CTRL C do that on other IDE's I have used.
>>   I
>> used CTRL X all of the time...
>>
>>
>> --
>> HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
>> Find What Matters Most in Your Big Data with HPCC Systems
>> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
>> Leverages Graph Analysis for Fast Processing&  Easy Data Exploration
>> http://p.sf.net/sfu/hpccsystems
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
> --
> HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
> Find What Matters Most in Your Big Data with HPCC Systems
> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
> Leverages Graph Analysis for Fast Processing&  Easy Data Exploration
> http://p.sf.net/sfu/hpccsystems
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>


-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site


--
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Fwd: Feature request: IDE

2014-06-15 Thread Stephen
  The point is that only selected items get operated on, I suppose it's
a preferences thing, as long as it can be configured (and the configuration
option is not buried in some obscure location).

On 06/14/2014 08:02 PM, Tom wrote:
> It was never a problem for me.  If I accidently did CTRL-X, you just do CTRL-V
> and the line is restored.  It just does tis when nothing is selected.  If
> something is selected, it works normal, just like you described.
>
> On 6/14/2014 5:12 PM, Stephen wrote:
>>  I use [Ctrl]+[x]&  [Ctrl]+[v] all the time too, Just highlight the
>> line... [home] and then [Shift]+[End] followed by [Ctrl]+[x] or
>> [Ctrl]+[v], more keystrokes, but less chance of accidentsmaking a mistake.
>>
>> On 06/13/2014 04:39 PM, Jussi Lahtinen wrote:
>>> Maybe it could be optional feature? Just set is "off" by default.
>>>
>>>
>>> Jussi
>>>
>>>
>>> On Fri, Jun 13, 2014 at 9:28 PM, Tom   wrote:
>>>
>>>> On 6/13/2014 11:35 AM, Patrik Karlsson wrote:
>>>>>  5. CTRL X cuts current row if nothing is selected 6. CTRL C copies
>>>>>>> current row if nothing is selected
>>>>>>>
>>>>> I find that confusing, so no.
> Not sure why, it works the same as always if you don't use it.
>>>> I would like that.  CTRL X and CTRL C do that on other IDE's I have used.
>>>> I used CTRL X all of the time...
>>>>
>>>>
>
> --
> HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
> Find What Matters Most in Your Big Data with HPCC Systems
> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
> Leverages Graph Analysis for Fast Processing&  Easy Data Exploration
> http://p.sf.net/sfu/hpccsystems
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>


-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site


--
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] chessboard

2014-06-15 Thread Stephen
On 06/15/2014 07:07 AM, Fabien Bodard wrote:
> Le 14 juin 2014 13:49, "Stephen"  a écrit :
>> Egads I was being thick! For some reason I was expecting it to appear
>> on the web-page... "it is here" is slightly different than "it is
>> available here" but no excuse really... I should have clued in when I
>> saw "Gambas Forge". Is there an English version of the site?
> It's on the old Todo list
>
Oh, THAT list... I have one of those too :/
>> On 06/13/2014 11:07 AM, Fabien Bodard wrote:
>>> Le 13 juin 2014 15:05, "Stephen"   a écrit :
>>>>  All I see is a message and a smiley face waving a sign. Still not
>>>> working?
>>> It work for me here on chrome and firefox.
>>>
>>> http://www.gambasforge.org/code-113-damier.html
>>>
>>>> On 06/12/2014 03:52 AM, Fabien Bodard wrote:
>>>>> This is corrected ... Thanks to adrien... I'm without internet at home
>>>>> since three week
>>>>> Le 11 juin 2014 23:46, "richard terry"a
>>> écrit :
>>>>>> On 11/06/14 23:17, Jack wrote:
>>>>>>> hi,
>>>>>>>
>>>>>>> a chessboard which is scrolling and circles emerging from a spinning
>>>>>>> cube. And any music and scrolltext. All in Gambas? Incredible and
> yet
>>> it
>>>>>>> is here http://www.gambasforge.org/code-113-damier.html
>>>>>>>
>>>>>>> Jack
>>>>>>>
>>>>>>>
>>>>>>>
> --
>>>>>>> HPCC Systems Open Source Big Data Platform from LexisNexis Risk
>>> Solutions
>>>>>>> Find What Matters Most in Your Big Data with HPCC Systems
>>>>>>> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
>>>>>>> Leverages Graph Analysis for Fast Processing&Easy Data
> Exploration
>>>>>>> http://p.sf.net/sfu/hpccsystems
>>>>>>> ___
>>>>>>> Gambas-user mailing list
>>>>>>> Gambas-user@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>>>>>>
>>>>>>  Une erreur est survenue
>>>>>>
>>>>>> Un problème a été recontré lors de la génération de cette page.
>>>>>> Veuillez contacter un administrateur en lui communiquant les
>>>>>> informations de débogage suivantes.
>>>>>>
>>>>>>
>>>>>>Informations de débogage
>>>>>>
>>>>>> *Cannot open database: Can't conneAb*
>>>>>> /À Main.DBSubmitAnalytics.416/
>>>>>>
>>>>>>  * Main.DBSubmitAnalytics.416
>>>>>>  * Main.SubmitAnalytics.404
>>>>>>  * Main.Main.30
>>>>>>
>>>>>>
>>>>>>
> --
>>>>>> HPCC Systems Open Source Big Data Platform from LexisNexis Risk
>>> Solutions
>>>>>> Find What Matters Most in Your Big Data with HPCC Systems
>>>>>> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
>>>>>> Leverages Graph Analysis for Fast Processing&Easy Data Exploration
>>>>>> http://p.sf.net/sfu/hpccsystems
>>>>>> ___
>>>>>> Gambas-user mailing list
>>>>>> Gambas-user@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>>>>>
> --
>>>>> HPCC Systems Open Source Big Data Platform from LexisNexis Risk
>>> Solutions
>>>>> Find What Matters Most in Your Big Data with HPCC Systems
>>>>> Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
>>>>> Leverages Graph Analysis for Fast Processing&Easy Data Exploration
>>>>> http://p.sf.net/sfu/hpccsystems
>>>>> ___
>>>>> Gambas-user mailing list
>>>>> Gambas-user@lists.sourceforge.net
>>>>&

[Gambas-user] Feature Request

2014-06-24 Thread Stephen
  When adding new modules, classes, or forms the ability to select 
pre-existing code is good, an improvement would be enabling multi-select 
of those items, eliminating the need to loop through the 
RightClick->New->[Module/Class/Form]->Existing->[Selection].

Just a thought.

-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site


--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] interesting problem with Listbox.raise

2014-07-09 Thread Stephen
Gambas 3.5.3
Fedora 20 (Mate spin)
   A list box when made visible and brought to the foreground of its 
parent, continues to show its scroll-bar behind the other controls of 
the same parent (see screenshot below). In addition, looking closely at 
the left side of the list box you can see the borders of the text boxes 
that are behind it appearing to intrude into the list box white-space 
area, this phenomena is also visible just to the left of the scroll-bar 
where text box fields intrude into the white-space of what should be the 
list box area.

-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site

--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] OOPS... forgot to attach the screenshot...

2014-07-09 Thread Stephen
  Forgot to attache the screenshot, inline graphics don't come across.. 
my bad.


--
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site

--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] interesting problem with Listbox.raise

2014-07-09 Thread Stephen
   Ahh.. I've downloaded 3.5.4, time to see if I have all the 
dependencies set up in my VM.


On 07/09/2014 08:51 AM, Benoît Minisini wrote:
> Le 09/07/2014 14:32, Stephen a écrit :
>> Gambas 3.5.3
>> Fedora 20 (Mate spin)
>>  A list box when made visible and brought to the foreground of its
>> parent, continues to show its scroll-bar behind the other controls of
>> the same parent (see screenshot below). In addition, looking closely at
>> the left side of the list box you can see the borders of the text boxes
>> that are behind it appearing to intrude into the list box white-space
>> area, this phenomena is also visible just to the left of the scroll-bar
>> where text box fields intrude into the white-space of what should be the
>> list box area.
>>
> This has been fixed in the development version, but it was too difficult
> to backport the fix to the stable version.
>


-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site


--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] make fails for 3.5.4, need a little help...

2014-07-09 Thread Stephen
Fedora 20
Mate Desktop

./reconf-all works with no errors
./configure, only openal is not enabled
make then proceeds to fail...

Making all in image.effect
make[5]: Entering directory 
`/home/user/Downloads/gambas3-3.5.4/main/lib/image.effect'
   CXX  gb_image_effect_la-main.lo
../../libtool: line 1128: g++: command not found
make[5]: *** [gb_image_effect_la-main.lo] Error 1
make[5]: Leaving directory 
`/home/user/Downloads/gambas3-3.5.4/main/lib/image.effect'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/user/Downloads/gambas3-3.5.4/main/lib'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/user/Downloads/gambas3-3.5.4/main'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/user/Downloads/gambas3-3.5.4/main'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/user/Downloads/gambas3-3.5.4'
make: *** [all] Error 2


So it the problem is with image.effect, but I don't know how to read 
this to determine exactly what it wants and sure could use a little 
help. There might be more fails after this one is sorted, but I'll jump 
off those bridges as I get to them.


-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site


--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Never mind.....

2014-07-09 Thread Stephen
   It's late and I've gone cross-eyed.. C++ extension to GCC was not 
installed DOH!

-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site


--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] MTheme.readfile

2014-07-10 Thread Stephen

Fedora 20 Mate spin
Gambas 3.5.4 (freshly downloaded)

  There always seems to be one more hurdle... 'tis the nature of the 
beast I suppose.


./reconf-all OK
./configure OK
make install OK

[user@localhost]$ gambas 3

This application has raised an unexpected error and must abort

[45] File or Directory does not exist
MTheme.ReadFile.59


  Attached is the error dialogue. I dud an updatedb and locate MTheme 
and found only this...


/home/user/Downloads/gambas3-3.5.4/app/src/gambas3/.src/MTheme.module

  Shouldn't MTheme.ReadFile.59 have been created during the configure 
make install?


--
Kindest Regards
Stephen A. Bungay

--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] MTHeme error...

2014-07-10 Thread Stephen
   Ah, is the readfile method of MTheme failing? Am I interpreting this 
correctly? What file is it looking for and where should it be?

-- 

Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site


--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] MTheme.readfile

2014-07-10 Thread Stephen
Salut Charlie...

   That was a typo,... it is just gambas3, executing gambas from the 
command line... the line should more properly read;

[user@localhost]$ gambas3

   Should bring up the gambas IDE... but fails with MTheme.readfile error





On 07/10/2014 07:45 AM, Charlie Reinl wrote:
> Am Donnerstag, den 10.07.2014, 07:28 -0400 schrieb Stephen:
>> Fedora 20 Mate spin
>> Gambas 3.5.4 (freshly downloaded)
>>
>> There always seems to be one more hurdle... 'tis the nature of the
>> beast I suppose.
>>
>> ./reconf-all OK
>> ./configure OK
>> make install OK
>>
>> [user@localhost]$ gambas 3
> Salut Stephen,
>
> is that 'gambas 3' bat made in the mail or do you call it a project or
> file named 3.
>
>> gambas3 --help
> Gambas 3 Integrated Development Environment
>
> Usage: gambas3 [options] [  or]
>
> Options:
>-V --versiondisplay version
>-L --licensedisplay license
>-h --help   display this help
>
>


-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site


--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] MTHeme error...

2014-07-10 Thread Stephen
   Thank you Tobias.

   H... it (MTheme.ReadFile) is looking for a subdir off /tmp with 
the name of gambas. I created the subdir manually and gambas3-3.5.4 now 
starts up as it should.
   Perhaps a change to the MTheme.module is warranted, check for the 
existence of the directories referenced in sPath, create them if need 
be, then copy sPath to sTemp. Just a thought.


On 07/10/2014 07:57 AM, Tobias Boege wrote:
> On Thu, 10 Jul 2014, Stephen wrote:
>> Ah, is the readfile method of MTheme failing? Am I interpreting this
>> correctly? What file is it looking for and where should it be?
>>
> You already sort of found this out in your previous mail:
>
>>   Attached is the error dialogue. I dud an updatedb and locate MTheme and
>>   found only this...
>>
>>   /home/user/Downloads/gambas3-3.5.4/app/src/gambas3/.src/MTheme.module
> This points you directly to the source code of MTheme and error message
>
>> [45] File or Directory does not exist
>> MTheme.ReadFile.59
> tells you what happens and which line to look.
>
> Regards,
> Tobi
>


-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site


--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] MTHeme error...

2014-07-10 Thread Stephen
  On 07/10/2014 08:46 AM, Tobias Boege wrote:
> On Thu, 10 Jul 2014, Stephen wrote:
>> Thank you Tobias.
>>
>> H... it (MTheme.ReadFile) is looking for a subdir off /tmp with
>> the name of gambas. I created the subdir manually and gambas3-3.5.4 now
>> starts up as it should.
>> Perhaps a change to the MTheme.module is warranted, check for the
>> existence of the directories referenced in sPath, create them if need
>> be, then copy sPath to sTemp. Just a thought.
>>
> Hmm, interesting. From _init(), ReadFile("gambas") gets called, which
> constructs a path "theme/gambas" to load the default theme which is then
> copied to a temporary location, which is the famous line 59.
>
> But the path to copy the theme file to is obtained from Temp$() so if this
> directory doesn't exist, some node in the path /tmp/gambas.UID/PID/ does not
> exist (which would be strange) or Temp$() is broken...
>
> Regards,
> Tobi
>
Triple(Hmmm). It was the Temp$() function in the code that sent me off 
to eye-ball the /tmp directory and resultantly discover that no 'gambas' 
subdir existed. Manually creating the directory resolved the issue, so 
it looks like the code

copy sPath to sTemp

is working fine... where sPath = "theme/gambas" and sTemp = /Tmp

which would mean that Temp$() is returning the correct information.
-- 

Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site


--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] MTHeme error...

2014-07-10 Thread Stephen
On 07/10/2014 09:35 AM, Benoît Minisini wrote:
> Le 10/07/2014 15:26, Stephen a écrit :
>> On 07/10/2014 08:46 AM, Tobias Boege wrote:
>>> On Thu, 10 Jul 2014, Stephen wrote:
>>>>   Thank you Tobias.
>>>>
>>>>   H... it (MTheme.ReadFile) is looking for a subdir off /tmp with
>>>> the name of gambas. I created the subdir manually and gambas3-3.5.4 now
>>>> starts up as it should.
>>>>   Perhaps a change to the MTheme.module is warranted, check for the
>>>> existence of the directories referenced in sPath, create them if need
>>>> be, then copy sPath to sTemp. Just a thought.
>>>>
>>> Hmm, interesting. From _init(), ReadFile("gambas") gets called, which
>>> constructs a path "theme/gambas" to load the default theme which is then
>>> copied to a temporary location, which is the famous line 59.
>>>
>>> But the path to copy the theme file to is obtained from Temp$() so if this
>>> directory doesn't exist, some node in the path /tmp/gambas.UID/PID/ does not
>>> exist (which would be strange) or Temp$() is broken...
>>>
>>> Regards,
>>> Tobi
>>>
>> Triple(Hmmm). It was the Temp$() function in the code that sent me off
>> to eye-ball the /tmp directory and resultantly discover that no 'gambas'
>> subdir existed. Manually creating the directory resolved the issue, so
>> it looks like the code
>>
>> copy sPath to sTemp
>>
>> is working fine... where sPath = "theme/gambas" and sTemp = /Tmp
>>
>> which would mean that Temp$() is returning the correct information.
>>
> At startup, a Gambas program creates a "/tmp/gambas.//"
> directory.
>
> So if it does not exist later, then there is a problem with "/tmp".
> Maybe a normal user does not have the right to create a directory in
> '/tmp' ?
>
Well, I'm a normal user, I went to /tmp and did a "touch foo" at the 
cli, which worked properly, creating file "foo". There were other gambas 
directories with the  appended to them, perhaps created when 3.5.3 
was originally install from the fedora repo? Anyway, gambas.0 and 
gambas.1000 (root and me, respectively), were present in /tmp, but no 
"gambas" sans , which is what it seems to have wanted. Do a mkdir 
gambas (no . extension on the name) and Bob's your uncle, it seems 
to work.
At the moment I'm doing a configure make install of the latest 
development version to try to cure another problem with list-boxes 
(mentioned in an previous post). Fingers (and eyes) crossed! :)

-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site


--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Events not firing...

2014-07-10 Thread Stephen
Fedora 20 Mate
Gambas 3.5.90

   Create a project, place a textbox on FMain.
   Right click on the text boc, select events, select KeyRelease
   Place a STOP in the keyrelease event for the textbox

Run the program, select the textbox, press a key (and release 
it)nothing happens... keyrelease does not fire. Try KeyPress... same 
thing. *sigh*

-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site


--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Events not firing...

2014-07-10 Thread Stephen

On 07/10/2014 12:54 PM, Benoît Minisini wrote:

Le 10/07/2014 18:46, Stephen a écrit :

Fedora 20 Mate
Gambas 3.5.90

 Create a project, place a textbox on FMain.
 Right click on the text boc, select events, select KeyRelease
 Place a STOP in the keyrelease event for the textbox

Run the program, select the textbox, press a key (and release
it)nothing happens... keyrelease does not fire. Try KeyPress... same
thing. *sigh*


No problem there. Please always provide a project, otherwise how can we
know what you are doing exactly?

Here's a small test project that does what I describe (at least on my 
system anyway).


--
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site



foo-0.0.1.tar.gz
Description: GNU Zip compressed data
--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] System info...

2014-07-10 Thread Stephen
   Should have added this to the last email...

[System]
Gambas=3.5.90
OperatingSystem=Linux
Kernel=3.15.3-200.fc20.i686
Architecture=x86
Distribution=redhat Fedora release 20 (Heisenbug)
Desktop=MATE
Theme=QWindows
Language=en_CA.UTF-8
Memory=2017M
[Libraries]
Cairo=libcairo.so.2.11301.0
Curl=libcurl.so.4.3.0
DBus=libdbus-1.so.3.7.4
GStreamer=libgstreamer-0.10.so.0.30.0
GStreamer=libgstreamer-1.0.so.0.204.0
GTK+3=libgtk-3.so.0.1000.9
GTK+=libgtk-x11-2.0.so.0.2400.22
OpenGL=libGL.so.1.2.0
Poppler=libpoppler.so.43.0.0
Qt4=libQtCore.so.4.8.6
SDL=libSDL-1.2.so.0.11.4

-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site


--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Events not firing...

2014-07-10 Thread Stephen
On 07/10/2014 01:14 PM, Benoît Minisini wrote:
> Le 10/07/2014 19:05, Stephen a écrit :
>> On 07/10/2014 12:54 PM, Benoît Minisini wrote:
>>> Le 10/07/2014 18:46, Stephen a écrit :
>>>> Fedora 20 Mate
>>>> Gambas 3.5.90
>>>>
>>>>   Create a project, place a textbox on FMain.
>>>>   Right click on the text boc, select events, select KeyRelease
>>>>   Place a STOP in the keyrelease event for the textbox
>>>>
>>>> Run the program, select the textbox, press a key (and release
>>>> it)nothing happens... keyrelease does not fire. Try KeyPress... same
>>>> thing. *sigh*
>>>>
>>> No problem there. Please always provide a project, otherwise how can we
>>> know what you are doing exactly?
>>>
>> Here's a small test project that does what I describe (at least on my
>> system anyway).
>>
> Sorry, everthing works as expected here.
>
Yeah... I kind of thought that might happen *sigh*

-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site


--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Events not firing...

2014-07-10 Thread Stephen
On 07/10/2014 01:14 PM, Benoît Minisini wrote:
> Le 10/07/2014 19:05, Stephen a écrit :
>> On 07/10/2014 12:54 PM, Benoît Minisini wrote:
>>> Le 10/07/2014 18:46, Stephen a écrit :
>>>> Fedora 20 Mate
>>>> Gambas 3.5.90
>>>>
>>>>   Create a project, place a textbox on FMain.
>>>>   Right click on the text boc, select events, select KeyRelease
>>>>   Place a STOP in the keyrelease event for the textbox
>>>>
>>>> Run the program, select the textbox, press a key (and release
>>>> it)nothing happens... keyrelease does not fire. Try KeyPress... same
>>>> thing. *sigh*
>>>>
>>> No problem there. Please always provide a project, otherwise how can we
>>> know what you are doing exactly?
>>>
>> Here's a small test project that does what I describe (at least on my
>> system anyway).
>>
> Sorry, everthing works as expected here.
>
On a side note, the gotfocus event fires... and the change event for the 
textbox also fires, I added a combobox and tested its keypress and 
keyrelease events and they do not fire. So the problem appears isolated 
to keypress and keyrelease. I'm going to revert back to 3.5.4 as 3.5.90 
did nothing to correct the listbox issue and I can work around it by 
putting it in a list container.

-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site


--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Events not firing...

2014-07-10 Thread Stephen
On 07/10/2014 02:04 PM, Charlie Reinl wrote:
> Am Donnerstag, den 10.07.2014, 13:36 -0400 schrieb Stephen:
>> On 07/10/2014 01:14 PM, Benoît Minisini wrote:
>>> Le 10/07/2014 19:05, Stephen a écrit :
>>>> On 07/10/2014 12:54 PM, Benoît Minisini wrote:
>>>>> Le 10/07/2014 18:46, Stephen a écrit :
>>>>>> Fedora 20 Mate
>>>>>> Gambas 3.5.90
>>>>>>
>>>>>>Create a project, place a textbox on FMain.
>>>>>>Right click on the text boc, select events, select KeyRelease
>>>>>>Place a STOP in the keyrelease event for the textbox
>>>>>>
>>>>>> Run the program, select the textbox, press a key (and release
>>>>>> it)nothing happens... keyrelease does not fire. Try KeyPress... same
>>>>>> thing. *sigh*
>>>>>>
>>>>> No problem there. Please always provide a project, otherwise how can we
>>>>> know what you are doing exactly?
>>>>>
>>>> Here's a small test project that does what I describe (at least on my
>>>> system anyway).
>>>>
>>> Sorry, everthing works as expected here.
>>>
>> On a side note, the gotfocus event fires... and the change event for the
>> textbox also fires, I added a combobox and tested its keypress and
>> keyrelease events and they do not fire. So the problem appears isolated
>> to keypress and keyrelease. I'm going to revert back to 3.5.4 as 3.5.90
>> did nothing to correct the listbox issue and I can work around it by
>> putting it in a list container.
>>
> Salut Stephen,
>
> what happens, if you create a new user and you make your tests ?
>
Hi Charlie.

   I switched back to 3.5.4. The keypress/release issue does not exist 
in 3.5.4 but does exist in 3.5.90; the environment in which either of 
these gambas version runs, as well as my UID are the constants, creating 
another user didn't even show up on my radar.

-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site


--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Events not firing...

2014-07-10 Thread Stephen
On 07/10/2014 02:44 PM, Charlie Reinl wrote:
> Am Donnerstag, den 10.07.2014, 14:26 -0400 schrieb Stephen:
>> On 07/10/2014 02:04 PM, Charlie Reinl wrote:
>>> Am Donnerstag, den 10.07.2014, 13:36 -0400 schrieb Stephen:
>>>> On 07/10/2014 01:14 PM, Benoît Minisini wrote:
>>>>> Le 10/07/2014 19:05, Stephen a écrit :
>>>>>> On 07/10/2014 12:54 PM, Benoît Minisini wrote:
>>>>>>> Le 10/07/2014 18:46, Stephen a écrit :
>>>>>>>> Fedora 20 Mate
>>>>>>>> Gambas 3.5.90
>>>>>>>>
>>>>>>>> Create a project, place a textbox on FMain.
>>>>>>>> Right click on the text boc, select events, select KeyRelease
>>>>>>>> Place a STOP in the keyrelease event for the textbox
>>>>>>>>
>>>>>>>> Run the program, select the textbox, press a key (and release
>>>>>>>> it)nothing happens... keyrelease does not fire. Try KeyPress... 
>>>>>>>> same
>>>>>>>> thing. *sigh*
>>>>>>>>
>>>>>>> No problem there. Please always provide a project, otherwise how can we
>>>>>>> know what you are doing exactly?
>>>>>>>
>>>>>> Here's a small test project that does what I describe (at least on my
>>>>>> system anyway).
>>>>>>
>>>>> Sorry, everthing works as expected here.
>>>>>
>>>> On a side note, the gotfocus event fires... and the change event for the
>>>> textbox also fires, I added a combobox and tested its keypress and
>>>> keyrelease events and they do not fire. So the problem appears isolated
>>>> to keypress and keyrelease. I'm going to revert back to 3.5.4 as 3.5.90
>>>> did nothing to correct the listbox issue and I can work around it by
>>>> putting it in a list container.
>>>>
>>> Salut Stephen,
>>>
>>> what happens, if you create a new user and you make your tests ?
>>>
>> Hi Charlie.
>>
>> I switched back to 3.5.4. The keypress/release issue does not exist
>> in 3.5.4 but does exist in 3.5.90; the environment in which either of
>> these gambas version runs, as well as my UID are the constants, creating
>> another user didn't even show up on my radar.
>>
> Salut Stephen,
>
> the reason why I used/use that trick, is, my box started at least with
> Ubuntu 06.06 and was not newly installed, only updated.
> My user is a bit older I brought in the home disk from a gentoo
> installation with KDE at that time.
>
> So some times the beast how you call it makes strange things (like
> yours) .
>
> But I found out, a newly created user is clean and often reacts also
> clean, the beast in his cage.
>
> That is the reason why I wrote that.
>
I understand, good thinking. I will spin up a new VM with the same 
configuration and test the theory. Right now I have to make some headway 
on this project and can't afford the cycles as I must have things 
quasi-working by tomorrow afternoon... it is shaping up to be one of 
those long night coding sessions.

-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site


--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Referencing a listbox in a list container...

2014-07-11 Thread Stephen
   I am trying to clear the contents of all list boxes contained within 
a list container by passing the list container to a SUB. Something like 
this (I know this is not correct but it gets the idea across);

SUB ClearLists(phListContainer AS ListContainer)
  phListContainer.child[0].clear
END

But the child[0] returns the properties and methods for the basic 
control object which does not have Clear as an option.
I need to be able to iterate through the children of the container, and 
clear their contents.

-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site


--
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] R: Key events don't work on gb.gtk

2014-08-22 Thread Stephen
On 08/22/2014 06:21 AM, Jesus wrote:
> El 22/08/14 a las #4, Benoît Minisini escribió:
>> Le 22/08/2014 00:59, Benoît Minisini a écrit :
>>> Le 16/08/2014 12:50, Jesus a écrit :
>>>> El 16/08/14 a las #4, Jorge Carrión escribió:
>>>>> The only thing I've changed is the qt defult theme... Maybe that's
>>>>> involved
>>>>> in it but I think I've saw that Jesus has the same theme than me...
>>>>>
>>>>> Realy don't know.
>>>>>
>>>>> Regards
>>>> It is clear for me: gambas stable (3.5.4) don't suffer this bug. Latest
>>>> trunk code does.
>>>>
>>>> So recent changes in trunk are the only thing involved.
>>>>
>>>> Regards
>>>>
>>> It works fine here. Can you provide IDE information about your system
>>> where it fails?
>>>
>> I need that, because in the GTK+ library provided with Ubuntu 14.04, key
>> press events are internally raised twice: one is normal, the other has
>> an undocumented modifier mask set.
>>
>> I don't know if it is related to the GTK+ version, to an Ubuntu specific
>> change, to the X11 input method...
>>
>> So I need to find what the difference is between your system and ours (I
>> mean those where key events are raised as expected).
>>
>> Regards,
>>
> Well, sorry for the delay. Here it is:
>
> [System]
> Gambas=3.5.90
> OperatingSystem=Linux
> Kernel=3.13.0-24-generic
> Architecture=x86_64
> Distribution=Linux Mint 17 Qiana
> Desktop=XFCE
> Theme=QGtk
> Language=es_ES.UTF-8
> Memory=16032M
> [Libraries]
> Cairo=libcairo.so.0.0.0
> Cairo=libcairo.so.2.11301.0
> Curl=libcurl.so.4.3.0
> DBus=libdbus-1.so.3.7.6
> GStreamer=libgstreamer-0.10.so.0.30.0
> GStreamer=libgstreamer-1.0.so.0.204.0
> GTK+3=libgtk-3.so.0.1000.8
> GTK+=libgtk-x11-2.0.so.0.2400.23
> OpenGL=libGL.so.1.2.0
> Poppler=libpoppler.so.44.0.0
> Qt4=libQtCore.so.4.8.6
> SDL=libSDL-1.2.so.0.11.4
>
> Linux Mint 17 is based on Ubuntu 14.04, but it's smarter IMO.
>
> I must say that it was firstly tested on an older setup, Mint 14
> Cinnamon, IIRC, and results were the same.
>
> As I said before, current stable Gambas works as expected (at least in
> my simple test) but recent changes in trunk don't raise events anymore.
>
> I know about GTK being a nightmare upstream, so good luck!
>
> Regards

   I had this problem as well with 3.5.9 running under F20 using Mate. 
Only alternative I had was to go back to 3.5.4 where that functionality 
works as expected.

-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site Information Systems


--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Drawing Areas, painting on them, and printing the results...

2014-09-02 Thread Stephen
   Has anyone got some good documentation on how to use a Drawing Area, 
quite frankly I've gone cross-eyed trying to make sense of it by parsing 
the paint example.

Steve.

--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Drawing Areas, painting on them, and printing the results...

2014-09-02 Thread Stephen
I guess it is the need to use the draw event in order to do anything 
with the drawing area that had me spun. I think in terms of methods, 
properties and events, but I do not think in terms of events being the 
very thing that actually does the work.

I'm thinking of it now in terms of Macros, using the Object.Call(me, 
$sFunctionName) treats the code in $sFunctionName like a Macro, (am I on 
the right track?) Flexible & powerful yes. Intuitive in it's usage, not 
so much.

What I want to do is use a drawing area to create a matrix of images & 
Text to be printed out on business card stock (Avery 5371). I *think* I 
am begining to see how this can be done... but it is all still somewhat 
murky. If I can get the images arranged in the DrawingArea then the next 
step is to persist the DrawingArea to a file as a PNG, or perhaps a PDF 
(I have no clue how I'm going to do that yet), and then spool that file 
out the the printer using a shell command (unless there is a better way 
to do it from within GAMBAS).

One of the things that really confused me was the paint.reset command 
telling me it had no device ummm... no "device"? To me a device is a 
piece of hardware, a printer, a modem, a screen, keyboard, mouse, 
soundcard, NIC, Com port etc. It didn't make sense to me and I saw no 
way to give paint.reset any kind of parameter to point it to the object 
on which it could be used. It really threw me, until I realized that 
Paint.Reset when called from within the DRAW event of a drawing area 
gave it context. I fully expected to use the drawing area as an object, 
something like DrawingArea1.reset. Anyway I'm past that now, and busy 
documenting my education. BTW, how does reset differ from clear?

On 09/02/2014 05:30 PM, Jussi Lahtinen wrote:
> FMain contains subs named Example## (where ## are numbers).
> These subs are executed in Draw event "DrawingArea1_Draw()", with command
> Object.Call(Me, $sFunctionName). So that Example1 is same as "Arc" ,
> Example2 is "Arc negative", Example3 is "Clip", etc.
>
> You can write all the content of those subs directly into draw event.
>
> Here are the paint commands:
> http://gambaswiki.org/wiki/comp/gb.qt4/paint
>
> And here is more about the drawing area:
> http://gambaswiki.org/wiki/comp/gb.qt4/drawingarea
>
> I'm not sure what is the problem exactly, so, give some more information
> (code?) on what you are trying to do and how it fails (error messages)?
>
>
> Jussi
>
>
>
> On Tue, Sep 2, 2014 at 11:42 PM, Stephen  wrote:
>
>> Has anyone got some good documentation on how to use a Drawing Area,
>> quite frankly I've gone cross-eyed trying to make sense of it by parsing
>> the paint example.
>>
>> Steve.
>>
>>
>> --
>> Slashdot TV.
>> Video for Nerds.  Stuff that matters.
>> http://tv.slashdot.org/
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
> --
> Slashdot TV.
> Video for Nerds.  Stuff that matters.
> http://tv.slashdot.org/
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>


-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site Information Systems


--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Drawing Areas, painting on them, and printing the results...

2014-09-02 Thread Stephen
On 09/02/2014 06:22 PM, Jussi Lahtinen wrote:
>> I guess it is the need to use the draw event in order to do anything
>> with the drawing area that had me spun. I think in terms of methods,
>> properties and events, but I do not think in terms of events being the
>> very thing that actually does the work.
>>
> Draw event is called every time drawingarea needs to be drawn.
Yes, so we force the event by the refresh method. I'm slowly making 
progress... documenting things as I go. Thank you taking the time to help.

> Thus it is
> where you put the drawing commands.
>
> But you can change this behavior by setting Cached property to True.
> Then you start painting by determining painting device (Gambas cannot know
> where to draw, if you are not in specific drawing event)
> Paint.Begin(hNameOfPaintingDevice) and end with Paint.End.
> See the documentation.
>
>
>
>
>> I'm thinking of it now in terms of Macros, using the Object.Call(me,
>> $sFunctionName) treats the code in $sFunctionName like a Macro, (am I on
>> the right track?) Flexible&  powerful yes. Intuitive in it's usage, not
>> so much.
>>
> This only enables you to use string value to call a function. There are
> many alternatives for this.
>
>
>
>
>> One of the things that really confused me was the paint.reset command
>> telling me it had no device ummm... no "device"? To me a device is a
>> piece of hardware, a printer, a modem, a screen, keyboard, mouse,
>> soundcard, NIC, Com port etc.
>
> In Unix/Linux device has bit broader meaning, see example /dev/null or
> /dev/random. Not all devices are physical devices.
>
>
>
>
>> BTW, how does reset differ from clear?
>>
> http://gambaswiki.org/wiki/comp/gb.qt4/drawingarea/clear
> http://gambaswiki.org/wiki/comp/gb.qt4/paint/reset
>
>
>
> Jussi
> --
> Slashdot TV.
> Video for Nerds.  Stuff that matters.
> http://tv.slashdot.org/
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>


-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site Information Systems


--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Drawing Areas, painting on them, and printing the results...

2014-09-03 Thread Stephen
  Attached is a sample project that dynamically instantiates 10 
business card sized DrawingAreas within a Panel on a forum. The form 
represents a North American letter-sized sheet of paper. Since the Draw 
event must be used to draw within each of the Drawing areas, and the the 
Drawing Areas are brought into existence at run-time, the question is 
how to draw something on them?


  The actual project uses a database to dynamically create (or 
re-create) QR or Barcode images.


Steve.

On 09/02/2014 07:05 PM, Stephen wrote:

On 09/02/2014 06:22 PM, Jussi Lahtinen wrote:

I guess it is the need to use the draw event in order to do anything
with the drawing area that had me spun. I think in terms of methods,
properties and events, but I do not think in terms of events being the
very thing that actually does the work.


Draw event is called every time drawingarea needs to be drawn.

 Yes, so we force the event by the refresh method. I'm slowly making
progress... documenting things as I go. Thank you taking the time to help.


Thus it is
where you put the drawing commands.

But you can change this behavior by setting Cached property to True.
Then you start painting by determining painting device (Gambas cannot know
where to draw, if you are not in specific drawing event)
Paint.Begin(hNameOfPaintingDevice) and end with Paint.End.
See the documentation.





I'm thinking of it now in terms of Macros, using the Object.Call(me,
$sFunctionName) treats the code in $sFunctionName like a Macro, (am I on
the right track?) Flexible&   powerful yes. Intuitive in it's usage, not
so much.


This only enables you to use string value to call a function. There are
many alternatives for this.





One of the things that really confused me was the paint.reset command
telling me it had no device ummm... no "device"? To me a device is a
piece of hardware, a printer, a modem, a screen, keyboard, mouse,
soundcard, NIC, Com port etc.

In Unix/Linux device has bit broader meaning, see example /dev/null or
/dev/random. Not all devices are physical devices.





BTW, how does reset differ from clear?


http://gambaswiki.org/wiki/comp/gb.qt4/drawingarea/clear
http://gambaswiki.org/wiki/comp/gb.qt4/paint/reset



Jussi
--
Slashdot TV.
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user





--
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site Information Systems



Bar-0.0.1.tar.gz
Description: GNU Zip compressed data
--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Drawing Areas, painting on them, and printing the results...

2014-09-03 Thread Stephen
   Typographical error in the code (not that it is causing a problem). 
This line

   mDrawingAreaMatrix[X] = NEW DrawingArea(Panel1) AS "Card" & CInt(X)

CInt(X) is redundant and not at all what I was thinking about when I 
typed that line. It should more properly read;

   mDrawingAreaMatrix[X] = NEW DrawingArea(Panel1) AS "Card" & CStr(X)

   I'm beginning to think that what I am trying to accomplish is not 
possible. How can a Draw event that is not in the compile-time source be 
accessed during run-time?

On 09/03/2014 06:39 AM, Stephen wrote:
>   Attached is a sample project that dynamically instantiates 10 
> business card sized DrawingAreas within a Panel on a forum. The form 
> represents a North American letter-sized sheet of paper. Since the 
> Draw event must be used to draw within each of the Drawing areas, and 
> the the Drawing Areas are brought into existence at run-time, the 
> question is how to draw something on them?
>
>   The actual project uses a database to dynamically create (or 
> re-create) QR or Barcode images.
>
> Steve.
>
> On 09/02/2014 07:05 PM, Stephen wrote:
>> On 09/02/2014 06:22 PM, Jussi Lahtinen wrote:
>>>> I guess it is the need to use the draw event in order to do anything
>>>> with the drawing area that had me spun. I think in terms of methods,
>>>> properties and events, but I do not think in terms of events being the
>>>> very thing that actually does the work.
>>>>
>>> Draw event is called every time drawingarea needs to be drawn.
>>  Yes, so we force the event by the refresh method. I'm slowly making
>> progress... documenting things as I go. Thank you taking the time to 
>> help.
>>
>>> Thus it is
>>> where you put the drawing commands.
>>>
>>> But you can change this behavior by setting Cached property to True.
>>> Then you start painting by determining painting device (Gambas 
>>> cannot know
>>> where to draw, if you are not in specific drawing event)
>>> Paint.Begin(hNameOfPaintingDevice) and end with Paint.End.
>>> See the documentation.
>>>
>>>
>>>
>>>
>>>> I'm thinking of it now in terms of Macros, using the Object.Call(me,
>>>> $sFunctionName) treats the code in $sFunctionName like a Macro, (am 
>>>> I on
>>>> the right track?) Flexible&   powerful yes. Intuitive in it's 
>>>> usage, not
>>>> so much.
>>>>
>>> This only enables you to use string value to call a function. There are
>>> many alternatives for this.
>>>
>>>
>>>
>>>
>>>> One of the things that really confused me was the paint.reset command
>>>> telling me it had no device ummm... no "device"? To me a device 
>>>> is a
>>>> piece of hardware, a printer, a modem, a screen, keyboard, mouse,
>>>> soundcard, NIC, Com port etc.
>>> In Unix/Linux device has bit broader meaning, see example /dev/null or
>>> /dev/random. Not all devices are physical devices.
>>>
>>>
>>>
>>>
>>>> BTW, how does reset differ from clear?
>>>>
>>> http://gambaswiki.org/wiki/comp/gb.qt4/drawingarea/clear
>>> http://gambaswiki.org/wiki/comp/gb.qt4/paint/reset
>>>
>>>
>>>
>>> Jussi
>>> ------
>>>  
>>>
>>> Slashdot TV.
>>> Video for Nerds.  Stuff that matters.
>>> http://tv.slashdot.org/
>>> ___
>>> Gambas-user mailing list
>>> Gambas-user@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>>
>>
>
>
> --
> Slashdot TV.
> Video for Nerds.  Stuff that matters.
> http://tv.slashdot.org/
>
>
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user


-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site Information Systems

--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Drawing Areas, painting on them, and printing the results...

2014-09-03 Thread Stephen
Paint.Begin and use cached mode? Trying that now.

On 09/03/2014 11:14 AM, Stephen wrote:
> Typographical error in the code (not that it is causing a problem).
> This line
>
> mDrawingAreaMatrix[X] = NEW DrawingArea(Panel1) AS "Card"&  CInt(X)
>
> CInt(X) is redundant and not at all what I was thinking about when I
> typed that line. It should more properly read;
>
> mDrawingAreaMatrix[X] = NEW DrawingArea(Panel1) AS "Card"&  CStr(X)
>
> I'm beginning to think that what I am trying to accomplish is not
> possible. How can a Draw event that is not in the compile-time source be
> accessed during run-time?
>
> On 09/03/2014 06:39 AM, Stephen wrote:
>>Attached is a sample project that dynamically instantiates 10
>> business card sized DrawingAreas within a Panel on a forum. The form
>> represents a North American letter-sized sheet of paper. Since the
>> Draw event must be used to draw within each of the Drawing areas, and
>> the the Drawing Areas are brought into existence at run-time, the
>> question is how to draw something on them?
>>
>>The actual project uses a database to dynamically create (or
>> re-create) QR or Barcode images.
>>
>> Steve.
>>
>> On 09/02/2014 07:05 PM, Stephen wrote:
>>> On 09/02/2014 06:22 PM, Jussi Lahtinen wrote:
>>>>> I guess it is the need to use the draw event in order to do anything
>>>>> with the drawing area that had me spun. I think in terms of methods,
>>>>> properties and events, but I do not think in terms of events being the
>>>>> very thing that actually does the work.
>>>>>
>>>> Draw event is called every time drawingarea needs to be drawn.
>>>   Yes, so we force the event by the refresh method. I'm slowly making
>>> progress... documenting things as I go. Thank you taking the time to
>>> help.
>>>
>>>> Thus it is
>>>> where you put the drawing commands.
>>>>
>>>> But you can change this behavior by setting Cached property to True.
>>>> Then you start painting by determining painting device (Gambas
>>>> cannot know
>>>> where to draw, if you are not in specific drawing event)
>>>> Paint.Begin(hNameOfPaintingDevice) and end with Paint.End.
>>>> See the documentation.
>>>>
>>>>
>>>>
>>>>
>>>>> I'm thinking of it now in terms of Macros, using the Object.Call(me,
>>>>> $sFunctionName) treats the code in $sFunctionName like a Macro, (am
>>>>> I on
>>>>> the right track?) Flexible&powerful yes. Intuitive in it's
>>>>> usage, not
>>>>> so much.
>>>>>
>>>> This only enables you to use string value to call a function. There are
>>>> many alternatives for this.
>>>>
>>>>
>>>>
>>>>
>>>>> One of the things that really confused me was the paint.reset command
>>>>> telling me it had no device ummm... no "device"? To me a device
>>>>> is a
>>>>> piece of hardware, a printer, a modem, a screen, keyboard, mouse,
>>>>> soundcard, NIC, Com port etc.
>>>> In Unix/Linux device has bit broader meaning, see example /dev/null or
>>>> /dev/random. Not all devices are physical devices.
>>>>
>>>>
>>>>
>>>>
>>>>> BTW, how does reset differ from clear?
>>>>>
>>>> http://gambaswiki.org/wiki/comp/gb.qt4/drawingarea/clear
>>>> http://gambaswiki.org/wiki/comp/gb.qt4/paint/reset
>>>>
>>>>
>>>>
>>>> Jussi
>>>> --
>>>>
>>>> Slashdot TV.
>>>> Video for Nerds.  Stuff that matters.
>>>> http://tv.slashdot.org/
>>>> ___
>>>> Gambas-user mailing list
>>>> Gambas-user@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>>>
>>
>> --
>> Slashdot TV.
>> Video for Nerds.  Stuff that matters.
>> http://tv.slashdot.org/
>>
>>
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>


-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site Information Systems


--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Drawing Areas, painting on them, and printing the results...

2014-09-03 Thread Stephen
   Uh huh. It figures, almost four hours after the initial post, 
frustration levels climbing, I sent that email then the solution hits me 
square between the eyes.

Yes use cached mode.

On 09/03/2014 11:18 AM, Stephen wrote:
> Paint.Begin and use cached mode? Trying that now.
>
> On 09/03/2014 11:14 AM, Stephen wrote:
>>  Typographical error in the code (not that it is causing a problem).
>> This line
>>
>>  mDrawingAreaMatrix[X] = NEW DrawingArea(Panel1) AS "Card"&   CInt(X)
>>
>> CInt(X) is redundant and not at all what I was thinking about when I
>> typed that line. It should more properly read;
>>
>>  mDrawingAreaMatrix[X] = NEW DrawingArea(Panel1) AS "Card"&   CStr(X)
>>
>>  I'm beginning to think that what I am trying to accomplish is not
>> possible. How can a Draw event that is not in the compile-time source be
>> accessed during run-time?
>>
>> On 09/03/2014 06:39 AM, Stephen wrote:
>>> Attached is a sample project that dynamically instantiates 10
>>> business card sized DrawingAreas within a Panel on a forum. The form
>>> represents a North American letter-sized sheet of paper. Since the
>>> Draw event must be used to draw within each of the Drawing areas, and
>>> the the Drawing Areas are brought into existence at run-time, the
>>> question is how to draw something on them?
>>>
>>> The actual project uses a database to dynamically create (or
>>> re-create) QR or Barcode images.
>>>
>>> Steve.
>>>
>>> On 09/02/2014 07:05 PM, Stephen wrote:
>>>> On 09/02/2014 06:22 PM, Jussi Lahtinen wrote:
>>>>>> I guess it is the need to use the draw event in order to do anything
>>>>>> with the drawing area that had me spun. I think in terms of methods,
>>>>>> properties and events, but I do not think in terms of events being the
>>>>>> very thing that actually does the work.
>>>>>>
>>>>> Draw event is called every time drawingarea needs to be drawn.
>>>>Yes, so we force the event by the refresh method. I'm slowly making
>>>> progress... documenting things as I go. Thank you taking the time to
>>>> help.
>>>>
>>>>> Thus it is
>>>>> where you put the drawing commands.
>>>>>
>>>>> But you can change this behavior by setting Cached property to True.
>>>>> Then you start painting by determining painting device (Gambas
>>>>> cannot know
>>>>> where to draw, if you are not in specific drawing event)
>>>>> Paint.Begin(hNameOfPaintingDevice) and end with Paint.End.
>>>>> See the documentation.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> I'm thinking of it now in terms of Macros, using the Object.Call(me,
>>>>>> $sFunctionName) treats the code in $sFunctionName like a Macro, (am
>>>>>> I on
>>>>>> the right track?) Flexible& powerful yes. Intuitive in it's
>>>>>> usage, not
>>>>>> so much.
>>>>>>
>>>>> This only enables you to use string value to call a function. There are
>>>>> many alternatives for this.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> One of the things that really confused me was the paint.reset command
>>>>>> telling me it had no device ummm... no "device"? To me a device
>>>>>> is a
>>>>>> piece of hardware, a printer, a modem, a screen, keyboard, mouse,
>>>>>> soundcard, NIC, Com port etc.
>>>>> In Unix/Linux device has bit broader meaning, see example /dev/null or
>>>>> /dev/random. Not all devices are physical devices.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> BTW, how does reset differ from clear?
>>>>>>
>>>>> http://gambaswiki.org/wiki/comp/gb.qt4/drawingarea/clear
>>>>> http://gambaswiki.org/wiki/comp/gb.qt4/paint/reset
>>>>>
>>>>>
>>>>>
>>>>> Jussi
>>>>> --
>>>>>
>>>>> Slashdot TV.
>>>>> Video for Nerds.  Stuff that matters.
>>>>> http://tv.slashdot.org/
>>>>> ___
>>>>> Gambas-user mailing list
>>>>> Gambas-user@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>>>>
>>> --
>>> Slashdot TV.
>>> Video for Nerds.  Stuff that matters.
>>> http://tv.slashdot.org/
>>>
>>>
>>> ___
>>> Gambas-user mailing list
>>> Gambas-user@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>


-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site Information Systems


--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Drawing Areas, painting on them, and printing the results...

2014-09-03 Thread Stephen
   Yes indeed :)  Using cache mode for each instantiated DrawingArea we 
can manipulate them as desired.
You asked why am I using 10 drawing areas, oddly enough the answer is to 
simplify things from a layout standpoint... didn't figure on having this 
much trouble with it... but persistence (and help) pays off. Now to 
print the darn things.


On 09/03/2014 11:41 AM, Jussi Lahtinen wrote:
> Everything works now?
>
>
> Jussi
>
>
> On Wed, Sep 3, 2014 at 6:28 PM, Stephen  wrote:
>
>> Uh huh. It figures, almost four hours after the initial post,
>> frustration levels climbing, I sent that email then the solution hits me
>> square between the eyes.
>>
>> Yes use cached mode.
>>
>> On 09/03/2014 11:18 AM, Stephen wrote:
>>> Paint.Begin and use cached mode? Trying that now.
>>>
>>> On 09/03/2014 11:14 AM, Stephen wrote:
>>>>   Typographical error in the code (not that it is causing a problem).
>>>> This line
>>>>
>>>>   mDrawingAreaMatrix[X] = NEW DrawingArea(Panel1) AS "Card"&
>>   CInt(X)
>>>> CInt(X) is redundant and not at all what I was thinking about when I
>>>> typed that line. It should more properly read;
>>>>
>>>>   mDrawingAreaMatrix[X] = NEW DrawingArea(Panel1) AS "Card"&
>>   CStr(X)
>>>>   I'm beginning to think that what I am trying to accomplish is not
>>>> possible. How can a Draw event that is not in the compile-time source be
>>>> accessed during run-time?
>>>>
>>>> On 09/03/2014 06:39 AM, Stephen wrote:
>>>>>  Attached is a sample project that dynamically instantiates 10
>>>>> business card sized DrawingAreas within a Panel on a forum. The form
>>>>> represents a North American letter-sized sheet of paper. Since the
>>>>> Draw event must be used to draw within each of the Drawing areas, and
>>>>> the the Drawing Areas are brought into existence at run-time, the
>>>>> question is how to draw something on them?
>>>>>
>>>>>  The actual project uses a database to dynamically create (or
>>>>> re-create) QR or Barcode images.
>>>>>
>>>>> Steve.
>>>>>
>>>>> On 09/02/2014 07:05 PM, Stephen wrote:
>>>>>> On 09/02/2014 06:22 PM, Jussi Lahtinen wrote:
>>>>>>>> I guess it is the need to use the draw event in order to do anything
>>>>>>>> with the drawing area that had me spun. I think in terms of methods,
>>>>>>>> properties and events, but I do not think in terms of events being
>> the
>>>>>>>> very thing that actually does the work.
>>>>>>>>
>>>>>>> Draw event is called every time drawingarea needs to be drawn.
>>>>>> Yes, so we force the event by the refresh method. I'm slowly
>> making
>>>>>> progress... documenting things as I go. Thank you taking the time to
>>>>>> help.
>>>>>>
>>>>>>> Thus it is
>>>>>>> where you put the drawing commands.
>>>>>>>
>>>>>>> But you can change this behavior by setting Cached property to True.
>>>>>>> Then you start painting by determining painting device (Gambas
>>>>>>> cannot know
>>>>>>> where to draw, if you are not in specific drawing event)
>>>>>>> Paint.Begin(hNameOfPaintingDevice) and end with Paint.End.
>>>>>>> See the documentation.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>> I'm thinking of it now in terms of Macros, using the Object.Call(me,
>>>>>>>> $sFunctionName) treats the code in $sFunctionName like a Macro, (am
>>>>>>>> I on
>>>>>>>> the right track?) Flexible&  powerful yes. Intuitive in it's
>>>>>>>> usage, not
>>>>>>>> so much.
>>>>>>>>
>>>>>>> This only enables you to use string value to call a function. There
>> are
>>>>>>> many alternatives for this.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>> One of the things that really confused me was the paint.reset
>> command
>&

Re: [Gambas-user] Drawing Areas, painting on them, and printing the results...

2014-09-03 Thread Stephen
On 09/03/2014 02:33 PM, Jussi Lahtinen wrote:
>> You asked why am I using 10 drawing areas, oddly enough the answer is to
>> simplify things from a layout standpoint...
>
> Just figure out how to draw one card and make multiple copies of it to same
> one big drawing area..?
>
>
Since each drawing area is the same size, the same drawing commands, 
right down to the coordinates, are used to draw on each one, only a 
portion of the contents of each small DrawingArea changes (in this case 
its a QR Code). Everything else remains the same. The drawing portion of 
the program does not have to be concerned with placing an item on a page 
(one large DrawingArea), and it doesn't care where the DrawingArea it is 
manipulating is going to be placed, another piece of code is concerned 
with that functionality.
All well and good, until we get to printing...
>> Now to print the darn things.
>>
> Yeah... to print the things you need to give the same drawing commands to
> the Printer object. See how above would make things simple...
> Or you need to give picture of the wanted result for the Printer object.
> Not sure what is reasonable way to do this.
>
>

  I was thinking of taking the panel containing the drawing areas, 
turning it into one big bitmap, and then spooling that file off to the 
printer. Has anyone out there done this kind of thing?

> Jussi
> --
> Slashdot TV.
> Video for Nerds.  Stuff that matters.
> http://tv.slashdot.org/
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>


-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site Information Systems


--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Drawing Areas, painting on them, and printing the results...

2014-09-03 Thread Stephen
On 09/03/2014 04:27 PM, Tobias Boege wrote:
> On Wed, 03 Sep 2014, Stephen wrote:
>> On 09/03/2014 02:33 PM, Jussi Lahtinen wrote:
>>>> You asked why am I using 10 drawing areas, oddly enough the answer is to
>>>> simplify things from a layout standpoint...
>>> Just figure out how to draw one card and make multiple copies of it to same
>>> one big drawing area..?
>>>
>>>
>> Since each drawing area is the same size, the same drawing commands,
>> right down to the coordinates, are used to draw on each one, only a
>> portion of the contents of each small DrawingArea changes (in this case
>> its a QR Code). Everything else remains the same. The drawing portion of
>> the program does not have to be concerned with placing an item on a page
>> (one large DrawingArea), and it doesn't care where the DrawingArea it is
>> manipulating is going to be placed, another piece of code is concerned
>> with that functionality.
>> All well and good, until we get to printing...
>>>> Now to print the darn things.
>>>>
>>> Yeah... to print the things you need to give the same drawing commands to
>>> the Printer object. See how above would make things simple...
>>> Or you need to give picture of the wanted result for the Printer object.
>>> Not sure what is reasonable way to do this.
>>>
>>>
>>I was thinking of taking the panel containing the drawing areas,
>> turning it into one big bitmap, and then spooling that file off to the
>> printer. Has anyone out there done this kind of thing?
>>
> Sounds a bit weird. A Printer object is also a potential drawing device,
> so you shouldn't take screenshots to print something of which your program
> knows how to reproduce it.
>
> Do you have a feeling by now how painting works in Gambas (or how it is
> supposed to work)? If not, I have some spare time the next days... As far
> as my experience goes, painting is a black box for many newbies. But when
> you get used to it, it makes kinda sense :-)
>
> Regards,
> Tobi
>
Hi Tobi;

   Yeah I'm slowly coming to grips with painting. I wasn't thinking of 
doing a screen shot. Painting is a bit... err... different, not at all 
how I expected it to work, but oh well, one never stops learning.
   Thanks for the offer... I'll take you up on it if I get stuck.

-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site Information Systems


--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Release goals for 3.7 / 4.0

2014-10-23 Thread Stephen
On 10/21/2014 10:38 AM, Benoît Minisini wrote:
> Le 21/10/2014 16:25, PICCORO McKAY Lenz a écrit :
>> Date: Thu, 16 Oct 2014 17:41:07 +0200
>> From: Beno?t Minisini
>>
>> Now let's start hacking for Gambas 3.7.
>>
>>
>>
>>> *The main goal now is making a dedicated Gambas software repository.*
>>>
>> I think for gambas 3.7 the changes between versions must stop (preferable),
>> so then the repository can be able to stable across time..
>>
>> i note in mocosoft like proyects that manyority of programs (99% excepts
>> for frameworks versions implementations) works between versions of visual
>> basic ...
>>
>> in gambas only older can compile and run with newer but newer mades does
>> not compiles or run in olders, ok its similaqr to .net framework dependency
>> but i refers to source codee..
>>
>> in mayority of jobs, manpowers must concentrate in funtional parts of
>> proyect , and tecnical parts goes to second plane and be abstract behing
>> the funtional parts..
>>
>> if i must have in constant update of my code respect the changes of gambas
>> ... my concentration in funtional part does not goes well .. due in
>> enterprices the time its a mandatory vector with no fallback point
> The rule is the following: A program made with Gambas 3.X will work with
> all Gambas 3.Y where Y>= X, except if your program relies on the bad
> behaviour of a bug that is fixed in a new version.
>
> You have to do with that rule, as I don't see any other rule that allows
> me to continue working on it.
>
> Regards,
>
That is a very sensible rule.

-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site Information Systems


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


Re: [Gambas-user] About help and arrays and variables

2010-12-16 Thread Stephen Bungay
On 11/19/2010 08:58 AM, Fabien Bodard wrote:
> 2010/11/19 Demosthenes Koptsis:
>> ok!
>>
>> i was cofused from two things
>>
>> 1)
>> in previous message about static arrays Fabien said that:
>>
>>> yes a static array is not an object ... that's why it's a little bit
>>> deprecated :)
>>>
>>>
>>> anther way :
>>>
>>> dim htmpArray as integer[]=  [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
>>>
>> so a
>> DIM htmpArray as integer[]=  [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
>> i thought was a static.
> no a dynamic ... look at the bottom
>> and
>>
>> 2)
>> -
>> DIM aInt2 AS Integer[3]
>>
>> aInt2[0] = 1
>> aInt2[1] = 20
>> aInt2[2] = 30
>>
>> aInt2.Add(40) 'here is the resize of the array
>> aInt2.Add(50)
>> aInt2.Add(60)
>>
>> PRINT aInt2[3]
>> PRINT aInt2[4]
>> PRINT aInt2[5]
>> -
>>
>> In my gambas2-2.21 rev3300 there is no error, nor compilation nor
>> execution!
>>
> Normal it's Dynamic array :)
>
> Dynamic :
> DIM Identifier AS [ NEW ] Native Datatype [ Array dimensions ... ]
>
> ex : dim aInt as  Integer[10]
>
> Static
> [ STATIC ] { PUBLIC | PRIVATE } Identifier [ Array dimensions ... ] AS
> Native Datatype
>
>
> ex : Private aInt[10] as integer
>
> you can't declare a staic array in a sub
I am converting some older code over and came across this 
idiosyncrasy with static arrays in subs, I can work around it easily 
enough but my curiosity is peaked... why are static arrays not allowed 
at the procedure level?
> --
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2&  L3.
> Spend less time writing and  rewriting code and more time creating great
> experiences on the web. Be a part of the beta today
> http://p.sf.net/sfu/msIE9-sfdev2dev
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>


--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] About help and arrays and variables

2010-12-16 Thread Stephen Bungay
On 12/16/2010 11:55 AM, Benoît Minisini wrote:
>>  I am converting some older code over and came across this
>> idiosyncrasy with static arrays in subs, I can work around it easily
>> enough but my curiosity is peaked... why are static arrays not allowed
>> at the procedure level?
>>
> Because the stack can't receive them.
>
I see... so a fundamental internal change took place to cause this (i.e. 
they were allowed at the procedure level in older versions, now they are 
not). Anyway... can't change it so its not important.

--
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] A little perplexed...

2011-02-06 Thread Stephen Bungay
   Trying to get the dev environment up and running on CentOS 5.5, no QT 
installed. "./configure" reports that qt is disabled and successfully 
completes. "make install" also successfully completes, gambas2 
isinstalled but, when invoked it reports that it is unable to locate the 
gb.qt library. Now given that the qt component is disabled, why is this 
error coming up?

--
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world? 
http://p.sf.net/sfu/oracle-sfdevnlfb
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Movieplayer example Gambas 3.0

2011-02-09 Thread Stephen Bungay
Line # 39

  $hProcess = Exec ["mplayer", "-wid", lblMoviePlayer.Handle, 
Conv$($sPath, Desktop.Charset, System.Charset)] For Read Write


results in this error

Type mismatch: Wanted String[] got Variant[] instead


the problem is with lblMoviePlayer.Handle... has something fundamentaly 
changed with Exec? The movieplayer example does not work under 2.99 and 
it only produces a black output window under 2.22 (although no type 
mismatch error in 2.22), neither one works though.


Steve.

[OperatingSystem]

OperatingSystem=Linux

KernelRelease=2.6.34.7-61.fc13.i686

DistributionVendor=redhat

DistributionRelease=Fedora release 13 (Goddard)

[System]

CPUArchitecture=i686

TotalRam=2044968 kB

[Gambas]

Gambas1=Not Installed

Gambas2=2.22.0

Gambas2Path=/usr/bin/gbx2

Gambas3=2.99.0

Gambas3Path=/usr/local/bin/gbx3





--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Movieplayer example Gambas 3.0

2011-02-10 Thread Stephen Bungay


On 02/10/2011 08:18 AM, Jussi Lahtinen wrote:
> Try latest revision of Gambas 3.
> This is fixed to Cstr(lblMoviePlayer.Handle) .
>
> Jussi
>
>
>
> On Thu, Feb 10, 2011 at 06:51, Stephen Bungay  wrote:
>
>> Line # 39
>>
>>   $hProcess = Exec ["mplayer", "-wid", lblMoviePlayer.Handle,
>> Conv$($sPath, Desktop.Charset, System.Charset)] For Read Write
>>
>>
>> results in this error
>>
>> Type mismatch: Wanted String[] got Variant[] instead
>>
>>
>> the problem is with lblMoviePlayer.Handle... has something fundamentaly
>> changed with Exec? The movieplayer example does not work under 2.99 and
>> it only produces a black output window under 2.22 (although no type
>> mismatch error in 2.22), neither one works though.
>>
>>
>> Steve.
>>
>> [OperatingSystem]
>>
>> OperatingSystem=Linux
>>
>> KernelRelease=2.6.34.7-61.fc13.i686
>>
>> DistributionVendor=redhat
>>
>> DistributionRelease=Fedora release 13 (Goddard)
>>
>> [System]
>>
>> CPUArchitecture=i686
>>
>> TotalRam=2044968 kB
>>
>> [Gambas]
>>
>> Gambas1=Not Installed
>>
>> Gambas2=2.22.0
>>
>> Gambas2Path=/usr/bin/gbx2
>>
>> Gambas3=2.99.0
>>
>> Gambas3Path=/usr/local/bin/gbx3
>>
>>
>>
>>
>>
>>
>> --
>> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
>> Pinpoint memory and threading errors before they happen.
>> Find and fix more than 250 security defects in the development cycle.
>> Locate bottlenecks in serial and parallel code that limit performance.
>> http://p.sf.net/sfu/intel-dev2devfeb
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
> --
> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
> Pinpoint memory and threading errors before they happen.
> Find and fix more than 250 security defects in the development cycle.
> Locate bottlenecks in serial and parallel code that limit performance.
> http://p.sf.net/sfu/intel-dev2devfeb
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
I could have sworn I tried that last night (early this morning) before 
asking the list. Of course it works perfectly, egads I hate it when I do 
that.

--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] A little perplexed...

2011-02-10 Thread Stephen Bungay
   Thank you for the reply Benoit.

On 02/07/2011 02:15 PM, Benoît Minisini wrote:
>> Trying to get the dev environment up and running on CentOS 5.5, no QT
>> installed. "./configure" reports that qt is disabled and successfully
>> completes. "make install" also successfully completes, gambas2
>> isinstalled but, when invoked it reports that it is unable to locate the
>> gb.qt library. Now given that the qt component is disabled, why is this
>> error coming up?
>>
> The gambas2 IDE needs the gb.qt component. But not necessarily all other
> gambas program. So you can compile gambas without gb.qt, but then you can't
> run the IDE.
>
> Regards,
>


--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Arrays of controls..

2011-02-11 Thread Stephen Bungay
   Given the following code (Gambas 2.22)

PUBLIC SUB Form_Open()
   DIM X AS Integer
   DIM ButtonArray[10] AS Object

   FOR X = 0 TO 9
   ButtonArray[X] = NEW Button(ME)
   WITH ButtonArray[X]
.X = 90 + (20 * x)
.Y = 100
.Width = 20
.height = 20
   END WITH
   NEXT

END


   How then would one trap the events being raised by a click on one of 
the buttons in ButtonArray[]?

   I'm assuming (a bad thing... I know) that the array 'ButtonArray' 
persists after Form_Open completes and until the form is closed.

--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Arrays of controls..

2011-02-11 Thread Stephen Bungay
   Hi Matti!

 Thanks for the reply.

 OK, that also works when everything is all on in the one form 
class. Let me clarify.
We have two forms, FMain and FormButtons. FMain has on it a TabStrip 
container (TabStrip1) and nothing else. FormButtons has on it one (1) 
Toggle Button called ToggleButton1 which serves as a test-case control 
(we know that its event will trap).

   FMain.class contains this logic (and only this logic)

' Gambas class file
PRIVATE ButtonForm AS FormButtons

PUBLIC SUB Form_Open()

TabStrip1.Index = 0

ButtonForm = NEW FormButtons(TabStrip1) AS "ButtonForm"

END

FormButtons contains this logic...
' Gambas class file

PUBLIC SUB Form_Open()
   DIM X AS Integer
   DIM ButtonArray[10] AS Object
   DIM myToggleButton AS ToggleButton

   FOR X = 0 TO 9
   ButtonArray[X] = NEW ToggleButton(ME) AS "ToggleButtons"
   WITH ButtonArray[X]
.X = 90 + (20 * x)
.Y = 100
.Width = 20
.height = 20
.tag = x
   END WITH
   NEXT

END

' This one does not trap
PRIVATE SUB ToggleButtons_click()
   STOP
END

' This one does trap
PUBLIC SUB ToggleButton1_Click()
STOP
END

   So what I expect to happen is that FormButtons has the ToggleButtons 
dynamically created and placed on itself (this does happen), then it 
in-turn gets placed on FMain inside TabStrip1 (this also happens), and 
when one of the dynamically created toggle buttons is clicked the click 
event "ToggleButtons_click" fires (this does NOT happen). However, if 
one clicks on the button that is not dynamically created (ToggleButton1) 
its event does fire and code execution encounters the STOP statement.
   Try it out.

On 02/11/2011 11:35 AM, Matti wrote:
> First, put the buttons in a group that can catch events:
> ButtonArray[X] = NEW Button(ME) as "Buttons"
>
> Then, give every button an individual Tag:
>  .height = 20
>   .Tag = X
>
> And the event to see which one is clicked:
> Public Sub Buttons_Click()' reacts to all the buttons
>Dim i As Integer
>
>i = Last.Tag   'reads the Tag, so you see which one it was
>Print i
>
>Select Case
>.
>End Select
> End
>
>
>
> Am 11.02.2011 17:00, schrieb Stephen Bungay:
>> Given the following code (Gambas 2.22)
>>
>> PUBLIC SUB Form_Open()
>> DIM X AS Integer
>> DIM ButtonArray[10] AS Object
>>
>> FOR X = 0 TO 9
>> ButtonArray[X] = NEW Button(ME)
>> WITH ButtonArray[X]
>>  .X = 90 + (20 * x)
>>  .Y = 100
>>  .Width = 20
>>  .height = 20
>> END WITH
>> NEXT
>>
>> END
>>
>>
>> How then would one trap the events being raised by a click on one of
>> the buttons in ButtonArray[]?
>>
>> I'm assuming (a bad thing... I know) that the array 'ButtonArray'
>> persists after Form_Open completes and until the form is closed.
>>
>> --
>> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
>> Pinpoint memory and threading errors before they happen.
>> Find and fix more than 250 security defects in the development cycle.
>> Locate bottlenecks in serial and parallel code that limit performance.
>> http://p.sf.net/sfu/intel-dev2devfeb
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
> --
> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
> Pinpoint memory and threading errors before they happen.
> Find and fix more than 250 security defects in the development cycle.
> Locate bottlenecks in serial and parallel code that limit performance.
> http://p.sf.net/sfu/intel-dev2devfeb
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>


--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Arrays of controls..

2011-02-11 Thread Stephen Bungay
   Yes it worked. I'm just so used to typing PRIVATE SUB ... that I 
gapped it and then couldn't see the forest for the darn trees in the way.


On 02/11/2011 04:00 PM, EA7DFH wrote:
> El 11/02/11 21:18, Stephen Bungay escribió:
>
> 
>
>> ' This one does not trap
>> PRIVATE SUB ToggleButtons_click()
>> STOP
>> END
>>
>> the click
>> event "ToggleButtons_click" fires (this does NOT happen).
> Well, I think you *must* declare as PUBLIC this method to work.
>
> PUBLIC SUB ToggleButtons_click()
>  PRINT LAST.tag
> END
>
>
> Tell us if it worked
>
> Regards


--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Listview picture not showing...

2011-02-26 Thread Stephen Bungay
   This has undoubtedly been asked before.

GAMBAS 2.2

   I am trying to add an icon to the listview items, to that end this 
code snippet should do the trick;

Private SUB Initialize_Listview1()
   DIM Icon AS NEW Picture

   Icon.Load("/home/username/mypicture.png") ' This png file is 26x16 
and has a transparent background
   Listview1.Add("1","Entry 1", Icon)

END

   No errors generated, no picture appears in the listview. Examining 
the Icon object sees an hex value in Image and 0 width and 0 height.



--
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Listview picture not showing...

2011-03-02 Thread Stephen Bungay
   Thanks Fabien, sorry fir the delayed reply, it suddenly got really 
busy around here and this had to take a lower priority. I'll put that 
into practice.


On 02/26/2011 04:41 PM, Fabien Bodard wrote:
> 2011/2/26 Stephen Bungay:
>>This has undoubtedly been asked before.
>>
>> GAMBAS 2.2
>>
>>I am trying to add an icon to the listview items, to that end this
>> code snippet should do the trick;
>>
>> Private SUB Initialize_Listview1()
>>DIM Icon AS NEW Picture
>>
>>Icon.Load("/home/username/mypicture.png") ' This png file is 26x16
>> and has a transparent background
>>Listview1.Add("1","Entry 1", Icon)
>>
>> END
>>
>>No errors generated, no picture appears in the listview. Examining
>> the Icon object sees an hex value in Image and 0 width and 0 height.
>>
>>
>>
>> --
>> Free Software Download: Index, Search&  Analyze Logs and other IT data in
>> Real-Time with Splunk. Collect, index and harness all the fast moving IT data
>> generated by your applications, servers and devices whether physical, virtual
>> or in the cloud. Deliver compliance at lower cost and gain new business
>> insights. http://p.sf.net/sfu/splunk-dev2dev
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
> you need to do like that :
>
> Icon = Icon.load(...)
>
> or just
> Icon = Picture[...]
>
>
>
> icon.load does not set the icon internally but just return a picture object
>


--
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Listview picture not showing...

2011-03-02 Thread Stephen Bungay


On 02/26/2011 04:41 PM, Fabien Bodard wrote:
> 2011/2/26 Stephen Bungay:
>>This has undoubtedly been asked before.
>>
>> GAMBAS 2.2
>>
>>I am trying to add an icon to the listview items, to that end this
>> code snippet should do the trick;
>>
>> Private SUB Initialize_Listview1()
>>DIM Icon AS NEW Picture
>>
>>Icon.Load("/home/username/mypicture.png") ' This png file is 26x16
>> and has a transparent background
>>Listview1.Add("1","Entry 1", Icon)
>>
>> END
>>
>>No errors generated, no picture appears in the listview. Examining
>> the Icon object sees an hex value in Image and 0 width and 0 height.
>>
>>
>>
>> --
>> Free Software Download: Index, Search&  Analyze Logs and other IT data in
>> Real-Time with Splunk. Collect, index and harness all the fast moving IT data
>> generated by your applications, servers and devices whether physical, virtual
>> or in the cloud. Deliver compliance at lower cost and gain new business
>> insights. http://p.sf.net/sfu/splunk-dev2dev
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
> you need to do like that :
>
> Icon = Icon.load(...)
>
> or just
> Icon = Picture[...]
>
>
>
> icon.load does not set the icon internally but just return a picture object
>
   Excellent. Thank you for clarifying. Picture.Load not setting the 
picture is counter-intuitive.. but OK... whatever works.

--
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Drop Event not being raised... but Change is...

2011-03-07 Thread Stephen Bungay
Gambas 2.22

   I am dragging from a listview to a textarea testing drag and drop 
functionality. The interesting thing is that when I drop the item the 
text in the textarea receives it but the drop() event never fires, I can 
trap the Change() event, but not the Drop... anyone else ever run into 
this kind of behaviour?

--
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Controlling mplayer while embeded...

2011-03-08 Thread Stephen Bungay
Anyone have an example of this? I have launched mplayer using exec 
and have it in an embedder, now want to control it through push buttons.

--
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Controlling mplayer while embeded...

2011-03-08 Thread Stephen Bungay
On 03/08/2011 09:04 AM, Stephen Bungay wrote:
>  Anyone have an example of this? I have launched mplayer using exec
> and have it in an embedder, now want to control it through push buttons.
>
> --
> What You Don't Know About Data Connectivity CAN Hurt You
> This paper provides an overview of data connectivity, details
> its effect on application quality, and explores various alternative
> solutions. http://p.sf.net/sfu/progress-d2d
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
OK, successfully sending a pause command to embedded mplayer, but it 
exits as soon as it is paused.

--
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Try Catch fail when using mkdir....

2011-06-30 Thread Stephen Bungay
Hi folks!

Gambas 2.99
Fedora 14

   Using mkdir with "catch" and "finally" to create a recursive SUB to 
build a directory structure.
   The harness consists of FormMain with one big-friendly button on it, 
pretty simple. Here is all of the code;

' Gambas class file

Public Sub _new()

End

Public Sub Form_Open()

End

Private Sub CreateNewOutputFolder(psFolderSpecification As String)
   Dim sFolderSpec As String

   sFolderSpec = psFolderSpecification

   Mkdir sFolderSpec

   Finally
 Mkdir sFolderSpec

   Catch
 sFolderSpec = Mid$(psFolderSpecification, 1, 
RInStr(psFolderSpecification, ".") - 1)
 CreateNewOutputFolder(sFolderSpec)
End

Public Sub Button1_Click()

   CreateNewOutputFolder("/home/user/Rumple/Stilskin/Was/Here")

End


   What I THINK should happen is the initial mkdir should fail, the code 
in "catch" should execute and copy the passed in parameter from position 
1 to the charcter just prior to the last "/" and then call itself 
passing in the new result as the parameter. When/if that call fails (and 
it should as this folder specification doesn't exist in my home dir) it 
again recurses. This should go on until it reaches the left-most node in 
the directory structure (AFTER the "/home/user"), and THAT one 
("/home/user/Rumple) should be the first to succeed in being created. 
The call stack should then unwind, and as it does, the previous SUBS on 
the stack should execute their "Finally" section. When the stack has 
completely unwound the directory structure should exist only that is 
not what is happening.
   The first Catch doesn't execute (although the directory does not get 
created.. meaning an error did indeed occur) and it skips directly to 
the "finally". When the mkdir in the "finally" is executed  (same 
parameter string because we have not yet recursed) the error "File or 
Directory does not exist" pops up on the screen. Well there's the error 
that I expected from the initial mkdir, but the "catch" didn't execute, 
anybody got ideas?

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Try Catch fail when using mkdir....

2011-06-30 Thread Stephen Bungay
   Hi Fabien & Tobias;

Thanks for taking the time to reply and putting those SUBs together. 
Another way to do this is to simply execute a "mkdir -p " using the 
command shell, but now that the problem exists I want to figure out why 
the recursive routine is not behaving as expected.
Fabien, I thought the FINALLY did precede the CATCH within the 
function... did it not? I reprint the SUB here with two additional 
comments, a correction to a typo (thank you Tobias), and a conditional 
surrounding the Mkdir in the Finally section just in case it tries to 
make a directory that already exists and ends up going into an endless 
loop.

Private Sub CreateNewOutputFolder(psFolderSpecification As String)
   Dim sFolderSpec As String

   sFolderSpec = psFolderSpecification

   Mkdir sFolderSpec

   Finally
 If Not exists(sFolderSpec) Then
Mkdir sFolderSpec
 End If

   Catch
 sFolderSpec = Mid$(psFolderSpecification, 1, RInStr(psFolderSpecification, 
"/") - 1)
 CreateNewOutputFolder(sFolderSpec)
End




On 06/30/2011 10:09 AM, Fabien Bodard wrote:
> private sub CreateDirTree(sDir as string)
>
>dim s as string
>dim stmpDir as string = "/"
>
>if sdir begins "/" then sdir = right(sdir,-1)
>
>For each s in split(sDir, "/")
>  stmpDir&= s
>  if exist(stmpdir) then continue
>  mkdir stmpdir
>next
>
> catch
> Print "The directory "&  stmpdir&  "can't be created"
>
> end
>
>
> 2011/6/30 Fabien Bodard:
>> The FINALLY part is not mandatory. If there is a catch part in the
>> function, the FINALLY part must precede it.
>>
>> http://gambasdoc.org/help/lang/finally
>>
>> The second call will be in the catch part not in finally.
>>
>> 2011/6/30 Stephen Bungay:
>>> Hi folks!
>>>
>>> Gambas 2.99
>>> Fedora 14
>>>
>>>Using mkdir with "catch" and "finally" to create a recursive SUB to
>>> build a directory structure.
>>>The harness consists of FormMain with one big-friendly button on it,
>>> pretty simple. Here is all of the code;
>>>
>>> ' Gambas class file
>>>
>>> Public Sub _new()
>>>
>>> End
>>>
>>> Public Sub Form_Open()
>>>
>>> End
>>>
>>> Private Sub CreateNewOutputFolder(psFolderSpecification As String)
>>>Dim sFolderSpec As String
>>>
>>>sFolderSpec = psFolderSpecification
>>>
>>>Mkdir sFolderSpec
>>>
>>>Finally
>>>  Mkdir sFolderSpec
>>>
>>>Catch
>>>  sFolderSpec = Mid$(psFolderSpecification, 1,
>>> RInStr(psFolderSpecification, ".") - 1)
>>>  CreateNewOutputFolder(sFolderSpec)
>>> End
>>>
>>> Public Sub Button1_Click()
>>>
>>>CreateNewOutputFolder("/home/user/Rumple/Stilskin/Was/Here")
>>>
>>> End
>>>
>>>
>>>What I THINK should happen is the initial mkdir should fail, the code
>>> in "catch" should execute and copy the passed in parameter from position
>>> 1 to the charcter just prior to the last "/" and then call itself
>>> passing in the new result as the parameter. When/if that call fails (and
>>> it should as this folder specification doesn't exist in my home dir) it
>>> again recurses. This should go on until it reaches the left-most node in
>>> the directory structure (AFTER the "/home/user"), and THAT one
>>> ("/home/user/Rumple) should be the first to succeed in being created.
>>> The call stack should then unwind, and as it does, the previous SUBS on
>>> the stack should execute their "Finally" section. When the stack has
>>> completely unwound the directory structure should exist only that is
>>> not what is happening.
>>>The first Catch doesn't execute (although the directory does not get
>>> created.. meaning an error did indeed occur) and it skips directly to
>>> the "finally". When the mkdir in the "finally" is executed  (same
>>> parameter string because we have not yet recursed) the error "File or
>>> Directory does not exist" pops up on the screen. Well there's the error
>>> that I expected from the initial mkdir, but the "catch" didn't execute,
>>> anybody got ideas?
>>>
>>> --

Re: [Gambas-user] Try Catch fail when using mkdir....

2011-06-30 Thread Stephen Bungay
   Typo in the Finally section... "Exists(sFolderSpec)" should read 
"Exist(sFolderSpec)".

On 06/30/2011 11:58 PM, Stephen Bungay wrote:
> Hi Fabien&  Tobias;
>
>  Thanks for taking the time to reply and putting those SUBs together.
> Another way to do this is to simply execute a "mkdir -p " using the
> command shell, but now that the problem exists I want to figure out why
> the recursive routine is not behaving as expected.
>  Fabien, I thought the FINALLY did precede the CATCH within the
> function... did it not? I reprint the SUB here with two additional
> comments, a correction to a typo (thank you Tobias), and a conditional
> surrounding the Mkdir in the Finally section just in case it tries to
> make a directory that already exists and ends up going into an endless
> loop.
>
> Private Sub CreateNewOutputFolder(psFolderSpecification As String)
> Dim sFolderSpec As String
>
> sFolderSpec = psFolderSpecification
>
> Mkdir sFolderSpec
>
> Finally
>   If Not exists(sFolderSpec) Then
>  Mkdir sFolderSpec
>   End If
>
> Catch
>   sFolderSpec = Mid$(psFolderSpecification, 1, 
> RInStr(psFolderSpecification, "/") - 1)
>   CreateNewOutputFolder(sFolderSpec)
> End
>
>
>
>
> On 06/30/2011 10:09 AM, Fabien Bodard wrote:
>> private sub CreateDirTree(sDir as string)
>>
>> dim s as string
>> dim stmpDir as string = "/"
>>
>> if sdir begins "/" then sdir = right(sdir,-1)
>>
>> For each s in split(sDir, "/")
>>   stmpDir&= s
>>   if exist(stmpdir) then continue
>>   mkdir stmpdir
>> next
>>
>> catch
>> Print "The directory "&   stmpdir&   "can't be created"
>>
>> end
>>
>>
>> 2011/6/30 Fabien Bodard:
>>> The FINALLY part is not mandatory. If there is a catch part in the
>>> function, the FINALLY part must precede it.
>>>
>>> http://gambasdoc.org/help/lang/finally
>>>
>>> The second call will be in the catch part not in finally.
>>>
>>> 2011/6/30 Stephen Bungay:
>>>> Hi folks!
>>>>
>>>> Gambas 2.99
>>>> Fedora 14
>>>>
>>>> Using mkdir with "catch" and "finally" to create a recursive SUB to
>>>> build a directory structure.
>>>> The harness consists of FormMain with one big-friendly button on it,
>>>> pretty simple. Here is all of the code;
>>>>
>>>> ' Gambas class file
>>>>
>>>> Public Sub _new()
>>>>
>>>> End
>>>>
>>>> Public Sub Form_Open()
>>>>
>>>> End
>>>>
>>>> Private Sub CreateNewOutputFolder(psFolderSpecification As String)
>>>> Dim sFolderSpec As String
>>>>
>>>> sFolderSpec = psFolderSpecification
>>>>
>>>> Mkdir sFolderSpec
>>>>
>>>> Finally
>>>>   Mkdir sFolderSpec
>>>>
>>>> Catch
>>>>   sFolderSpec = Mid$(psFolderSpecification, 1,
>>>> RInStr(psFolderSpecification, ".") - 1)
>>>>   CreateNewOutputFolder(sFolderSpec)
>>>> End
>>>>
>>>> Public Sub Button1_Click()
>>>>
>>>> CreateNewOutputFolder("/home/user/Rumple/Stilskin/Was/Here")
>>>>
>>>> End
>>>>
>>>>
>>>> What I THINK should happen is the initial mkdir should fail, the code
>>>> in "catch" should execute and copy the passed in parameter from position
>>>> 1 to the charcter just prior to the last "/" and then call itself
>>>> passing in the new result as the parameter. When/if that call fails (and
>>>> it should as this folder specification doesn't exist in my home dir) it
>>>> again recurses. This should go on until it reaches the left-most node in
>>>> the directory structure (AFTER the "/home/user"), and THAT one
>>>> ("/home/user/Rumple) should be the first to succeed in being created.
>>>> The call stack should then unwind, and as it does, the previous SUBS on
>>>> the stack should execute their "Finally" section. When the stack has
>>>> completely unwound the directory structure should exist

Re: [Gambas-user] Try Catch fail when using mkdir....

2011-07-01 Thread Stephen Bungay
   Greetings Fabien!

   That works very well, and is so much smaller and cleaner than the SUB 
you put in the initial email. By the way, that first SUB would have had 
a problem creating the stmpDir folder, it would, as written, not put in 
the delimiting "/" characters and would try to create a directory 
"/homeuser_name" and fail. This was a result of using the "for each" and 
"Split", necessites the addition of a counter or a boolean variable so 
the logic knows when it is on the first pass through the loop and 
handles all other passes by using "stmpDir &= "/" & s"  instead of 
"stmpDir &= s".

On 07/01/2011 06:13 AM, Fabien Bodard wrote:
> This is the good way in your way ... but it's a bad way in my fill
>
> Private Sub CreateNewOutputFolder(sFolderSpec As String)
>
>If Not Exist(sFolderSpec) Then Mkdir sFolderSpec
>
>   Catch
>  'if problem try on the prec folder
>  CreateNewOutputFolder(File.Dir(sFolderSpec))
>  'Re Try the folder creation if all is good
>  Mkdir sFolderSpec
>
> End
>
>
> Because you can't manage correctly all the errors.
>
> --
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security
> threats, fraudulent activity, and more. Splunk takes this data and makes
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2d-c2
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>


--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Desktop.Find

2011-08-18 Thread Stephen Bungay
Hi folks! I need some help.

Gambas 2.23

Problem: Desktop.Find is not finding a window that is indeed appearing 
on the desktop. I personally can see it and it has the correct title, 
therefore it is indeed there, and hence the need for some assistance 
trying to figure out WHY Desktop.Find can't see what I seeer or 
something to that effect. Anyway

Instantiating a VLC instance using SHELL with the following procedure 
(ignore the SUB's parameter list, I have the parameters to SHELL 
hard-coded for the moment and am passing in dummy values from the 
calling SUB)
'*
'* NOTE! mpProcessHandle is declared at the class level AS Process.
'*
PUBLIC SUB PlayVideo(pFileName AS String, pPlayerTitle AS String)
   DIM aHandle AS NEW Pointer[]
   DIM iHandle AS Integer

   mpProcessHandle = SHELL "vlc --intf rc --video-title Camera0 
~/TestVideo.avi" FOR READ WRITE

   aHandle = Desktop.Find("Camera0")

   IF aHandle.count = 0 THEN
  Message.Warning("Window not found")
   ELSE
  Message.Info("Window Found")
  iHandle = aHandle[0]
  ' More to come...
   END IF
END


   Any and all help is greatly appreciated.


--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Desktop.Find

2011-08-18 Thread Stephen Bungay
On 08/18/2011 11:44 AM, Benoît Minisini wrote:
>> Hi folks! I need some help.
>>
>> Gambas 2.23
>>
>> Problem: Desktop.Find is not finding a window that is indeed appearing
>> on the desktop. I personally can see it and it has the correct title,
>> therefore it is indeed there, and hence the need for some assistance
>> trying to figure out WHY Desktop.Find can't see what I seeer or
>> something to that effect. Anyway
>>
>> Instantiating a VLC instance using SHELL with the following procedure
>> (ignore the SUB's parameter list, I have the parameters to SHELL
>> hard-coded for the moment and am passing in dummy values from the
>> calling SUB)
>> '*
>> '* NOTE! mpProcessHandle is declared at the class level AS Process.
>> '*
>> PUBLIC SUB PlayVideo(pFileName AS String, pPlayerTitle AS String)
>> DIM aHandle AS NEW Pointer[]
>> DIM iHandle AS Integer
>>
>> mpProcessHandle = SHELL "vlc --intf rc --video-title Camera0
>> ~/TestVideo.avi" FOR READ WRITE
>>
> You have to wait a little there (with SLEEP) because the vlc window will not
> be visible immediately just after you run the process.
>
> Regards,
>
Hi Benoit!

While I did not use SLEEP I did put a break point on the line that does 
the Desktop.Find, and allowed execution to proceed when  the window 
appeared. I'll try SLEEP in conjunction with the breakpoint just to 
test.  Will let you know.


--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Desktop.Find

2011-08-18 Thread Stephen Bungay
On 08/18/2011 11:56 AM, Stephen Bungay wrote:
> On 08/18/2011 11:44 AM, Benoît Minisini wrote:
>>> Hi folks! I need some help.
>>>
>>> Gambas 2.23
>>>
>>> Problem: Desktop.Find is not finding a window that is indeed appearing
>>> on the desktop. I personally can see it and it has the correct title,
>>> therefore it is indeed there, and hence the need for some assistance
>>> trying to figure out WHY Desktop.Find can't see what I seeer or
>>> something to that effect. Anyway
>>>
>>> Instantiating a VLC instance using SHELL with the following procedure
>>> (ignore the SUB's parameter list, I have the parameters to SHELL
>>> hard-coded for the moment and am passing in dummy values from the
>>> calling SUB)
>>> '*
>>> '* NOTE! mpProcessHandle is declared at the class level AS Process.
>>> '*
>>> PUBLIC SUB PlayVideo(pFileName AS String, pPlayerTitle AS String)
>>>  DIM aHandle AS NEW Pointer[]
>>>  DIM iHandle AS Integer
>>>
>>>  mpProcessHandle = SHELL "vlc --intf rc --video-title Camera0
>>> ~/TestVideo.avi" FOR READ WRITE
>>>
>> You have to wait a little there (with SLEEP) because the vlc window will not
>> be visible immediately just after you run the process.
>>
>> Regards,
>>
> Hi Benoit!
>
> While I did not use SLEEP I did put a break point on the line that does
> the Desktop.Find, and allowed execution to proceed when  the window
> appeared. I'll try SLEEP in conjunction with the breakpoint just to
> test.  Will let you know.
>
>
> --
> Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
> user administration capabilities and model configuration. Take
> the hassle out of deploying and managing Subversion and the
> tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
   The folks who wrote VLC are not *really* changing the title of the 
window, although it appears to the end-user that they are because the 
text in the drag-bar is showing "Camera0". To test the theory I changed 
the search parameter for Desktop.Find to "VLC media player" and found 
the window. Now the question is how can I get around their deception?


--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Desktop Find, embedding multiple instances of VLC... trials, tribulations, and a solution!

2011-08-19 Thread Stephen Bungay
I was trying (and have now succeeded) to embed VLC into an embedder on a 
form, then dynamically create multiple instances of that form in 
dynamically created multiple panels on a host form, or in laymen's terms 
'play as many videos as I wanted in one containing window'.

To do this I needed to spawn a video player, find it, then embed it. 
Spawning the player is no problem, and finding it should also have been 
easy since I could use the window name. The video player chosen was VLC, 
and after finding out how to uniquely set the title of the VLC window I 
ran headlong into the problem of finding that window by what I assumed 
would be it's unique name under X. This is where the trouble started, 
and I place the blame squarely on the developers of VLC, I hope this 
information helps others.

Lets say we launch VLC from a bash shell with the following;

$ vlc --intf rc --video-title Fred ~/MyVideo.avi

This places the VLC interface into Remote Control mode (--intf rc), 
allowing us to send commands to it by the the console (potentially VERY 
useful) and puts the title 'Fred' at the top of the window. Now in 
another command shell type xprop.

$ xprop

   The mouse cursor will turn to a cross-hair, move it over the VLC 
window and click on it. Have a look at the resulting output... what 
you're to looking for is WM_NAME(STRING) = "VLC media player"

   WM_NAME can be the name of the window (in this case it should be 
'Fred'), but it does not HAVE to be the same as the (visible) window 
name. The good folks who develop VLC decided to keep the value of 
WM_NAME as 'VLC media player' instead of the name that the user (me in 
this case) wanted; as a result Desktop.Find will never locate a window 
called 'Fred' because as far as it is concerned 'Fred' does not exist. 
What to do?

   As it turns out we CAN change the visible title of an X-Window on the 
fly, a little program called 'wmctrl' allows us to rename the window, 
and my first thought was "GREAT! It can set WM_NAME to the value I 
want... problem solved!". Uh... no. It turns out that 'wmctrl' does 
indeed change WM_NAME, but it does not set it to the value you pass 
in... it sets it to nothing, blank, nada, zip, zilch,... bupkus. Great, 
but... YEAH... we can work with this, here's how;

Launch VLC using the shell command, the visible window title doesn't 
matter at this time.
Use desktop.find to locate the window 'VLC media player' and hang onto 
the handle.
Use another shell command to launch wmctrl and change the visible name 
of the VLC window to whatever you desire. THIS WILL BLANK WM_NAME.
Embed the VLC window using the handle we got from desktop.find.

Because VLC will create all future instances of itself with the same 
WM_NAME, the next time you run through the above process (as long as you 
put a second or so delay in between them) you will correctly find the 
next instance created and get a handle on it (sic).



--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] controlling VLC via a virtual terminal...

2011-08-21 Thread Stephen Bungay
   Hi folks!
  I cant seem to send commands to VLC through it's remote control 
interface when started using SHELL.

Gambas 2.23

ShellString = "vlc --intf rc --video-title " & psPlayerTitle & " " & 
psFileName
mpProcessHandle = SHELL ShellString FOR READ WRITE AS "VLC"

   VLC starts up in remote control mode properly (the app reads the 
startup messages and prints them so that I can verify remote control 
interface, so I know it is ready to accept commands.  If it was in a 
'real' console one could type 'shutdown', for example (less the quotes 
of course) and VLC would kill itself. But when I put a button on the 
form and set a property to the value 'shutdown', then call a sub from 
the property assignment in order to send the message to the process like 
this;

PRINT #mpProcessHandle, Value

   Nothing happens, except that I might start to get lots of binary data 
streaming into the GAMBAS IDE console pane.

   Anyone got any ideas? I can attach the source package (it is small) 
if anyone would like to take a look.

Regards
Steve.


--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] controlling VLC via a virtual terminal...

2011-08-21 Thread Stephen Bungay
On 08/21/2011 02:12 PM, Benoît Minisini wrote:
>> Hi folks!
>>I cant seem to send commands to VLC through it's remote control
>> interface when started using SHELL.
>>
>> Gambas 2.23
>>
>> ShellString = "vlc --intf rc --video-title "&  psPlayerTitle&  " "&
>> psFileName
>> mpProcessHandle = SHELL ShellString FOR READ WRITE AS "VLC"
>>
>> VLC starts up in remote control mode properly (the app reads the
>> startup messages and prints them so that I can verify remote control
>> interface, so I know it is ready to accept commands.  If it was in a
>> 'real' console one could type 'shutdown', for example (less the quotes
>> of course) and VLC would kill itself. But when I put a button on the
>> form and set a property to the value 'shutdown', then call a sub from
>> the property assignment in order to send the message to the process like
>> this;
>>
>> PRINT #mpProcessHandle, Value
>>
>> Nothing happens, except that I might start to get lots of binary data
>> streaming into the GAMBAS IDE console pane.
>>
>> Anyone got any ideas? I can attach the source package (it is small)
>> if anyone would like to take a look.
>>
>> Regards
>> Steve.
>>
> If VLC really needs a virtual terminal, then you must use SHELL ... FOR INPUT
> OUTPUT. And why use SHELL ? You should use EXEC instead.
>
> Regards,
>
   Thanks for that Benoit, I didn't use Exec because I thought I needed 
the capabilities of SHELL. It works, but is slow to get the commands to 
the process, but then this may not be the way to do things, there may be 
a better way.

Kindest Regards
Steve.

--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Talking to a process...

2011-08-22 Thread Stephen Bungay
When sending commands to a process via PRINT the receiving process (vlc 
in this case) is reacting at a glacial/geological pace. i.e. the app 
sends "pause" to the process and it might take a minute or two to react 
to the command (if at all), definitely non-useful. Anyone else ever 
experience delays like this when talking to a process?

--
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


  1   2   >