Re: [Gambas-user] Blanks in filename and path, problems with shell

2010-05-30 Thread Steven James Drinnan
I just make each file name encapsulated with ' eg if i would like to use /home/steven/My Documents/some.txt as a location I would do path = "'/home/steven/My Documents/some.txt'" and the the shell cmd will work correctly like this cmd = "gedit " & path shell cmd remember shell is just

Re: [Gambas-user] menu

2010-04-04 Thread Steven James Drinnan
I can only give you a start, You should look at the details of how to make a deb package. I googled and found http://www.debian.org/doc/maint-guide/ch-dother.en.html#s-install (section 5.13) This talks about a menu.ex file that is created. Try modifying that file to your sub menu. Not sure if

Re: [Gambas-user] Send mail with smtp

2010-03-23 Thread Steven James Drinnan
As a work around use sendmail as the mail transport. Just ensure the service is running. And as it is usually installed by default on a lot of Linux distributions. This is the case for the Desktop version of Fedora. Concerns to be safe do not enable the port 25 on your firewall. (if enabled you c

Re: [Gambas-user] Natural sorting in Gambas 3

2010-01-25 Thread Steven James Drinnan
Wow that must be a first in a programming language, as most don't even bother. It's something that I always had a bug bear about. But have never had the time to implement this sort of sort on my programs. Great work, it this sort of functionality that has made Gambas great. Steven Drinnan On Mon

Re: [Gambas-user] About financial program in Gambas

2009-12-16 Thread Steven James Drinnan
Just to add my two cents worth, This problem has been around for eons and it does not only apply to Gambas. When I was programming in Access and VB I had the same problem even using the currency type. I just use the Round function Value = Round ( Number [ , Digits ] ) And I use this return va

Re: [Gambas-user] About financial program in Gambas

2009-12-16 Thread Steven James Drinnan
Sorry - AS for mySQL it also has round() and you use the same as the gambas function. Steven On Wed, 2009-12-16 at 16:13 -0500, nando wrote: > For your info only... > I always use INT or LONG for accounting and money. > So, (here in Canada), $42.87 is 4287 > I keep the tax (8%) as a float, the

[Gambas-user] Feature Request: Reparent function behaviour change.

2009-11-05 Thread Steven James Drinnan
Beniot - I tough I'd better break this out as it does not relate to the original thread. Lets say that you have a label name 'label1' and 2 frames named frame1 and 'frame2'. And you placed 'label1' in 'frame1'. For some reason you wish to move in code. So you use the 'reparent' function. The pse

Re: [Gambas-user] screen WxH

2009-11-04 Thread Steven James Drinnan
use Desktop.Height Desktop.Width steven Steven On Thu, 2009-11-05 at 04:28 +0100, Jean-Yves F. Barbier wrote: > Hi, > > can I get the whole screen width & height without using any maximized > form to do that? > signature.asc Description: This is a digitally signed message pa

Re: [Gambas-user] Video4Linux

2009-11-04 Thread Steven James Drinnan
It does work in 2 but you need to preload the compat library like this i386 LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so (name of app) x86_64 LD_PRELOAD=/usr/lib64/libv4l/v4l1compat.so (name of app) These are the paths on Fedora. You may need to modify them to match yo

[Gambas-user] Misc Bugs: GTK

2009-11-03 Thread Steven James Drinnan
I have noticed these little annoying problems. Again it is with the GTK component and how it inherits settings. 1. Textboxes, comboboxes ... - they correctly do not inherit the background color but they incorrectly inherit the foreground colour. I.E text boxes and any other input boxes need not

Re: [Gambas-user] SidePanel

2009-11-02 Thread Steven James Drinnan
I'll try with fedora beta witch has gnome 2.28 in it. To see if it relates to that. Steven On Mon, 2009-11-02 at 21:34 +0100, Ron wrote: > Benoît Minisini schreef: > >> I have tried with different GTK+ styles with no luck. > >> Maybe someone else running an Ubuntu Karmic 32bits can give SidePanel

Re: [Gambas-user] Possible Bug - ValueBox

2009-11-01 Thread Steven James Drinnan
I just noticed the value field. But this also does not appear in the properties of the IDE. Steven On Mon, 2009-11-02 at 14:47 +0800, Steven James Drinnan wrote: > I was adding a ValueBox and I wanted to add a default value. > > But ... > > There was no 'text'

Re: [Gambas-user] Possible Bug - ValueBox

2009-11-01 Thread Steven James Drinnan
Correction text property is read only Also the max property is not honored. Steven On Mon, 2009-11-02 at 14:47 +0800, Steven James Drinnan wrote: > I was adding a ValueBox and I wanted to add a default value. > > But ... > > There was no 'text' property field in th

[Gambas-user] Possible Bug - ValueBox

2009-11-01 Thread Steven James Drinnan
I was adding a ValueBox and I wanted to add a default value. But ... There was no 'text' property field in the IDE Still can set the default value in code though. Steven [OperatingSystem] OperatingSystem=Linux KernelRelease=2.6.30.9-90.fc11.x86_64 DistributionVendor=redhat DistributionRelea

Re: [Gambas-user] Mutiple mouse pointers

2009-10-22 Thread Steven James Drinnan
On Thu, 2009-10-22 at 15:53 +0200, Benoît Minisini wrote: > > Hi, > > > > Here is interesting thing, I want to create a X12(mpx) aware > > application. > > > > When Fedora 12 comes out it will support X12(mpx) - multiple mouse > > pointers and I was hoping to use Gambas to create an interactive g

[Gambas-user] Mutiple mouse pointers

2009-10-21 Thread Steven James Drinnan
Hi, Here is interesting thing, I want to create a X12(mpx) aware application. When Fedora 12 comes out it will support X12(mpx) - multiple mouse pointers and I was hoping to use Gambas to create an interactive game using two mouse pointers. Is there any plans in Gambas 3 to include multiple mo

Re: [Gambas-user] saving picturebox as video

2009-10-21 Thread Steven James Drinnan
gt; In the moment I use mencoder to generate the video from the > images, but I will test ffmpeg asap. > > Any ideas out there how to stream the images as video ? > > Thanks for your help > Regards > Hartmut > > >Date: Sat, 17 Oct 2009 15:30:27 +0800 > >Fro

Re: [Gambas-user] saving picturebox as video

2009-10-17 Thread Steven James Drinnan
You could use ffmpeg the cmd is ffmpeg -f image2 -i img%d.jpg /tmp/a.mpg This would make the files img1.jpg img2.jpg into a mpg video. But it would mean writing each image to a dir on the disc ie pic01.jpg pic02.jpg Then once you press a stop button then you run the cmd above. But wr

Re: [Gambas-user] Right-click menu

2009-10-09 Thread Steven James Drinnan
1st you would need to create a hidden menu using the menu editor Then you would use the 'menu' event of the control (right click the control select 'event' then menu) to popup the menu. mnuname.popup() 'where mnuname is the menu item name. For when it gets activated you would have to do

[Gambas-user] Printer Class not available in GUI component or GTK

2009-10-01 Thread Steven James Drinnan
Benniot just noticed that the Printer class is not available when you when you use GUI or GTK. But the documentation says that you can use it in GTK. Is this by design? If so the GTK-Draw.Begin help page should be updated to reflect this. Steven

Re: [Gambas-user] print

2009-10-01 Thread Steven James Drinnan
Nothing quite that simple but easy enough, try this SUB PrintForm() 'Prints a form DIM myformPic AS Picture DIM size AS INTEGER myformPic = ME.Grab() size = 5 '5 times the size otherwise picture is to small. myformPic = myformPic.Image.Stretch(ME.W * size, ME.H * size).

Re: [Gambas-user] Balloon

2009-09-15 Thread Steven James Drinnan
Tell me what to do and what needs to be tested. Steven Drinnan, On Wed, 2009-09-16 at 00:26 +0200, Benoît Minisini wrote: > > Il lunedì 7 settembre 2009 18:48:51 Pino Zollo ha scritto: > > > Alle 11:58, lunedì 7 settembre 2009, hai scritto: > > > > > Hi! > > > > > > > > > > >Balloon popup is litt

Re: [Gambas-user] Obtain my IP with Gambas

2009-09-09 Thread Steven James Drinnan
-O - -q" 'using whatismyip mycmd = "wget www.sjdsoft.hk/getip.php -O - -q" 'using my webserver (seems faster based in Hong Kong) SHELL mycmd TO myWanIP PRINT myWanIP On Thu, 2009-09-10 at 11:20 +0800, Steven James Drinnan wrote: > You could try this > > DIM mycmd

Re: [Gambas-user] Obtain my IP with Gambas

2009-09-09 Thread Steven James Drinnan
You could try this DIM mycmd AS String DIM myIP AS String mycmd = "ifconfig| grep -w 'inet addr' | grep -v '127.0.0.1' | cut -d: -f2| awk '{print $1}'" SHELL mycmd TO myip PRINT myip Have not confirmed what it returns but by the looks it returns the local assigned ip. Not the wan side. On W

Re: [Gambas-user] web browser.

2009-08-28 Thread Steven James Drinnan
Does not work in gnome, need KDE to run. You may want to add that to your requirements. Steven Drinnan On Fri, 2009-08-28 at 18:11 -0600, Dimitris Anogiatis wrote: > abdurrahman > > it works pretty well, > keep up the great work :) > > Regards > Dimitris > > On Fri, Aug 28, 2009 at 3:45 PM,

