Re: [Gambas-user] Callback

2011-08-10 Thread Stephen A. Bungay
I don't see the need myself, I do see how it allows the 'Something' sub to vary what sub it calls by varying the 'test' parameter passed in, but I question the need and wonder, since 'test, could be varied, if that need could be fulfilled another way by select or if within 'Something. Of

Re: [Gambas-user] Making code pretty

2011-08-05 Thread Stephen A. Bungay
'Pretty' is in the eye of the beholder. I write my code so it is easy to read and easy see the structure of the code, spaces and empty lines are therefore used extensively. Since the compiled code is not affected by them what's the problem? Ron r...@cyberjunky.nl wrote: Empty lines yes, keep

Re: [Gambas-user] Making code pretty

2011-08-05 Thread Stephen A. Bungay
I suppose, but then the removal (or addition) of white space should probably not generate a commit change as white space is not critical to GAMBAS logic. Each to their own, but the 'prettying' should be configurable. Ron r...@cyberjunky.nl wrote: It's not only eye candy, it's also a practical

Re: [Gambas-user] Making code pretty

2011-08-05 Thread Stephen A. Bungay
Have not tested this yetm sounds useful. Agree with you Kevin, empty lines full of spaces and trailing spaces on lines are things to be removed. Kevin Fishburne kevinfishbu...@eightvirtues.com wrote: On 08/05/2011 12:53 PM, Benoît Minisini wrote: Automatic comment insertion is done in

Re: [Gambas-user] Try Catch fail when using mkdir....

2011-07-01 Thread Stephen Bungay
Greetings Fabien! That works very well, and is so much smaller and cleaner than the SUB you put in the initial email. By the way, that first SUB would have had a problem creating the stmpDir folder, it would, as written, not put in the delimiting / characters and would try to create a

[Gambas-user] Try Catch fail when using mkdir....

2011-06-30 Thread Stephen Bungay
Hi folks! Gambas 2.99 Fedora 14 Using mkdir with catch and finally to create a recursive SUB to build a directory structure. The harness consists of FormMain with one big-friendly button on it, pretty simple. Here is all of the code; ' Gambas class file Public Sub _new() End Public

Re: [Gambas-user] Try Catch fail when using mkdir....

2011-06-30 Thread Stephen Bungay
. If there is a catch part in the function, the FINALLY part must precede it. http://gambasdoc.org/help/lang/finally The second call will be in the catch part not in finally. 2011/6/30 Stephen Bungaysbun...@csolve.net: Hi folks! Gambas 2.99 Fedora 14 Using mkdir with catch and finally

Re: [Gambas-user] Try Catch fail when using mkdir....

2011-06-30 Thread Stephen Bungay
Typo in the Finally section... Exists(sFolderSpec) should read Exist(sFolderSpec). On 06/30/2011 11:58 PM, Stephen Bungay wrote: Hi Fabien Tobias; Thanks for taking the time to reply and putting those SUBs together. Another way to do this is to simply execute a mkdir -p using

Re: [Gambas-user] Controlling mplayer while embeded...

2011-03-08 Thread Stephen Bungay
On 03/08/2011 09:04 AM, Stephen Bungay wrote: Anyone have an example of this? I have launched mplayer using exec and have it in an embedder, now want to control it through push buttons. -- What You Don't Know

[Gambas-user] Drop Event not being raised... but Change is...

2011-03-07 Thread Stephen Bungay
Gambas 2.22 I am dragging from a listview to a textarea testing drag and drop functionality. The interesting thing is that when I drop the item the text in the textarea receives it but the drop() event never fires, I can trap the Change() event, but not the Drop... anyone else ever run into

Re: [Gambas-user] Listview picture not showing...

2011-03-02 Thread Stephen Bungay
Thanks Fabien, sorry fir the delayed reply, it suddenly got really busy around here and this had to take a lower priority. I'll put that into practice. On 02/26/2011 04:41 PM, Fabien Bodard wrote: 2011/2/26 Stephen Bungaysbun...@csolve.net: This has undoubtedly been asked before

