Re: [Gambas-user] class

2017-02-16 Thread Shane
I think this is my problem


  3.4. Inheritance and constructor

Contrary to all the object language I know, each class in the 
inheritance hierarchy consumes the parameters passed to the constructor.

Let's suppose we have the following inheritance tree:

|MyListBox ---inherits--> ListBox ---inherits---> Control |

  *

Control ._new() does
not exist.

  *

ListBox ._new()
takes one parameter: the parent control.

  *

MyListBox._new() takes one parameter: a name - It is just an example.

So |NEW  MyListBox| will take two 
parameters.

  *

The first will be sent to ListBox
._new().

  *

The second to MyListBox._new().

Be careful: the ListBox 
._new() will be called 
first, so that you are sure that the ListBox 
 control exists when you 
are in MyListBox._new().

Then you will create a MyListBox control this way:

hMyListBox *=* *New* *MyListBox**(*hContainer*,* "Name"*)*

So the order of arguments is the following:

  *

Mandatory arguments are consumed first, and then optional arguments
if they are available.

  *

The arguments of elder classes are specified first.

In Gambas 2.0, the order or arguments were reversed!

For example, if you have the following inheritance:

|MyForm --> Form --> Window |

with the MyForm constructor being:

|Sub _new(FirstArg As String, SecondArg as Integer, Optional ThirdArg As 
Integer) |

Note: the Form  constructor 
takes no argument, and the Window 
 constructor takes an 
optional parent argument.

The signature of the final constructor will be:

|New MyForm(FirstArg As String, SecondArg As Integer, Optional Parent As 
Control, Optional ThirdArg As Integer) |

In a more general way, the order of arguments for a three level 
inheritance tree is:

  *

Mandatory arguments of the grand-parent constructor.

  *

Mandatory arguments of the parent constructor.

  *

Mandatory arguments of the final constructor.

  *

Optional arguments of the grand-parent constructor.

  *

Optional arguments of the parent constructor.

  *

Optional arguments of the final constructor.


On 17/02/17 13:55, Benoît Minisini wrote:
> Le 17/02/2017 à 03:08, Shane a écrit :
>> Looks Like Pic1
>>
>> and then pic2
>>
>>
>>
> Which version of Gambas do you use?
>

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] class

2017-02-16 Thread Shane

here it is


On 17/02/17 13:55, Benoît Minisini wrote:

Le 17/02/2017 à 03:08, Shane a écrit :

Looks Like Pic1

and then pic2




Which version of Gambas do you use?





Gamtetris-0.0.1.tar.gz
Description: application/gzip
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] class

2017-02-16 Thread Shane
here is the code it looks like its the way I'm doing things with inheriting



On 17/02/17 13:55, Benoît Minisini wrote:
> Le 17/02/2017 à 03:08, Shane a écrit :
>> Looks Like Pic1
>>
>> and then pic2
>>
>>
>>
> Which version of Gambas do you use?
>


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] class

2017-02-16 Thread Shane
It seems i can compile it now just the signature is not updated as 
before it would just add definitions to the end if i added them as new ones



[System]
Gambas=3.9.90
OperatingSystem=Linux
Kernel=4.4.0-45-generic
Architecture=x86_64
Distribution=Linux Mint 17.2 Rafaela
Desktop=MATE
Theme=Gtk
Language=en_AU.UTF-8
Memory=3805M

[Libraries]
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+2=libgtk-x11-2.0.so.0.2400.23
GTK+3=libgtk-3.so.0.1000.8
OpenGL=libGL.so.1.2.0
Poppler=libpoppler.so.44.0.0
QT4=libQtCore.so.4.8.6
QT5=libQt5Core.so.5.2.1
SDL=libSDL-1.2.so.0.11.4
SQLite=libsqlite3.so.0.8.6