Re: [Gambas-user] webcam weirdness

2009-08-25 Thread Steven James Drinnan
For which version 2 or 3? Steven On Tue, 2009-08-25 at 20:30 -0400, Dr. Diesel wrote: > 2009/8/25 Benoît Minisini > > > > Not sure what to include with this, please ask for additional info. > > > Attached is a pict of some webcam weirdness with no error messages > > > generated. Doesn't appear

Re: [Gambas-user] webcam weirdness

2009-08-24 Thread Steven James Drinnan
Try for 32bit systems LD_PRELOAD='/usr/lib/libv4l/v4l1compat.so' gambas2 for 64bit systems LD_PRELOAD='/usr/lib64/libv4l/v4l1compat.so' gambas2 You can do the same for any application that you make with gambas. Steven Drinnan On Tue, 2009-08-25 at 02:05 +0200, Jean-Yves F. Barbier wrote:

Re: [Gambas-user] Gambas applications

2009-08-20 Thread Steven James Drinnan
Sorry Pwd: ETq1a2d3 Thanks Steven Drinnan On Thu, 2009-08-20 at 11:34 +0200, Benoît Minisini wrote: > > Think you need to add me to the wiki users list > > > > Name: Steven James Drinnnan > > > > You can decide > > Steven Drinnan > > > > You don't want to choose your password? > ---

