Re: [Gambas-user] gambas3 printer

2014-12-29 Thread MinnesotaJon
Benoît Minisini wrote > Le 31/07/2014 19:49, Charlie Reinl a écrit : > >> > > This strange behaviour actually comes from the Qt library. I will try to > override it so that things become more logical. > > -- > Benoît Minisini I wish you could override this: There is no reliable way to print

Re: [Gambas-user] Code Editor - Cursor Tracking Problem

2013-09-24 Thread MinnesotaJon
Nige -- I haven't used Mint in a long time, I use Xubuntu, but I've had this problem before. At least for me, the problem was in the setting for Fonts/Hinting. I believe that this link will show you how to reach the "Hinting" setting in Mint: http://www.rawcomputing.co.uk/linux/linuxtips3.html

Re: [Gambas-user] Key code constant wrong?

2013-11-09 Thread MinnesotaJon
.. Wamukota wrote > The value for the key.enter constant in the 3.5.0 on my box is given as > 16777221 > > ? key.enter > 16777221 > > But, the value returned by key.code in the program is 16777220 in the > keyrelease or the keypress events which implies that I cannot check if the > key presse

Re: [Gambas-user] Feeding a DataView using data from another DataView

2013-11-12 Thread MinnesotaJon
Jose -- Remember that there is a big difference between a MouseDown event on the DataView *control*, and an Activate event on a field containing information, inside that control. -- View this message in context: http://gambas.8142.n7.nabble.com/Feeding-a-DataView-using-data-from-another-DataVie

Re: [Gambas-user] Semi-persistent pop-up form?

2013-11-12 Thread MinnesotaJon
Bruce -- You may want to try using the Desktop component, which allows you to easily switch active (top-level) windows. It seems that I can't attach a file here, on a "Reply", so I will e-mail you a small program showing how this component works. If you have two virtual desktops open, activating

Re: [Gambas-user] Key code constant wrong?

2013-11-15 Thread MinnesotaJon
Don't worry, Fabien -- we will all be dying soon! -- View this message in context: http://gambas.8142.n7.nabble.com/Key-code-constant-wrong-tp44176p44262.html Sent from the gambas-user mailing list archive at Nabble.com. ---

Re: [Gambas-user] ColumnView Sorting

2013-11-16 Thread MinnesotaJon
Hi, Nigel -- I've never used the ColumnView (or other View) to sort the data -- I always sort the arrays where I keep data, and then re-fill the ColumnView or other View, if necessary. Your question raised a point that I've never explored, so I dug into it and found that you CAN sort data in a Vi

Re: [Gambas-user] article on Gambas...

2013-11-26 Thread MinnesotaJon
ukimiku wrote > Tobias, > > congratulations! > > I read on the Gambas-Buch page that you are co-author of a book on Gambas > programming. I tried to locate it at Amazon, but no luck. Where is it > available? Does it cover Gambas 3? > > Regards, > ukimiku Hello, Ukimiku -- There is a free .PDF b

Re: [Gambas-user] shell

2013-12-02 Thread MinnesotaJon
Maybe I'm not understanding the problem, but "sudo" always wants a password, right? In which case you have to feed it a password with the Exec or Shell command. I'm not a shell script expert (just learning), but I assume that the string would look like this: Exec [system.shell, "sudo sh -c 'echo

Re: [Gambas-user] Line continuation

2013-12-07 Thread MinnesotaJon
If you are using SHELL, you can assign lines to variables. If the string continues on multiple lines, assign the text to string variables, and concatenate those variables. The example below merely shows SHELL accepting a string variable as its command string: DIM sRes as String DIM shellString

Re: [Gambas-user] Stopping a CLI program

2013-12-10 Thread MinnesotaJon
Right -- my fault! When I suggested the example "/proc/meminfo", I was just looking for any script example, to discuss using string variables in SHELL and EXEC for very long command strings. Tobias provided the coolest option to do that job. But you've pointed out that I could have chosen a bett

[Gambas-user] Possible printing bugs? (Printer.Paper; and printing multiple 1st pages)

2013-12-23 Thread MinnesotaJon
Greetings -- (I have attached a small sample Gambas3 project.) I have encountered 2 possible bugs -- OR, I just need somebody to correct me. 1. (less serious) -- When I set the property "Printer.Paper = Printer.Letter", I get an error message: " 'Printer.Paper' is not Static " This on line 51

Re: [Gambas-user] Issue 485 in gambas: 'Like' square brackets problem

2013-12-25 Thread MinnesotaJon
It appears that the problem happens if the first letter of the string being matched appears anywhere in the "Pattern" before the actual match. Your original examples were: Print "GambasIDE" Like "{alma,Gambas,szilva,GambasIDE,otto}" Output: False Print "GambasIDE" Like "{alma,GambasIDE,szilva,G

Re: [Gambas-user] how copy the screen to memory on a sdl project

2014-07-20 Thread MinnesotaJon
Hello, Jacky -- You may find it useful to go to my Wordpress blog: http://beginnersguidetogambas.com/ On the main page, you will find a list of downloads, including download #4, "4.Gambas3". This download includes a program that I wrote called "Screenshooter", which uses the Window.Screenshot m

Re: [Gambas-user] Shell sudo

2013-01-31 Thread MinnesotaJon
Thanks, Les -- I had this same problem, and you solved it for me. For other readers, here is the command adapted for Gambas3: Shell "sudo -S chmod 0777 ~/myfilename << EOF\nmypassword\nEOF" Note: "chmod 0777" is just an example of a chmod code The newline code "\n" should NOT have spaces be