[Environment]
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-9R1w2qGsy4,guid=ca2f4b9de0de2b55e96cbd6258a62c4c
DEFAULTS_PATH=/usr/share/gconf/mate.default.path
DESKTOP_SESSION=mate
DISPLAY=:0.0
GB_GUI=gb.qt4
GDMSESSION=mate
GDM_XSERVER_LOCATION=local
GNOME_KEYRING_CONTROL=/run/user/1000/keyring-RFhy2e
GNOME_KEYRING_PID=1894
GPG_AGENT_INFO=/run/user/1000/keyring-RFhy2e/gpg:0:1
HOME=
KICAD_PATH=/usr/share/kicad
KIGITHUB=https://github.com/KiCad
LANG=en_AU.UTF-8
LOGNAME=
MANDATORY_PATH=/usr/share/gconf/mate.mandatory.path
MATE_DESKTOP_SESSION_ID=this-is-deprecated
MDMSESSION=mate
MDM_LANG=en_AU.UTF-8
MDM_XSERVER_LOCATION=local
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
PWD=
SESSION_MANAGER=local/:@/tmp/.ICE-unix/1650,unix/:/tmp/.ICE-unix/1650
SHELL=/bin/bash
SSH_AGENT_PID=1811
SSH_AUTH_SOCK=/run/user/1000/keyring-RFhy2e/ssh
TEXTDOMAIN=im-config
TEXTDOMAINDIR=/usr/share/locale/
TZ=:/etc/localtime
USER=
USERNAME=
WINDOWPATH=8
XAUTHORITY=/.Xauthority
XDG_CONFIG_DIRS=/etc/xdg/xdg-mate:/etc/xdg
XDG_CURRENT_DESKTOP=MATE
XDG_DATA_DIRS=/usr/share/mate:/usr/local/share/:/usr/share/:/usr/share/mdm/
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SESSION_COOKIE=139d2632112d070b9e811bbc561842ce-1487285321.822054-1664871980
XDG_SESSION_DESKTOP=mate
XDG_SESSION_ID=c1
XDG_VTNR=8



On 17/02/17 13:55, Benoît Minisini wrote:
> Le 17/02/2017 à 03:08, Shane a écrit :
>> Looks Like Pic1
>>
>> and then pic2
>>
>>
>>
> Which version of Gambas do you use?
>


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] class

2017-02-16 Thread Shane
yes i have tried recompiling its a sdl project

it seems like their is a backup file some where that wasn't deleted when 
the IDE crashed

but i can't find any




On 17/02/17 13:49, Jussi Lahtinen wrote:
> OK, so the signature is not updated... have you tried to recompile all from
> Gambas IDE? Is that library or regular Gambas project?
>
>
> Jussi
>
> On Fri, Feb 17, 2017 at 4:08 AM, Shane  wrote:
>
>> Looks Like Pic1
>>
>> and then pic2
>>
>>
>>
>>
>> On 17/02/17 13:04, Jussi Lahtinen wrote:
>>
>>> Looks like this..?
>>>
>>>
>>> Jussi
>>>
>>> On Fri, Feb 17, 2017 at 3:32 AM, Shane  wrote:
>>>
>>> No the ide only crashed once
 so my class declaration looks like this

 and when i try ti instantiate my class


 so no matter what i but into the class new these four variables remain

 On 17/02/17 12:15, Jussi Lahtinen wrote:

> AFAIK Gambas does not reverse your changes... do you mean the IDE
> crashes
> every time you try to make the changes?
> Can you send the source?
>
>
> Jussi
>
> On Fri, Feb 17, 2017 at 3:03 AM, Shane  wrote:
>
> So gambas ide crashed while editing source code now i can't change a
>> class _new definition it keeps
>>
>> going back to the original one i had even though i deleted the
>> definition and deleted the class file and reinstalled gambas any ideas
>>
>>
>> thanks Shane
>>
>>
>>
>> 
>> --
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>> 
 --

> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
 
 --
 Check out the vibrant tech community on one of the world's most
 engaging tech sites, SlashDot.org! http://sdm.link/slashdot
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

 
>>> --
>>> Check out the vibrant tech community on one of the world's most
>>> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>>> ___
>>> Gambas-user mailing list
>>> Gambas-user@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>>
>>
>> 
>> --
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>>
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] class

2017-02-16 Thread Benoît Minisini
Le 17/02/2017 à 03:08, Shane a écrit :
> Looks Like Pic1
>
> and then pic2
>
>
>

Which version of Gambas do you use?

-- 
Benoît Minisini

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] class

