[Gambas-user] Which component library uses gb.image, gb.image.effect?

2012-01-06 Thread Алексей Беспалов
Hi! Which component library uses gb.image, gb.image.effect? I want to make a application for photo editing and want to know whether the fairly good working Image.Balantse() is not worse the ShotWell? -- Alexey. -- Ridicu

[Gambas-user] gb.qt4.ext dial marks ?

2012-01-06 Thread Wally
Hello Gambas3 on OpenSuse 12.1 gambas svn evision 4393 libqt4 version 4.7.4 Slider1.Mark = TRUE --> displays tickmarks Dial1.Mark = TRUE --> nothing visible happens (see example attached project) How to display tickmarks on a gb.qt4.ext dial control ? thanks wally pg_002-0.0.1.tar.gz D

Re: [Gambas-user] Another basics

2012-01-06 Thread Randall Morgan
Perhaps this will commit me to writing a bit more every week On Fri, Jan 6, 2012 at 9:24 PM, Randall Morgan wrote: > Hi, > > I've been writing a book on Gambas though work took me away from the > project for a bit. I've decided to get back to it. I am no writer but I too > saw the need for

Re: [Gambas-user] Another basics

2012-01-06 Thread Randall Morgan
Hi, I've been writing a book on Gambas though work took me away from the project for a bit. I've decided to get back to it. I am no writer but I too saw the need for a better text on Gambas. There is a wiki but it has limited information. I've been writing this using Lyx but will post it on the we

Re: [Gambas-user] Wrap mode for gb.qt4.editor

2012-01-06 Thread Randall Morgan
There is no parallel to the enum in Gambas (I hope one will exist in the next version) so you have a couple choices. The simplest is to define Constance for the suit values. DIM Const Clubs As Integer = 0 DIM Const Diamonds As Integer = 1 An enum would help in porting C/C++ libraries to Gam

Re: [Gambas-user] File opening dialog and one more question

2012-01-06 Thread Dmitrij Malkov
Now I have modified the code. In CUnits: --- ' Gambas class file Static Private NumberOfUnits As Integer = 0 Static Private CountOfCreations As Integer = 0 Private Id As Integer 'Identity number 'constructor Public Sub _new() NumberOfUnits +

[Gambas-user] gb.qt4.ext dial marks ?

2012-01-06 Thread Wally
How to display tickmarks on a gb.qt4.ext dial control ? thx -- Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual

Re: [Gambas-user] The good old tar-1.13 is still an obstacle

2012-01-06 Thread M. Cs.
Hello Benoit! Your method doesn't work on Kubuntu 11.10. I simply cannot create Slackware package with IDE. Any other solution? Csaba 2012/1/5, Benoît Minisini : > Le 05/01/2012 17:12, M. Cs. a écrit : >> Hello, >> I simply don't know how to install tar-1.13 on Kubuntu Oneiric. The >> old method

Re: [Gambas-user] File opening dialog and one more question

2012-01-06 Thread Dmitrij Malkov
Caveat wrote: > > >> works correct without any DIM at all? > > Because HowManyUnits is a static function so you don't need to create > any instances of CUnit to be able to call that function. > > Yes. All my problem was in my messing up "DIM" and real creation of an object. Code that sati

Re: [Gambas-user] File opening dialog and one more question

2012-01-06 Thread Caveat
> works correct without any DIM at all? Because HowManyUnits is a static function so you don't need to create any instances of CUnit to be able to call that function. Regards, Caveat On Fri, 2012-01-06 at 08:04 -0800, Dmitrij Malkov wrote: > > works correct without any DIM at all?

Re: [Gambas-user] File opening dialog and one more question

2012-01-06 Thread Dmitrij Malkov
Willy Raets wrote: > > On vr, 2012-01-06 at 07:33 -0800, Dmitrij Malkov wrote: > >> I wondered that the code >> --- >> Public Sub Main() >>CUnit.HowManyUnits() >> End >> --- >> works, but the code >> --

Re: [Gambas-user] Another basics

2012-01-06 Thread M. Cs.
Hello Fabien, and I also think it would be nice to hear about how to keep the code clean. I have to rewrite the things in order to have a program without unfreed allocations. What I intend to do is to use more private variables on modules and well defined functions to access to them across the modu

Re: [Gambas-user] File opening dialog and one more question

2012-01-06 Thread Willy Raets
On vr, 2012-01-06 at 07:33 -0800, Dmitrij Malkov wrote: > I wondered that the code > --- > Public Sub Main() >CUnit.HowManyUnits() > End > --- > works, but the code > --- > P

Re: [Gambas-user] File opening dialog and one more question

2012-01-06 Thread Dmitrij Malkov
bbb888 wrote: > >> ? And why I can't create objects of class CUnits after calling >> CUnit.HowManyUnits()? > > A) Because gambas syntax doesn't allow it. > B) What in the great scheme of things has this got to do with Static? > About "B". I'm not an englishman, so, as I understood you, you a

Re: [Gambas-user] Another basics

2012-01-06 Thread Fabien Bodard
well :) i'm not a true professionnal of computing so words i use are not good. (and my english is really bad) In a class you have 3 time _Init Called only one time at the first use of the class _New Called at each NEW instantiation _Free Called when a classe is freed (when the ref to this cl

Re: [Gambas-user] File opening dialog and one more question

2012-01-06 Thread bbruen
> ? And why I can't create objects of class CUnits after calling > CUnit.HowManyUnits()? A) Because gambas syntax doesn't allow it. B) What in the great scheme of things has this got to do with Static? -- Ridiculously ea

Re: [Gambas-user] Another basics

2012-01-06 Thread Dmitrij Malkov
Hi! We have the same task, comrade! I am interesting in Gambas3's Object Oriented Programming paradigm too. I think you are right. It is good to make some small guide that will illustrate on samples language's opportunities in console without any components. How to create classes, how to inheri

[Gambas-user] Another basics

2012-01-06 Thread M. Cs.
Hello, before i take off with redesign, I'd like to check whether I'm right or not: 1. Modules are for functions and procedures. To split the program into building bricks 2. Classes for object construction. If I need an object, I'm using classes with private variables, private subs for the internal

Re: [Gambas-user] File opening dialog and one more question

2012-01-06 Thread Dmitrij Malkov
"Static" means: - For a variable, that the variable is stored in the class, not in any object. So there is only one such variable. Its value does not depend on the object. - For a method (or a property), that the method cannot use any non-static symbol (ME is NULL). - For a constant, nothing, a