Re: [Gambas-user] Gambas applications

2009-08-20 Thread Steven James Drinnan
th limited functionality. > > > > Name: Steven James Drinnan / SJDSoft > > Application: SJDSoftMyEduBase 0.1.43 > > Description: A database focused on the needs of schools in Hong Kong. > > Student, Class, Teacher etc. > > Website: http://www.sjdsoft.hk (Main Site

[Gambas-user] Gambas applications

2009-08-17 Thread Steven James Drinnan
Hi Benoît Here is an application for you to consider. It is still in alpha right now with limited functionality. Name: Steven James Drinnan / SJDSoft Application: SJDSoftMyEduBase 0.1.43 Description: A database focused on the needs of schools in Hong Kong. Student, Class, Teacher etc. Website

Re: [Gambas-user] Pass parameter to Gambas prog.

2009-08-17 Thread Steven James Drinnan
short answer yes you retrieve it by using Application.Args[index] nb: Application.Args[0] is the program name Check in help for more details of how to use. Steven On Mon, 2009-08-17 at 00:34 -0700, charlesg wrote: > Hi all, > > Can I pass a parameter to a Gambas program? > e.g myprog.gambas

Re: [Gambas-user] TrayIcon and Embeding

2009-08-16 Thread Steven James Drinnan
ome problems with Ubuntu and Qt... > Application that use Qt start before some component of Qt it self. > I'm I correct, you are on Ubuntu and your application uses Qt? > > > Jussi > > > > On Fri, Aug 14, 2009 at 04:57, Steven James Drinnan wrote: > > Thanks t

Re: [Gambas-user] TrayIcon and Embeding

2009-08-13 Thread Steven James Drinnan
gram with script: > > #!/bin/sh > sleep 15 #Wait for 15 seconds. > gbr2 yourprogranname.gambas > > > Does it work then? > > > Jussi > > > > > > > On Thu, Aug 13, 2009 at 05:00, Steven James Drinnan wrote: > > Hi guys, > > &

[Gambas-user] Feature Request - Mutiple Mouse Pointer / Keyboard detection

2009-08-13 Thread Steven James Drinnan
Hi Benoît, I have just noticed that with XORG version 1.7 it has support for multiple mouse cursors and Keyboards. (MPX) Is there any chance that you could add someway that Gambas could detect if there is more than one mouse pointer. And which one is being used. It would change the way that we t

[Gambas-user] TrayIcon and Embeding

2009-08-12 Thread Steven James Drinnan
Hi guys, I have had a look at prev posts but it seems it has not been resolved. I am working on a weather applet specific for Hong Kong. The problem is when I autostart the program on logon I get this error. "Unable to Embed from frmweather.?.0 " Any ideas. My source code can be found here: ht

