Re: [Gambas-user] how to convert VB Project file to Gambas

2013-12-16 Thread //SCLPL/ Sudeep Damodar
HI All, Thank for your valuable comments .i have one doubt i have to declare one library function.im used in my vb program like this Public Declare Function StretchBlt Lib "gdi32"(ByVal hDC As Long, _ ByVal X As Long, _ ByVal Y As Long, _ ByVal nWidth As Long, _ ByVal nHeight As Long, _ ByVal hSrcD

Re: [Gambas-user] gb.logging API change

2013-12-16 Thread Sebastian Kulesz
My bad. It should be fixed in rev #6010. Please let me know! On Mon, Dec 16, 2013 at 9:55 PM, Bruce wrote: > Sebastian, > > With the new version the $(callLocation) is always returning the same > location ("Logger._call.95"). > > I stuck some debug in the Formatter to print the stack backtrace,

Re: [Gambas-user] gb.logging API change

2013-12-16 Thread Bruce
Sebastian, With the new version the $(callLocation) is always returning the same location ("Logger._call.95"). I stuck some debug in the Formatter to print the stack backtrace, here's what I get when using the Logger from "outside": Formatter.GetCallLocation.10: Formatter.GetCallLocatio

Re: [Gambas-user] Escape key while writing in a TextArea

2013-12-16 Thread Jack
Le 16/12/2013 16:10, Pino Zollo a écrit : > I need to process the Esc key while writing into a TexArea to abort a > transmission.. > > > For some weird reason the Esc key is ignored by the TextArea... > > Perhaps give you a group to your TextArea -- Cordialement Jacky Tripoteau --

Re: [Gambas-user] Escape key while writing in a TextArea

2013-12-16 Thread Jack
Le 16/12/2013 16:10, Pino Zollo a écrit : > I need to process the Esc key while writing into a TexArea to abort a > transmission.. > > > For some weird reason the Esc key is ignored by the TextArea... > Bonjour, Have you try the "esc" or "escape" code ? If Key.code = Key.Esc or If Key.code = Key

Re: [Gambas-user] R: Re: R: How to set the icon property of a form from a file in the project

2013-12-16 Thread Ru Vuott
I use Ubuntu Linux Mint 16, the icon is shown in the bar of desktop bye vuott Lun 16/12/13, Jussi Lahtinen ha scritto: Oggetto: Re: [Gambas-user] R: Re: R: How to set the icon property of a form from a file in the project A: sot...@gmail.com, "ma

[Gambas-user] R: R: Re: R: How to set the icon property of a form from a file in the project

2013-12-16 Thread Ru Vuott
Cariissimo sotema, io ho Ubuntu - Linux Mint 16 - a me l'icona appare nella barra in basso del desktop, all'interno del rettangolo relativo alla finestra del programma. ciao Vutt Lun 16/12/13, Emanuele Sottocorno ha scritto:

[Gambas-user] Escape key while writing in a TextArea

2013-12-16 Thread Pino Zollo
I need to process the Esc key while writing into a TexArea to abort a transmission.. For some weird reason the Esc key is ignored by the TextArea... Some help please... Good programming Pino -- Rapidly troubleshoot

Re: [Gambas-user] Cairo

2013-12-16 Thread Benoît Minisini
Le 16/12/2013 15:45, Pino Zollo a écrit : > More infos... > > Draw.Rect(0, 0, Rap, Draw.h) <- FScale.class line 111 > generates the error > Draw.Foreground = Color.Black > Draw.Line(Rap, 0, Rap, Draw.H) <-- also this > I think this is related to the setting of the D

[Gambas-user] Cairo

2013-12-16 Thread Pino Zollo
More infos... Draw.Rect(0, 0, Rap, Draw.h) <- FScale.class line 111 generates the error Draw.Foreground = Color.Black Draw.Line(Rap, 0, Rap, Draw.H) <-- also this -- Rapidly troubleshoot prob

Re: [Gambas-user] SteamOS and GAMBAS

2013-12-16 Thread nando
Made my day. "Other than available software, there is nothing about Windows remotely superior to GNU/Linux." - Kevin Fishburne -- Original Message --- From: Kevin Fishburne To: gambas-user@lists.sourceforge.net Sent: Sun, 15 Dec 2013 16:02:11 -0500 Subject: Re: [Gambas-user] S

Re: [Gambas-user] How to set the icon property of a form from a file in the project

2013-12-16 Thread Jesus Guardon
> I wonder if this is a fault with Precise which uses a Global menu bar. > Anybody know? As it has been said before, this is the way Unity desktop works. If you want to see your icon in the form caption, you need to switch to another desktop manager or tweak Unity (which I don't know if it is p

[Gambas-user] How to set the icon property of a form from a file in the project

2013-12-16 Thread John Rose
Re Fmain.Icon method does not cause the appearance of the icon on the caption bar of the window, but in the menu bar: Even if the form's Icon property is set in the form's definition (i.e. by browsing to the .png file in the project directory) rather than in code then it doesn't appear in the

Re: [Gambas-user] R: Re: R: How to set the icon property of a form from a file in the project

2013-12-16 Thread Jussi Lahtinen
Apparently Ubuntu doesn't use title bar icons at all. So of course then that code does nothing. Jussi On Mon, Dec 16, 2013 at 3:07 PM, Emanuele Sottocorno wrote: > I think you did not get the icon shown because ubuntu use to display the > Close, Minimize and Maximize button in the position wher

Re: [Gambas-user] gb.logging API change

2013-12-16 Thread Sebastian Kulesz
On Mon, Dec 16, 2013 at 3:15 AM, Bruce wrote: > On Mon, 2013-12-16 at 01:14 -0200, Sebastian Kulesz wrote: > > I just commited an update to the gb.logging component. Please note that a > > call to Logger.Begin() is no longer necessary and will fail. The log is > > automatically opened for writing

[Gambas-user] R: Re: R: How to set the icon property of a form from a file in the project

2013-12-16 Thread Emanuele Sottocorno
I think you did not get the icon shown because ubuntu use to display the Close, Minimize and Maximize button in the position where you should see the form.icon Inviato dal mio smartphone BlackBerry® www.blackberry.com -Original Message- From: Jussi Lahtinen Date: Mon, 16 Dec 2013 14:58

Re: [Gambas-user] R: How to set the icon property of a form from a file in the project

2013-12-16 Thread Jussi Lahtinen
In this wiki article, the calculator icon is in title/caption bar. http://en.wikipedia.org/wiki/Title_bar The code John is using should position his icon in same way. Jussi On Mon, Dec 16, 2013 at 2:55 PM, Jussi Lahtinen wrote: > Um.. no. Title bar = caption bar? Menu icons are different thing

Re: [Gambas-user] R: How to set the icon property of a form from a file in the project

2013-12-16 Thread Jussi Lahtinen
Um.. no. Title bar = caption bar? Menu icons are different thing. Jussi On Mon, Dec 16, 2013 at 2:51 PM, Ru Vuott wrote: > ehmmmFmain.Icon method does not cause the appearance of the icon on > the caption bar of the window, but in the menu bar. > > bye > vuott > > > --

[Gambas-user] R: R: How to set the icon property of a form from a file in the project

2013-12-16 Thread Ru Vuott
Excuse, rectius: Fmain.Icon "property" bye vuott Lun 16/12/13, Ru Vuott ha scritto: Oggetto: [Gambas-user] R: How to set the icon property of a form from a file in the project A: "mailing list for gambas users" Data: Lunedì 16 dicembre 2013, 1

Re: [Gambas-user] How to set the icon property of a form from a file in the project

2013-12-16 Thread Jussi Lahtinen
The code is correct. Does it get executed? Do you have error messages? Jussi On Mon, Dec 16, 2013 at 2:42 PM, John Rose wrote: > Tried: > FMain.Icon = Picture["StreamRecorder.png"] > > Still no icon on window's title bar. > > PS using Ubuntu Precise with Gambas 3.5.1 > > -- > Regards, John > >

[Gambas-user] R: How to set the icon property of a form from a file in the project

2013-12-16 Thread Ru Vuott
ehmmmFmain.Icon method does not cause the appearance of the icon on the caption bar of the window, but in the menu bar. bye vuott Lun 16/12/13, John Rose ha scritto: Oggetto: [Gambas-user] How to set the icon property of a form from a file in

[Gambas-user] How to set the icon property of a form from a file in the project

2013-12-16 Thread John Rose
Tried: FMain.Icon = Picture["StreamRecorder.png"] Still no icon on window's title bar. PS using Ubuntu Precise with Gambas 3.5.1 -- Regards, John -- Rapidly troubleshoot problems before they affect your business. Most I

Re: [Gambas-user] how to convert VB Project file to Gambas

2013-12-16 Thread Jussi Lahtinen
Prefer objects. In class file called Coordinates: XVal As Float YVal As Float laseron As String mode As String And elsewhere: Private MyCoordinates As New Coordinates Or, if you need array of coordinates: Private MyCoordinates As New Coordinates[] Jussi On Mon, Dec 16, 2013 at 8:57 AM,

[Gambas-user] How to set the icon property of a form from a file in the project

2013-12-16 Thread John Rose
Vuott, I've added the "New" word: Dim picIcon As New Picture Though I no longer got 'Null Object', the icon didn't appear on the form's title bar. -- Regards, John -- Rapidly troubleshoot problems before they affect yo

Re: [Gambas-user] How to set the icon property of a form from a file in the project

2013-12-16 Thread Kende Krisztián
2013-12-16 11:52 keltezéssel, John Rose írta: > I want to set the FMain form's icon property (in the FMain Form_Open > sub) to the picture contained in a .png file which I've added to to the > Data section (of the Gambas IDE). Here is my non-working code, which > gives 'Null Object' at runtime: >

Re: [Gambas-user] App launch icons on Ubuntu

2013-12-16 Thread Johny Provoost
op 16-12-13 11:35, John Rose schreef: Johny & Willy, Thanks for the answer. The solution is so obvious after someone tells you it (i.e. click menu entry Project -> Properties, click on the Gambas icon on tab). Johny, Re 'Manage Launcher': the implication from your message was that 'Manage

[Gambas-user] How to set the icon property of a form from a file in the project

2013-12-16 Thread John Rose
I want to set the FMain form's icon property (in the FMain Form_Open sub) to the picture contained in a .png file which I've added to to the Data section (of the Gambas IDE). Here is my non-working code, which gives 'Null Object' at runtime: Dim picIcon As Picture picIcon.Load("StreamRecor

Re: [Gambas-user] how to convert VB Project file to Gambas

2013-12-16 Thread Bruce
On Mon, 2013-12-16 at 09:55 +0100, Caveat wrote: > http://msdn.microsoft.com/en-us/library/030kb3e9%28v=vs.90%29.aspx > > That should get you pointed in the right direction... > > Kind regards, > Caveat > > On 16/12/13 07:57, //SCLPL/ Sudeep Damodar wrote: > > Hi all > > > > How to use Type in g

[Gambas-user] App launch icons on Ubuntu

2013-12-16 Thread John Rose
Johny & Willy, Thanks for the answer. The solution is so obvious after someone tells you it (i.e. click menu entry Project -> Properties, click on the Gambas icon on tab). Johny, Re 'Manage Launcher': the implication from your message was that 'Manage Launcher' is not authored by you whereas

Re: [Gambas-user] gb.db Connections questions

2013-12-16 Thread Benoît Minisini
Le 16/12/2013 06:53, Bruce a écrit : > Fiddling around under the hood > > Is there any hidden reason why Connections is readonly? > Because it is a collection of connections defined in the project, so it is read-only. > Is there any reason for it not having a Count property? Not at all. I

Re: [Gambas-user] App launch icons on Ubuntu

2013-12-16 Thread Johny Provoost
op 16-12-13 09:55, John Rose schreef: > Johny, > > Thanks for your suggestion. I installed 'Create Launcher' from the > Ubuntu Software Center. Why does it need 'Buy' when it has a zero price? > I also noticed that 'Manage Launcher' is a newer version of 'Create > launcher' with extra facilities (

Re: [Gambas-user] App launch icons on Ubuntu

2013-12-16 Thread Willy Raets
On Mon, 2013-12-16 at 08:55 +, John Rose wrote: > Johny, > > Thanks for your suggestion. I installed 'Create Launcher' from the > Ubuntu Software Center. Why does it need 'Buy' when it has a zero price? > I also noticed that 'Manage Launcher' is a newer version of 'Create > launcher' with e

Re: [Gambas-user] how to convert VB Project file to Gambas

2013-12-16 Thread Caveat
http://msdn.microsoft.com/en-us/library/030kb3e9%28v=vs.90%29.aspx That should get you pointed in the right direction... Kind regards, Caveat On 16/12/13 07:57, //SCLPL/ Sudeep Damodar wrote: > Hi all > > How to use Type in gambas.my VB Code is given below > > Private Type coordinates > XVa

[Gambas-user] App launch icons on Ubuntu

2013-12-16 Thread John Rose
Johny, Thanks for your suggestion. I installed 'Create Launcher' from the Ubuntu Software Center. Why does it need 'Buy' when it has a zero price? I also noticed that 'Manage Launcher' is a newer version of 'Create launcher' with extra facilities (I found it when searching for 'Create Launcher

[Gambas-user] Writing a text file from the contents of a text area

2013-12-16 Thread John Rose
Tobias, Thanks for your useful coding snippets. It would be good to put these into the Gambas online documentation. This might save the same questions being repeatedly asked in this mailing list! -- Regards, John -- R