2017-02-16 Thread Jussi Lahtinen
OK, so the signature is not updated... have you tried to recompile all from
Gambas IDE? Is that library or regular Gambas project?


Jussi

On Fri, Feb 17, 2017 at 4:08 AM, Shane  wrote:

> Looks Like Pic1
>
> and then pic2
>
>
>
>
> On 17/02/17 13:04, Jussi Lahtinen wrote:
>
>> Looks like this..?
>>
>>
>> Jussi
>>
>> On Fri, Feb 17, 2017 at 3:32 AM, Shane  wrote:
>>
>> No the ide only crashed once
>>>
>>> so my class declaration looks like this
>>>
>>> and when i try ti instantiate my class
>>>
>>>
>>> so no matter what i but into the class new these four variables remain
>>>
>>> On 17/02/17 12:15, Jussi Lahtinen wrote:
>>>
 AFAIK Gambas does not reverse your changes... do you mean the IDE
 crashes
 every time you try to make the changes?
 Can you send the source?


 Jussi

 On Fri, Feb 17, 2017 at 3:03 AM, Shane  wrote:

 So gambas ide crashed while editing source code now i can't change a
> class _new definition it keeps
>
> going back to the original one i had even though i deleted the
> definition and deleted the class file and reinstalled gambas any ideas
>
>
> thanks Shane
>
>
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
> 

>>> --
>>>
 Check out the vibrant tech community on one of the world's most
 engaging tech sites, SlashDot.org! http://sdm.link/slashdot
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user

>>> 
>>> --
>>> Check out the vibrant tech community on one of the world's most
>>> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>>> ___
>>> Gambas-user mailing list
>>> Gambas-user@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>>
>>> 
>> --
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] class

2017-02-16 Thread Shane

Looks Like Pic1

and then pic2



On 17/02/17 13:04, Jussi Lahtinen wrote:

Looks like this..?


Jussi

On Fri, Feb 17, 2017 at 3:32 AM, Shane  wrote:


No the ide only crashed once

so my class declaration looks like this

and when i try ti instantiate my class


so no matter what i but into the class new these four variables remain

On 17/02/17 12:15, Jussi Lahtinen wrote:

AFAIK Gambas does not reverse your changes... do you mean the IDE crashes
every time you try to make the changes?
Can you send the source?


Jussi

On Fri, Feb 17, 2017 at 3:03 AM, Shane  wrote:


So gambas ide crashed while editing source code now i can't change a
class _new definition it keeps

going back to the original one i had even though i deleted the
definition and deleted the class file and reinstalled gambas any ideas


thanks Shane




--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user




--

Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] class

2017-02-16 Thread Jussi Lahtinen
Looks like this..?


Jussi

On Fri, Feb 17, 2017 at 3:32 AM, Shane  wrote:

> No the ide only crashed once
>
> so my class declaration looks like this
>
> and when i try ti instantiate my class
>
>
> so no matter what i but into the class new these four variables remain
>
> On 17/02/17 12:15, Jussi Lahtinen wrote:
> > AFAIK Gambas does not reverse your changes... do you mean the IDE crashes
> > every time you try to make the changes?
> > Can you send the source?
> >
> >
> > Jussi
> >
> > On Fri, Feb 17, 2017 at 3:03 AM, Shane  wrote:
> >
> >> So gambas ide crashed while editing source code now i can't change a
> >> class _new definition it keeps
> >>
> >> going back to the original one i had even though i deleted the
> >> definition and deleted the class file and reinstalled gambas any ideas
> >>
> >>
> >> thanks Shane
> >>
> >>
> >>
> >> 
> >> --
> >> Check out the vibrant tech community on one of the world's most
> >> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> >> ___
> >> Gambas-user mailing list
> >> Gambas-user@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/gambas-user
> >>
> > 
> --
> > Check out the vibrant tech community on one of the world's most
> > engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> > ___
> > Gambas-user mailing list
> > Gambas-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] class

2017-02-16 Thread Shane
No the ide only crashed once

so my class declaration looks like this

and when i try ti instantiate my class


so no matter what i but into the class new these four variables remain

