Re: [Gambas-user] Html UTF-8 ISO-8859-1

2016-08-30 Thread Patrik Karlsson
2016-08-28 11:34 GMT+02:00 Gianluigi : > Hello Patrik, > thanks for the reply. > Unfortunately I have not understood how I can get your iconv frontend. > Regard > Gianluigi > > > If you dont use git you can download a zip with https://codeload.github.com/trixon/gambas-alphatrans/zip/master ---

Re: [Gambas-user] Html UTF-8 ISO-8859-1

2016-08-26 Thread Patrik Karlsson
2016-08-23 20:41 GMT+02:00 Gianluigi : > Hi all, > I need to make minor modifications to the source of existing html files. > Unfortunately, some files are saved properly (UTF-8), while others do not > (ISO-8859-1). > I have tried in various ways, using Conv$() also combined with Html(), > using t

Re: [Gambas-user] gambas3 segfaults on Ubuntu MATE for the Raspberry Pi 2

2015-11-13 Thread Patrik Karlsson
versions of llvm. /Patrik 2015-11-02 6:16 GMT+01:00 Patrik Karlsson : > Im on the road now so Ill get back to you on this one in about a week. > Den 1 nov 2015 18:35 skrev "Benoît Minisini" >: > >> Le 31/10/2015 23:39, Patrik Karlsson a écrit : >> > I built

Re: [Gambas-user] gambas3 segfaults on Ubuntu MATE for the Raspberry Pi 2

2015-11-01 Thread Patrik Karlsson
Im on the road now so Ill get back to you on this one in about a week. Den 1 nov 2015 18:35 skrev "Benoît Minisini" : > Le 31/10/2015 23:39, Patrik Karlsson a écrit : > > I built in from source and now the IDE starts ok, > > It may be a problem in the packaging s

Re: [Gambas-user] gambas3 segfaults on Ubuntu MATE for the Raspberry Pi 2

2015-10-31 Thread Patrik Karlsson
I built in from source and now the IDE starts ok, however, gb.jit was disabled. Is it possible to solve that one? 2015-10-31 18:27 GMT+01:00 Patrik Karlsson : > Well, I downloaded the source and: > > cd gambas3-3.8.2/app/src/gambas3/ > pata@rpi2:~/Hämtningar/gambas3-3.8.2/app/src/g

Re: [Gambas-user] gambas3 segfaults on Ubuntu MATE for the Raspberry Pi 2

2015-10-31 Thread Patrik Karlsson
b) bt #0 0x6fef07ce in ?? () from /usr/lib/arm-linux-gnueabihf/libLLVM-3.5.so.1 #1 0x6fef0720 in ?? () from /usr/lib/arm-linux-gnueabihf/libLLVM-3.5.so.1 Backtrace stopped: previous frame identical to this frame (corrupt stack?) (gdb) 2015-10-31 17:25 GMT+01:00 Benoît Minisini : > Le 31/10/201

Re: [Gambas-user] gambas3 segfaults on Ubuntu MATE for the Raspberry Pi 2

2015-10-31 Thread Patrik Karlsson
ce stopped: previous frame identical to this frame (corrupt stack?) (gdb) 2015-10-31 0:45 GMT+01:00 Benoît Minisini : > Le 30/10/2015 19:54, Patrik Karlsson a écrit : > > Hi, > > I added the ppa and installed gambas as usual (apt-get install gambas3). > > When I try to start

[Gambas-user] gambas3 segfaults on Ubuntu MATE for the Raspberry Pi 2

2015-10-30 Thread Patrik Karlsson
Hi, I added the ppa and installed gambas as usual (apt-get install gambas3). When I try to start gambas it segfaults. Is it because of me, the ppa or gambas? :) pata@rpi2:~$ gambas3 Segmentation fault (core dumped) pata@rpi2:~$ gambas3 -V 3.8.2 pata@rpi2:~$ uname -a Linux rpi2 4.1.10-v7+ #821

Re: [Gambas-user] Feature removal suggestion: Pressing Escape hides debug pane

