[Gambas-user] About custom cursor

2010-12-11 Thread Demosthenes Koptsis
Hi in wiki says Control.Cursor (gb.qt) PROPERTY Cursor AS Cursor Use this property for assigning a custom cursor to a control. how did i do that? i tried ME.Cursor = Picture[egore911_Pointer2.png] ME.Cursor = 2 'for cross cursor but in wiki i see the Cursor has only X,Y properties. What is

[Gambas-user] Form.icon property does not work.

2010-12-11 Thread Demosthenes Koptsis
Hi, In Gambas2 2.22 rev3344 i tried the icon property but it does not work. If i set a picture in design mode or in run time with ME.Icon = Picture[icon.png] the icon is not shown up on the form. i checked also and my older projects which have an icon on the form and to them also the icon

[Gambas-user] [Fwd: Form.icon property does not work.]

2010-12-11 Thread Demosthenes Koptsis
The problem appears in run time. -- Regards, Demosthenes Koptsis. ---BeginMessage--- Hi, In Gambas2 2.22 rev3344 i tried the icon property but it does not work. If i set a picture in design mode or in run time with ME.Icon = Picture[icon.png] the icon is not shown up on the form. i

[Gambas-user] stop event and gtk

2010-12-11 Thread Emanuele Sottocorno
Hi, having the need to avoid the user closes the form before filling all fields, I try to intercept the click on the Close Button on Form Title with the following sub: Public Sub Form_Close() If (Not $bLang) Then Stop Event End under GTK the Form_Close event isn't stopped. Gambas3 rev 3355

Re: [Gambas-user] About custom cursor

2010-12-11 Thread Fabien Bodard
hCursor = NEW Cursor ( Picture AS Picture [ , X AS Integer, Y AS Integer ] ) http://gambasdoc.org/help/comp/gb.qt4/cursor/_new?env3 2010/12/11 Demosthenes Koptsis demosthen...@gmail.com: Hi in wiki says Control.Cursor (gb.qt) PROPERTY Cursor AS Cursor Use this property for assigning a

[Gambas-user] What is the use of Tag property

2010-12-11 Thread Demosthenes Koptsis
PROPERTY Tag AS Variant Returns or sets the control tag. This property is intended for the programmer and is never used by the component. It can contain any Variant value. ok but what is the use of this property? -- Regards, Demosthenes

Re: [Gambas-user] [Fwd: Form.icon property does not work.]

2010-12-11 Thread Fabien Bodard
what distrib ? ... if it's ubuntu gnome ... make sure that is not a problem with the theme. Some theme hide icon menu and/or window icon 2010/12/11 Demosthenes Koptsis demosthen...@gmail.com: The problem appears in run time. -- Regards, Demosthenes Koptsis. -- Message

Re: [Gambas-user] About custom cursor

2010-12-11 Thread Demosthenes Koptsis
thanks !!! On Sat, 2010-12-11 at 15:34 +0100, Fabien Bodard wrote: hCursor = NEW Cursor ( Picture AS Picture [ , X AS Integer, Y AS Integer ] ) http://gambasdoc.org/help/comp/gb.qt4/cursor/_new?env3 2010/12/11 Demosthenes Koptsis demosthen...@gmail.com: Hi in wiki says

Re: [Gambas-user] [Fwd: Form.icon property does not work.]

2010-12-11 Thread Demosthenes Koptsis
yes it is in ubuntu 10.04, i will check if it is the theme On Sat, 2010-12-11 at 15:36 +0100, Fabien Bodard wrote: what distrib ? ... if it's ubuntu gnome ... make sure that is not a problem with the theme. Some theme hide icon menu and/or window icon 2010/12/11 Demosthenes Koptsis

[Gambas-user] Settings with VSplit control

2010-12-11 Thread Phạm Quang Dương
Hi, How to save the layout of VSplit? I tried: SUB Form_Open() vsplit1.settings = Settings[Group/Key]; PRINT Settings[Group/Key] ' (1) PRINT vsplit1.settings ' (2) END Of course SUB Form_Close() Settings[Group/Key] = vsplit1.settings END In running, (1) and (2) are different, all numbers in

[Gambas-user] two separate groups of RadioButton same Form

2010-12-11 Thread Nicolas Koch
So I had taken a year hiatus away from the GAMBAS community due to the military and am finally back home coding again. :D I gotta tell you I really miss and love coding in GAMBAS. anyways on to my question... I have a Form and I want to have two separate groups of RadioButtons. In each group

Re: [Gambas-user] What is the use of Tag property

2010-12-11 Thread Fabien Bodard
many things ... you can embed in it any data you need withe the object... it is a variant so it can be string, numbers, objects. ex : For i = 0 to 10 hButton = New Button(ME) as Button hButton.Text = Button i hButton.Tag = i NEXT END PUBLIC SUB Button_Click() Select Case LAST.Tag

Re: [Gambas-user] two separate groups of RadioButton same Form

2010-12-11 Thread Ed Clare Kelm
Nicolas: Put each group of buttons, (or at least one group), in a frame. Ed K. Nicolas Koch wrote: So I had taken a year hiatus away from the GAMBAS community due to the military and am finally back home coding again. :D I gotta tell you I really miss and love coding in GAMBAS. anyways on

Re: [Gambas-user] two separate groups of RadioButton same Form

2010-12-11 Thread Nicolas Koch
I tried a frame in an existing program I had been working on, I just needed to redo the buttons within the frame. Very many thanks Ed. Nick On Sat, Dec 11, 2010 at 1:09 PM, Ed Clare Kelm twopil...@interisland.netwrote: Nicolas: Put each group of buttons, (or at least one group), in a

Re: [Gambas-user] stop event and gtk

2010-12-11 Thread Michael
Not sure what you mean by $bLang. In my Close button I set the Form.Tag to any value and then test for this in the form_close event. If the user closes from the Form Header the tag is not set and I can use a message box to confirm the closure. The Stop Event works ok. I am using Ubuntu 10.10

Re: [Gambas-user] What is the use of Tag property

2010-12-11 Thread Michael
If you want a practical example. I have a data form with Edit, Add and Save buttons. When I click Edit or Add I set the tag property of the form; it can be anything add edit or 1 and 2. When the Save button is clicked I then know which action to take. It's use is purely at the developer's

Re: [Gambas-user] stop event and gtk

2010-12-11 Thread Benoît Minisini
Hi, having the need to avoid the user closes the form before filling all fields, I try to intercept the click on the Close Button on Form Title with the following sub: Public Sub Form_Close() If (Not $bLang) Then Stop Event End under GTK the Form_Close event isn't stopped. Gambas3

Re: [Gambas-user] Settings with VSplit control

2010-12-11 Thread Benoît Minisini
Hi, How to save the layout of VSplit? I tried: SUB Form_Open() vsplit1.settings = Settings[Group/Key]; PRINT Settings[Group/Key] ' (1) PRINT vsplit1.settings ' (2) END Of course SUB Form_Close() Settings[Group/Key] = vsplit1.settings END In running, (1) and (2) are

Re: [Gambas-user] About StrPtr()

2010-12-11 Thread Benoît Minisini
i made an example for StrPtr, it is the next one, ' Gambas module file PUBLIC SUB Main() DIM p AS Pointer DIM s AS String p = Alloc(this is a string) 'READ #p, s s = StrPtr(p) PRINT s Free(p) END I just want to question what is the difference between 'READ #p, s s =