Re: [Gambas-user] How I get some events ?

2012-11-08 Thread J_Mischk3
> MyArray[I] = New toolbox(FMain) as "MyBoxes" > > > public sub MyBoxes_Click() > Print Last.Name > End > > > or > MyArray[I] = New toolbox(FMain) as "MyBoxes" > MyArray[I].Tag = I > > THX, forgot the "as MyBoxes"!! -- View this message in context: http://old.nabble.com/How-I-get-s

[Gambas-user] How I get some events ?

2012-11-08 Thread J_Mischk3
Here is my problem. At runtime I create a list (better an Array ) of toolboxes depending of the size of my window. So I don't know the number of boxes. I calculate them and use something like MyArray[I] = New toolbox(FMain) After building some toolboxes, they work very well, but how can I get t

[Gambas-user] Shared Memory usefull?

2012-01-01 Thread J_Mischk3
I think, that could be a nice component for Gambas, so we can use it for quasi threading some programms. ( I see no multithreadingfeatures in gambas ) Now I want to make a new component, but the example in the documentation ( part Main-files and so on ) are simply blank. Where can I see, how to

Re: [Gambas-user] Send an Event...?

2011-10-30 Thread J_Mischk3
Fabien Bodard-4 wrote: > > > Well this what i do : > > Public sub Button_Click() > > TextBox1OnButtonClick > > End > > Private Sub TextBox1OnButtonClick() > > TextBox1.Background=color.yellow > > End > > > Hi Fabien, that's another sight of what I want, but it will work and that

Re: [Gambas-user] Send an Event...?

2011-10-30 Thread J_Mischk3
Adam Ant wrote: > > > > Translated: "The button control raises the event "Click" when the mouse > button is clicked on it. Can a textarea control observe and handle the > button's Click event?" > The literal answer is "no" because the native textarea control does not > observe events from so

Re: [Gambas-user] Send an Event...?

2011-10-30 Thread J_Mischk3
Fabien Bodard-4 wrote: > > > > really i don't understand what you want to do > > Ok, I'll try to explain. ( For some years ago I worked with a 4GL tool under Win.) My example: One Button, one Textarea. Button-click-> the button raise the "click" signal. Under this tool you could "c

[Gambas-user] Send an Event...?

2011-10-29 Thread J_Mischk3
Is it possible to send an Event to another Control? Example: Pushin a button will send an event to a textarea, so it can do some operation. Is it possible to define own events? Best regards Juergen, who like your gambas every time a little bit more. It's a great work!!! -- View this message

Re: [Gambas-user] How to get the controltypes in a form, next question!

2011-10-27 Thread J_Mischk3
Uuups, found it myself, it means Print Object.Type(C) ( How stupid ) and I get it all!!! THX Juergen -- View this message in context: http://old.nabble.com/How-to-get-the-controltypes-in-a-form-tp32731573p32732397.html Sent from the gambas-user mailing list archive at Nabble.com. --

Re: [Gambas-user] How to get the controltypes in a form, next question!

2011-10-27 Thread J_Mischk3
If I try it with this lines, I get an error. Public Sub Form_Open() Dim C As Object For Each C In Me.Children Print C.Type() Next End (Unknown symbol in class (Textbox)) How can I make it right? (Sorry, but I have'nt found anything under Class.type in the

Re: [Gambas-user] How to get the controltypes in a form

2011-10-27 Thread J_Mischk3
Thanks, that what i was looking for. Juergen -- View this message in context: http://old.nabble.com/How-to-get-the-controltypes-in-a-form-tp32731573p32732238.html Sent from the gambas-user mailing list archive at Nabble.com.

[Gambas-user] How to get the controltypes in a form

2011-10-27 Thread J_Mischk3
My idea is to scan a container(form) with several fields ( button, textarea, text and so on ) and if i can get the class of a Control, i can use special automated functions to put data from a database into it. Example: if Value in DB is 1, akticate Button But HOW is it possible to get this. EXA

Re: [Gambas-user] unattach an event ( Data on tableview )

2011-10-09 Thread J_Mischk3
> Salut, > > if TabHandle is your TableView. > > PUBLIC SUB TabHandle_Data(Row AS Integer, Column AS Integer) > TabHandle.CellData(Row, Column) > END > > THX, but one question. At which point the Data Event will be send? Juergen -- View this message in context: http://old.nabble.com

Re: [Gambas-user] unattach an event ( Data on tableview )

2011-10-08 Thread J_Mischk3
Mmm. I think the problem may be in your code. Can you show us how you read the data and fill the TableView? No problem, here it is: For i = 0 To sql2.DBResult.Max TabHandle.Rows[i].Selected = False TabHandle.Rows[i].Title = i + 1 TabHan

[Gambas-user] unattach an event ( Data on tableview )

2011-10-07 Thread J_Mischk3
If I'll to load a lot of Rows into a tableview ( > 2500 ) the time for reading this data will grow. ( 1000 needs 1 second, 5000 need nearly 1 minute ! ) Is it possible to stop the DATA event, ( and acitvate it after reading the data ) I think it will be called for every cell and that cost a lot o