Re: [Gambas-user] Cliboard-Problem
Norarg wrote: Hi, I have a problem with the clipboard, using ubuntu 9.10, gambas 2.13 following code works ONE time: PUBLIC SUB CLIP_B_Click() DIM S AS String DIM I AS Integer DIM TR AS Result TR = M.ReadRecord(OPVDM!tabelle, OPVDM!TBID, OPVDM!TBIDWert) IF TR.Count = 0 THEN Message.Info(Daten nicht gefunden, Ok) RETURN ENDIF Clipboard.Clear S = Datenausgabe OPVDM!betreff CRLF S = S String(75, _) CRLF S = S Left(Feld String(25, ), 25) Left(Wert String(40, ), 40) Datentyp CRLF S = S String(75, _) CRLF OPVDF.MoveFirst TR.MoveFirst FOR I = 1 TO OPVDF.Count S = S Left(OPVDF!feldbezeichnung String(25, ), 25) S = S Left(TR[OPVDF!feldname] String(50, ), 40) S = S OPVDF!feldtyp CRLF OPVDF.MoveNext NEXT S = S String(75, _) CRLF Clipboard.Copy(S) END I am sure there is no data-problem, the print of S is ok. The second time I call this procedure, I get a message in the direct-window: *QClipboard: cannot transfer data, no data available * I hope someone can help me with this. Oh, I also tried the following, to get sure nothing is wrong with the string (removed all data): PUBLIC SUB CLIP_B_Click() DIM S AS String Clipboard.Clear S = Datenausgabe CRLF S = S String(75, _) CRLF S = S Left(Feld String(25, ), 25) Left(Wert String(40, ), 40) Datentyp CRLF S = S String(75, _) CRLF S = S String(75, _) CRLF Clipboard.Copy(S) END CRLF ist just CHR(10) Same error. Thanks in advance Just put a WAIT after Clipboard.Clear and it will be ok. Clipboard.Clear WAIT Regards Les Hardy -- Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Workspace and object .Visible property
Someone will correct me if I'm wrong. Technically, the component itself is still visible. You just can't see it because the tab to which it belongs is hidden. If you need to know its visibility in that scenario, I guess you will have to check to see if its tab is the currently selected tab. Ron wrote: If you have an object on a tab of a workspace (for example a tableview object), and this tab is not selected (ie hidden behind the currently selected one), The tableviews .Visible property returns TRUE, why? Gambas 2.18.0 gb.qt Regards, Ron_2nd. -- Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] menu button events Q
I've a menu button and want to be able to detect a right mouse click over the text of the button. None of the events seem intereceptable in the usual way in code, and creating an observor on the button and using stop events dosn't seem to work either (gambas3 + qt4). Is there something special about this button? Regards Richard -- Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Workspace and object .Visible property
Someone will correct me if I'm wrong. Technically, the component itself is still visible. You just can't see it because the tab to which it belongs is hidden. If you need to know its visibility in that scenario, I guess you will have to check to see if its tab is the currently selected tab. Yes. The visible property actually means that the control is not explicitely hidden, i.e. that it will be visible if its coordinates are inside its container, and if there is no other controls or windows in front of it. Regards, -- Benoît Minisini -- Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Really dumb question about dialog forms
Hi List, My really stupid question for the week. If I create a new form with the dialog support it gets this code: Public Sub Run() As Boolean Return Not Me.ShowModal() End Public Sub btnOK_Click() Me.Close(True) End Public Sub btnCancel_Click() Me.Close End If I had a textbox on the form and wanted to return its contents, what would be the change in syntax required? Thanks in anticipation. -- Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Minimum Size of a Form
How can I ensure a resizable form does not get smaller than a certain minimum? That won't work: Public Sub Form_Resize() If Me.Width 200 Then Me.Width = 200 ' Stop Event Endif If Me.Height 180 Then Me.Height = 180 ' Stop Event Endif End ...no matter if I use Stop Event or not. Regards Werner -- Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Really dumb question about dialog forms
On Friday 11 December 2009 17:22:54 you wrote: 2009/12/11 richard terry rte...@pacific.net.au: Hi List, My really stupid question for the week. I'm sorry. You've already done that three times this week. If I had a textbox on the form and wanted to return its contents, what would be the change in syntax required? None whatsoever. Create a public variable in a common module. Set the variable from within your modal form and read it from somewhere else, such as the code that called the form, for example. Thanks in anticipation. I'll send you the bill. I've already done that and its the method I use, so no $ accrue to you, however I wondered if there was way of returning it via the modal form. BTW when replying on the list its useful ***not to snip out the guts of the question*** so that others reading your reply can make sense of it. Regards Richard -- Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Really dumb question about dialog forms
2009/12/11 richard terry rte...@pacific.net.au: BTW when replying on the list its useful ***not to snip out the guts of the question*** so that others reading your reply can make sense of it. Why put the onus on me for something that annoys only you? If you don't like the way I reply, don't read them. -- Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user