2015-09-19 Thread Patrik Karlsson
2015-09-19 7:16 GMT+02:00 Kevin Fishburne : > When modifying a line of code there are context-sensitive pop-ups for > syntax help, code completion and method/property enumeration, which is > awesome. However, one type of pop-up requires that you press Escape to > clear and the others do not. Being

Re: [Gambas-user] No Global Menu in Ubuntu

2014-10-27 Thread Patrik Karlsson
Thank you! I did a quick test in Ubuntu 14.10 as a virtual machine and installed Gambas from the daily ppa. The IDE and a simple app works as expected. Looking forward to the fix in my production environment. 2014-10-25 14:15 GMT+02:00 Benoît Minisini : > Le 25/10/2014 07:31, Patrik Karls

Re: [Gambas-user] No Global Menu in Ubuntu

2014-10-24 Thread Patrik Karlsson
2014-10-21 18:02 GMT+02:00 Benoît Minisini : > Le 21/10/2014 17:47, Patrik Karlsson a écrit : > > 2014-10-17 19:41 GMT+02:00 Patrik Karlsson : > > > >> Hi, > >> > >> I have just updated to Gambas 3.6 from the gambas-team ppa and > discovered > >&

Re: [Gambas-user] No Global Menu in Ubuntu

2014-10-21 Thread Patrik Karlsson
2014-10-21 18:02 GMT+02:00 Benoît Minisini : > Le 21/10/2014 17:47, Patrik Karlsson a écrit : > > 2014-10-17 19:41 GMT+02:00 Patrik Karlsson : > > > >> Hi, > >> > >> I have just updated to Gambas 3.6 from the gambas-team ppa and > discovered > >&

Re: [Gambas-user] No Global Menu in Ubuntu

2014-10-21 Thread Patrik Karlsson
2014-10-21 18:40 GMT+02:00 Johny Provoost : > > Op 21-10-14 om 17:47 schreef Patrik Karlsson: > > > > Hi, it's me again. :) > > > > Am I the only Ubuntu (Unity) user on this list having problem with menus? > > Or am I the only Ubuntu (Unity) user on this

Re: [Gambas-user] No Global Menu in Ubuntu

2014-10-21 Thread Patrik Karlsson
2014-10-17 19:41 GMT+02:00 Patrik Karlsson : > Hi, > > I have just updated to Gambas 3.6 from the gambas-team ppa and discovered > that Gambas does not longer support Global Menu in Ubuntu when using > GB_GUI=gb.qt4. > > I can not make the IDE export the menus and my own

[Gambas-user] No Global Menu in Ubuntu

2014-10-17 Thread Patrik Karlsson
Hi, I have just updated to Gambas 3.6 from the gambas-team ppa and discovered that Gambas does not longer support Global Menu in Ubuntu when using GB_GUI=gb.qt4. I can not make the IDE export the menus and my own apps only exports the menu with gb.gtk and gb.gtk3. Is this possible to fix in Gamb

Re: [Gambas-user] IDE feature request

2014-10-09 Thread Patrik Karlsson
I have the same problem as you. Reported it on this list some time ago. Patrik -- Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are

[Gambas-user] alphatrans

2014-09-13 Thread Patrik Karlsson
Hi, I made a gui for iconv that makes it easy to convert file encoding. Feel free to try it out and come with any suggestions that you might have. Screenshot and source code: http://trixon.se/linux/alphatrans/ /Patrik --

Re: [Gambas-user] Radio menu item

2014-09-08 Thread Patrik Karlsson
2014-09-08 17:23 GMT+02:00 Tobias Boege : > > I guess I could make "Toggle" menu items behave like a radio group but > > don't like that idea. > > Why not? How else would you signify to your user that it's not an ordinary > menu? Well, toggle is ok, what I do not want for a radio menu item to ha

[Gambas-user] Radio menu item

2014-09-08 Thread Patrik Karlsson
I was looking for a way to have menu items behave like radio 'buttons' and the only thing I found was an old archive post from 2009. http://sourceforge.net/p/gambas/mailman/message/24068134/ Is it possible to have radio menu items now? /Patrik I guess I could make "Toggle" menu items behave like