[Gambas-user] Fedora 10 and 11 packages should now be correctly packaged for 2.14.0

2009-07-13 Thread Steven James Drinnan
Good news, Just got a reply about the packaging issue, will download and test and keep an eye on it. So hopefully now fedora packages will be correct. Steven Drinnan -- Enter the BlackBerry Developer Challenge This

Re: [Gambas-user] V4L2 backport do-able?

2009-07-01 Thread Steven James Drinnan
On Tue, 2009-06-30 at 20:19 +0200, Ron wrote: > Is it do-able to backport V4L2 to Gambas stable? > > I find a lot of video cams/devices using this version, and they do not > seem to work with the current component. > > It gets a bit useless as time goes by > > Anyone has taken a shot at th

Re: [Gambas-user] How do you set text for a group of textbox ?

2009-06-28 Thread Steven James Drinnan
On Fri, 2009-06-26 at 15:41 -0700, Swee Kwang Tan wrote: > Dear Sir, > If I have a group of textbox, a string array access data from database, How > do I write a > program to set text for each textbox sepqrately ? like the following > dim str[10] as string > dim i as integer > . > .

Re: [Gambas-user] The define style of many element string array

2009-06-25 Thread Steven James Drinnan
As far as I know just one by one. Write one line by one line. ss[0] = "jkl" ss[1] = "9080|" ss[2] = "jim" ss[3] = "ren" ss[4] = "mu8" I may be wrong and others can give there 2 cents worth. Steven On Thu, 2009-06-25 at 15:40 -0700, Swee Kwang Tan wrote: > Dear Sir, > Thank you for your readin

[Gambas-user] Feature request

2009-06-25 Thread Steven James Drinnan
Hi, In relation to RPM creation in Gambas. Is there a way of adding other dependencies. Say for example I have a program that needs the program 'barcode' to run it would be good to manually add that requirement to the package when creating a package. Just a thought Steven

Re: [Gambas-user] RE: Gambas-user Digest, Vol 37 , Issue 42

2009-06-25 Thread Steven James Drinnan
年6月24日,三,下午8:09 > > Send Gambas-user mailing list submissions to > gambas-user@lists.sourceforge.net > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/gambas-user > or, via email, send a message with subject or body 'help

[Gambas-user] Charlie Reinl: postgresql (sorry wrong name)

2009-06-23 Thread Steven James Drinnan
Hi, What is exactly happening. I use F11 and running gambas2.13.1 As I never used postgresql before I prefer mysql but never mind. I tried to use the example "Picture Database' and changed to postgresql by opening the main forms code and uncommenting the postgresql part. It did not work - but

[Gambas-user] Swee Kwang Tan: postgresql

2009-06-23 Thread Steven James Drinnan
Hi, What is exactly happening. I use F11 and running gambas2.13.1 As I never used postgresql before I prefer mysql but never mind. I tried to use the example "Picture Database' and changed to postgresql by opening the main forms code and uncommenting the postgresql part. It did not work - but

Re: [Gambas-user] The lastest version gambas can't run in fedora 11

2009-06-22 Thread Steven James Drinnan
On Mon, 2009-06-22 at 12:58 +0200, Benoît Minisini wrote: > > I hope this helps. > > > > No need it is included in gamba2-gb-db. I have had a similar problem > > with the SDL component. > > > > if you are installing and have a dependency problem. Make sure that the > > above and all other required

Re: [Gambas-user] The lastest version gambas can't run in fedora 11

2009-06-22 Thread Steven James Drinnan
I hope this helps. No need it is included in gamba2-gb-db. I have had a similar problem with the SDL component. if you are installing and have a dependency problem. Make sure that the above and all other required files are installed. Then run from a cmd prompt su rpm -ivh --nodeps 'the-name

Re: [Gambas-user] Gambas-user Digest, Vol 37, Issue 29