On 17/02/17 12:15, Jussi Lahtinen wrote:
> AFAIK Gambas does not reverse your changes... do you mean the IDE crashes
> every time you try to make the changes?
> Can you send the source?
>
>
> Jussi
>
> On Fri, Feb 17, 2017 at 3:03 AM, Shane  wrote:
>
>> So gambas ide crashed while editing source code now i can't change a
>> class _new definition it keeps
>>
>> going back to the original one i had even though i deleted the
>> definition and deleted the class file and reinstalled gambas any ideas
>>
>>
>> thanks Shane
>>
>>
>>
>> 
>> --
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>> ___
>> Gambas-user mailing list
>> Gambas-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] class

2017-02-16 Thread Jussi Lahtinen
AFAIK Gambas does not reverse your changes... do you mean the IDE crashes
every time you try to make the changes?
Can you send the source?


Jussi

On Fri, Feb 17, 2017 at 3:03 AM, Shane  wrote:

> So gambas ide crashed while editing source code now i can't change a
> class _new definition it keeps
>
> going back to the original one i had even though i deleted the
> definition and deleted the class file and reinstalled gambas any ideas
>
>
> thanks Shane
>
>
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] class

2017-02-16 Thread Shane
So gambas ide crashed while editing source code now i can't change a 
class _new definition it keeps

going back to the original one i had even though i deleted the 
definition and deleted the class file and reinstalled gambas any ideas


thanks Shane



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] [Gambas Bug Tracker] Bug #1065: Icon does not appear in tray

2017-02-16 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1065=L21haW4-

Comment #13 by Víctor PEREZ:

Sorry I missed putting the icon on the bar
(Icon is shown in bar)



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] [Gambas Bug Tracker] Bug #1065: Icon does not appear in tray

2017-02-16 Thread bugtracker
http://gambaswiki.org/bugtracker/edit?object=BUG.1065=L21haW4-

Comment #12 by Víctor PEREZ:

Run the test project and the icon appears,
Showing this message in console,
"Sni-qt / 3372" WARN 17: 15: 39.288 void StatusNotifierItemFactory :: 
connectToSnw () Invalid interface to SNW_SERVICE
Greetings.



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Runtime Libraries in Gambas 3.9.2

2017-02-16 Thread Christof Thalhofer
I forgot something:

Am 16.02.2017 um 18:01 schrieb Christof Thalhofer:

> Development:
> 
> At development time a lib has to be defined as such (type "library" in
> the project dialog) and "vendor" has also to be defined with an unique
> name. If you compile the project, the IDE places the lib in
> 
> ~/.local/share/gambas3/lib/[vendor]/
> 
> say ...
> 
> ~/.local/share/gambas3/lib/yourname/
> 
> And all other projects can use the libs residing in
> ~/.local/share/gambas3/lib

In the other projects you can define the lib they should use in the
project dialog [Ctrl-P]. In the libraries tab there you can choose which
lib has to be included.


Alles Gute

Christof Thalhofer

-- 
Dies ist keine Signatur



signature.asc
Description: OpenPGP digital signature
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Runtime Libraries in Gambas 3.9.2

2017-02-16 Thread Christof Thalhofer
Am 16.02.2017 um 13:24 schrieb bill-lancaster:

> Have just upgraded my Gambas to 3.9.2 from a much earlier v3.
> The way libraries are managed has changed and I don't quite understand how
> the the arrangement works.
> Can someone point me to some help on this matter?

I fear there is none. If you create and use own libs you have to
distinguish between development and production.

Development:

At development time a lib has to be defined as such (type "library" in
the project dialog) and "vendor" has also to be defined with an unique
name. If you compile the project, the IDE places the lib in

~/.local/share/gambas3/lib/[vendor]/

say ...

~/.local/share/gambas3/lib/yourname/

And all other projects can use the libs residing in
~/.local/share/gambas3/lib

Production:

If you create a installation package from a library project and install
it on any system with Gambas3 on it (even your development system), the
libs will be installed in

/usr/lib/gambas3/yourname

A project which depends on a lib will search for it there.

The naming of the lib is always like that:
yourlib:1.4.gambas

Which includes the version string, so that different versions of libs
can reside together in the lib directory.


Alles Gute