Re: [Gambas-user] Loading non UTF-8 text files to TextArea

2014-09-08 Thread Patrik Karlsson
2014-09-06 20:45 GMT+02:00 Benoît Minisini : > Le 06/09/2014 20:29, Patrik Karlsson a écrit : > > Hi, > > > > I got: Gtk-CRITICAL **: gtk_text_buffer_emit_insert: assertion > > 'g_utf8_validate (text, len, NULL)' failed > > when trying TextArea.Te

[Gambas-user] Loading non UTF-8 text files to TextArea

2014-09-06 Thread Patrik Karlsson
Hi, I got: Gtk-CRITICAL **: gtk_text_buffer_emit_insert: assertion 'g_utf8_validate (text, len, NULL)' failed when trying TextArea.Text=File.Load("iso8859-1.txt") So my TextArea stays empty. I have found an old bug report regarding this tagged as wont fix. Since the file loads as expected in qt

Re: [Gambas-user] yaya - yet another yahtzee

2014-07-13 Thread Patrik Karlsson
2014-07-13 1:18 GMT+02:00 Kevin Fishburne : > On 07/12/2014 12:56 PM, Patrik Karlsson wrote: > > My first Gambas project of any substance is becoming somewhat useful and > > I'm asking you for some feedback before I'm wrapping it up. > > > > It's a dice

Re: [Gambas-user] menu error

2014-06-29 Thread Patrik Karlsson
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 : > I get the attached error when trying to insert a menu to an existing > project form > > build 6343 > > [System] > Gambas=3.5.90 > OperatingSystem=Lin

Re: [Gambas-user] Referencing an array element with boolean

2014-06-21 Thread Patrik Karlsson
2014-06-21 12:28 GMT+02:00 Tobias Boege : > On Sat, 21 Jun 2014, Patrik Karlsson wrote: > > 1. Why is Abs(True) True? > > Because the mapping Integer -> Boolean is not injective. The rule is: 0 > maps > to False, everything else maps to True. To be able to map Bo

Re: [Gambas-user] Referencing an array element with boolean

2014-06-21 Thread Patrik Karlsson
2014-06-21 12:23 GMT+02:00 Benoît Minisini : > Le 21/06/2014 09:47, Patrik Karlsson a écrit : > > 3. I have a "BoolToIndex" function in a library module but I was thinking > > if it should not be part of the language, to be able to reference in > > a _simple_

[Gambas-user] Referencing an array element with boolean

2014-06-21 Thread Patrik Karlsson
Many years ago when I was programming in Delphi I used to have object arrays of size 2 and referencing to the element index with true and false. This was very very useful. It was possible since false=0 and true=+1. In Gambas we have false=0 and true=-1. So now I came up with: Dim sMoods As Stri

Re: [Gambas-user] Feature request: Color.Link and Color.Visited system colors.

2014-06-20 Thread Patrik Karlsson
Much appreciated, thank you. 2014-06-20 15:44 GMT+02:00 Benoît Minisini : > Le 20/06/2014 07:57, Patrik Karlsson a écrit : > > Is it possible to add system colors in order to get the color of links > from > > the current theme? > > Color.Link and Color.Visited. >

[Gambas-user] Feature request: Color.Link and Color.Visited system colors.

2014-06-19 Thread Patrik Karlsson
Is it possible to add system colors in order to get the color of links from the current theme? Color.Link and Color.Visited. /Patrik -- HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions Find What Ma

Re: [Gambas-user] Feature request IDE: Make the origin of the DEBUG line code act as a hyper link

2014-06-15 Thread Patrik Karlsson
2014-06-15 14:46 GMT+02:00 Benoît Minisini : > Le 14/06/2014 22:33, Jussi Lahtinen a écrit : > > Excellent idea! > > > > > > Jussi > > > > > > Done in revision #6320. > > At the moment, the feature is not optional, but it will be. I'm just > waiting from people's tests before. > > Regards, > > --

Re: [Gambas-user] Development cycle and component vs library