2009-06-21 Thread Steven James Drinnan
NG **: Connect to > unix:path=/tmp/ibus-program/ibus-unix-0 failed: Failed to connect to socket > /tmp/ibus-program/ibus-unix-0: refuse > connection > (InputKuaDef:2963): Gdk-CRITICAL **: gdk_x11_atom_to_xatom_for_display: > assertion `atom != GDK_NONE' failed > (

[Gambas-user] RPM install not resolving dependancies

2009-06-20 Thread Steven James Drinnan
Hi, This problem only appears with the sdl-sound component. It says Dependency resolution failed gambas2-gb-sdl-sound >= 1.9.48 is needed by package sjdsoft-phonicscatch-0.1.29-1.noarch (/sjdsoft-phonicscatch-0.1.29-1.noarch) gambas2-gb-sdl-sound < 2.90 is needed by package sjdsoft-phonicscat

Re: [Gambas-user] v4l - can not open device -solved

2009-06-18 Thread Steven James Drinnan
Had another look, looks like /dev/video is no longer created in v4l so the default now is /dev/video0. I know you did not make this component. But does need to be updated to recognize v4l2 which is now the default in most major distributions. Many thanks for your patience. Steven On Fri, 2009-0

Re: [Gambas-user] v4l - can not open device

2009-06-18 Thread Steven James Drinnan
Have you have had a chance to check it out? On Mon, 2009-06-15 at 10:22 +0800, Steven James Drinnan wrote: > Hi Benoit, > > Can you look at this. > > I just upgraded to Fedora 11 x86_64 > > But when I come to test my programs with the v4l component now fails. > >

[Gambas-user] v4l - can not open device

2009-06-14 Thread Steven James Drinnan
Hi Benoit, Can you look at this. I just upgraded to Fedora 11 x86_64 But when I come to test my programs with the v4l component now fails. I resolved this in the past by preloading the v4l compat lib like so. LD_PRELOAD=/usr/lib64/libv4l/v4l1compat.so gambas2 I also tried LD_PRELOAD=/usr/l

Re: [Gambas-user] OT way back when

2009-06-05 Thread Steven James Drinnan
Poor boy, at least I started on Sinclair spectrum 16kb. On Fri, 2009-06-05 at 09:54 +0200, Ron wrote: > Benoît Minisini wrote: > >> > > > > A few megabytes used there. It reminds me my Amstrad CPC464 when I had 48K > > memory free... :-) > > > > > 48K wow! > > I had a Sinclair ZX81 onc

[Gambas-user] gb.net.curl - error codes.

2009-05-28 Thread Steven James Drinnan
Hi am completing another project. To get weather information from the HK Observatory's web site. But I some times get error codes from the HTTP component. 1. Is there list of error codes that this component returns 2. Is there a method to reset the connection when I get an error?

Re: [Gambas-user] kdesu vs gksu

2009-05-19 Thread Steven James Drinnan
For me I would use neither, it would rely on those packages being available. In Fedora it uses its own graphical system - sorry can tell you the name its linked directly to the authentication system. As such those packages are nowhere to be seen. Instead let your package do the checking using shel

[Gambas-user] Testing Sites

2009-05-11 Thread Steven James Drinnan
Just a thought, there now seems to quite a few programmers here doing projects in one form or another. Witch is fantastic. Is there a site for us to download and test each others projects? I.E my thoughts would be Download binaries for for project pre-complied. To test for 1.ease of ins

Re: [Gambas-user] Hello all!!! How i can make my program to under...

2009-05-07 Thread Steven James Drinnan
Where are you checking this? Key press event. I would wait for another key like the return key. And then check. if key.code = key.return then if textbox1.text="c" then textbox1.text="1" else if textbox1.text="cl" then textbox

Re: [Gambas-user] Gambas server pages

2009-04-25 Thread Steven James Drinnan
2: No existe el fichero ó directorio > je...@jesus:~$ > > Using Ubuntu 8.10 - Gambas2 2.12 (Compiled without errors) > > Any help is welcome. > > Jesús > > Steven James Drinnan escribió: > > I think I solved it. But some please tell me if I can do this better. &

Re: [Gambas-user] Gambas server pages

2009-04-24 Thread Steven James Drinnan
ownership. Why the example worked OK I do not know. Steven On Fri, 2009-04-24 at 16:36 +0800, Steven James Drinnan wrote: > Well i do not know if you got the last message but I have been playing > with this. Got it working in Apache with cgi. > > But i have this problem the example

[Gambas-user] Gambas server pages

2009-04-24 Thread Steven James Drinnan
Well i do not know if you got the last message but I have been playing with this. Got it working in Apache with cgi. -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option tha

[Gambas-user] Gambas server pages

2009-04-24 Thread Steven James Drinnan
Well i do not know if you got the last message but I have been playing with this. Got it working in Apache with cgi. But i have this problem the example always works. yeah! But when I try it myself with this program #!/usr/bin/env gbw2 <% DIM myName AS String %> My Test <% myName = "steve

Re: [Gambas-user] Panning a picturebox inside a scrollview with mouse

2009-04-05 Thread Steven James Drinnan
Hi here is an example. In this example, you can embed the ocphotoview into a form. It is from a project that I am working on, so . Some of the code comes from the web camera example. There are some use full functions there as well. To load a picture right click. You can select. By file or Web c