Christof Thalhofer

-- 
Dies ist keine Signatur



signature.asc
Description: OpenPGP digital signature
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Runtime Libraries in Gambas 3.9.2

2017-02-16 Thread bill-lancaster
Have just upgraded my Gambas to 3.9.2 from a much earlier v3.
The way libraries are managed has changed and I don't quite understand how
the the arrangement works.
Can someone point me to some help on this matter?
Thanks



--
View this message in context: 
http://gambas.8142.n7.nabble.com/Runtime-Libraries-in-Gambas-3-9-2-tp58484.html
Sent from the gambas-user mailing list archive at Nabble.com.

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] dynamic created Menus

2017-02-16 Thread Gianluigi
Hi Tobias,
first of all I apologize to you for the late reply.
You really been kind and patient to answer in a broad and comprehensive
manner to a blockhead like me.
I confirm that you are a great and thank you very much.

Regards
Gianluigi

2017-02-16 0:45 GMT+01:00 Tobias Boege :

> On Wed, 15 Feb 2017, Gianluigi wrote:
> > Hi Tobias,
> >
> > kindly can you deepen the concept of static.
> > See attached project.
> >
>
> For reference: this is the Main routine
>
>   Public Sub Main()
> Dim cl As New Class1
>
> Print cl.myAdd(12, 12)
> Print cl.myAdd()  ' I expected zero
> Print Module1.myAdd(12, 12)
> Print Module1.myAdd() ' I expected 24
>   End
>
> and in Class1 as well as Module1 we have
>
>   Public Function myAdd(Optional a As Integer, b As Integer) As Integer
> Return (a + b)
>   End
>
> where one is a static method and the other is not.
>
> Let me first explain static vs. dynamic in general, then you'll see why the
> code prints
>
>   24
>   0
>   24
>   0
>
> You can declare variables, properties and methods as either static or
> dynamic in Gambas. If you don't declare it as static, then it's dynamic.
> If a variable is dynamic, then each object you create from the class
> receives its own separate memory region for the variable, so the value
> of the variable can be different in every object. This is usually what
> you want (hence there is no extra keyword to make things dynamic, they
> are by default, unless you make a module). If you declare a variable as
> static, you can think of the variable belonging not to an object but to
> the class itself. All objects you create from the class will share the
> same memory region for a static variable. If you modify the variable
> from one object, the change is visible in all other objects.
>
> This is what happens to variables. If you make a method static, then it
> also "belongs to the class" (not to dynamic objects), in the sense that
> you can only access static variables from a static method. Lastly a static
> property is just implemented by using the two static Property_Read() and
> Property_Write() methods, so the explanation of static methods applies
> here as well.
>
> Now about your code: the myAdd() method just calculates the sum of its
> arguments. It does not access any variables. Whether something is static
> or not only makes a difference if you access memory in your class or
> object.
>
> The attached project serves better to highlight the difference, because
> it actually *stores* values, once statically and once dynamically:
>
>   ' Main.module
>   Public Sub Main()
> Dim x, y As New Class1
> Dim u, v As New Module1
>
> x.Add(10)
> y.Add(5)
> x.Print()
> y.Print()
> Print "---"
>
> u.Add(10)
> v.Add(5)
> u.Print()
> v.Print()
>   End
>
>   ' Class1.class and Module1.module identical code
>   Public sum As Integer
>
>   Public Sub Add(a As Integer)
> sum += a
>   End
>
>   Public Sub Print()
> Print sum
>   End
>
> Output is
>
>   10
>   5
>   ---
>   15
>   15
>
> because in the first half, x and y have a dynamic sum variable, i.e. both
> objects have their own variable, whereas in the second case sum is static,
> so both additions actually go to the same region in memory and you get
> 10+5 = 15.
>
> Regards,
> Tobi
>
> --
> "There's an old saying: Don't change anything... ever!" -- Mr. Monk
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Form Top bar

2017-02-16 Thread Charlie
On the Form properties set Border to False.



-
Check out www.gambas.one 
--
View this message in context: 
http://gambas.8142.n7.nabble.com/Form-Top-bar-tp58480p58481.html
Sent from the gambas-user mailing list archive at Nabble.com.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user