2014-06-14 Thread Patrik Karlsson
2014-06-15 1:06 GMT+02:00 B Bruen : > On Sat, 14 Jun 2014 07:26:46 +0200 > Patrik Karlsson wrote: > > > I'm working on a dice game and I'm thinking of separating "the dice part" > > from the game itself so I and others could reuse it, and for separati

[Gambas-user] Feature request IDE: Make the origin of the DEBUG line code act as a hyper link

2014-06-14 Thread Patrik Karlsson
I would like to be able to (ctrl) click the Class.Function.Line in the Debug output in order to navigate to its source. *CScoreGrid.HoverRow.337*: 0 12 *CRoller.PictureBox_MouseUp.171*: It does not have to look like a link, as long as it acts like one. /Patrik --

[Gambas-user] Development cycle and component vs library

2014-06-13 Thread Patrik Karlsson
I'm working on a dice game and I'm thinking of separating "the dice part" from the game itself so I and others could reuse it, and for separation. The main reason for not doing this earlier is that I could not understand how to make the game development cycle easy in the sense that: 1. libraries h

[Gambas-user] Fwd: Feature request: IDE

2014-06-13 Thread Patrik Karlsson
-- Forwarded message -- From: Benoît Minisini Date: 2014-06-10 19:51 GMT+02:00 Subject: Re: [Gambas-user] Feature request: IDE To: Patrik Karlsson Well, everything is done except: 2. Make shortcut for Horizontal and Vertikal split toggle. > -> On my machine, CTRL

Re: [Gambas-user] Feature request: IDE

2014-06-06 Thread Patrik Karlsson
2014-06-06 13:25 GMT+02:00 Jussi Lahtinen : > > > 9. Move current row up/down > > > > > > 10. Move current selection up/down > > > > If I can find available shortcuts. > > > > > ?? Haven't you done this already, Benoit? > > ALT + up/down arrow keys? > > Great, works for me! Perhaps make that funct

Re: [Gambas-user] Feature request: IDE

2014-06-06 Thread Patrik Karlsson
2014-06-06 10:01 GMT+02:00 Benoît Minisini : > Le 06/06/2014 09:52, Patrik Karlsson a écrit : > > There are things in other IDEs/editors that I miss in Gambas and that I > > think would be useful, not only to me. > > > > 1. Tab management > > * Add close all fro

[Gambas-user] Feature request: IDE

2014-06-06 Thread Patrik Karlsson
There are things in other IDEs/editors that I miss in Gambas and that I think would be useful, not only to me. 1. Tab management * Add close all from the view menu to the tabs popup menu. * Add close tabs to left * Add close tabs to right 2. Make shortcut for Horizontal and Vertikal split toggle.

Re: [Gambas-user] Gambas on Mac OS X/MacPorts

2014-06-03 Thread Patrik Karlsson
2012-08-07 13:35 GMT+02:00 François Gallo : > > Le 7 août 2012 à 13:00, Patrik Karlsson a écrit > : > > > I have read about getting Gambas running on OS X and while browsing the > svn > > log of Gambas I found the lines below. > > > > * NEW: Add support f

Re: [Gambas-user] CInt("0") <> CInt("")

2014-05-31 Thread Patrik Karlsson
2014-05-31 17:49 GMT+02:00 Jussi Lahtinen : > Oh, in this case use IsInteger(). > > Jussi > > Got it, thanks! -- Time is money. Stop wasting it! Get your web API in 5 minutes. www.restlet.com/download http://p.sf.net/sfu/r

[Gambas-user] Function() vs Function$()

2014-05-31 Thread Patrik Karlsson
Why do we have both Function() and Function$() in Gambas? e.g. Subst and Subst$, Left and Left$ Is it an old Basic convention? Which variant is most desirable to use? /Patrik -- Time is money. Stop wasting it! Get your we

[Gambas-user] Fwd: Wiki Last Changes - Admin Only

2014-05-31 Thread Patrik Karlsson
> > Nice! > Could we also have links to the changed page in the list? :) > > /Patrik > > >Done. > >-- >Benoît Minisini Awesome! -- Time is money. Stop wasting it! Get your web API in 5 minutes. www.restlet.com/download htt