Re: [Gambas-user] Listview picture not showing...

2011-03-02 Thread Stephen Bungay
On 02/26/2011 04:41 PM, Fabien Bodard wrote: 2011/2/26 Stephen Bungaysbun...@csolve.net: This has undoubtedly been asked before. GAMBAS 2.2 I am trying to add an icon to the listview items, to that end this code snippet should do the trick; Private SUB Initialize_Listview1

[Gambas-user] Listview picture not showing...

2011-02-26 Thread Stephen Bungay
This has undoubtedly been asked before. GAMBAS 2.2 I am trying to add an icon to the listview items, to that end this code snippet should do the trick; Private SUB Initialize_Listview1() DIM Icon AS NEW Picture Icon.Load(/home/username/mypicture.png) ' This png file is 26x16 and

[Gambas-user] Arrays of controls..

2011-02-11 Thread Stephen Bungay
Given the following code (Gambas 2.22) PUBLIC SUB Form_Open() DIM X AS Integer DIM ButtonArray[10] AS Object FOR X = 0 TO 9 ButtonArray[X] = NEW Button(ME) WITH ButtonArray[X] .X = 90 + (20 * x) .Y = 100 .Width = 20

Re: [Gambas-user] Arrays of controls..

2011-02-11 Thread Stephen Bungay
see which one it was Print i Select Case . End Select End Am 11.02.2011 17:00, schrieb Stephen Bungay: Given the following code (Gambas 2.22) PUBLIC SUB Form_Open() DIM X AS Integer DIM ButtonArray[10] AS Object FOR X = 0 TO 9 ButtonArray[X

Re: [Gambas-user] Arrays of controls..

2011-02-11 Thread Stephen Bungay
Yes it worked. I'm just so used to typing PRIVATE SUB ... that I gapped it and then couldn't see the forest for the darn trees in the way. On 02/11/2011 04:00 PM, EA7DFH wrote: El 11/02/11 21:18, Stephen Bungay escribió: snipped ' This one does not trap PRIVATE SUB ToggleButtons_click

Re: [Gambas-user] Movieplayer example Gambas 3.0

2011-02-10 Thread Stephen Bungay
On 02/10/2011 08:18 AM, Jussi Lahtinen wrote: Try latest revision of Gambas 3. This is fixed to Cstr(lblMoviePlayer.Handle) . Jussi On Thu, Feb 10, 2011 at 06:51, Stephen Bungaysbun...@csolve.net wrote: Line # 39 $hProcess = Exec [mplayer, -wid, lblMoviePlayer.Handle, Conv

Re: [Gambas-user] A little perplexed...

2011-02-10 Thread Stephen Bungay
Thank you for the reply Benoit. On 02/07/2011 02:15 PM, Benoît Minisini wrote: Trying to get the dev environment up and running on CentOS 5.5, no QT installed. ./configure reports that qt is disabled and successfully completes. make install also successfully completes, gambas2

[Gambas-user] Movieplayer example Gambas 3.0

2011-02-09 Thread Stephen Bungay
Line # 39 $hProcess = Exec [mplayer, -wid, lblMoviePlayer.Handle, Conv$($sPath, Desktop.Charset, System.Charset)] For Read Write results in this error Type mismatch: Wanted String[] got Variant[] instead the problem is with lblMoviePlayer.Handle... has something fundamentaly changed with

[Gambas-user] A little perplexed...

2011-02-06 Thread Stephen Bungay
Trying to get the dev environment up and running on CentOS 5.5, no QT installed. ./configure reports that qt is disabled and successfully completes. make install also successfully completes, gambas2 isinstalled but, when invoked it reports that it is unable to locate the gb.qt library. Now

Re: [Gambas-user] About help and arrays and variables

2010-12-16 Thread Stephen Bungay
On 11/19/2010 08:58 AM, Fabien Bodard wrote: 2010/11/19 Demosthenes Koptsisdemosthen...@gmail.com: ok! i was cofused from two things 1) in previous message about static arrays Fabien said that: yes a static array is not an object ... that's why it's a little bit deprecated :) anther

