[Gambas-user] Tab's
how can I enter a value in a component and then press enter and have my program tab into the next component in the tab order? cheers Shane. -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Shell command formating
thanks tony this works just needs the & in front of the 1 On 08/08/17 00:30, Tony Morehen wrote: Try changing command to: command = "stm8flash -c stlinkv2 -p " & stmdevice & " -w " & path & " 2>1" On 2017-08-06 09:52 PM, Shane wrote: command = "stm8flash -c stlinkv2 -p " & stmdevice & " -w " & path -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Shell command formating
That worked great T Lee thanks On 08/08/17 00:00, T Lee Davidson wrote: On 08/06/2017 09:52 PM, Shane wrote: So again on the shell command I have this code Dim result As String Dim command As String path = File.SetExt(file_name, "ihx") command = "stm8flash -c stlinkv2 -p " & stmdevice & " -w " & path Shell command To result FMain.TextArea1.Text = result but the output is going to stdout and not the result String i know it to do with the command string but now do you set it up ? Thanks Shane.. Perhaps the output is actually going to stderr for some silly reason. Maybe try redirecting stderr to stdout: command = "stm8flash -c stlinkv2 -p " & stmdevice & " -w " & path & " 2>&1" -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Shell command
of cause missed that looking in wrong place Thanks Tony On 08/08/17 00:17, Tony Morehen wrote: Shane, I can reproduce your crash here on 3.9.2. It's cause is the line: Settings["Options/stmDevice"] = ComboBox1.Current If that line is changed to: Settings["Options/stmDevice"] = ComboBox1.Current.Text or the simpler, and in my mind preferred: Settings["Options/stmDevice"] = ComboBox1.Text The segmentation fault goes away. So the code that I'd recommend you use (I commented the code changes): Public sdevices As String Public Sub SaveOps_Click() Settings["Options/CCompCLine"] = TextBox1.Text 'to fix the crash Settings["Options/stmDevice"] = ComboBox1.Text Settings.Save() Me.Close End Public Sub Form_Open() Dim d As String TextBox1.Text = Settings["Options/CCompCLine"] Shell "stm8flash -l" To sdevices ' fill combobox with devices 'trim gets rid of the trailing "\n" 'moving Split into the loop saves an intermediate, unneeded string creation For Each d In Split(Trim(sdevices), " ", "", True) ComboBox1.Add(d) Next 'index = find selects the saved device ComboBox1.Index = ComboBox1.Find(Settings["Options/stmDevice"]) End -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Shell command formating
So again on the shell command I have this code Dim result As String Dim command As String path = File.SetExt(file_name, "ihx") command = "stm8flash -c stlinkv2 -p " & stmdevice & " -w " & path Shell command To result FMain.TextArea1.Text = result but the output is going to stdout and not the result String i know it to do with the command string but now do you set it up ? Thanks Shane.. -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Shell command
here is all the code Public sdevices As String Public Sub SaveOps_Click() Settings["Options/CCompCLine"] = TextBox1.Text Settings["Options/stmDevice"] = ComboBox1.Current 'Settings.Save() Me.Close End Public Sub Form_Open() Dim devices As String[] Dim d As String ' 'TextBox1.Text = Settings["Options/CCompCLine"] Shell "stm8flash -l" To sdevices 'sdevices = Replace(sdevices, "\n", "") ' fill combobox with devices devices = Split(sdevices, " ", "", True) For Each d In devices ComboBox1.Add(d) Next ' ComboBox1.Find(Settings["Options/stmDevice"]) Print "end" End Public Sub Button1_Click() Me.Close End and system info [System] Gambas=3.10.90 OperatingSystem=Linux Kernel=4.4.0-45-generic Architecture=x86_64 Distribution=Linux Mint 17.2 Rafaela Desktop=MATE Theme=Gtk Language=en_AU.UTF-8 Memory=3805M [Libraries] Cairo=libcairo.so.0.0.0 Cairo=libcairo.so.2.11301.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.204.0 GTK+2=libgtk-x11-2.0.so.0.2400.23 GTK+3=libgtk-3.so.0.1000.8 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.44.0.0 QT4=libQtCore.so.4.8.6 QT5=libQt5Core.so.5.2.1 QT5=libQt5Core.so.5.8.0 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-o3iPH8ksHu,guid=7e7674d387bd0d61a1434e3e5987a82c DEFAULTS_PATH=/usr/share/gconf/mate.default.path DESKTOP_SESSION=mate DISPLAY=:0.0 GB_GUI=gb.qt4 GDMSESSION=mate GDM_XSERVER_LOCATION=local GNOME_KEYRING_CONTROL=/run/user/1000/keyring-NMrGUV GNOME_KEYRING_PID=2227 GPG_AGENT_INFO=/run/user/1000/keyring-NMrGUV/gpg:0:1 HOME= KICAD_PATH=/usr/share/kicad KIGITHUB=https://github.com/KiCad LANG=en_AU.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/mate.mandatory.path MATE_DESKTOP_SESSION_ID=this-is-deprecated MDMSESSION=mate MDM_LANG=en_AU.UTF-8 MDM_XSERVER_LOCATION=local PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games PWD= SESSION_MANAGER=local/:@/tmp/.ICE-unix/1540,unix/:/tmp/.ICE-unix/1540 SHELL=/bin/bash SSH_AGENT_PID=2046 SSH_AUTH_SOCK=/run/user/1000/keyring-NMrGUV/ssh TEXTDOMAIN=im-config TEXTDOMAINDIR=/usr/share/locale/ TZ=:/etc/localtime USER= USERNAME= WINDOWPATH=8 XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-mate:/etc/xdg XDG_CURRENT_DESKTOP=MATE XDG_DATA_DIRS=/usr/share/mate:/usr/local/share/:/usr/share/:/usr/share/mdm/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SESSION_COOKIE=139d2632112d070b9e811bbc561842ce-1502062630.656915-940133850 XDG_SESSION_DESKTOP=mate XDG_SESSION_ID=c1 XDG_VTNR=8 On 07/08/17 11:29, Jussi Lahtinen wrote: Is that all the code in the form? Can you give your system information? Jussi On Mon, Aug 7, 2017 at 3:35 AM, Shane <buster6se...@gmail.com> wrote: Hi Jussi I gave that a try by commenting that line out still the same result so that not the problem On 06/08/17 22:17, Jussi Lahtinen wrote: I guess settings component can't handle saving of arbitrary object. In this case "Settings["Options/stmDevice"] = ComboBox1.Current". Maybe you want to save ComboBox1.Current.Text? However there shouldn't be segfault. Jussi On Sun, Aug 6, 2017 at 7:18 AM, Shane <buster6se...@gmail.com> wrote: I have this in a sub form Public sdevices As String Public Sub SaveOps_Click() Settings["Options/CCompCLine"] = TextBox1.Text Settings["Options/stmDevice"] = ComboBox1.Current 'Settings.Save() Me.Close End Public Sub Form_Open() Dim devices As String[] Dim d As String ' TextBox1.Text = Settings["Options/CCompCLine"] Shell "stm8flash -l" To sdevices ' fill combobox with devices devices = Split(sdevices, " ") For Each d In devices ComboBox1.Add(d) Next ' ComboBox1.Find(Settings["Options/stmDevice"]) End but when I exit this form and then the main form i get s Seg fault but with the shell part commented out it is ok what am i doing wrong ? any ideas Thanks Shane -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -
Re: [Gambas-user] Shell command
Same thing here is a file with the output On 07/08/17 11:10, Tony Morehen wrote: what is the output of the shell line? If you could post the complete output, we could properly test your code. You could try this line: devices = Split(sdevices, " ", "", True) On 2017-08-06 08:35 PM, Shane wrote: Hi Jussi I gave that a try by commenting that line out still the same result so that not the problem On 06/08/17 22:17, Jussi Lahtinen wrote: I guess settings component can't handle saving of arbitrary object. In this case "Settings["Options/stmDevice"] = ComboBox1.Current". Maybe you want to save ComboBox1.Current.Text? However there shouldn't be segfault. Jussi On Sun, Aug 6, 2017 at 7:18 AM, Shane <buster6se...@gmail.com> wrote: I have this in a sub form Public sdevices As String Public Sub SaveOps_Click() Settings["Options/CCompCLine"] = TextBox1.Text Settings["Options/stmDevice"] = ComboBox1.Current 'Settings.Save() Me.Close End Public Sub Form_Open() Dim devices As String[] Dim d As String ' TextBox1.Text = Settings["Options/CCompCLine"] Shell "stm8flash -l" To sdevices ' fill combobox with devices devices = Split(sdevices, " ") For Each d In devices ComboBox1.Add(d) Next ' ComboBox1.Find(Settings["Options/stmDevice"]) End but when I exit this form and then the main form i get s Seg fault but with the shell part commented out it is ok what am i doing wrong ? any ideas Thanks Shane -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user stlux???a stm8af526? stm8af528? stm8af52a? stm8af6213 stm8af6223 stm8af6223a stm8af6226 stm8af624? stm8af6266 stm8af6268 stm8af6269 stm8af628? stm8af62a? stm8al313? stm8al314? stm8al316? stm8al3l4? stm8al3l6? stm8l051f3 stm8l052c6 stm8l052r8 stm8l101f1 stm8l101?2 stm8l101?3 stm8l151?2 stm8l151?3 stm8l151?4 stm8l151?6 stm8l151?8 stm8l152?4 stm8l152?6 stm8l152?8 stm8l162?8 stm8s003?3 stm8s005?6 stm8s007c8 stm8s103f2 stm8s103?3 stm8s105?4 stm8s105?6 stm8s207c8 stm8s207cb stm8s207k8 stm8s207m8 stm8s207mb stm8s207r8 stm8s207rb stm8s207s8 stm8s207sb stm8s207?6 stm8s208c6 stm8s208s6 stm8s208?8 stm8s208?b stm8s903?3 stm8splnb1 stm8tl5??4 stnrg???a -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Shell command
Hi Jussi I gave that a try by commenting that line out still the same result so that not the problem On 06/08/17 22:17, Jussi Lahtinen wrote: I guess settings component can't handle saving of arbitrary object. In this case "Settings["Options/stmDevice"] = ComboBox1.Current". Maybe you want to save ComboBox1.Current.Text? However there shouldn't be segfault. Jussi On Sun, Aug 6, 2017 at 7:18 AM, Shane <buster6se...@gmail.com> wrote: I have this in a sub form Public sdevices As String Public Sub SaveOps_Click() Settings["Options/CCompCLine"] = TextBox1.Text Settings["Options/stmDevice"] = ComboBox1.Current 'Settings.Save() Me.Close End Public Sub Form_Open() Dim devices As String[] Dim d As String ' TextBox1.Text = Settings["Options/CCompCLine"] Shell "stm8flash -l" To sdevices ' fill combobox with devices devices = Split(sdevices, " ") For Each d In devices ComboBox1.Add(d) Next ' ComboBox1.Find(Settings["Options/stmDevice"]) End but when I exit this form and then the main form i get s Seg fault but with the shell part commented out it is ok what am i doing wrong ? any ideas Thanks Shane -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Shell command
I have this in a sub form Public sdevices As String Public Sub SaveOps_Click() Settings["Options/CCompCLine"] = TextBox1.Text Settings["Options/stmDevice"] = ComboBox1.Current 'Settings.Save() Me.Close End Public Sub Form_Open() Dim devices As String[] Dim d As String ' TextBox1.Text = Settings["Options/CCompCLine"] Shell "stm8flash -l" To sdevices ' fill combobox with devices devices = Split(sdevices, " ") For Each d In devices ComboBox1.Add(d) Next ' ComboBox1.Find(Settings["Options/stmDevice"]) End but when I exit this form and then the main form i get s Seg fault but with the shell part commented out it is ok what am i doing wrong ? any ideas Thanks Shane -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] mediaplayer
I think there might be a bug in the mediaplayer as the event mediaplayer_Progress Event is never raised -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] reading files
Hi tony I think i found a small bug in your code when reading mp3 files with no version 2 tag this function gets a end of stream error Public Function ReadBytes(Count As Integer) As Byte[] Dim res As New Byte[Count] res.Read($Stream) Return res End In the StreamReader Class don't know if you want to do any thing about it ? regards Shane On 21/07/17 04:50, Tony Morehen wrote: Audio or development On 2017-07-20 02:40 PM, Hans Lehmann wrote: Am 20.07.2017 um 20:27 schrieb Tony Morehen: I've uploaded the class with a short command line demo to the software farm. Hello Tony, under which heading can I find the class in the software farm? Honsek -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] reading files
with the code i was trying to adapt you can't i was getting strange values eg. a struct size of 208 when it was meant to be 128 and for some strange reason get end of file when seeking to eof less header even if i backed up more than the 208 bytes i can see that tony didn't right it i should of said did he convert it to gambas ? i think this should be in the farm ? On 20/07/17 21:04, Gianluigi wrote: 2017-07-20 12:09 GMT+02:00 Shane <buster6se...@gmail.com>: yep can't use structs have to do like tony's code works perfect thanks again tony h are you sure? p.s is this your code ? No, but you can easily see who wrote it :) On 20/07/17 19:56, Gianluigi wrote: Right ... and a look here too [0] Ciao :) Gianluigi [0] http://www.gambas-it.org/smf/index.php?topic=5794.msg41793#msg41793 2017-07-20 3:15 GMT+02:00 Shane <buster6se...@gmail.com>: thanks tony sounds like just what i needed i will take a look cheers On 19/07/17 22:34, Tony Morehen wrote: I've attached an archive containing the code I use to read v1 and v2 MP3 tags and other MP3 info including bitrates (fixed and VBR), sampling rates and number of channels. v1 tags are pretty staightforward to read if you don't try to read the structure directly, but by each element of the structure at a time. Some tips: 1) Numeric elements (bytes, bytearrays, shorts, integers, longs) can be read directly from the stream. ie (4 byte Integer) = Read #Stream As Integer. Gambas can handle little endian/big endian issues. 2) Fixed length strings must be handled in a two stage process. First, the required string length number of bytes is read into a byte array. This byte array is then converted to a string. Sample code: Dim Bytes As New Byte[StringLength] Bytes.Read(Stream) FixedString = Bytes.ToString() Note: Bytes.ToString stops the string conversion at the first null or at the end of the array. Therfore, you don't have to worry about null-terminated strings. v2 tags are more complicated, particularly since the tags can be ascii, either kind of utf16, or utf8 encoding. The code I sent has been tested with over 10,000 mp3 files has seems to have no issues. On 2017-07-19 12:33 AM, Shane wrote: thank you Gian i did take a rest and read but alas it did not help as far as i see it he is saying don't use binary file for fixed length strings but as this is an mp3 file tag witch i have no control i am doomed On 18/07/17 19:22, Gianluigi wrote: Why do not you take a moment of rest and read what Tobias Boege recommend me in the discussion [0] I told you here [1]? [0] http://gambas.8142.n7.nabble.com/Random-access-files-with-fi xed-length-string-td50880.html [1] http://gambas.8142.n7.nabble.com/vb-code-td59764.html 2017-07-18 9:04 GMT+02:00 Shane <buster6se...@gmail.com>: I am very confused from the docs _Variable_ *= READ* [ *#* _Stream_ ] *AS* _Datatype_ _Variable_ *= READ* [ *#* _Stream_ *,* ] _Length_ so wouldn't it be_ _ IDtag = read #hfile as ID3v1_TAG ? with doesn't work by the way On 18/07/17 12:44, nand...@nothingsimple.com wrote: I think Read #hfile, IDtag, ID3v1_TAG should be Read #hfile, IDtag as ID3v1_TAG -- Open WebMail Project (http://openwebmail.org) -- Original Message --- From: Shane <buster6se...@gmail.com> To: gambas-user@lists.sourceforge.net Sent: Tue, 18 Jul 2017 10:50:43 +1000 Subject: Re: [Gambas-user] reading files i don't know what i am doing wrong Public Struct ID3v1_TAG '(128 bytes) Tag[3] As String 'always TAG Title[30] As String 'title, 30 characters Artist[30] As String 'artist, 30 characters Album[30] As String 'album, 30 characters Year[4] As String 'year, 4 characters Comment[30] As String 'comment, 30 characters (or 28 if track# included) Genre As Byte 'genre, 255 for none defined End Struct Private Sub GetID3v1(File As String) Dim IDtag As ID3v1_TAG Dim hfile As File hfile = Open File For Read ' 'read the tag ' seek to end of less tag size Read #hfile, IDtag, ID3v1_TAG here i get IDtag is NULL On 18/07/17 05:05, nand...@nothingsimple.com wrote: Yes it is possible, I do it. here is some code (incomplete) -Nando (Canada) ' top of class file Public Struct recstruc _a as integer _b as integer _c as integer end struct ' a function public function openAfile(filename as string) as file dim hfile as file dim arec as recstruc hfile = open filename for read write create with arec 'some values to write. ._a = 1 ._b = 22 ._c = 333 end with write #hfile, arec as recstruc 'if you position the hfile pointer back to zero, you can... read #hfile, arec as recstruc close #hfile end -- Op
Re: [Gambas-user] reading files
yep can't use structs have to do like tony's code works perfect thanks again tony p.s is this your code ? On 20/07/17 19:56, Gianluigi wrote: Right ... and a look here too [0] Ciao :) Gianluigi [0] http://www.gambas-it.org/smf/index.php?topic=5794.msg41793#msg41793 2017-07-20 3:15 GMT+02:00 Shane <buster6se...@gmail.com>: thanks tony sounds like just what i needed i will take a look cheers On 19/07/17 22:34, Tony Morehen wrote: I've attached an archive containing the code I use to read v1 and v2 MP3 tags and other MP3 info including bitrates (fixed and VBR), sampling rates and number of channels. v1 tags are pretty staightforward to read if you don't try to read the structure directly, but by each element of the structure at a time. Some tips: 1) Numeric elements (bytes, bytearrays, shorts, integers, longs) can be read directly from the stream. ie (4 byte Integer) = Read #Stream As Integer. Gambas can handle little endian/big endian issues. 2) Fixed length strings must be handled in a two stage process. First, the required string length number of bytes is read into a byte array. This byte array is then converted to a string. Sample code: Dim Bytes As New Byte[StringLength] Bytes.Read(Stream) FixedString = Bytes.ToString() Note: Bytes.ToString stops the string conversion at the first null or at the end of the array. Therfore, you don't have to worry about null-terminated strings. v2 tags are more complicated, particularly since the tags can be ascii, either kind of utf16, or utf8 encoding. The code I sent has been tested with over 10,000 mp3 files has seems to have no issues. On 2017-07-19 12:33 AM, Shane wrote: thank you Gian i did take a rest and read but alas it did not help as far as i see it he is saying don't use binary file for fixed length strings but as this is an mp3 file tag witch i have no control i am doomed On 18/07/17 19:22, Gianluigi wrote: Why do not you take a moment of rest and read what Tobias Boege recommend me in the discussion [0] I told you here [1]? [0] http://gambas.8142.n7.nabble.com/Random-access-files-with-fi xed-length-string-td50880.html [1] http://gambas.8142.n7.nabble.com/vb-code-td59764.html 2017-07-18 9:04 GMT+02:00 Shane <buster6se...@gmail.com>: I am very confused from the docs _Variable_ *= READ* [ *#* _Stream_ ] *AS* _Datatype_ _Variable_ *= READ* [ *#* _Stream_ *,* ] _Length_ so wouldn't it be_ _ IDtag = read #hfile as ID3v1_TAG ? with doesn't work by the way On 18/07/17 12:44, nand...@nothingsimple.com wrote: I think Read #hfile, IDtag, ID3v1_TAG should be Read #hfile, IDtag as ID3v1_TAG -- Open WebMail Project (http://openwebmail.org) -- Original Message --- From: Shane <buster6se...@gmail.com> To: gambas-user@lists.sourceforge.net Sent: Tue, 18 Jul 2017 10:50:43 +1000 Subject: Re: [Gambas-user] reading files i don't know what i am doing wrong Public Struct ID3v1_TAG '(128 bytes) Tag[3] As String 'always TAG Title[30] As String 'title, 30 characters Artist[30] As String 'artist, 30 characters Album[30] As String 'album, 30 characters Year[4] As String 'year, 4 characters Comment[30] As String 'comment, 30 characters (or 28 if track# included) Genre As Byte 'genre, 255 for none defined End Struct Private Sub GetID3v1(File As String) Dim IDtag As ID3v1_TAG Dim hfile As File hfile = Open File For Read ' 'read the tag ' seek to end of less tag size Read #hfile, IDtag, ID3v1_TAG here i get IDtag is NULL On 18/07/17 05:05, nand...@nothingsimple.com wrote: Yes it is possible, I do it. here is some code (incomplete) -Nando (Canada) ' top of class file Public Struct recstruc _a as integer _b as integer _c as integer end struct ' a function public function openAfile(filename as string) as file dim hfile as file dim arec as recstruc hfile = open filename for read write create with arec 'some values to write. ._a = 1 ._b = 22 ._c = 333 end with write #hfile, arec as recstruc 'if you position the hfile pointer back to zero, you can... read #hfile, arec as recstruc close #hfile end -- Open WebMail Project (http://openwebmail.org) -- Original Message --- From: T Lee Davidson <t.lee.david...@gmail.com> To: gambas-user@lists.sourceforge.net Sent: Sun, 16 Jul 2017 12:42:35 -0400 Subject: Re: [Gambas-user] reading files On 07/16/2017 06:57 AM, Shane wrote: given this example PRIVATE SUB BinaryRead(FilePath AS String) DIM binaryFile AS File DIM i AS Integer DIM b AS Byte DIM s AS Short DIM s1 AS String DIM s2 AS String ' Read binary file binaryFile = OPEN FilePath FOR READ READ #b
Re: [Gambas-user] reading files
thanks tony sounds like just what i needed i will take a look cheers On 19/07/17 22:34, Tony Morehen wrote: I've attached an archive containing the code I use to read v1 and v2 MP3 tags and other MP3 info including bitrates (fixed and VBR), sampling rates and number of channels. v1 tags are pretty staightforward to read if you don't try to read the structure directly, but by each element of the structure at a time. Some tips: 1) Numeric elements (bytes, bytearrays, shorts, integers, longs) can be read directly from the stream. ie (4 byte Integer) = Read #Stream As Integer. Gambas can handle little endian/big endian issues. 2) Fixed length strings must be handled in a two stage process. First, the required string length number of bytes is read into a byte array. This byte array is then converted to a string. Sample code: Dim Bytes As New Byte[StringLength] Bytes.Read(Stream) FixedString = Bytes.ToString() Note: Bytes.ToString stops the string conversion at the first null or at the end of the array. Therfore, you don't have to worry about null-terminated strings. v2 tags are more complicated, particularly since the tags can be ascii, either kind of utf16, or utf8 encoding. The code I sent has been tested with over 10,000 mp3 files has seems to have no issues. On 2017-07-19 12:33 AM, Shane wrote: thank you Gian i did take a rest and read but alas it did not help as far as i see it he is saying don't use binary file for fixed length strings but as this is an mp3 file tag witch i have no control i am doomed On 18/07/17 19:22, Gianluigi wrote: Why do not you take a moment of rest and read what Tobias Boege recommend me in the discussion [0] I told you here [1]? [0] http://gambas.8142.n7.nabble.com/Random-access-files-with-fixed-length-string-td50880.html [1] http://gambas.8142.n7.nabble.com/vb-code-td59764.html 2017-07-18 9:04 GMT+02:00 Shane <buster6se...@gmail.com>: I am very confused from the docs _Variable_ *= READ* [ *#* _Stream_ ] *AS* _Datatype_ _Variable_ *= READ* [ *#* _Stream_ *,* ] _Length_ so wouldn't it be_ _ IDtag = read #hfile as ID3v1_TAG ? with doesn't work by the way On 18/07/17 12:44, nand...@nothingsimple.com wrote: I think Read #hfile, IDtag, ID3v1_TAG should be Read #hfile, IDtag as ID3v1_TAG -- Open WebMail Project (http://openwebmail.org) -- Original Message --- From: Shane <buster6se...@gmail.com> To: gambas-user@lists.sourceforge.net Sent: Tue, 18 Jul 2017 10:50:43 +1000 Subject: Re: [Gambas-user] reading files i don't know what i am doing wrong Public Struct ID3v1_TAG '(128 bytes) Tag[3] As String 'always TAG Title[30] As String 'title, 30 characters Artist[30] As String 'artist, 30 characters Album[30] As String 'album, 30 characters Year[4] As String 'year, 4 characters Comment[30] As String 'comment, 30 characters (or 28 if track# included) Genre As Byte 'genre, 255 for none defined End Struct Private Sub GetID3v1(File As String) Dim IDtag As ID3v1_TAG Dim hfile As File hfile = Open File For Read ' 'read the tag ' seek to end of less tag size Read #hfile, IDtag, ID3v1_TAG here i get IDtag is NULL On 18/07/17 05:05, nand...@nothingsimple.com wrote: Yes it is possible, I do it. here is some code (incomplete) -Nando (Canada) ' top of class file Public Struct recstruc _a as integer _b as integer _c as integer end struct ' a function public function openAfile(filename as string) as file dim hfile as file dim arec as recstruc hfile = open filename for read write create with arec 'some values to write. ._a = 1 ._b = 22 ._c = 333 end with write #hfile, arec as recstruc 'if you position the hfile pointer back to zero, you can... read #hfile, arec as recstruc close #hfile end -- Open WebMail Project (http://openwebmail.org) -- Original Message --- From: T Lee Davidson <t.lee.david...@gmail.com> To: gambas-user@lists.sourceforge.net Sent: Sun, 16 Jul 2017 12:42:35 -0400 Subject: Re: [Gambas-user] reading files On 07/16/2017 06:57 AM, Shane wrote: given this example PRIVATE SUB BinaryRead(FilePath AS String) DIM binaryFile AS File DIM i AS Integer DIM b AS Byte DIM s AS Short DIM s1 AS String DIM s2 AS String ' Read binary file binaryFile = OPEN FilePath FOR READ READ #binaryFile, i READ #binaryFile, b READ #binaryFile, s READ #binaryFile, s1 READ #binaryFile, s2 CLOSE #binaryFile ' Display results PRINT i PRINT b PRINT s PRINT s1 PRINT s2 END is there a way for gambas to read a struct of all these variables in one read ? You may have hinted at the solution wi
Re: [Gambas-user] reading files
thank you Gian i did take a rest and read but alas it did not help as far as i see it he is saying don't use binary file for fixed length strings but as this is an mp3 file tag witch i have no control i am doomed On 18/07/17 19:22, Gianluigi wrote: Why do not you take a moment of rest and read what Tobias Boege recommend me in the discussion [0] I told you here [1]? [0] http://gambas.8142.n7.nabble.com/Random-access-files-with-fixed-length-string-td50880.html [1] http://gambas.8142.n7.nabble.com/vb-code-td59764.html 2017-07-18 9:04 GMT+02:00 Shane <buster6se...@gmail.com>: I am very confused from the docs _Variable_ *= READ* [ *#* _Stream_ ] *AS* _Datatype_ _Variable_ *= READ* [ *#* _Stream_ *,* ] _Length_ so wouldn't it be_ _ IDtag = read #hfile as ID3v1_TAG ? with doesn't work by the way On 18/07/17 12:44, nand...@nothingsimple.com wrote: I think Read #hfile, IDtag, ID3v1_TAG should be Read #hfile, IDtag as ID3v1_TAG -- Open WebMail Project (http://openwebmail.org) -- Original Message --- From: Shane <buster6se...@gmail.com> To: gambas-user@lists.sourceforge.net Sent: Tue, 18 Jul 2017 10:50:43 +1000 Subject: Re: [Gambas-user] reading files i don't know what i am doing wrong Public Struct ID3v1_TAG '(128 bytes) Tag[3] As String 'always TAG Title[30] As String 'title, 30 characters Artist[30] As String 'artist, 30 characters Album[30] As String 'album, 30 characters Year[4] As String 'year, 4 characters Comment[30] As String 'comment, 30 characters (or 28 if track# included) Genre As Byte 'genre, 255 for none defined End Struct Private Sub GetID3v1(File As String) Dim IDtag As ID3v1_TAG Dim hfile As File hfile = Open File For Read ' 'read the tag ' seek to end of less tag size Read #hfile, IDtag, ID3v1_TAG here i get IDtag is NULL On 18/07/17 05:05, nand...@nothingsimple.com wrote: Yes it is possible, I do it. here is some code (incomplete) -Nando (Canada) ' top of class file Public Struct recstruc _a as integer _b as integer _c as integer end struct ' a function public function openAfile(filename as string) as file dim hfile as file dim arec as recstruc hfile = open filename for read write create with arec 'some values to write. ._a = 1 ._b = 22 ._c = 333 end with write #hfile, arec as recstruc 'if you position the hfile pointer back to zero, you can... read #hfile, arec as recstruc close #hfile end -- Open WebMail Project (http://openwebmail.org) -- Original Message --- From: T Lee Davidson <t.lee.david...@gmail.com> To: gambas-user@lists.sourceforge.net Sent: Sun, 16 Jul 2017 12:42:35 -0400 Subject: Re: [Gambas-user] reading files On 07/16/2017 06:57 AM, Shane wrote: given this example PRIVATE SUB BinaryRead(FilePath AS String) DIM binaryFile AS File DIM i AS Integer DIM b AS Byte DIM s AS Short DIM s1 AS String DIM s2 AS String ' Read binary file binaryFile = OPEN FilePath FOR READ READ #binaryFile, i READ #binaryFile, b READ #binaryFile, s READ #binaryFile, s1 READ #binaryFile, s2 CLOSE #binaryFile ' Display results PRINT i PRINT b PRINT s PRINT s1 PRINT s2 END is there a way for gambas to read a struct of all these variables in one read ? You may have hinted at the solution within your question. Have you considered using a Structure? http://gambaswiki.org/wiki/lang/read : "... reads the stream Stream as binary data whose type is specified by the Datatype argument." "The returned datatype can be one of the following: NULL, Boolean, Byte, Short, Integer, Long, Pointer, Single, Float, Date, String, Variant, any Array, Collection or structure." http://gambaswiki.org/wiki/lang/structdecl -- Lee -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user --- End of Original Message --- -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Check out the vibrant tec
Re: [Gambas-user] reading files
I am very confused from the docs _Variable_ *= READ* [ *#* _Stream_ ] *AS* _Datatype_ _Variable_ *= READ* [ *#* _Stream_ *,* ] _Length_ so wouldn't it be_ _ IDtag = read #hfile as ID3v1_TAG ? with doesn't work by the way On 18/07/17 12:44, nand...@nothingsimple.com wrote: I think Read #hfile, IDtag, ID3v1_TAG should be Read #hfile, IDtag as ID3v1_TAG -- Open WebMail Project (http://openwebmail.org) -- Original Message --- From: Shane <buster6se...@gmail.com> To: gambas-user@lists.sourceforge.net Sent: Tue, 18 Jul 2017 10:50:43 +1000 Subject: Re: [Gambas-user] reading files i don't know what i am doing wrong Public Struct ID3v1_TAG '(128 bytes) Tag[3] As String 'always TAG Title[30] As String 'title, 30 characters Artist[30] As String 'artist, 30 characters Album[30] As String 'album, 30 characters Year[4] As String 'year, 4 characters Comment[30] As String 'comment, 30 characters (or 28 if track# included) Genre As Byte 'genre, 255 for none defined End Struct Private Sub GetID3v1(File As String) Dim IDtag As ID3v1_TAG Dim hfile As File hfile = Open File For Read ' 'read the tag ' seek to end of less tag size Read #hfile, IDtag, ID3v1_TAG here i get IDtag is NULL On 18/07/17 05:05, nand...@nothingsimple.com wrote: Yes it is possible, I do it. here is some code (incomplete) -Nando (Canada) ' top of class file Public Struct recstruc _a as integer _b as integer _c as integer end struct ' a function public function openAfile(filename as string) as file dim hfile as file dim arec as recstruc hfile = open filename for read write create with arec 'some values to write. ._a = 1 ._b = 22 ._c = 333 end with write #hfile, arec as recstruc 'if you position the hfile pointer back to zero, you can... read #hfile, arec as recstruc close #hfile end -- Open WebMail Project (http://openwebmail.org) -- Original Message --- From: T Lee Davidson <t.lee.david...@gmail.com> To: gambas-user@lists.sourceforge.net Sent: Sun, 16 Jul 2017 12:42:35 -0400 Subject: Re: [Gambas-user] reading files On 07/16/2017 06:57 AM, Shane wrote: given this example PRIVATE SUB BinaryRead(FilePath AS String) DIM binaryFile AS File DIM i AS Integer DIM b AS Byte DIM s AS Short DIM s1 AS String DIM s2 AS String ' Read binary file binaryFile = OPEN FilePath FOR READ READ #binaryFile, i READ #binaryFile, b READ #binaryFile, s READ #binaryFile, s1 READ #binaryFile, s2 CLOSE #binaryFile ' Display results PRINT i PRINT b PRINT s PRINT s1 PRINT s2 END is there a way for gambas to read a struct of all these variables in one read ? You may have hinted at the solution within your question. Have you considered using a Structure? http://gambaswiki.org/wiki/lang/read : "... reads the stream Stream as binary data whose type is specified by the Datatype argument." "The returned datatype can be one of the following: NULL, Boolean, Byte, Short, Integer, Long, Pointer, Single, Float, Date, String, Variant, any Array, Collection or structure." http://gambaswiki.org/wiki/lang/structdecl -- Lee -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user --- End of Original Message --- -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user --- End of Original Message --- -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforg
Re: [Gambas-user] reading files
i don't know what i am doing wrong Public Struct ID3v1_TAG '(128 bytes) Tag[3] As String 'always TAG Title[30] As String 'title, 30 characters Artist[30] As String 'artist, 30 characters Album[30] As String 'album, 30 characters Year[4] As String 'year, 4 characters Comment[30] As String 'comment, 30 characters (or 28 if track# included) Genre As Byte 'genre, 255 for none defined End Struct Private Sub GetID3v1(File As String) Dim IDtag As ID3v1_TAG Dim hfile As File hfile = Open File For Read ' 'read the tag ' seek to end of less tag size Read #hfile, IDtag, ID3v1_TAG here i get IDtag is NULL On 18/07/17 05:05, nand...@nothingsimple.com wrote: Yes it is possible, I do it. here is some code (incomplete) -Nando (Canada) ' top of class file Public Struct recstruc _a as integer _b as integer _c as integer end struct ' a function public function openAfile(filename as string) as file dim hfile as file dim arec as recstruc hfile = open filename for read write create with arec 'some values to write. ._a = 1 ._b = 22 ._c = 333 end with write #hfile, arec as recstruc 'if you position the hfile pointer back to zero, you can... read #hfile, arec as recstruc close #hfile end -- Open WebMail Project (http://openwebmail.org) -- Original Message --- From: T Lee Davidson <t.lee.david...@gmail.com> To: gambas-user@lists.sourceforge.net Sent: Sun, 16 Jul 2017 12:42:35 -0400 Subject: Re: [Gambas-user] reading files On 07/16/2017 06:57 AM, Shane wrote: given this example PRIVATE SUB BinaryRead(FilePath AS String) DIM binaryFile AS File DIM i AS Integer DIM b AS Byte DIM s AS Short DIM s1 AS String DIM s2 AS String ' Read binary file binaryFile = OPEN FilePath FOR READ READ #binaryFile, i READ #binaryFile, b READ #binaryFile, s READ #binaryFile, s1 READ #binaryFile, s2 CLOSE #binaryFile ' Display results PRINT i PRINT b PRINT s PRINT s1 PRINT s2 END is there a way for gambas to read a struct of all these variables in one read ? You may have hinted at the solution within your question. Have you considered using a Structure? http://gambaswiki.org/wiki/lang/read : "... reads the stream Stream as binary data whose type is specified by the Datatype argument." "The returned datatype can be one of the following: NULL, Boolean, Byte, Short, Integer, Long, Pointer, Single, Float, Date, String, Variant, any Array, Collection or structure." http://gambaswiki.org/wiki/lang/structdecl -- Lee -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user --- End of Original Message --- -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] reading files
given this example PRIVATE SUB BinaryRead(FilePath AS String) DIM binaryFile AS File DIM i AS Integer DIM b AS Byte DIM s AS Short DIM s1 AS String DIM s2 AS String ' Read binary file binaryFile = OPEN FilePath FOR READ READ #binaryFile, i READ #binaryFile, b READ #binaryFile, s READ #binaryFile, s1 READ #binaryFile, s2 CLOSE #binaryFile ' Display results PRINT i PRINT b PRINT s PRINT s1 PRINT s2 END is there a way for gambas to read a struct of all these variables in one read ? -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] vb code
I have some vb code i want to convert to gambas and it uses this code Private Type ID3V22HDR frameName1 As String * 3 frameSize1 As Byte frameSize2 As Byte frameSize3 As Byte End Type what would be the best way to convert this to gambas? -- Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] class
I think this is my problem 3.4. Inheritance and constructor Contrary to all the object language I know, each class in the inheritance hierarchy consumes the parameters passed to the constructor. Let's suppose we have the following inheritance tree: |MyListBox ---inherits--> ListBox ---inherits---> Control | * Control <http://gambaswiki.org/wiki/comp/gb.gtk/control>._new() does not exist. * ListBox <http://gambaswiki.org/wiki/comp/gb.qt4/listbox>._new() takes one parameter: the parent control. * MyListBox._new() takes one parameter: a name - It is just an example. So |NEW <http://gambaswiki.org/wiki/lang/new> MyListBox| will take two parameters. * The first will be sent to ListBox <http://gambaswiki.org/wiki/comp/gb.qt4/listbox>._new(). * The second to MyListBox._new(). Be careful: the ListBox <http://gambaswiki.org/wiki/comp/gb.qt4/listbox>._new() will be called first, so that you are sure that the ListBox <http://gambaswiki.org/wiki/comp/gb.qt4/listbox> control exists when you are in MyListBox._new(). Then you will create a MyListBox control this way: hMyListBox *=* *New* *MyListBox**(*hContainer*,* "Name"*)* So the order of arguments is the following: * Mandatory arguments are consumed first, and then optional arguments if they are available. * The arguments of elder classes are specified first. In Gambas 2.0, the order or arguments were reversed! For example, if you have the following inheritance: |MyForm --> Form --> Window | with the MyForm constructor being: |Sub _new(FirstArg As String, SecondArg as Integer, Optional ThirdArg As Integer) | Note: the Form <http://gambaswiki.org/wiki/comp/gb.qt4/form> constructor takes no argument, and the Window <http://gambaswiki.org/wiki/comp/gb.qt4/window> constructor takes an optional parent argument. The signature of the final constructor will be: |New MyForm(FirstArg As String, SecondArg As Integer, Optional Parent As Control, Optional ThirdArg As Integer) | In a more general way, the order of arguments for a three level inheritance tree is: * Mandatory arguments of the grand-parent constructor. * Mandatory arguments of the parent constructor. * Mandatory arguments of the final constructor. * Optional arguments of the grand-parent constructor. * Optional arguments of the parent constructor. * Optional arguments of the final constructor. On 17/02/17 13:55, Benoît Minisini wrote: > Le 17/02/2017 à 03:08, Shane a écrit : >> Looks Like Pic1 >> >> and then pic2 >> >> >> > Which version of Gambas do you use? > -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] class
here it is On 17/02/17 13:55, Benoît Minisini wrote: Le 17/02/2017 à 03:08, Shane a écrit : Looks Like Pic1 and then pic2 Which version of Gambas do you use? Gamtetris-0.0.1.tar.gz Description: application/gzip -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] class
here is the code it looks like its the way I'm doing things with inheriting On 17/02/17 13:55, Benoît Minisini wrote: > Le 17/02/2017 à 03:08, Shane a écrit : >> Looks Like Pic1 >> >> and then pic2 >> >> >> > Which version of Gambas do you use? > -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] class
It seems i can compile it now just the signature is not updated as before it would just add definitions to the end if i added them as new ones [System] Gambas=3.9.90 OperatingSystem=Linux Kernel=4.4.0-45-generic Architecture=x86_64 Distribution=Linux Mint 17.2 Rafaela Desktop=MATE Theme=Gtk Language=en_AU.UTF-8 Memory=3805M [Libraries] Cairo=libcairo.so.2.11301.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.204.0 GTK+2=libgtk-x11-2.0.so.0.2400.23 GTK+3=libgtk-3.so.0.1000.8 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.44.0.0 QT4=libQtCore.so.4.8.6 QT5=libQt5Core.so.5.2.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-9R1w2qGsy4,guid=ca2f4b9de0de2b55e96cbd6258a62c4c DEFAULTS_PATH=/usr/share/gconf/mate.default.path DESKTOP_SESSION=mate DISPLAY=:0.0 GB_GUI=gb.qt4 GDMSESSION=mate GDM_XSERVER_LOCATION=local GNOME_KEYRING_CONTROL=/run/user/1000/keyring-RFhy2e GNOME_KEYRING_PID=1894 GPG_AGENT_INFO=/run/user/1000/keyring-RFhy2e/gpg:0:1 HOME= KICAD_PATH=/usr/share/kicad KIGITHUB=https://github.com/KiCad LANG=en_AU.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/mate.mandatory.path MATE_DESKTOP_SESSION_ID=this-is-deprecated MDMSESSION=mate MDM_LANG=en_AU.UTF-8 MDM_XSERVER_LOCATION=local PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games PWD= SESSION_MANAGER=local/:@/tmp/.ICE-unix/1650,unix/:/tmp/.ICE-unix/1650 SHELL=/bin/bash SSH_AGENT_PID=1811 SSH_AUTH_SOCK=/run/user/1000/keyring-RFhy2e/ssh TEXTDOMAIN=im-config TEXTDOMAINDIR=/usr/share/locale/ TZ=:/etc/localtime USER= USERNAME= WINDOWPATH=8 XAUTHORITY=/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-mate:/etc/xdg XDG_CURRENT_DESKTOP=MATE XDG_DATA_DIRS=/usr/share/mate:/usr/local/share/:/usr/share/:/usr/share/mdm/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SESSION_COOKIE=139d2632112d070b9e811bbc561842ce-1487285321.822054-1664871980 XDG_SESSION_DESKTOP=mate XDG_SESSION_ID=c1 XDG_VTNR=8 On 17/02/17 13:55, Benoît Minisini wrote: > Le 17/02/2017 à 03:08, Shane a écrit : >> Looks Like Pic1 >> >> and then pic2 >> >> >> > Which version of Gambas do you use? > -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] class
yes i have tried recompiling its a sdl project it seems like their is a backup file some where that wasn't deleted when the IDE crashed but i can't find any On 17/02/17 13:49, Jussi Lahtinen wrote: > OK, so the signature is not updated... have you tried to recompile all from > Gambas IDE? Is that library or regular Gambas project? > > > Jussi > > On Fri, Feb 17, 2017 at 4:08 AM, Shane <buster6se...@gmail.com> wrote: > >> Looks Like Pic1 >> >> and then pic2 >> >> >> >> >> On 17/02/17 13:04, Jussi Lahtinen wrote: >> >>> Looks like this..? >>> >>> >>> Jussi >>> >>> On Fri, Feb 17, 2017 at 3:32 AM, Shane <buster6se...@gmail.com> wrote: >>> >>> No the ide only crashed once >>>> so my class declaration looks like this >>>> >>>> and when i try ti instantiate my class >>>> >>>> >>>> so no matter what i but into the class new these four variables remain >>>> >>>> On 17/02/17 12:15, Jussi Lahtinen wrote: >>>> >>>>> AFAIK Gambas does not reverse your changes... do you mean the IDE >>>>> crashes >>>>> every time you try to make the changes? >>>>> Can you send the source? >>>>> >>>>> >>>>> Jussi >>>>> >>>>> On Fri, Feb 17, 2017 at 3:03 AM, Shane <buster6se...@gmail.com> wrote: >>>>> >>>>> So gambas ide crashed while editing source code now i can't change a >>>>>> class _new definition it keeps >>>>>> >>>>>> going back to the original one i had even though i deleted the >>>>>> definition and deleted the class file and reinstalled gambas any ideas >>>>>> >>>>>> >>>>>> thanks Shane >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Check out the vibrant tech community on one of the world's most >>>>>> engaging tech sites, SlashDot.org! http://sdm.link/slashdot >>>>>> ___ >>>>>> Gambas-user mailing list >>>>>> Gambas-user@lists.sourceforge.net >>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>>> >>>>>> >>>> -- >>>> >>>>> Check out the vibrant tech community on one of the world's most >>>>> engaging tech sites, SlashDot.org! http://sdm.link/slashdot >>>>> ___ >>>>> Gambas-user mailing list >>>>> Gambas-user@lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>> >>>> >>>> -- >>>> Check out the vibrant tech community on one of the world's most >>>> engaging tech sites, SlashDot.org! http://sdm.link/slashdot >>>> ___ >>>> Gambas-user mailing list >>>> Gambas-user@lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>>> >>> -- >>> Check out the vibrant tech community on one of the world's most >>> engaging tech sites, SlashDot.org! http://sdm.link/slashdot >>> ___ >>> Gambas-user mailing list >>> Gambas-user@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> >> >> >> -- >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, SlashDot.org! http://sdm.link/slashdot >> ___ >> Gambas-user mailing list >> Gambas-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > -- > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] class
Looks Like Pic1 and then pic2 On 17/02/17 13:04, Jussi Lahtinen wrote: Looks like this..? Jussi On Fri, Feb 17, 2017 at 3:32 AM, Shane <buster6se...@gmail.com> wrote: No the ide only crashed once so my class declaration looks like this and when i try ti instantiate my class so no matter what i but into the class new these four variables remain On 17/02/17 12:15, Jussi Lahtinen wrote: AFAIK Gambas does not reverse your changes... do you mean the IDE crashes every time you try to make the changes? Can you send the source? Jussi On Fri, Feb 17, 2017 at 3:03 AM, Shane <buster6se...@gmail.com> wrote: So gambas ide crashed while editing source code now i can't change a class _new definition it keeps going back to the original one i had even though i deleted the definition and deleted the class file and reinstalled gambas any ideas thanks Shane -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] class
No the ide only crashed once so my class declaration looks like this and when i try ti instantiate my class so no matter what i but into the class new these four variables remain On 17/02/17 12:15, Jussi Lahtinen wrote: > AFAIK Gambas does not reverse your changes... do you mean the IDE crashes > every time you try to make the changes? > Can you send the source? > > > Jussi > > On Fri, Feb 17, 2017 at 3:03 AM, Shane <buster6se...@gmail.com> wrote: > >> So gambas ide crashed while editing source code now i can't change a >> class _new definition it keeps >> >> going back to the original one i had even though i deleted the >> definition and deleted the class file and reinstalled gambas any ideas >> >> >> thanks Shane >> >> >> >> >> -- >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, SlashDot.org! http://sdm.link/slashdot >> ___ >> Gambas-user mailing list >> Gambas-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > -- > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] class
So gambas ide crashed while editing source code now i can't change a class _new definition it keeps going back to the original one i had even though i deleted the definition and deleted the class file and reinstalled gambas any ideas thanks Shane -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Desktop size in sdl2
So I can center my window on the Screen On 26/01/17 22:12, Fabien Bodard wrote: > why the desktop ? > > 2017-01-26 0:29 GMT+01:00 Shane <buster6se...@gmail.com>: >> How do you get the Desktop size in SDL2? >> >> >> >> -- >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, SlashDot.org! http://sdm.link/slashdot >> ___ >> Gambas-user mailing list >> Gambas-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Desktop size in sdl2
How do you get the Desktop size in SDL2? -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Grabbed
Thanks Benoît On 25/01/17 09:06, Benoît Minisini wrote: > Le 23/01/2017 à 06:48, Shane a écrit : >> Any word on getting the Window.Grabbed property for SDL2? >> > Added in revision #8062. > > Regards, > -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Grabbed
Any word on getting the Window.Grabbed property for SDL2? -- Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Sdl Grabbed
Hi Benoit could you please add the Window.Grabbed function to the sdl2 component like we had with Sdl1 -- Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Key.Text Bug
Ok thanks Benoît On 12/01/17 23:56, Benoît Minisini wrote: > Le 12/01/2017 à 08:36, Shane a écrit : >> Key.Text doesn't return anything in the following project >> > Key.Text is only available during the "Text" event. "KeyPress" is only > for getting the Key.Code. > > Regards, > -- Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Key.Text Bug
Key.Text doesn't return anything in the following project [System] Gambas=3.9.90 OperatingSystem=Linux Kernel=4.4.0-45-generic Architecture=x86_64 Distribution=Linux Mint 17.2 Rafaela Desktop=MATE Theme=Gtk Language=en_AU.UTF-8 Memory=3805M [Libraries] Cairo=libcairo.so.2.11301.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.204.0 GTK+2=libgtk-x11-2.0.so.0.2400.23 GTK+3=libgtk-3.so.0.1000.8 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.44.0.0 QT4=libQtCore.so.4.8.6 QT5=libQt5Core.so.5.2.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-oOwJAzQAYp,guid=a05b40a8accbbcef36b0c1e55876e68d DEFAULTS_PATH=/usr/share/gconf/mate.default.path DESKTOP_SESSION=mate DISPLAY=:0.0 GB_GUI=gb.qt4 GDMSESSION=mate GDM_XSERVER_LOCATION=local GNOME_KEYRING_CONTROL=/run/user/1000/keyring-Pj6e7D GNOME_KEYRING_PID=1954 GPG_AGENT_INFO=/run/user/1000/keyring-Pj6e7D/gpg:0:1 HOME=/home/ KICAD_PATH=/usr/share/kicad KIGITHUB=https://github.com/KiCad LANG=en_AU.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/mate.mandatory.path MATE_DESKTOP_SESSION_ID=this-is-deprecated MDMSESSION=mate MDM_LANG=en_AU.UTF-8 MDM_XSERVER_LOCATION=local PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games PWD=/home/ SESSION_MANAGER=local/:@/tmp/.ICE-unix/1708,unix/:/tmp/.ICE-unix/1708 SHELL=/bin/bash SSH_AGENT_PID=1872 SSH_AUTH_SOCK=/run/user/1000/keyring-Pj6e7D/ssh TEXTDOMAIN=im-config TEXTDOMAINDIR=/usr/share/locale/ TZ=:/etc/localtime USER= USERNAME= WINDOWPATH=8 XAUTHORITY=/home//.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-mate:/etc/xdg XDG_CURRENT_DESKTOP=MATE XDG_DATA_DIRS=/usr/share/mate:/usr/local/share/:/usr/share/:/usr/share/mdm/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SESSION_COOKIE=139d2632112d070b9e811bbc561842ce-1484187274.551916-539332171 XDG_SESSION_DESKTOP=mate XDG_SESSION_ID=c1 XDG_VTNR=8 SdlKey-0.0.1.tar.gz Description: application/gzip -- Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] SDL Bug
I Think there id a bug in the SDL Image.Copy method when used it is not working as expected and when you try to copy a large amount of Image it crashes this program. [System] Gambas=3.9.1 OperatingSystem=Linux Kernel=4.4.0-45-generic Architecture=x86_64 Distribution=Linux Mint 17.2 Rafaela Desktop=MATE Theme=Gtk Language=en_AU.UTF-8 Memory=3805M [Libraries] Cairo=libcairo.so.2.11301.0 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.6 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.204.0 GTK+2=libgtk-x11-2.0.so.0.2400.23 GTK+3=libgtk-3.so.0.1000.8 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.44.0.0 QT4=libQtCore.so.4.8.6 QT5=libQt5Core.so.5.2.1 SDL=libSDL-1.2.so.0.11.4 SQLite=libsqlite3.so.0.8.6 [Environment] DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-JwdfcZ1nfu,guid=082f2df3f4d886742a97b567581bb58e DEFAULTS_PATH=/usr/share/gconf/mate.default.path DESKTOP_SESSION=mate DISPLAY=:0.0 GB_GUI=gb.qt4 GDMSESSION=mate GDM_XSERVER_LOCATION=local GNOME_KEYRING_CONTROL=/run/user/1000/keyring-mknkPE GNOME_KEYRING_PID=1957 GPG_AGENT_INFO=/run/user/1000/keyring-mknkPE/gpg:0:1 HOME=/home/ LANG=en_AU.UTF-8 LOGNAME= MANDATORY_PATH=/usr/share/gconf/mate.mandatory.path MATE_DESKTOP_SESSION_ID=this-is-deprecated MDMSESSION=mate MDM_LANG=en_AU.UTF-8 MDM_XSERVER_LOCATION=local PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games PWD=/home/ SESSION_MANAGER=local/:@/tmp/.ICE-unix/1711,unix/:/tmp/.ICE-unix/1711 SHELL=/bin/bash SSH_AGENT_PID=1867 SSH_AUTH_SOCK=/run/user/1000/keyring-mknkPE/ssh TEXTDOMAIN=im-config TEXTDOMAINDIR=/usr/share/locale/ TZ=:/etc/localtime USER= USERNAME= WINDOWPATH=8 XAUTHORITY=/home//.Xauthority XDG_CONFIG_DIRS=/etc/xdg/xdg-mate:/etc/xdg XDG_CURRENT_DESKTOP=MATE XDG_DATA_DIRS=/usr/share/mate:/usr/local/share/:/usr/share/:/usr/share/mdm/ XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SESSION_COOKIE=139d2632112d070b9e811bbc561842ce-1478210956.123282-1196872275 XDG_SESSION_DESKTOP=mate XDG_SESSION_ID=c1 XDG_VTNR=8 SdlTest-0.0.1.tar.gz Description: application/gzip -- Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Flyer Invasion Game - And a possible bug-report
If I set resizeable=True it works as expected On 03/11/16 19:07, Moviga Technologies wrote: > Thank you! > > Are you running Wayland? There's no built in way to detect screen > resolution for that (yet). But, why it apparently increases the > resolution outside the borders of the window when you click outside, I > have no idea why? A SDL bug? > > > Den 03. nov. 2016 03:44, skrev Shane: >> there were pics >> >> >> >> On 02/11/16 17:46, Moviga Technologies wrote: >>> Please rephrase what you said? >>> >>> >>> Den 02. nov. 2016 02:29, skrev Shane: >>>> this is what i get with your latest version >>>> >>>> and when i click away and come back >>>> >>>> >>>> On 02/11/16 07:11, Benoît Minisini wrote: >>>>> Le 31/10/2016 à 13:51, Moviga Technologies a écrit : >>>>>> Hi! >>>>>> >>>>>> This weekend I had some fun making a simple game in SDL that you can >>>>>> find on the farm, or download here: >>>>>> http://forum.gambas.one/download/file.php?id=12 >>>>>> >>>>>> There is a warning in the console in the Gambas IDE that says: >>>>>> gbx3: warning: 2 allocation(s) non freed. >>>>>> Not sure where that comes from, but as C++ needs to free up stuff, I >>>>>> suppose it has to do with the gb.sdl2 component? >>>>>> >>>>> It should be fixed in revision #7952. It was related to gb.sdl2.audio. >>>>> >>>>> Regards, >>>>> >>>> -- >>>> >>>> Developer Access Program for Intel Xeon Phi Processors >>>> Access to Intel Xeon Phi processor-based developer platforms. >>>> With one year of Intel Parallel Studio XE. >>>> Training and support from Colfax. >>>> Order your platform today. http://sdm.link/xeonphi >>>> ___ >>>> Gambas-user mailing list >>>> Gambas-user@lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> -- >>> >>> Developer Access Program for Intel Xeon Phi Processors >>> Access to Intel Xeon Phi processor-based developer platforms. >>> With one year of Intel Parallel Studio XE. >>> Training and support from Colfax. >>> Order your platform today. http://sdm.link/xeonphi >>> ___ >>> Gambas-user mailing list >>> Gambas-user@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> >> -- >> Developer Access Program for Intel Xeon Phi Processors >> Access to Intel Xeon Phi processor-based developer platforms. >> With one year of Intel Parallel Studio XE. >> Training and support from Colfax. >> Order your platform today. http://sdm.link/xeonphi >> >> >> ___ >> Gambas-user mailing list >> Gambas-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > -- > Developer Access Program for Intel Xeon Phi Processors > Access to Intel Xeon Phi processor-based developer platforms. > With one year of Intel Parallel Studio XE. > Training and support from Colfax. > Order your platform today. http://sdm.link/xeonphi > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Flyer Invasion Game - And a possible bug-report
there were pics On 02/11/16 17:46, Moviga Technologies wrote: Please rephrase what you said? Den 02. nov. 2016 02:29, skrev Shane: this is what i get with your latest version and when i click away and come back On 02/11/16 07:11, Benoît Minisini wrote: Le 31/10/2016 à 13:51, Moviga Technologies a écrit : Hi! This weekend I had some fun making a simple game in SDL that you can find on the farm, or download here: http://forum.gambas.one/download/file.php?id=12 There is a warning in the console in the Gambas IDE that says: gbx3: warning: 2 allocation(s) non freed. Not sure where that comes from, but as C++ needs to free up stuff, I suppose it has to do with the gb.sdl2 component? It should be fixed in revision #7952. It was related to gb.sdl2.audio. Regards, -- Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Flyer Invasion Game - And a possible bug-report
this is what i get with your latest version and when i click away and come back On 02/11/16 07:11, Benoît Minisini wrote: > Le 31/10/2016 à 13:51, Moviga Technologies a écrit : >> Hi! >> >> This weekend I had some fun making a simple game in SDL that you can >> find on the farm, or download here: >> http://forum.gambas.one/download/file.php?id=12 >> >> There is a warning in the console in the Gambas IDE that says: >> gbx3: warning: 2 allocation(s) non freed. >> Not sure where that comes from, but as C++ needs to free up stuff, I >> suppose it has to do with the gb.sdl2 component? >> > It should be fixed in revision #7952. It was related to gb.sdl2.audio. > > Regards, > -- Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Flyer Invasion Game - And a possible bug-report
Im getting not freeded messages form a project that uses serial port and map and a sdl game as well On 31/10/16 23:51, Moviga Technologies wrote: > Hi! > > This weekend I had some fun making a simple game in SDL that you can > find on the farm, or download here: > http://forum.gambas.one/download/file.php?id=12 > > There is a warning in the console in the Gambas IDE that says: > gbx3: warning: 2 allocation(s) non freed. > Not sure where that comes from, but as C++ needs to free up stuff, I > suppose it has to do with the gb.sdl2 component? > > > -- > The Command Line: Reinvented for Modern Developers > Did the resurgence of CLI tooling catch you by surprise? > Reconnect with the command line and become more productive. > Learn the new .NET and ASP.NET CLI. Get your free copy! > http://sdm.link/telerik > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] array of classes
FYI this will not work as is as i found out Public Sub Main() Dim idx as integer Dim hBlock as Block For idx = 0 to MAX_BLOCKS-1 hBlock = new Block Blocks[idx] = hBlock Next must be this way or in my case it did work as i was filling new values in the loop On 03/07/16 19:38, adamn...@gmail.com wrote: > On Sun, 3 Jul 2016 18:20:15 +1000 > Shane <buster6se...@gmail.com> wrote: > >> I'm trying create a array of myClass but when i create it i have an >> array of null values >> >> i have my Rect.class >> >> Public x As Integer >> Public y As Integer >> Public width As Integer >> Public height As Integer >> >> >> then my Block.class >> >> Public Screenpos As New Rect >> Public Imagepos As New Rect >> Public num_hits As Integer >> >> and then in the main module i do >> >> Public Blocks As New Block[MAX_BLOCKS] >> >> and i get an array with Max_BLOCKS indexes on null values >> >> what am i doing wrong >> >> thanks Shane >> >> >> > Well at first glance I'd tend to say - nothing! > Declaration of the array in your main module is doing exactly what it should. > Creating an empty array (presumably of length MAX_BLOCKS). > If you were expecting that you would have an array of length MAX_BLOCKS > completely populated with some form of Block objects then this is not what > you are going to get. > > Try (in the Main module) > Public Blocks As New Block[MAX_BLOCKS] > > Public Sub Main() > > Dim idx as integer > Dim hBlock as new Block > > For idx = 0 to MAX_BLOCKS-1 >Blocks[idx] = hBlock > Next > > etc > > > Or have I misunderstood? > > hth > Bruce > -- Attend Shape: An AT Tech Expo July 15-16. Meet us at AT Park in San Francisco, CA to explore cutting-edge tech and listen to tech luminaries present their vision of the future. This family event has something for everyone, including kids. Get more information and register today. http://sdm.link/attshape ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] array of classes
thanks Bruce that was my problem i just fixed a little differant i used the add function thanks for your help Shane. On 03/07/16 19:38, adamn...@gmail.com wrote: > On Sun, 3 Jul 2016 18:20:15 +1000 > Shane <buster6se...@gmail.com> wrote: > >> I'm trying create a array of myClass but when i create it i have an >> array of null values >> >> i have my Rect.class >> >> Public x As Integer >> Public y As Integer >> Public width As Integer >> Public height As Integer >> >> >> then my Block.class >> >> Public Screenpos As New Rect >> Public Imagepos As New Rect >> Public num_hits As Integer >> >> and then in the main module i do >> >> Public Blocks As New Block[MAX_BLOCKS] >> >> and i get an array with Max_BLOCKS indexes on null values >> >> what am i doing wrong >> >> thanks Shane >> >> >> > Well at first glance I'd tend to say - nothing! > Declaration of the array in your main module is doing exactly what it should. > Creating an empty array (presumably of length MAX_BLOCKS). > If you were expecting that you would have an array of length MAX_BLOCKS > completely populated with some form of Block objects then this is not what > you are going to get. > > Try (in the Main module) > Public Blocks As New Block[MAX_BLOCKS] > > Public Sub Main() > > Dim idx as integer > Dim hBlock as new Block > > For idx = 0 to MAX_BLOCKS-1 >Blocks[idx] = hBlock > Next > > etc > > > Or have I misunderstood? > > hth > Bruce > -- Attend Shape: An AT Tech Expo July 15-16. Meet us at AT Park in San Francisco, CA to explore cutting-edge tech and listen to tech luminaries present their vision of the future. This family event has something for everyone, including kids. Get more information and register today. http://sdm.link/attshape ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] array of classes
I'm trying create a array of myClass but when i create it i have an array of null values i have my Rect.class Public x As Integer Public y As Integer Public width As Integer Public height As Integer then my Block.class Public Screenpos As New Rect Public Imagepos As New Rect Public num_hits As Integer and then in the main module i do Public Blocks As New Block[MAX_BLOCKS] and i get an array with Max_BLOCKS indexes on null values what am i doing wrong thanks Shane -- Attend Shape: An AT Tech Expo July 15-16. Meet us at AT Park in San Francisco, CA to explore cutting-edge tech and listen to tech luminaries present their vision of the future. This family event has something for everyone, including kids. Get more information and register today. http://sdm.link/attshape ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] paint to report
How do I Paint Text directly to a report -- Attend Shape: An AT Tech Expo July 15-16. Meet us at AT Park in San Francisco, CA to explore cutting-edge tech and listen to tech luminaries present their vision of the future. This family event has something for everyone, including kids. Get more information and register today. http://sdm.link/attshape ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Conditional edit of a database table
Are you looking for something like hConn.Find("clients", "firstname LIKE &1 OR lastname LIKE &1 OR phone like &1 OR street_name LIKE &1 OR suburb LIKE &1", "%" & s & "%") except with AND'S On 17/06/16 06:45, wi...@develop.earthshipeurope.org wrote: > On 2016-06-16 22:05, Benoît Minisini wrote: >> Le 16/06/2016 21:10, wi...@develop.earthshipeurope.org a écrit : >>> On 2016-06-13 16:45, wi...@develop.earthshipeurope.org wrote: Hi all, I have been editing tables successfully using something like: rResult = hConn.Edit("error", "id=&1", iId) This comes in handy when wanting to edit a record with a certain id and works just fine for simple cases. But I have a table where the fields id and company (in table error) together form the primary key. My question: Is it possible to edit a record based on these two requirements using db.edit function? Something like below doesn't seem to work: rResult = hConn.Edit("error", "id=&1 AND company=&2", iId, sCompany) and documentation (http://gambaswiki.org/wiki/comp/gb.db/db/edit) isn't really helpful. Thanks, gbWilly >>> Anyone a sensible answer? >>> >>> gbWilly >>> >> It should work. Please post a project with the code that does not work >> as expected. >> >> Regards, > Well, as usual it is part of a bigger application. > So, I'll try to make a small example and post it when ready. > > Thanks for the response, > > gbWilly > > -- > What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic > patterns at an interface-level. Reveals which users, apps, and protocols are > consuming the most bandwidth. Provides multi-vendor support for NetFlow, > J-Flow, sFlow and other flows. Make informed decisions using capacity planning > reports. http://sdm.link/zohomanageengine > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports. http://sdm.link/zohomanageengine ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] picturebox
I tried that but I get the error Image is read only mypicbox.picture.image = myimage.copy(x,y,width,height) On 12/06/16 22:18, Gianluigi wrote: > Looking for this? > http://gambaswiki.org/wiki/comp/gb.image/image/copy > > 2016-06-12 9:55 GMT+02:00 Shane <buster6se...@gmail.com>: > >> I'm trying to display part of an Image in a picture box is this possible i >> seem to rember something about no mem to mem copy available ? >> >> >> -- >> What NetFlow Analyzer can do for you? Monitors network bandwidth and >> traffic >> patterns at an interface-level. Reveals which users, apps, and protocols >> are >> consuming the most bandwidth. Provides multi-vendor support for NetFlow, >> J-Flow, sFlow and other flows. Make informed decisions using capacity >> planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e >> ___ >> Gambas-user mailing list >> Gambas-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > -- > What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic > patterns at an interface-level. Reveals which users, apps, and protocols are > consuming the most bandwidth. Provides multi-vendor support for NetFlow, > J-Flow, sFlow and other flows. Make informed decisions using capacity > planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] picturebox
I'm trying to display part of an Image in a picture box is this possible i seem to rember something about no mem to mem copy available ? -- What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Printing
sorry my bad I think I forgot the ignore property On 14/10/15 16:17, Fabien Bodard wrote: > Le 13 oct. 2015 23:16, "Shane" <shanep1...@tpg.com.au> a écrit : >> Is there a way to stop ReportImage from scaling up to fill the page >> > Hum. Change the height and width. If they are 0 then autoresize is used. > >> >> On 14/10/15 08:02, Shane wrote: >>> Thanks Fabien I had a quick look at setting ignore to true and I can now >>> move things where i want >>> so it might work for me after all Thanks. >>> >>> >>> On 14/10/15 03:47, Fabien Bodard wrote: >>>> Well gb.report is based on a similar arrangement routine than the > forms. >>>> To center a picture on the page you have 2 way. >>>> >>>> - playing with the containers to center it >>>> - set the ignore property of the image to true and setup the left and >>>> top properties (or X and Y) >>>> >>>> To setup a text just add a reportlabel and give to it a text. >>>> >>>> you can setup the page padding by setting the report padding. >>>> >>>> Gambas report have all the job to resolve font size... you need to >>>> play around it to understand who do what. >>>> >>>> It seem complex only because it use a not traditional way to describe >>>> a page. A report is a set of sections that can contains containers. >>>> Each section is like a report, but share things like page size and >>>> orientation. >>>> >>>> My two actual dark point are the picture resolution on rendering, >>>> because of the resolution... but i will find how to do that son. >>>> Multilevel recurssivity... my old problem on automation. But it is not >>>> a problem for filled reports. >>>> >>>> you can see some of my reports here : >>>> https://plus.google.com/u/0/communities/113475756360896510823 >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> 2015-10-13 8:01 GMT+02:00 Shane <shanep1...@tpg.com.au>: >>>>> Hi Fabien I had a look at gb.report and once again I can not make head >>>>> or tails of it I got stuck >>>>> at the very first thing all I wanted to to was display an image in the >>>>> center of the page and some text >>>>> either side but when i finally got an image to display it would only >>>>> display in the top left and I could not move it just seem over > complicated! >>>>> On 12/10/15 18:32, Fabien Bodard wrote: >>>>>> Normally the size is the same... The scaling is done by the paint > class. >>>>>> Be carefull as a point have not the same size between screen and > printer. >>>>>> Have you try to use gb. report ? >>>>>> Le 12 oct. 2015 09:19, "Shane" <shanep1...@tpg.com.au> a écrit : >>>>>> >>>>>>> What am I doing wrong here I'm trying to print something the same > size on >>>>>>> the printer as on the screen >>>>>>> but when it goes to the printer it huge ? >>>>>>> I'm using Paint.Scale and from what the doc's say this should scale > the >>>>>>> fonts ? >>>>>>> >>>>>>> >>>>>>> >>>>>>> > -- >>>>>>> ___ >>>>>>> Gambas-user mailing list >>>>>>> Gambas-user@lists.sourceforge.net >>>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>>>> >>>>>>> > -- >>>>>> ___ >>>>>> Gambas-user mailing list >>>>>> Gambas-user@lists.sourceforge.net >>>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user > -- >>>>> ___ >>>>> Gambas-user mailing list >>>>> Gambas-user@lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> > -- >>> ___ >>> Gambas-user mailing list >>> Gambas-user@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > -- >> ___ >> Gambas-user mailing list >> Gambas-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > -- > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Printing
Thanks Fabien I had a quick look at setting ignore to true and I can now move things where i want so it might work for me after all Thanks. On 14/10/15 03:47, Fabien Bodard wrote: > Well gb.report is based on a similar arrangement routine than the forms. > > To center a picture on the page you have 2 way. > > - playing with the containers to center it > - set the ignore property of the image to true and setup the left and > top properties (or X and Y) > > To setup a text just add a reportlabel and give to it a text. > > you can setup the page padding by setting the report padding. > > Gambas report have all the job to resolve font size... you need to > play around it to understand who do what. > > It seem complex only because it use a not traditional way to describe > a page. A report is a set of sections that can contains containers. > Each section is like a report, but share things like page size and > orientation. > > My two actual dark point are the picture resolution on rendering, > because of the resolution... but i will find how to do that son. > Multilevel recurssivity... my old problem on automation. But it is not > a problem for filled reports. > > you can see some of my reports here : > https://plus.google.com/u/0/communities/113475756360896510823 > > > > > > > > > > > > > > > 2015-10-13 8:01 GMT+02:00 Shane <shanep1...@tpg.com.au>: >> Hi Fabien I had a look at gb.report and once again I can not make head >> or tails of it I got stuck >> at the very first thing all I wanted to to was display an image in the >> center of the page and some text >> either side but when i finally got an image to display it would only >> display in the top left and I could not move it just seem over complicated! >> >> On 12/10/15 18:32, Fabien Bodard wrote: >>> Normally the size is the same... The scaling is done by the paint class. >>> Be carefull as a point have not the same size between screen and printer. >>> >>> Have you try to use gb. report ? >>> Le 12 oct. 2015 09:19, "Shane" <shanep1...@tpg.com.au> a écrit : >>> >>>> What am I doing wrong here I'm trying to print something the same size on >>>> the printer as on the screen >>>> but when it goes to the printer it huge ? >>>> I'm using Paint.Scale and from what the doc's say this should scale the >>>> fonts ? >>>> >>>> >>>> >>>> -- >>>> >>>> ___ >>>> Gambas-user mailing list >>>> Gambas-user@lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>> >>>> >>> -- >>> ___ >>> Gambas-user mailing list >>> Gambas-user@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> -- >> ___ >> Gambas-user mailing list >> Gambas-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user > > -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Printing
Is there a way to stop ReportImage from scaling up to fill the page On 14/10/15 08:02, Shane wrote: > Thanks Fabien I had a quick look at setting ignore to true and I can now > move things where i want > so it might work for me after all Thanks. > > > On 14/10/15 03:47, Fabien Bodard wrote: >> Well gb.report is based on a similar arrangement routine than the forms. >> >> To center a picture on the page you have 2 way. >> >> - playing with the containers to center it >> - set the ignore property of the image to true and setup the left and >> top properties (or X and Y) >> >> To setup a text just add a reportlabel and give to it a text. >> >> you can setup the page padding by setting the report padding. >> >> Gambas report have all the job to resolve font size... you need to >> play around it to understand who do what. >> >> It seem complex only because it use a not traditional way to describe >> a page. A report is a set of sections that can contains containers. >> Each section is like a report, but share things like page size and >> orientation. >> >> My two actual dark point are the picture resolution on rendering, >> because of the resolution... but i will find how to do that son. >> Multilevel recurssivity... my old problem on automation. But it is not >> a problem for filled reports. >> >> you can see some of my reports here : >> https://plus.google.com/u/0/communities/113475756360896510823 >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> 2015-10-13 8:01 GMT+02:00 Shane <shanep1...@tpg.com.au>: >>> Hi Fabien I had a look at gb.report and once again I can not make head >>> or tails of it I got stuck >>> at the very first thing all I wanted to to was display an image in the >>> center of the page and some text >>> either side but when i finally got an image to display it would only >>> display in the top left and I could not move it just seem over complicated! >>> >>> On 12/10/15 18:32, Fabien Bodard wrote: >>>> Normally the size is the same... The scaling is done by the paint class. >>>> Be carefull as a point have not the same size between screen and printer. >>>> >>>> Have you try to use gb. report ? >>>> Le 12 oct. 2015 09:19, "Shane" <shanep1...@tpg.com.au> a écrit : >>>> >>>>> What am I doing wrong here I'm trying to print something the same size on >>>>> the printer as on the screen >>>>> but when it goes to the printer it huge ? >>>>> I'm using Paint.Scale and from what the doc's say this should scale the >>>>> fonts ? >>>>> >>>>> >>>>> >>>>> -- >>>>> >>>>> ___ >>>>> Gambas-user mailing list >>>>> Gambas-user@lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>>>> >>>>> >>>> -- >>>> ___ >>>> Gambas-user mailing list >>>> Gambas-user@lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/gambas-user >>> -- >>> ___ >>> Gambas-user mailing list >>> Gambas-user@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > -- > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Printing
Hi Fabien I had a look at gb.report and once again I can not make head or tails of it I got stuck at the very first thing all I wanted to to was display an image in the center of the page and some text either side but when i finally got an image to display it would only display in the top left and I could not move it just seem over complicated! On 12/10/15 18:32, Fabien Bodard wrote: > Normally the size is the same... The scaling is done by the paint class. > Be carefull as a point have not the same size between screen and printer. > > Have you try to use gb. report ? > Le 12 oct. 2015 09:19, "Shane" <shanep1...@tpg.com.au> a écrit : > >> What am I doing wrong here I'm trying to print something the same size on >> the printer as on the screen >> but when it goes to the printer it huge ? >> I'm using Paint.Scale and from what the doc's say this should scale the >> fonts ? >> >> >> >> -- >> >> ___ >> Gambas-user mailing list >> Gambas-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> >> > -- > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Printing
What am I doing wrong here I'm trying to print something the same size on the printer as on the screen but when it goes to the printer it huge ? I'm using Paint.Scale and from what the doc's say this should scale the fonts ? InvoicePrint-0.0.1.tar.gz Description: application/gzip -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] This is some play around the Breeze theme
nice bird On 16/09/15 20:16, Moviga Technologies wrote: > > > Just some thoughts on some modifications > > > -- > Monitor Your Dynamic Infrastructure at Any Scale With Datadog! > Get real-time metrics from all of your servers, apps and tools > in one place.ce > SourceForge users - Click here to start your Free Trial of Datadog now! > http://pubads.g.doubleclick.net/gampad/clk?id=241902991=/4140 > > > ___ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user -- Monitor Your Dynamic Infrastructure at Any Scale With Datadog! Get real-time metrics from all of your servers, apps and tools in one place. SourceForge users - Click here to start your Free Trial of Datadog now! http://pubads.g.doubleclick.net/gampad/clk?id=241902991=/4140 ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] id3
anyone had any experience with id3 tags in gambas what would be the best lib etc or native gambas code? thanks Shane -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] R: Fwd: Re: MediaPlayer
i don't like the loop thing but thanks i obviously need to call stop i guess i can just call stop before for calling play but i want to load the next song after one is finished like what you have done. i tried to declare an event Process but it isn't being called i must be doing something wrong this seems to be the way it should be done thanks Ru Vuott. On 08/09/15 09:22, Ru Vuott wrote: > Hello Shane, > > in " Public Sub Button1_Click() " routine you can try: > > > Public Sub Button1_Click() > >If Not Dialog.OpenFile() > hPlayer.URL = Media.URL(Dialog.Path) > hPlayer.Play >Endif > >Do > Wait 0.01 >Loop Until hPlayer.Position >= hPlayer.Duration > > hPlayer.Stop > > End > > > regards > vuott > > > > > > > Mar 8/9/15, Shane <shanep1...@tpg.com.au> ha scritto: > > Oggetto: [Gambas-user] Fwd: Re: MediaPlayer > A: ">> mailing list for gambas users" <gambas-user@lists.sourceforge.net> > Data: Martedì 8 settembre 2015, 00:16 > > sent this already but it looks like > it didn't work trying again > > > > Forwarded Message > Subject: Re: MediaPlayer > Date: Mon, 7 Sep 2015 17:18:57 +1000 > From: Shane <shanep1...@tpg.com.au> > To: Benoît Minisini <gam...@users.sourceforge.net> > > > > On 07/09/15 13:20, Benoît Minisini wrote: > > Le 07/09/2015 04:45, Shane a écrit : > >> hi I'm trying to use the media player component i > can load a song and > >> play it > >> but when i change the URL field to a new file and > then call play it > >> won't play the new file > >> is there something else i need to do to play the > next file funnily > >> enough if i add the next song > >> before it finishes playing it will play the new > song when the old one > >> finishes > >> > >> > > > > Can you provide your project so that I can see what you > are doing > > exactly? > > > > [System] > Gambas=3.8.0 > OperatingSystem=Linux > Kernel=3.19.0-22-generic > Architecture=x86 > Distribution=Ubuntu 15.04 > Desktop=LXDE > Theme=Gtk > Language=en_AU.UTF-8 > Memory=3889M > [Libraries] > Cairo=libcairo.so.2.11400.2 > Curl=libcurl.so.4.3.0 > DBus=libdbus-1.so.3.8.9 > GStreamer=libgstreamer-0.10.so.0.30.0 > GStreamer=libgstreamer-1.0.so.0.405.0 > GTK+3=libgtk-3.so.0.1400.13 > GTK+=libgtk-x11-2.0.so.0.2400.27 > OpenGL=libGL.so.1.2.0 > Poppler=libpoppler.so.49.0.0 > Qt4=libQtCore.so.4.8.6 > Qt5=libQt5Core.so.5.4.1 > SDL=libSDL-1.2.so.0.11.4 > [Environment] > CLUTTER_IM_MODULE=xim > DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-3LjCxec38A > DEFAULTS_PATH=/usr/share/gconf/Lubuntu.default.path > DESKTOP_SESSION=Lubuntu > DISPLAY=:0.0 > GB_GUI=gb.qt4 > GDMSESSION=Lubuntu > GDM_LANG=en_AU > GNOME_KEYRING_CONTROL= > GNOME_KEYRING_PID= > GPG_AGENT_INFO=/run/user/1000/keyring/gpg:0:1 > GTK_IM_MODULE=xim > HOME=/home/shane > IM_CONFIG_PHASE=1 > INSTANCE= > JOB=dbus > LANG=en_AU.UTF-8 > LANGUAGE=en_AU:en > LOGNAME=shane > MANDATORY_PATH=/usr/share/gconf/Lubuntu.mandatory.path > > PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games > PWD=/home/shane > QT4_IM_MODULE=xim > QT_IM_MODULE=ibus > QT_PLATFORM_PLUGIN=lxqt > QT_QPA_PLATFORMTHEME=lxqt > SAL_USE_VCLPLUGIN=gtk > SESSION=Lubuntu > SESSIONTYPE=lxsession > SHELL=/bin/bash > SHLVL=0 > SSH_AUTH_SOCK=/run/user/1000/keyring/ssh > TZ=:/etc/localtime > UPSTART_EVENTS=started xsession > UPSTART_INSTANCE= > UPSTART_JOB=lxsession > UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/763 > USER=shane > XAUTHORITY=/home/shane/.Xauthority > > XDG_CONFIG_DIRS=/etc/xdg/lubuntu:/etc/xdg/xdg-Lubuntu:/usr/share/upstart/xdg:/etc/xdg > XDG_CONFIG_HOME=/home/shane/.config > XDG_CURRENT_DESKTOP=LXDE > > XDG_DATA_DIRS=/etc/xdg/lubuntu:/usr/local/share:/usr/share:/usr/share/gdm:/var/lib/menu-xdg:/usr/share/Lubuntu:/usr/local/share/:/usr/share/ > XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/shane > XDG_MENU_PREFIX=lxde- > XDG_RUNTIME_DIR=/run/user/1000 > XDG_SEAT=seat0 > XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 > XDG_SESSION_DESKTOP=Lubuntu > XDG_SESSION_ID=c1 > XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 > XDG_SESSION_TYPE=x11 >
Re: [Gambas-user] R: Fwd: Re: MediaPlayer
Ok i got End event to trigger but still can't get Progress event to trigger On 08/09/15 16:03, Shane wrote: i don't like the loop thing but thanks i obviously need to call stop i guess i can just call stop before for calling play but i want to load the next song after one is finished like what you have done. i tried to declare an event Process but it isn't being called i must be doing something wrong this seems to be the way it should be done thanks Ru Vuott. On 08/09/15 09:22, Ru Vuott wrote: Hello Shane, in " Public Sub Button1_Click() " routine you can try: Public Sub Button1_Click() If Not Dialog.OpenFile() hPlayer.URL = Media.URL(Dialog.Path) hPlayer.Play Endif Do Wait 0.01 Loop Until hPlayer.Position >= hPlayer.Duration hPlayer.Stop End regards vuott Mar 8/9/15, Shane <shanep1...@tpg.com.au> ha scritto: Oggetto: [Gambas-user] Fwd: Re: MediaPlayer A: ">> mailing list for gambas users" <gambas-user@lists.sourceforge.net> Data: Martedì 8 settembre 2015, 00:16 sent this already but it looks like it didn't work trying again Forwarded Message Subject: Re: MediaPlayer Date: Mon, 7 Sep 2015 17:18:57 +1000 From: Shane <shanep1...@tpg.com.au> To: Benoît Minisini <gam...@users.sourceforge.net> On 07/09/15 13:20, Benoît Minisini wrote: > Le 07/09/2015 04:45, Shane a écrit : >> hi I'm trying to use the media player component i can load a song and >> play it >> but when i change the URL field to a new file and then call play it >> won't play the new file >> is there something else i need to do to play the next file funnily >> enough if i add the next song >> before it finishes playing it will play the new song when the old one >> finishes >> >> > > Can you provide your project so that I can see what you are doing > exactly? > [System] Gambas=3.8.0 OperatingSystem=Linux Kernel=3.19.0-22-generic Architecture=x86 Distribution=Ubuntu 15.04 Desktop=LXDE Theme=Gtk Language=en_AU.UTF-8 Memory=3889M [Libraries] Cairo=libcairo.so.2.11400.2 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.8.9 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.405.0 GTK+3=libgtk-3.so.0.1400.13 GTK+=libgtk-x11-2.0.so.0.2400.27 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.49.0.0 Qt4=libQtCore.so.4.8.6 Qt5=libQt5Core.so.5.4.1 SDL=libSDL-1.2.so.0.11.4 [Environment] CLUTTER_IM_MODULE=xim DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-3LjCxec38A DEFAULTS_PATH=/usr/share/gconf/Lubuntu.default.path DESKTOP_SESSION=Lubuntu DISPLAY=:0.0 GB_GUI=gb.qt4 GDMSESSION=Lubuntu GDM_LANG=en_AU GNOME_KEYRING_CONTROL= GNOME_KEYRING_PID= GPG_AGENT_INFO=/run/user/1000/keyring/gpg:0:1 GTK_IM_MODULE=xim HOME=/home/shane IM_CONFIG_PHASE=1 INSTANCE= JOB=dbus LANG=en_AU.UTF-8 LANGUAGE=en_AU:en LOGNAME=shane MANDATORY_PATH=/usr/share/gconf/Lubuntu.mandatory.path PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games PWD=/home/shane QT4_IM_MODULE=xim QT_IM_MODULE=ibus QT_PLATFORM_PLUGIN=lxqt QT_QPA_PLATFORMTHEME=lxqt SAL_USE_VCLPLUGIN=gtk SESSION=Lubuntu SESSIONTYPE=lxsession SHELL=/bin/bash SHLVL=0 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime UPSTART_EVENTS=started xsession UPSTART_INSTANCE= UPSTART_JOB=lxsession UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/763 USER=shane XAUTHORITY=/home/shane/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/lubuntu:/etc/xdg/xdg-Lubuntu:/usr/share/upstart/xdg:/etc/xdg XDG_CONFIG_HOME=/home/shane/.config XDG_CURRENT_DESKTOP=LXDE XDG_DATA_DIRS=/etc/xdg/lubuntu:/usr/local/share:/usr/share:/usr/share/gdm:/var/lib/menu-xdg:/usr/share/Lubuntu:/usr/local/share/:/usr/share/ XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/shane XDG_MENU_PREFIX=lxde- XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_DESKTOP=Lubuntu XDG_SESSION_ID=c1 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 XMODIFIERS=@im=ibus _LXSESSION_PID=894 -Segue allegato- -- -Segue allegato- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- __
[Gambas-user] Fwd: Re: MediaPlayer
sent this already but it looks like it didn't work trying again Forwarded Message Subject:Re: MediaPlayer Date: Mon, 7 Sep 2015 17:18:57 +1000 From: Shane <shanep1...@tpg.com.au> To: Benoît Minisini <gam...@users.sourceforge.net> On 07/09/15 13:20, Benoît Minisini wrote: Le 07/09/2015 04:45, Shane a écrit : hi I'm trying to use the media player component i can load a song and play it but when i change the URL field to a new file and then call play it won't play the new file is there something else i need to do to play the next file funnily enough if i add the next song before it finishes playing it will play the new song when the old one finishes Can you provide your project so that I can see what you are doing exactly? [System] Gambas=3.8.0 OperatingSystem=Linux Kernel=3.19.0-22-generic Architecture=x86 Distribution=Ubuntu 15.04 Desktop=LXDE Theme=Gtk Language=en_AU.UTF-8 Memory=3889M [Libraries] Cairo=libcairo.so.2.11400.2 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.8.9 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.405.0 GTK+3=libgtk-3.so.0.1400.13 GTK+=libgtk-x11-2.0.so.0.2400.27 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.49.0.0 Qt4=libQtCore.so.4.8.6 Qt5=libQt5Core.so.5.4.1 SDL=libSDL-1.2.so.0.11.4 [Environment] CLUTTER_IM_MODULE=xim DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-3LjCxec38A DEFAULTS_PATH=/usr/share/gconf/Lubuntu.default.path DESKTOP_SESSION=Lubuntu DISPLAY=:0.0 GB_GUI=gb.qt4 GDMSESSION=Lubuntu GDM_LANG=en_AU GNOME_KEYRING_CONTROL= GNOME_KEYRING_PID= GPG_AGENT_INFO=/run/user/1000/keyring/gpg:0:1 GTK_IM_MODULE=xim HOME=/home/shane IM_CONFIG_PHASE=1 INSTANCE= JOB=dbus LANG=en_AU.UTF-8 LANGUAGE=en_AU:en LOGNAME=shane MANDATORY_PATH=/usr/share/gconf/Lubuntu.mandatory.path PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games PWD=/home/shane QT4_IM_MODULE=xim QT_IM_MODULE=ibus QT_PLATFORM_PLUGIN=lxqt QT_QPA_PLATFORMTHEME=lxqt SAL_USE_VCLPLUGIN=gtk SESSION=Lubuntu SESSIONTYPE=lxsession SHELL=/bin/bash SHLVL=0 SSH_AUTH_SOCK=/run/user/1000/keyring/ssh TZ=:/etc/localtime UPSTART_EVENTS=started xsession UPSTART_INSTANCE= UPSTART_JOB=lxsession UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/763 USER=shane XAUTHORITY=/home/shane/.Xauthority XDG_CONFIG_DIRS=/etc/xdg/lubuntu:/etc/xdg/xdg-Lubuntu:/usr/share/upstart/xdg:/etc/xdg XDG_CONFIG_HOME=/home/shane/.config XDG_CURRENT_DESKTOP=LXDE XDG_DATA_DIRS=/etc/xdg/lubuntu:/usr/local/share:/usr/share:/usr/share/gdm:/var/lib/menu-xdg:/usr/share/Lubuntu:/usr/local/share/:/usr/share/ XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/shane XDG_MENU_PREFIX=lxde- XDG_RUNTIME_DIR=/run/user/1000 XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_DESKTOP=Lubuntu XDG_SESSION_ID=c1 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=7 XMODIFIERS=@im=ibus _LXSESSION_PID=894 MediaTest-0.0.1.tar.gz Description: application/gzip -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Fwd: Re: MediaPlayer
On 08/09/15 11:42, Benoît Minisini wrote: > Le 08/09/2015 00:16, Shane a écrit : >> sent this already but it looks like it didn't work trying again >> >> >> >> Forwarded Message >> Subject: Re: MediaPlayer >> Date: Mon, 7 Sep 2015 17:18:57 +1000 >> From: Shane <shanep1...@tpg.com.au> >> To: Benoît Minisini <gam...@users.sourceforge.net> >> >> >> >> On 07/09/15 13:20, Benoît Minisini wrote: >>> Le 07/09/2015 04:45, Shane a écrit : >>>> hi I'm trying to use the media player component i can load a song and >>>> play it >>>> but when i change the URL field to a new file and then call play it >>>> won't play the new file >>>> is there something else i need to do to play the next file funnily >>>> enough if i add the next song >>>> before it finishes playing it will play the new song when the old one >>>> finishes >>>> >>>> > You must stop the player before calling play again. Because calling > Play() does nothing is something is playing. > > Regards, > Actually if you do play again when it is it seem to cue the next song and then proceeds to play it but i digress the other thing is can i declare an event as i have done it that code ? it doesn't seem to get called ? -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] serial ports
Thanks heaps this is exactly what i wanted. just one thing i get some 30 odd ttys's and I'm sure there all not usable serial ports but this is not a problem for me i can just use the ones with values also i would have thought that a filter of 'tty[ACM|USB]*' would stop this On 01/06/15 21:55, Ron wrote: https://domotiga.nl/projects/domotiga/repository/revisions/master/entry/DomotiGa3/.src/Util.module#L218 Where argument are '/dev/', 'tty[ACM|S|USB]*' Regards, Ron. 2015-06-01 13:31 GMT+02:00 Benoît Minisini gam...@users.sourceforge.net: Le 01/06/2015 12:23, Shane a écrit : what would be the best way to make a list of available serial ports in a gambas program? thanks Shane Does anyone have an idea? ls /dev/lp* maybe? -- Benoît Minisini -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] serial ports
ok this works for me tty[ACM*,USB*] On 01/06/15 22:20, Shane wrote: Thanks heaps this is exactly what i wanted. just one thing i get some 30 odd ttys's and I'm sure there all not usable serial ports but this is not a problem for me i can just use the ones with values also i would have thought that a filter of 'tty[ACM|USB]*' would stop this On 01/06/15 21:55, Ron wrote: https://domotiga.nl/projects/domotiga/repository/revisions/master/entry/DomotiGa3/.src/Util.module#L218 Where argument are '/dev/', 'tty[ACM|S|USB]*' Regards, Ron. 2015-06-01 13:31 GMT+02:00 Benoît Minisini gam...@users.sourceforge.net: Le 01/06/2015 12:23, Shane a écrit : what would be the best way to make a list of available serial ports in a gambas program? thanks Shane Does anyone have an idea? ls /dev/lp* maybe? -- Benoît Minisini -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] serial ports
Thanks very much Ron :-) On 01/06/15 22:57, Ron wrote: Onboard serial ports show themselves as /dev/ttyS0-4, so maybe you can tighten the filter. We prefer to use the /dev/serial/by-id/* links since those don't change after reboots, where as the normal /dev/tty device do. (with usb interfaces) That's why you see extra code to read the links, you can leave it out if not needed. Regards, Ron. 2015-06-01 14:20 GMT+02:00 Shane shanep1...@tpg.com.au: Thanks heaps this is exactly what i wanted. just one thing i get some 30 odd ttys's and I'm sure there all not usable serial ports but this is not a problem for me i can just use the ones with values also i would have thought that a filter of 'tty[ACM|USB]*' would stop this On 01/06/15 21:55, Ron wrote: https://domotiga.nl/projects/domotiga/repository/revisions/master/entry/DomotiGa3/.src/Util.module#L218 Where argument are '/dev/', 'tty[ACM|S|USB]*' Regards, Ron. 2015-06-01 13:31 GMT+02:00 Benoît Minisini gam...@users.sourceforge.net: Le 01/06/2015 12:23, Shane a écrit : what would be the best way to make a list of available serial ports in a gambas program? thanks Shane Does anyone have an idea? ls /dev/lp* maybe? -- Benoît Minisini -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Textbox bug
All of a sudden i can't type text in textboxs anymore i can delete but thats it? shane. [System] Gambas=3.5.90 OperatingSystem=Linux Kernel=3.11.0-26-generic Architecture=x86_64 Distribution=Linux Mint 16 Petra Desktop=GNOME Theme=QGtk Language=en_AU.UTF-8 Memory=3807M [Libraries] Cairo=libcairo.so.2.11200.16 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.4 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.200.0 GTK+3=libgtk-3.so.0.803.4 GTK+=libgtk-x11-2.0.so.0.2400.20 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.28.0.0 Poppler=libpoppler.so.43.0.0 Qt4=libQtCore.so.4.8.4 SDL=libSDL-1.2.so.0.11.4 textboxtest-0.0.1.tar.gz Description: application/gzip -- Want excitement? Manually upgrade your production database. When you want reliability, choose Perforce Perforce version control. Predictably reliable. http://pubads.g.doubleclick.net/gampad/clk?id=157508191iu=/4140/ostg.clktrk___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] GridView not setting Row Column on right-click Menu event
hi Dave i came across this an hour ago myself what i did was Public mX As Integer Public mY As Integer Public Sub GridView1_MouseMove() mX = Mouse.X mY= Mouse.Y End then you can use Public Sub GridView1_Menu() Row = GridView1.RowAt(mY) Col = GridView1.ColumnAt(mX) End hope this helps Shane. On 07/08/14 08:43, DaveOxford1 wrote: Hi All When right-clicking on a GridView, .Row and .Column are not set to the values for the new cell in the Menu event (as they in the Click event for a left-click). Is this a bug or the intended behaviour? If it /is/ the intended behaviour, how can I ascertain the Row and Column values? Hope someone can help! Dave Gambas 3.5.3, qt4, on crunchbang waldorf. -- View this message in context: http://gambas.8142.n7.nabble.com/GridView-not-setting-Row-Column-on-right-click-Menu-event-tp47692.html Sent from the gambas-user mailing list archive at Nabble.com. -- Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future. http://pubads.g.doubleclick.net/gampad/clk?id=153845071iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future. http://pubads.g.doubleclick.net/gampad/clk?id=153845071iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Settings
still not working i even changed the project name but i still get the same error and there are no files in the setting dir with my project name. I think from memory there was at some stage but i deleted it to see if that would fix the problem. Is there anywhere that gambas keeps a record of this file? On 27/07/14 17:39, Matti wrote: Have a look at http://gambaswiki.org/wiki/comp/gb.settings for the structure of the settings file. And look at http://gambaswiki.org/wiki/comp/gb.settings/settings how to save a value. So, the syntax is Settings[High_Score/xxx] = HighScore. Regards, Matti Am 27.07.2014 05:02, schrieb Shane: I'm getting file already exists error when trying to run this code Settings[High_Score] = HighScore am i doing this the right way? also this is a sdl program. [System] Gambas=3.5.90 OperatingSystem=Linux Kernel=3.8.0-35-generic Architecture=x86_64 Distribution=Linux Mint 15 Olivia Desktop=GNOME Theme=QGtk Language=en_AU.UTF-8 Memory=3808M [Libraries] Cairo=libcairo.so.2.11200.14 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.2 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.6.0 GTK+3=libgtk-3.so.0.600.4 GTK+=libgtk-x11-2.0.so.0.2400.17 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.28.0.0 Qt4=libQtCore.so.4.8.4 SDL=libSDL-1.2.so.0.11.4 -- Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future. http://pubads.g.doubleclick.net/gampad/clk?id=153845071iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Settings
Something strange is going on here i just put in the code Print Settings.Path and i get the same error but the settings in my other projects work fine? On 28/07/14 10:35, Shane wrote: still not working i even changed the project name but i still get the same error and there are no files in the setting dir with my project name. I think from memory there was at some stage but i deleted it to see if that would fix the problem. Is there anywhere that gambas keeps a record of this file? On 27/07/14 17:39, Matti wrote: Have a look at http://gambaswiki.org/wiki/comp/gb.settings for the structure of the settings file. And look at http://gambaswiki.org/wiki/comp/gb.settings/settings how to save a value. So, the syntax is Settings[High_Score/xxx] = HighScore. Regards, Matti Am 27.07.2014 05:02, schrieb Shane: I'm getting file already exists error when trying to run this code Settings[High_Score] = HighScore am i doing this the right way? also this is a sdl program. [System] Gambas=3.5.90 OperatingSystem=Linux Kernel=3.8.0-35-generic Architecture=x86_64 Distribution=Linux Mint 15 Olivia Desktop=GNOME Theme=QGtk Language=en_AU.UTF-8 Memory=3808M [Libraries] Cairo=libcairo.so.2.11200.14 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.2 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.6.0 GTK+3=libgtk-3.so.0.600.4 GTK+=libgtk-x11-2.0.so.0.2400.17 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.28.0.0 Qt4=libQtCore.so.4.8.4 SDL=libSDL-1.2.so.0.11.4 -- Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future. http://pubads.g.doubleclick.net/gampad/clk?id=153845071iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future. http://pubads.g.doubleclick.net/gampad/clk?id=153845071iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Settings
I'll try its 3.8MB is that to big ? On 28/07/14 11:38, Randall Morgan wrote: Can you attached your project? On Sun, Jul 27, 2014 at 6:46 PM, Shane shanep1...@tpg.com.au wrote: Something strange is going on here i just put in the code Print Settings.Path and i get the same error but the settings in my other projects work fine? On 28/07/14 10:35, Shane wrote: still not working i even changed the project name but i still get the same error and there are no files in the setting dir with my project name. I think from memory there was at some stage but i deleted it to see if that would fix the problem. Is there anywhere that gambas keeps a record of this file? On 27/07/14 17:39, Matti wrote: Have a look at http://gambaswiki.org/wiki/comp/gb.settings for the structure of the settings file. And look at http://gambaswiki.org/wiki/comp/gb.settings/settings how to save a value. So, the syntax is Settings[High_Score/xxx] = HighScore. Regards, Matti Am 27.07.2014 05:02, schrieb Shane: I'm getting file already exists error when trying to run this code Settings[High_Score] = HighScore am i doing this the right way? also this is a sdl program. [System] Gambas=3.5.90 OperatingSystem=Linux Kernel=3.8.0-35-generic Architecture=x86_64 Distribution=Linux Mint 15 Olivia Desktop=GNOME Theme=QGtk Language=en_AU.UTF-8 Memory=3808M [Libraries] Cairo=libcairo.so.2.11200.14 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.2 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.6.0 GTK+3=libgtk-3.so.0.600.4 GTK+=libgtk-x11-2.0.so.0.2400.17 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.28.0.0 Qt4=libQtCore.so.4.8.4 SDL=libSDL-1.2.so.0.11.4 -- Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future. http://pubads.g.doubleclick.net/gampad/clk?id=153845071iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future. http://pubads.g.doubleclick.net/gampad/clk?id=153845071iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future. http://pubads.g.doubleclick.net/gampad/clk?id=153845071iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Settings
yep to big try this https://drive.google.com/file/d/0B7AcxnE14xeaLVFDUGhja19NcUU/edit?usp=sharing On 28/07/14 11:54, Shane wrote: I'll try its 3.8MB is that to big ? On 28/07/14 11:38, Randall Morgan wrote: Can you attached your project? On Sun, Jul 27, 2014 at 6:46 PM, Shane shanep1...@tpg.com.au wrote: Something strange is going on here i just put in the code Print Settings.Path and i get the same error but the settings in my other projects work fine? On 28/07/14 10:35, Shane wrote: still not working i even changed the project name but i still get the same error and there are no files in the setting dir with my project name. I think from memory there was at some stage but i deleted it to see if that would fix the problem. Is there anywhere that gambas keeps a record of this file? On 27/07/14 17:39, Matti wrote: Have a look at http://gambaswiki.org/wiki/comp/gb.settings for the structure of the settings file. And look at http://gambaswiki.org/wiki/comp/gb.settings/settings how to save a value. So, the syntax is Settings[High_Score/xxx] = HighScore. Regards, Matti Am 27.07.2014 05:02, schrieb Shane: I'm getting file already exists error when trying to run this code Settings[High_Score] = HighScore am i doing this the right way? also this is a sdl program. [System] Gambas=3.5.90 OperatingSystem=Linux Kernel=3.8.0-35-generic Architecture=x86_64 Distribution=Linux Mint 15 Olivia Desktop=GNOME Theme=QGtk Language=en_AU.UTF-8 Memory=3808M [Libraries] Cairo=libcairo.so.2.11200.14 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.2 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.6.0 GTK+3=libgtk-3.so.0.600.4 GTK+=libgtk-x11-2.0.so.0.2400.17 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.28.0.0 Qt4=libQtCore.so.4.8.4 SDL=libSDL-1.2.so.0.11.4 -- Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future. http://pubads.g.doubleclick.net/gampad/clk?id=153845071iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future. http://pubads.g.doubleclick.net/gampad/clk?id=153845071iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future. http://pubads.g.doubleclick.net/gampad/clk?id=153845071iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future. http://pubads.g.doubleclick.net/gampad/clk?id=153845071iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Settings
Thanks benoit that fixed it But i'm not sure why but i guess you do Thanks Shane On 28/07/14 15:26, B Bruen wrote: On Mon, 28 Jul 2014 07:18:47 +0200 Benoît Minisini gam...@users.sourceforge.net wrote: Le 28/07/2014 06:59, B Bruen a écrit : On Sun, 27 Jul 2014 20:35:53 -0600 Randall Morgan rmorga...@gmail.com wrote: Must be too big on your end. I know I and others have sent larger files... But the link works also. I'll look at your code and get back to you. I have had a bit of a look at this. To me, it appears that sdl is doing something nasty to the Try.. If Error construct. The failure occurs in the Settings class when it is creating the directory chain for the user's .config/gambas3 directory. It fails on the first iteration through the path, i.e. Try Mkdir / sPath when sPath = i.e. the root directory (strangely enough!) already exists. That line should not fail i.e. the Try should ignore the error silently. But with sdl it appears not too? Definitely a bug within Gambas itself. Over to Benoit... regards Bruce Maybe not clicking the stop on each error button in the IDE would solve the problem? :-) -- Benoît Minisini Stop on each error is not clicked here and I can reproduce the reported error. B -- Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future. http://pubads.g.doubleclick.net/gampad/clk?id=153845071iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Settings
the next thing did anyone play it and what are some of your thoughts On 28/07/14 15:43, Shane wrote: Thanks benoit that fixed it But i'm not sure why but i guess you do Thanks Shane On 28/07/14 15:26, B Bruen wrote: On Mon, 28 Jul 2014 07:18:47 +0200 Benoît Minisini gam...@users.sourceforge.net wrote: Le 28/07/2014 06:59, B Bruen a écrit : On Sun, 27 Jul 2014 20:35:53 -0600 Randall Morgan rmorga...@gmail.com wrote: Must be too big on your end. I know I and others have sent larger files... But the link works also. I'll look at your code and get back to you. I have had a bit of a look at this. To me, it appears that sdl is doing something nasty to the Try.. If Error construct. The failure occurs in the Settings class when it is creating the directory chain for the user's .config/gambas3 directory. It fails on the first iteration through the path, i.e. Try Mkdir / sPath when sPath = i.e. the root directory (strangely enough!) already exists. That line should not fail i.e. the Try should ignore the error silently. But with sdl it appears not too? Definitely a bug within Gambas itself. Over to Benoit... regards Bruce Maybe not clicking the stop on each error button in the IDE would solve the problem? :-) -- Benoît Minisini Stop on each error is not clicked here and I can reproduce the reported error. B -- Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future. http://pubads.g.doubleclick.net/gampad/clk?id=153845071iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future. http://pubads.g.doubleclick.net/gampad/clk?id=153845071iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Settings
I'm getting file already exists error when trying to run this code Settings[High_Score] = HighScore am i doing this the right way? also this is a sdl program. [System] Gambas=3.5.90 OperatingSystem=Linux Kernel=3.8.0-35-generic Architecture=x86_64 Distribution=Linux Mint 15 Olivia Desktop=GNOME Theme=QGtk Language=en_AU.UTF-8 Memory=3808M [Libraries] Cairo=libcairo.so.2.11200.14 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.2 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.6.0 GTK+3=libgtk-3.so.0.600.4 GTK+=libgtk-x11-2.0.so.0.2400.17 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.28.0.0 Qt4=libQtCore.so.4.8.4 SDL=libSDL-1.2.so.0.11.4 -- Want fast and easy access to all the code in your enterprise? Index and search up to 200,000 lines of code with a free copy of Black Duck Code Sight - the same software that powers the world's largest code search on Ohloh, the Black Duck Open Hub! Try it now. http://p.sf.net/sfu/bds ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] sdl mouse
yea It is problematic if that happens. but i have seen it done with some game engines and the reason i need it is if i have a windowed action game that use,s the mouse i doesn't take long before the user is clicking outside the game window and losing focus on the game which is a problem i did try what you said and it didn't work very well at all :-( On 03/07/14 16:58, Rolf-Werner Eilert wrote: Isn't that dangerous? If the application crashes, the mouse is caught within the dead window's boundaries. Maybe you can read the mouse coordinates and reset them to within the window, by code of your application, so that the mouse gets free if the application dies. Rolf Am 03.07.2014 07:44, schrieb Shane: any word on this On 16/06/14 23:25, Shane wrote: hi benoit would it be possible to include the ability to keep the mouse within the bounds of the sdl window thanks Shane -- HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions Find What Matters Most in Your Big Data with HPCC Systems Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. Leverages Graph Analysis for Fast Processing Easy Data Exploration http://p.sf.net/sfu/hpccsystems ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Open source business process management suite built on Java and Eclipse Turn processes into business applications with Bonita BPM Community Edition Quickly connect people, data, and systems into organized workflows Winner of BOSSIE, CODIE, OW2 and Gartner awards http://p.sf.net/sfu/Bonitasoft ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Open source business process management suite built on Java and Eclipse Turn processes into business applications with Bonita BPM Community Edition Quickly connect people, data, and systems into organized workflows Winner of BOSSIE, CODIE, OW2 and Gartner awards http://p.sf.net/sfu/Bonitasoft ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Open source business process management suite built on Java and Eclipse Turn processes into business applications with Bonita BPM Community Edition Quickly connect people, data, and systems into organized workflows Winner of BOSSIE, CODIE, OW2 and Gartner awards http://p.sf.net/sfu/Bonitasoft ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] sdl mouse
any word on this On 16/06/14 23:25, Shane wrote: hi benoit would it be possible to include the ability to keep the mouse within the bounds of the sdl window thanks Shane -- HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions Find What Matters Most in Your Big Data with HPCC Systems Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. Leverages Graph Analysis for Fast Processing Easy Data Exploration http://p.sf.net/sfu/hpccsystems ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Open source business process management suite built on Java and Eclipse Turn processes into business applications with Bonita BPM Community Edition Quickly connect people, data, and systems into organized workflows Winner of BOSSIE, CODIE, OW2 and Gartner awards http://p.sf.net/sfu/Bonitasoft ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] menu error
ummm maybe i should have said i was using the ide to do this On 29/06/14 18:05, Patrik Karlsson wrote: My guess is that you have to subtract one from your menu index. http://en.wikipedia.org/wiki/Off-by-one_error 2014-06-29 5:14 GMT+02:00 Shane shanep1...@tpg.com.au: I get the attached error when trying to insert a menu to an existing project form build 6343 [System] Gambas=3.5.90 OperatingSystem=Linux Kernel=3.8.0-35-generic Architecture=x86_64 Distribution=Linux Mint 15 Olivia Desktop=GNOME Theme=QGtk Language=en_AU.UTF-8 Memory=3808M [Libraries] Cairo=libcairo.so.2.11200.14 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.2 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.6.0 GTK+3=libgtk-3.so.0.600.4 GTK+=libgtk-x11-2.0.so.0.2400.17 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.28.0.0 Qt4=libQtCore.so.4.8.4 SDL=libSDL-1.2.so.0.11.4 -- Open source business process management suite built on Java and Eclipse Turn processes into business applications with Bonita BPM Community Edition Quickly connect people, data, and systems into organized workflows Winner of BOSSIE, CODIE, OW2 and Gartner awards http://p.sf.net/sfu/Bonitasoft ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Open source business process management suite built on Java and Eclipse Turn processes into business applications with Bonita BPM Community Edition Quickly connect people, data, and systems into organized workflows Winner of BOSSIE, CODIE, OW2 and Gartner awards http://p.sf.net/sfu/Bonitasoft ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Open source business process management suite built on Java and Eclipse Turn processes into business applications with Bonita BPM Community Edition Quickly connect people, data, and systems into organized workflows Winner of BOSSIE, CODIE, OW2 and Gartner awards http://p.sf.net/sfu/Bonitasoft ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] SDL Feature Hide Cursor
Thanks Benoit On 15/06/14 21:58, Benoît Minisini wrote: Le 15/06/2014 05:58, Shane a écrit : Could we please have the ability in SDL to hide and show the cursor? thanks Shane. Done in revision #6318. Mouse.Hide() hides the cursor. Mouse.Show() shows the cursor. Or use the Mouse.Visible property. Regards, -- HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions Find What Matters Most in Your Big Data with HPCC Systems Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. Leverages Graph Analysis for Fast Processing Easy Data Exploration http://p.sf.net/sfu/hpccsystems ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] sdl mouse
hi benoit would it be possible to include the ability to keep the mouse within the bounds of the sdl window thanks Shane -- HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions Find What Matters Most in Your Big Data with HPCC Systems Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. Leverages Graph Analysis for Fast Processing Easy Data Exploration http://p.sf.net/sfu/hpccsystems ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Pcduino
yes I have it running on my pcduino and it runs well and I have been able to turn leds on and off using gambas but as far as anything else go's I've had no luck Eg: getting the PWM to work and One Wire when I first started looking into this I thought that I would be simple and that the pcduino would have a Library for the ardunio side of things but It is a bit more complicated than this it seems On 07/05/14 06:20, PICCORO McKAY Lenz wrote: From: Shane shanep1...@tpg.com.au Can you show me some links to what you are talking about as i am not sure what you mean i try to explain that all u asked can be done, of course with some fin tune.. i try to said to u that i have already minor hardware compared to pcduino and i run gambas, an many others systems thanks -- Is your legacy SCM system holding you back? Join Perforce May 7 to find out: #149; 3 signs your SCM is hindering your productivity #149; Requirements for releasing software faster #149; Expert tips and advice for migrating your SCM now http://p.sf.net/sfu/perforce ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Is your legacy SCM system holding you back? Join Perforce May 7 to find out: #149; 3 signs your SCM is hindering your productivity #149; Requirements for releasing software faster #149; Expert tips and advice for migrating your SCM now http://p.sf.net/sfu/perforce ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Pcduino
Can you show me some links to what you are talking about as i am not sure what you mean thanks On 06/05/14 01:41, PICCORO McKAY Lenz wrote: From: Shane shanep1...@tpg.com.au is anyone one using gambas with the pcduino ? i run venenux in darumas's pc's, that are minor hardware to pcduino, lets see: daruma have CPU 800MHz shared to GPU and 512Mb ram, pata ide pcduino have 1GHz CPU and 400MHz GPU and 1Gb ram, sata ide so i recommended to use beter distro to hardware.. to me they are a perfect match better than the pi at the moment i have got basic gpio working but anything else is alluding me is there a way to use a C library or something ? of course u can doit, but of course u must install respective devel packages in daruma's that are lower compared, i installed and develop easile with venenux also my assistance system works like a charm I've had such similar hardware, and really when you start installing many software comes somethings to fail, the cause is the software and not the hardware, for today's popular linux distros assume that there is a lot of power and resources thanks shane -- Is your legacy SCM system holding you back? Join Perforce May 7 to find out: #149; 3 signs your SCM is hindering your productivity #149; Requirements for releasing software faster #149; Expert tips and advice for migrating your SCM now http://p.sf.net/sfu/perforce ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Is your legacy SCM system holding you back? Join Perforce May 7 to find out: #149; 3 signs your SCM is hindering your productivity #149; Requirements for releasing software faster #149; Expert tips and advice for migrating your SCM now http://p.sf.net/sfu/perforce ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Pcduino
is anyone one using gambas with the pcduino ? to me they are a perfect match better than the pi at the moment i have got basic gpio working but anything else is alluding me is there a way to use a C library or something ? thanks shane -- Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available. Simple to use. Nothing to install. Get started now for free. http://p.sf.net/sfu/SauceLabs ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Parent bug ?
lol what i have is a form2 on a workspace1 and the workspace1 is on the main form1 so from2 I want to get the location of workspace1 on form1 hope that makes sense? it just seem that these properties should be filled. On 07/02/14 17:13, Fabien Bodard wrote: Le 7 févr. 2014 02:46, Shane shanep1...@tpg.com.au a écrit : Control.Parent (gb.qt4) Property Read *Parent* As Container http://gambasdoc.org/help/comp/gb.qt4/container?v3 Well lol, I know that ... I just want to know what parent must to be ... A form ?... A control ? If you want to get the form of a control prefer the use of me.window Returns the control container. On 07/02/14 02:54, Fabien Bodard wrote: But what is parent ? Le 6 févr. 2014 06:31, Shane shanep1...@tpg.com.au a écrit : is this a bug ? when I use - Me.Parent.Width I get a value as expected but when I use Me.Parent.X .Y I get 0 when I expecting a value 0 and the same with Me.Parent.ClientX .ClientY etc -- Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] spelling bug ?
Control.Parent (gb.qt4) Property Read *Parent* As Container http://gambasdoc.org/help/comp/gb.qt4/container?v3 Returns the control container. On 07/02/14 02:54, Fabien Bodard wrote: But what is parent ? Le 6 févr. 2014 06:31, Shane shanep1...@tpg.com.au a écrit : is this a bug ? when I use - Me.Parent.Width I get a value as expected but when I use Me.Parent.X .Y I get 0 when I expecting a value 0 and the same with Me.Parent.ClientX .ClientY etc -- Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] bug ?
is this a bug ? when I use - Me.Parent.Width I get a value as exspeced but when I use Me.Parent.X .Y I get 0 when I expecting a value 0 and the same with Me.Parent.ClientX .ClientY etc -- Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] spelling bug ?
is this a bug ? when I use - Me.Parent.Width I get a value as expected but when I use Me.Parent.X .Y I get 0 when I expecting a value 0 and the same with Me.Parent.ClientX .ClientY etc -- Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] printer bug ?
I think there might be a bug in the printer component this program generates a signal 11 when you press print -- Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] print repot to pdf file
That's Great just what i needed too On 04/02/14 04:05, Fabien Bodard wrote: As always you under estimates gb ? Just name the file with a .pdf as extention. Printer.filename=Toto.pdf Will generate a pdf. Le 3 févr. 2014 16:46, PICCORO McKAY Lenz mckaygerh...@gmail.com a écrit : i note that gambas does not have direct pdf printing support, so i plans to use ps2pdf commnd to that! but my question HOW CAN I WRITE THE REPORT TO POSTSCRIPT? i i can write te gambas report class result render to a postscript print file, i can wirte a pdf file converting this with ps2pdf commnd please urgent! (as always jjeje) Lenz McKAY Gerardo (PICCORO) http://qgqlochekone.blogspot.com -- Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] printer bug ?
and here is the project On 05/02/14 11:26, Shane wrote: I think there might be a bug in the printer component this program generates a signal 11 when you press print -- Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user PrinterBug-0.0.1.tar.gz Description: application/gzip -- Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] ppa
is the daily build of kendek's ppa still working ? -- Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121051231iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] sdl music
Can Someone please add a playing property to the sdl music component it looks easy using 4.5.19 Mix_PlayingMusic |int *Mix_PlayingMusic*()| Tells you if music is actively playing, or not. *Note*: Does not check if the channel has been paused. *Returns*: Zero if the music is not playing, or 1 if it is playing. this would be great thanks in advance -- CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] sdl music
On 28/01/14 05:46, Benoît Minisini wrote: Le 27/01/2014 19:39, Benoît Minisini a écrit : Le 27/01/2014 11:17, Shane a écrit : Can Someone please add a playing property to the sdl music component it looks easy using 4.5.19 Mix_PlayingMusic |int *Mix_PlayingMusic*()| Tells you if music is actively playing, or not. *Note*: Does not check if the channel has been paused. *Returns*: Zero if the music is not playing, or 1 if it is playing. this would be great thanks in advance You can check the value of Music.Pos. If is different from zero, then the music is playing or paused. Regards, And I added a Music.State property in revision #6108 to do what you want. Regards, thats great thanks very much keep up the great work :-) -- CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Gridview
what is needed to get word warp height resizing working ? this is what i have GridView1.Rows[Index].Height = -1 GridView1[Index, 0].WordWrap = True so wordwarp works but the height is not resized -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] sdl
sorry wrong one try this On 15/12/13 22:53, Benoît Minisini wrote: Le 15/12/2013 07:06, Shane a écrit : i did a small program That program does not use SDL at all. Please provide a project that shows your problem! SDLtest-0.0.1.tar.gz Description: application/gzip -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] sdl
what's going on here i'm trying to display and image with a rectangle around it on an SDL Window using Screen.Clear Draw.Image Draw.Rect when i do this i get just the Rect if i comment out the Draw.Rect the Image shows and if i comment out the Screen.Clear the image and rect show -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] sdl
i did a small program On 15/12/13 11:59, Shane wrote: what's going on here i'm trying to display and image with a rectangle around it on an SDL Window using Screen.Clear Draw.Image Draw.Rect when i do this i get just the Rect if i comment out the Draw.Rect the Image shows and if i comment out the Screen.Clear the image and rect show -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user pictest-0.0.1.tar.gz Description: application/gzip -- Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Reading RGB(A) values of screen pixels
Is this of any help On 21/11/13 09:01, ukimiku wrote: *Dear list members,* this is my first post, I am new to Gambas. I tried to find an answer to my question by searching the list archives first, but have not been able to find information that was to the point. There are my 2 questions: a) When I have loaded and displayed a picture, how can I access the color information of its individual pixels? I would like to read the red, green, blue, and alpha values of any pixel that I specify. b) Is this possible for any screen pixels, even for pixels outside my picture/my Gambas application? Thank you. * Regards,* ukimiku -- View this message in context: http://gambas.8142.n7.nabble.com/Reading-RGB-A-values-of-screen-pixels-tp44309.html Sent from the gambas-user mailing list archive at Nabble.com. -- Shape the Mobile Experience: Free Subscription Software experts and developers: Be at the forefront of tech innovation. Intel(R) Software Adrenaline delivers strategic insight and game-changing conversations that shape the rapidly evolving mobile landscape. Sign up now. http://pubads.g.doubleclick.net/gampad/clk?id=63431311iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user pictest-0.0.1.tar.gz Description: application/gzip -- Shape the Mobile Experience: Free Subscription Software experts and developers: Be at the forefront of tech innovation. Intel(R) Software Adrenaline delivers strategic insight and game-changing conversations that shape the rapidly evolving mobile landscape. Sign up now. http://pubads.g.doubleclick.net/gampad/clk?id=63431311iu=/4140/ostg.clktrk___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Reading RGB(A) values of screen pixels
there is this for ver 2.0 http://gambasdoc.org/help/comp/gb.qt/image where you use image[x,y] On 21/11/13 09:01, ukimiku wrote: *Dear list members,* this is my first post, I am new to Gambas. I tried to find an answer to my question by searching the list archives first, but have not been able to find information that was to the point. There are my 2 questions: a) When I have loaded and displayed a picture, how can I access the color information of its individual pixels? I would like to read the red, green, blue, and alpha values of any pixel that I specify. b) Is this possible for any screen pixels, even for pixels outside my picture/my Gambas application? Thank you. * Regards,* ukimiku -- View this message in context: http://gambas.8142.n7.nabble.com/Reading-RGB-A-values-of-screen-pixels-tp44309.html Sent from the gambas-user mailing list archive at Nabble.com. -- Shape the Mobile Experience: Free Subscription Software experts and developers: Be at the forefront of tech innovation. Intel(R) Software Adrenaline delivers strategic insight and game-changing conversations that shape the rapidly evolving mobile landscape. Sign up now. http://pubads.g.doubleclick.net/gampad/clk?id=63431311iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Shape the Mobile Experience: Free Subscription Software experts and developers: Be at the forefront of tech innovation. Intel(R) Software Adrenaline delivers strategic insight and game-changing conversations that shape the rapidly evolving mobile landscape. Sign up now. http://pubads.g.doubleclick.net/gampad/clk?id=63431311iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Reading RGB(A) values of screen pixels
and here http://gambasdoc.org/help/comp/gb.image/image?v3 On 21/11/13 09:01, ukimiku wrote: *Dear list members,* this is my first post, I am new to Gambas. I tried to find an answer to my question by searching the list archives first, but have not been able to find information that was to the point. There are my 2 questions: a) When I have loaded and displayed a picture, how can I access the color information of its individual pixels? I would like to read the red, green, blue, and alpha values of any pixel that I specify. b) Is this possible for any screen pixels, even for pixels outside my picture/my Gambas application? Thank you. * Regards,* ukimiku -- View this message in context: http://gambas.8142.n7.nabble.com/Reading-RGB-A-values-of-screen-pixels-tp44309.html Sent from the gambas-user mailing list archive at Nabble.com. -- Shape the Mobile Experience: Free Subscription Software experts and developers: Be at the forefront of tech innovation. Intel(R) Software Adrenaline delivers strategic insight and game-changing conversations that shape the rapidly evolving mobile landscape. Sign up now. http://pubads.g.doubleclick.net/gampad/clk?id=63431311iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- Shape the Mobile Experience: Free Subscription Software experts and developers: Be at the forefront of tech innovation. Intel(R) Software Adrenaline delivers strategic insight and game-changing conversations that shape the rapidly evolving mobile landscape. Sign up now. http://pubads.g.doubleclick.net/gampad/clk?id=63431311iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] curl ftp
I'm having trouble connecting to a FTP server using the curl ftpclient and it seems that it uses EPSV buy default is there a way to switch to PASV mode ? also when i'm finished using the ftp connection what is the correct way to dissconect? thanks Shane -- October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register http://pubads.g.doubleclick.net/gampad/clk?id=60133471iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] get filename from file path
yes Of cause I looked at that as well and got confused with to doc's (feeble brain) anyway thats On 19/09/13 19:39, Kende Krisztián wrote: Myext = File.Name(path) On 19/09/13 18:02, Fabien Bodard wrote: I Looked at that but i think my question was unclear sorry i need the filename and the extension from something like \home\user\filename.txt so i need filename.txt hope that make sense now Yes... Myext = file.ext(path) Le 19 sept. 2013 09:41, Shane shanep1...@tpg.com.au a écrit : is there a way to get just the filename ext from a path ? -- LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] get filename from file path
thanks everyone On 19/09/13 19:48, Shane wrote: yes Of cause I looked at that as well and got confused with to doc's (feeble brain) anyway thats On 19/09/13 19:39, Kende Krisztián wrote: Myext = File.Name(path) On 19/09/13 18:02, Fabien Bodard wrote: I Looked at that but i think my question was unclear sorry i need the filename and the extension from something like \home\user\filename.txt so i need filename.txt hope that make sense now Yes... Myext = file.ext(path) Le 19 sept. 2013 09:41, Shane shanep1...@tpg.com.au a écrit : is there a way to get just the filename ext from a path ? -- LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user -- LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] debug redirect
Is there a way to redirect the debug info from the curl Ftpclient to a textarea or something to give some user feed back (hope this one makes sense) :-) -- LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
[Gambas-user] Gridview Mode
I am unable to set the Gridview Mode Property in the IDE I get Incorrect Property Value (not an Object) [System] OperatingSystem=Linux Kernel=3.8.0-29-generic Architecture=x86_64 Distribution=Ubuntu 13.04 Desktop=XFCE Theme=QGtk Language=en_AU.UTF-8 Memory=3808M [Libraries] Cairo=libcairo.so.0.0.0 Cairo=libcairo.so.2.11200.14 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.2 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.6.0 GTK+=libgtk-x11-2.0.so.0.2400.17 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.28.0.0 Qt4=libQtCore.so.4.8.4 SDL=libSDL-1.2.so.0.11.4 -- Introducing Performance Central, a new site from SourceForge and AppDynamics. Performance Central is your source for news, insights, analysis and resources for efficient Application Performance Management. Visit us today! http://pubads.g.doubleclick.net/gampad/clk?id=48897511iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user
Re: [Gambas-user] Gridview Mode
On 27/08/13 17:00, Tobias Boege wrote: On Tue, 27 Aug 2013, Shane wrote: I am unable to set the Gridview Mode Property in the IDE I get Incorrect Property Value (not an Object) [System] OperatingSystem=Linux Kernel=3.8.0-29-generic Architecture=x86_64 Distribution=Ubuntu 13.04 Desktop=XFCE Theme=QGtk Language=en_AU.UTF-8 Memory=3808M [Libraries] Cairo=libcairo.so.0.0.0 Cairo=libcairo.so.2.11200.14 Curl=libcurl.so.4.3.0 DBus=libdbus-1.so.3.7.2 GStreamer=libgstreamer-0.10.so.0.30.0 GStreamer=libgstreamer-1.0.so.0.6.0 GTK+=libgtk-x11-2.0.so.0.2400.17 OpenGL=libGL.so.1.2.0 Poppler=libpoppler.so.28.0.0 Qt4=libQtCore.so.4.8.4 SDL=libSDL-1.2.so.0.11.4 What does $ gbx3 --version say? Regards, Tobi -- Introducing Performance Central, a new site from SourceForge and AppDynamics. Performance Central is your source for news, insights, analysis and resources for efficient Application Performance Management. Visit us today! http://pubads.g.doubleclick.net/gampad/clk?id=48897511iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user sorry 3.4.90 -- Introducing Performance Central, a new site from SourceForge and AppDynamics. Performance Central is your source for news, insights, analysis and resources for efficient Application Performance Management. Visit us today! http://pubads.g.doubleclick.net/gampad/clk?id=48897511iu=/4140/ostg.clktrk ___ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user