Re: [Gambas-user] Wiki Last Changes - Admin Only

2014-05-31 Thread Patrik Karlsson
2014-05-30 21:29 GMT+02:00 Benoît Minisini : > Le 29/05/2014 22:28, Patrik Karlsson a écrit : > > Would it be possible to enable read access to > > http://gambaswiki.org/wiki/changes ? > > > > Every now and then I discover that a page has change and I think it would

[Gambas-user] CInt("0") <> CInt("")

2014-05-31 Thread Patrik Karlsson
Should not CInt("") return 0? Print cint("") Type mismatch: wanted Integer, got String instead /Patrik -- Time is money. Stop wasting it! Get your web API in 5 minutes. www.restlet.com/download http://p.sf.net/sfu/restlet

[Gambas-user] Fwd: Music.Length part 2

2014-05-30 Thread Patrik Karlsson
From: Benoît Minisini Date: 2014-05-28 14:38 GMT+02:00 Subject: Re: [Gambas-user] Music.Length part 2 To: Patrik Karlsson Le 28/05/2014 14:32, Patrik Karlsson a écrit : I had some trouble with gambas gstreamer on Elementary OS so now I'm on > Kubuntu. > > I get MediaPlayer to p

Re: [Gambas-user] Segmentation fault (11)

2014-05-29 Thread Patrik Karlsson
2014-05-29 22:55 GMT+02:00 Tobias Boege : > On Thu, 29 May 2014, Patrik Karlsson wrote: > > The program has stopped unexpectedly: > > Segmentation fault (11) > > > > Please send a bug report to the following mail address: > > gam...@users.sourceforge.net. >

[Gambas-user] Segmentation fault (11)

2014-05-29 Thread Patrik Karlsson
The program has stopped unexpectedly: Segmentation fault (11) Please send a bug report to the following mail address: gam...@users.sourceforge.net. --- This is what I get when trying to close my program while it is doing some timer based animations. I guess the program is to complex to make a

[Gambas-user] Wiki Last Changes - Admin Only

2014-05-29 Thread Patrik Karlsson
Would it be possible to enable read access to http://gambaswiki.org/wiki/changes ? Every now and then I discover that a page has change and I think it would be of value to see what pages are updated. /Patrik -- Time is mo

Re: [Gambas-user] Music.Length part 2

2014-05-28 Thread Patrik Karlsson
2014-04-23 17:51 GMT+02:00 Benoît Minisini : > Le 23/04/2014 17:38, Patrik Karlsson a écrit : > > Hi, > > > > it's almost 6 years since I wrote the first post [1] regarding > Music.Length > > I recently picked up Gambas again and I am about to finish this little

[Gambas-user] Project properties - Version: Get from 'VERSION' file

2014-05-23 Thread Patrik Karlsson
Hi, since I'm not that fond on the auto increment of version numbers getting version from 'VERSION' file sounded interesting. The problem was that it did not read from my VERSION file inside my project directory, instead it was looking for the VERSION file at the same directory level as my projec

[Gambas-user] gb.settings

2014-05-20 Thread Patrik Karlsson
Hi, does Settings cache values or does it read from file every time requested? /Patrik -- "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS com

Re: [Gambas-user] Feature request: Array.Frequency

2014-05-18 Thread Patrik Karlsson
Inc iFrequency Endif Next Return iFrequency End 2014-05-18 14:50 GMT+02:00 Emil Lenngren : > For best performance, loop over index from 0 to length-1 instead of using > the For Each construct. > > > 2014-05-18 14:43 GMT+02:00 Benoît Minisini : > > > Le

[Gambas-user] Feature request: Array.Frequency

2014-05-18 Thread Patrik Karlsson
I'm converting a Java app of mine to Gambas and I could not find any equivalent to Java's Collections.frequency [1]. So I wrote this function for Integer[]: Private Function Frequency(aArray As Integer[], iValue As Integer) As Integer Dim iCount As Integer Dim iItem As Integer For Each iI

Re: [Gambas-user] Feature request: Option to create .gitignore in new Project dialog