Re: [Gambas-user] listbox display selected item

2009-07-23 Thread Stephen Bungay
Not this Time, Dimitri. I'm searching a behaviour as Stephen told about. In fact I expected the selection bar to automatically move, such as in a ComboBox (Benoît, why ListBox ListView don't act alike ComboBox??) I guess we should be more tyrannical toward Benoît, so he won't loose time scratching his

Re: [Gambas-user] break long lines

2009-07-23 Thread Stephen Bungay
Benoît Minisini wrote: For String assignments you can put an at the end of it... String = ABCD 1234 Steve. Jean-Yves F. Barbier wrote: Hi, Is there a special character (such as \ under bash) to break a very long line? JY There are two ways of spanning a long line

Re: [Gambas-user] listbox display selected item

2009-07-22 Thread Stephen Bungay
I suppose one could use the MouseMove event, track the mouse position over the listbox and highlight the item that it is over... I seem to recall something about this... just it was a long time ago and now Iits fuzzy as to if it was in VB 6.0 or Gambas... Sorry, not much help but perhaps

Re: [Gambas-user] listbox display selected item

2009-07-22 Thread Stephen Bungay
having the event fire when the mouse is moving within the confines of the target control as it makes effects like the one you desire somewhat difficult, if not impossible, to implement. Steve. Jean-Yves F. Barbier wrote: Stephen Bungay a écrit : I suppose one could use the MouseMove event, track

[Gambas-user] Border text and gridview...

2009-07-20 Thread Stephen Bungay
Never mind.. found it. I have GOT to stop working so late. Gridview.Columns[iIndex].Text = Text Goes Here Steve :0 --Yawning -- Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in

Re: [Gambas-user] break long lines

2009-07-20 Thread Stephen Bungay
For String assignments you can put an at the end of it... String = ABCD 1234 Steve. Jean-Yves F. Barbier wrote: Hi, Is there a special character (such as \ under bash) to break a very long line? JY

[Gambas-user] Gridview border text...

2009-07-19 Thread Stephen Bungay
In the past I created a gridview utilities module to do this (and other things). Looking at the properties for the GridView tpday (three years later) is there still no way to put text in a border? Just wondering. my old utilities still work but it sure would be nice if the border could

[Gambas-user] Listbox border misbehaviour...

2009-07-14 Thread Stephen Bungay
The RAISE method was called to bring the listbox to the foreground of its parent, but it seems the border surrounding the listbox is not getting the message. The result is a rather messy display. Have a look at the attached PNG file. GAMBAS 2.12 GB.FORM KUBUNTU 8.04 Is this fixed in

Re: [Gambas-user] comments

2009-07-14 Thread Stephen Bungay
Yeah, I see what you mean, that would be handy for pasting blocks of text in without the IDE mangling it. I see your point. Ron wrote: Stephen Bungay wrote: I made up a standard comment block a long time ago as a text file, I simply paste it in and modify/add to it as needed. Yes you have

[Gambas-user] Forgot the attachment... re.: Listbox Border Misbehaving...

2009-07-14 Thread Stephen Bungay
Forgot the darn attachment... I HATE when I do that. inline: ListBoxRaiseUncleanBorder.png-- Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors

Re: [Gambas-user] Forgot the attachment... re.: Listbox Border Misbehaving...

2009-07-14 Thread Stephen Bungay
as it should. Jean-Yves F. Barbier wrote: Stephen Bungay a écrit : Forgot the darn attachment... I HATE when I do that. I hate you too, so now we are too ;-) Have you got a piece of code to test? jy Test3.tar.gz Description: application/gzip

Re: [Gambas-user] Never mind....

2009-07-13 Thread Stephen Bungay
Doriano Blengino wrote: Stephen Bungay ha scritto: I see there are TWO places to set the default tab size. One under Project-Properties-Options and the other under Tools-Preferences-Editor. A little confusing this, since one is using the editor to edit the project, it logically follows

Re: [Gambas-user] comments

2009-07-13 Thread Stephen Bungay
clever way of marking a comment block. Regards, Ron_2nd. --- this e-mail is sent with my android phone. On Jul 13, 2009 10:11 PM, Jean-Yves F. Barbier 12u...@gmail.com wrote: Stephen Bungay a écrit : Highlight the block of code you want to comment out then click the little comment

[Gambas-user] Editor Preferences bug? (V 2.12)

2009-07-12 Thread Stephen Bungay
Set tab to any value (I like to set it to = 1 space) and it continues to = 2 spaces (i.e. highlight a blockof text, press the tab key, and everything moves 2 spaces to the right). The same is true if I set it to 3 or 4. KUBUNTU 8.04 Gambas 2.12 Steve.

[Gambas-user] Never mind....

2009-07-12 Thread Stephen Bungay
I see there are TWO places to set the default tab size. One under Project-Properties-Options and the other under Tools-Preferences-Editor. A little confusing this, since one is using the editor to edit the project, it logically follows that the editor preferences are the item that needs

Re: [Gambas-user] Collection - destroying

2009-07-03 Thread Stephen Bungay
Returning the favour... :) Collection = NULL Steve. richard terry wrote: Is it possible to 'destroy' a collection, I don't mean just remove its members. What I mean is one does this to create one: mycollection = new collection. One may do something with it, but then want it to

Re: [Gambas-user] GridView adjust column length

2009-07-03 Thread Stephen Bungay
Try this (from my GridUtils Class.. can't believe that was written 3 years ago now!) '*** '* AdjustGridColumns '* Author: Stephen Bungay '* Date: July 26 2006 '* '* Parameters: '* GridView '* '* Calls: Nothing '* '* Adjusts

[Gambas-user] Side panel example??

2009-06-30 Thread Stephen Bungay
Using Gambas 2.1.2 on KUbuntu 8.04. Perhaps I've been away from Gambas for far too long, either that or I'm just thick, but whichever it is I can't seem to get the side panel working as 'I' think it should, and that is perhaps the problem. Has anyone got a simple example of using the

Re: [Gambas-user] Side panel example??

2009-06-30 Thread Stephen Bungay
. richard terry wrote: On Wed, 1 Jul 2009 02:00:54 am Stephen Bungay wrote: Using Gambas 2.1.2 on KUbuntu 8.04. Perhaps I've been away from Gambas for far too long, either that or I'm just thick, but whichever it is I can't seem to get the side panel working as 'I' think it should

Re: [Gambas-user] help with some simple parsing

2009-05-06 Thread Stephen Bungay
Hi Richard This code snippet will dump the text into a TextArea for you, it asumes (a bad thing) that there are no newline characters in the data and as such works with your sample. I used a button to launch the code... the important bits are in the middle... :) PUBLIC SUB

[Gambas-user] What dev package....