2014-05-17 Thread Patrik Karlsson
Great, looking forward to that one too! 2014-05-17 17:21 GMT+02:00 Benoît Minisini : > Le 17/05/2014 16:40, Benoît Minisini a écrit : > > Le 09/05/2014 16:16, Patrik Karlsson a écrit : > >> I think it would be nice to just tick a CheckBox in the new project > >> dialo

Re: [Gambas-user] Frame Arrangement

2014-05-17 Thread Patrik Karlsson
Great news, looking forward to use it, thanks! 2014-05-17 1:44 GMT+02:00 Benoît Minisini : > Le 10/05/2014 10:12, Patrik Karlsson a écrit : > > I found this [1] and other threads on the topic of having Frame arrange > it > > contents. > > We still miss the option t

Re: [Gambas-user] Feature request: Option to create .gitignore in new Project dialog

2014-05-16 Thread Patrik Karlsson
2014-05-15 12:26 GMT+02:00 Benoît Minisini : > Le 09/05/2014 16:16, Patrik Karlsson a écrit : > > I think it would be nice to just tick a CheckBox in the new project > dialog > > to create a standard .gitignore. > > Better: the IDE should support git as it supports subvers

[Gambas-user] Frame Arrangement

2014-05-10 Thread Patrik Karlsson
I found this [1] and other threads on the topic of having Frame arrange it contents. We still miss the option to do it. What is the status today, 10 years later, still problematic to implement? Any good work arounds? I was thinking of having a panel that I re-calculate the size for, but maybe I ju

[Gambas-user] Feature request: Option to create .gitignore in new Project dialog

2014-05-09 Thread Patrik Karlsson
I think it would be nice to just tick a CheckBox in the new project dialog to create a standard .gitignore. What do you think? /Patrik -- Is your legacy SCM system holding you back? Join Perforce May 7 to find out: • 3 si

Re: [Gambas-user] MaskBox.Mask