2009-02-28 Thread Stephen Bungay
Can someone shed some light on what dev package is required to enable the gb.desktop component? I've just moved over to kubuntu 8.04 from 7.04, I'm rebuilding everything and this component is disabled (I've managed to hunt down all the others I need). Steve.

Re: [Gambas-user] Ask about com access

2008-12-07 Thread Stephen Bungay
I wrote a complete POS in GAMBAS but the cash drawer was connected to the parallell device.. however, I did dump text to an LED pole display, to show the customer how much they owed and the change due etc. Should be fairly similar, knowing the control codes to send to the cash drawer might

[Gambas-user] On Gentoo 64-bit...

2008-12-01 Thread Stephen Sullivan
unexpectedly, but I was not trapping the errors and haven't been able to replicate it. Hope this is of help! Keep up the excellent work! Stephen - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge

Re: [Gambas-user] Resize event...

2008-11-13 Thread Stephen Bungay
under Gambas 2.8 Kubuntu 7.04. Regards Steve. Doriano Blengino wrote: Stephen Bungay ha scritto: Look forward to it. Doriano Blengino wrote: Right. This evening, at home, I will send the project which shows that events fire correctly. Here it is. The swallowed form prints in a textarea

Re: [Gambas-user] Resize event...

2008-11-12 Thread Stephen Bungay
and would still be flailing about. Community helps. Doriano Blengino wrote: Stephen Bungay ha scritto: Well, after much consultation with Benoit I finally understand what is going on and how to get around the problem. For the benefit of anyone else who has been reading this thread

Re: [Gambas-user] Resize event...

2008-11-12 Thread Stephen Bungay
Look forward to it. Doriano Blengino wrote: Stephen Bungay ha scritto: Now we come to your source. The mFormInitialized variable serves what purpose? mFormInitialized is a hold over from something I used to do in VB, and ocaisionally find useful in Gambas, so I just never removed

Re: [Gambas-user] Resize event...

2008-11-11 Thread Stephen Bungay
, then it was a bug. Are you sure that we talked about that? This happened some time ago - could be I am wrong, but the proof is simple to produce. Right now I have no time but, in the course of today, may be I will find the time to build a simple project. Anyway, Stephen Bungay complains

Re: [Gambas-user] Resize event...

2008-11-09 Thread Stephen Bungay
. Benoit: how can one dynamically resize form objects that are embedded in a tabstrip? Doriano Blengino wrote: Stephen Bungay ha scritto: A form, lets call it FormX contains a tabStrip which has another form, call it FormY dynamically instantiated inside the TabStrip at run-time. FormY

[Gambas-user] Resize event...

2008-11-08 Thread Stephen Bungay
A form, lets call it FormX contains a tabStrip which has another form, call it FormY dynamically instantiated inside the TabStrip at run-time. FormY has three controls on it, a calendar, a table, and a VSplit to seperate them. When FormX is resized the TabStrip is resized and I want to

Re: [Gambas-user] Instantiating forms and then referencing them...

2008-11-03 Thread Stephen Bungay
Replying to self... never mind... I've got it... Stephen Bungay wrote: Consider the following procedure from Form_Main Private Sub InitializeControls() Dim hFormX As FormX Dim hFormY As FormY TabStrip1.Index = 0 hFormX = New FormX(TabStrip1) As X_Form TabStrip1.Index

[Gambas-user] Snap to grid toggle....

2008-10-26 Thread Stephen Bungay
Where is the setting to toggle the grid-snap? I've been poking around looking for it (tools-preferences, project-preferences and looking for a grid snap button on the toolbar (there is a display grid toggle)) and can't seem to find a grid-snap toggle. I even looked through the email

Re: [Gambas-user] new user

2008-09-02 Thread Stephen Bungay
Yeah there are man pages for things... but the conventional man pages don't apply to GAMBAS and the components. :) Kari Laine wrote: On Tue, Sep 2, 2008 at 5:02 PM, Stephen Bungay [EMAIL PROTECTED] wrote: Kari means go to the online help. Select the little question mark

[Gambas-user] Procedure call stack??

2008-08-07 Thread Stephen Bungay
I was into VB6 again there for a few months and am just getting back into GAMBAS... wasn't there a 'call stack' in GAMBAS to trace procedure calls back to their source, or am I just confused and my mind has been polluted by VB 6.0. Steve.

Re: [Gambas-user] creating objects from code into a tabstrip

2008-08-07 Thread Stephen Bungay
IN your proc.. DIM hButton1 as Button With Tabstrip1 .Index = 2 hButton1 = NEW Button(TabStrip1) AS NewButton end with M0E Lnx wrote: In a form, I have a tabstrip. The tabstrip's .count property is not defined until some conditions are met After the tabstrip's .count

<    1   2