2014-05-06 Thread Patrik Karlsson
014, Patrik Karlsson wrote: > > Hi, > > > > today I am using TextBox_Change event to reject | characters. > > > > Public Sub txtName_Change() > > > > If String.InStr(Last.Text, "|") > 0 Then > > Last.Text = Replace(Last.Text, "|&q

Re: [Gambas-user] Dialog on top of FullScreen window

2014-05-06 Thread Patrik Karlsson
special about the form properties on Message.Info("This one stays on top")? Do you still like an example project? /Patrik [1] https://code.google.com/p/gambas/issues/detail?id=523 2014-04-26 13:07 GMT+02:00 Benoît Minisini : > Le 26/04/2014 07:34, Patrik Karlsson a écrit : > > Hi

[Gambas-user] Dialog on top of FullScreen window

2014-04-25 Thread Patrik Karlsson
Hi, Im having a problem with displaying forms on top of my main form when it's in full screen mode, even though I have set Form.Stacking=Above for my dialog form and called it with ShowModal. How ever, I noticed that when I use Message.Info("This one stays on top") its all ok. Can I change som

[Gambas-user] MaskBox.Mask

2014-04-25 Thread Patrik Karlsson
Hi, today I am using TextBox_Change event to reject | characters. Public Sub txtName_Change() If String.InStr(Last.Text, "|") > 0 Then Last.Text = Replace(Last.Text, "|", "") Endif End I guess MaskBox can do this much simplier, but how, what Mask? /Patrik -

[Gambas-user] Music.Length part 2

2014-04-23 Thread Patrik Karlsson
Hi, it's almost 6 years since I wrote the first post [1] regarding Music.Length I recently picked up Gambas again and I am about to finish this little project now. :) As far as I can tell, there is still no easy "Gambas way" to get the length of an audio file, right? Would it be possible to impl

[Gambas-user] .gitignore for a Gambas project

2014-04-23 Thread Patrik Karlsson
Hi, What should a .gitignore look like? The one I am using contains: .lock *~ *.gambas .settings /Patrik -- Start Your Social Network Today - Download eXo Platform Build your Enterprise Intranet with eXo Platform Softwar

Re: [Gambas-user] Gambas on Mac OS X/MacPorts

2012-08-09 Thread Patrik Karlsson
2012/8/7 François Gallo > > Gambas is not in the MacPorts tree and i think it will be never because > the qt4-x11 port doesn't work. Indeed, this one isn't up to date. While > macports will not > provide an update to this port, Gambas cannot go into the macports tree. > To make Gambas i use both

[Gambas-user] Gambas on Mac OS X/MacPorts

2012-08-07 Thread Patrik Karlsson
I have read about getting Gambas running on OS X and while browsing the svn log of Gambas I found the lines below. * NEW: Add support for the MacPorts distribution. * NEW: it is now available for Mac OS X 10.8 * BUG: Fix detection of X11 for the control DrawingArea on Mac OS X 10.8. * BUG: Fix com

Re: [Gambas-user] _compare() Type mismatch: wanted Date, Number or String

2012-08-06 Thread Patrik Karlsson
2012/8/2 Fabien Bodard > the _compare event is for the sort function in arrays > http://gambasdoc.org/help/lang/special/compare?en&v3 > > i think my way is the more simple > Thank you Tobias and Fabien for your input. For now, I am using the _compare function by calling it directly and not with

[Gambas-user] _compare() Type mismatch: wanted Date, Number or String

2012-07-31 Thread Patrik Karlsson
I'm writing a class for Playing cards and would like to compare them with: =,<,>. While hPlayingCard1=hPlayingCard2 works just fine, hPlayingCard1hPlayingCard2 do not. The program stops with: #6: Type mismatch: wanted Number, Date or String, got PlayingCard instead My _compare is simple: Public

Re: [Gambas-user] Sub dirs in .src, something like a java package?

2012-07-30 Thread Patrik Karlsson
2012/7/30 Benoît Minisini > Le 30/07/2012 13:46, Patrik Karlsson a écrit : > > Hi, I noticed in some code and at > > http://gambasdoc.org/help/doc/project_structure?v3 that one can use sub > > dirs in the source code. I have tried a couple of things but I can't see &

[Gambas-user] Sub dirs in .src, something like a java package?

2012-07-30 Thread Patrik Karlsson
Hi, I noticed in some code and at http://gambasdoc.org/help/doc/project_structure?v3 that one can use sub dirs in the source code. I have tried a couple of things but I can't see any change in behaviour/scope when using sub dirs. But to be honest, Im not 100% sure of the Gambas scopes like default

Re: [Gambas-user] Request: Remove background image from web site

2008-10-06 Thread Patrik Karlsson
Den Monday 06 October 2008 00:10:32 skrev Benoit Minisini: > On dimanche 05 octobre 2008, Patrik Karlsson wrote: > > IMHO it is some what hard to read the text when the background changes > > from dark to white, on every line. How about a small logo at the top? > > I made

[Gambas-user] Request: Remove background image from web site

2008-10-05 Thread Patrik Karlsson
IMHO it is some what hard to read the text when the background changes from dark to white, on every line. How about a small logo at the top? - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build

Re: [Gambas-user] Shortcuts in hidden menus will not work

2008-10-04 Thread Patrik Karlsson
Den Saturday 04 October 2008 18:34:20 skrev Benoit Minisini: > AFAIK, there is not concept of hidden menu in QT. So hiding a menu really > internally destroys it, and so the shortcut. > > > Also, is there a quicker way to toggle the menu bar in one single > > command? Now I am hiding/showing the to

Re: [Gambas-user] Restore fullscreen mode at Form_Open fails

2008-10-04 Thread Patrik Karlsson
Den Saturday 27 September 2008 00:18:06 skrev Benoit Minisini: > > > Is there a better way to do this without the extra timer? > As a workaround, I think you can set it in the constructor (_new) instead > of Form_Open. It should work. Thank you, it worked just fine, and it's much cleaner without m

[Gambas-user] Shortcuts in hidden menus will not work

2008-10-04 Thread Patrik Karlsson
Hi, Im making a program where I can toggle the menus visibility via CTRL+M. The shortcuts in the menues does not work if the menus are not visible. I have solved this by making a popup menu, but is there another way? Also, is there a quicker way to toggle the menu bar in one single command? Now

[Gambas-user] Shortcuts in hidden menus will not work

2008-10-04 Thread Patrik Karlsson
Hi, Im making a program where I can toggle the menus visibility via CTRL+M. The shortcuts in the menues does not work if the menus are not visible. I have solved this by making a popup menu, but is there nother way? Also, is there a quicker way to toggle the menu bar in one single command? Now I

Re: [Gambas-user] Request: Remember last directory for 'make source archive'

2008-09-27 Thread Patrik Karlsson
Den Saturday 27 September 2008 20:11:24 skrev Benoit Minisini: > On samedi 27 septembre 2008, Patrik Karlsson wrote: > > One thing that would be nice was if gambas could for each project > > remember last directory for 'make source archive'. > > Good idea. It is don

[Gambas-user] Request: Remember last directory for 'make source archive'

2008-09-27 Thread Patrik Karlsson
One thing that would be nice was if gambas could for each project remember last directory for 'make source archive'. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux base

Re: [Gambas-user] Restore fullscreen mode at Form_Open fails

2008-09-26 Thread Patrik Karlsson
> > When I try this line in Form_Open > > ME.FullScreen = Settings["Main/FullScreen", FALSE] > > If the setting is true, the only thing that happens is that the program > > becomes a normal window in full size. > It seems to work with gb.gtk, but not gb.qt. I need to investigate... Ok, please d

[Gambas-user] Restore fullscreen mode at Form_Open fails

2008-09-26 Thread Patrik Karlsson
When I try this line in Form_Open ME.FullScreen = Settings["Main/FullScreen", FALSE] If the setting is true, the only thing that happens is that the program becomes a normal window in full size. However, if I have a timer that executes (once), after a short delay, the line above, it works just

Re: [Gambas-user] Music.Length

2008-06-27 Thread Patrik Karlsson
>> http://sourceforge.net/services/buy/index.php >> ___ >> Gambas-user mailing list >> Gambas-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/gambas-user >> > > > --

Re: [Gambas-user] Problem implementing events _inside_ a class

2008-06-26 Thread Patrik Karlsson
Anyway, events are intended to the final user of an object. Ok, I see. >If you need to intercept them inside the implementation of the object class, >you have to use Observers. Thank you so much, now it works the way I want it to.

[Gambas-user] Problem implementing events _inside_ a class

2008-06-24 Thread Patrik Karlsson
hDiceBoard2 AS CDiceBoard hDiceBoard2 = NEW CDiceBoard(ME) AS "myDiceBoard" PUBLIC SUB myDiceBoard_MouseDown() DEBUG END --- How can I put the _MouseDown() inside CDiceBoard.class and make it work? Regards -- Patrik Karlsson --

Re: [Gambas-user] Access resources in another installed gambas project

2008-06-23 Thread Patrik Karlsson
ge, http://www.gambasdoc.org/help/dev/gambas looks like a good place t o start. :) -- Patrik Karlsson - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Op

[Gambas-user] Project translation, Change System.Language in run time

2008-06-23 Thread Patrik Karlsson
ot changed. Am I missing something? -- Patrik Karlsson - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/service

[Gambas-user] Access resources in another installed gambas project

2008-06-23 Thread Patrik Karlsson
asiest way to do this in Gambas? I like the idea of making the data project in gambas too, since it is so easy to generate packages. -- Patrik Karlsson - Check out the new SourceForge.net Marketplace. It's the best place

Re: [Gambas-user] Music.Length

2008-06-20 Thread Patrik Karlsson
t's only "internal" files for SoundFX. Or, I define the length of each file manually, or calculate the time, they have CBR. -- Patrik Karlsson - Check out the new SourceForge.net Marketplace. It's the best

Re: [Gambas-user] Music.Length

2008-06-20 Thread Patrik Karlsson
be needed before beeing able to decode one frame." -- Patrik Karlsson - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. htt

[Gambas-user] Music.Length

2008-06-20 Thread Patrik Karlsson
where I am, but I can not found a function that tells me how far I have to go. Is there a solution to this? -- Patrik Karlsson - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services