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
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
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
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
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,
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
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
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
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 part
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
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
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' property field in the IDE
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 game
using
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
From: Steven James Drinnan ste...@sjdsoft.hk
Subject: Re: [Gambas-user
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
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
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
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
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 *
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 little buggy
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,
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 gam...@users.sourceforge.net
Not sure what to include with this, please ask for additional info.
Attached is a pict of some webcam weirdness with no error messages
: 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)
http://www.sjdsoft.hk/myedubase/index.htm (direct)
Licence: GPL
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?
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
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
No I am on fedora 11. It just appears to be loading problem. The delay
fixed the problem.
The error only happened when I auto-started the program on login.
So it looks like some libraries were not initiated yet.
Steven
On Fri, 2009-08-14 at 16:11 +0300, Jussi Lahtinen wrote:
There is some
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
Thanks that did the trick.
Funny if I run manually from the menu entry all OK.
Steven
On Thu, 2009-08-13 at 17:49 +0300, Jussi Lahtinen wrote:
If your program works otherwise, I think your error would be because
something needed has not been started yet...
Try to start your program with
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:
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
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 this yet?
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
.
.
, please edit your Subject line so it is more specific
than Re: Contents of Gambas-user digest...
Today's
Topics:
1. Swee Kwang Tan: postgresql (Steven James Drinnan)
2. Charlie Reinl: postgresql (sorry wrong name)
(Steven James Drinnan)
3. Format$ with different LANG
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
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
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 files are
at
gambas-user-ow...@lists.sourceforge.net
When replying, please edit your Subject line so it is more specific
than Re: Contents of Gambas-user digest...
Today's Topics:
1. build 2027 failing (Zach Smith)
2. Re: v4l - can not open device -solved (Steven James Drinnan)
3
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
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.
I resolved this in the past
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,
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
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 once, used it on a
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?
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
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
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
...@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.
After some more playing I decided to open up the copied files in gedit
as a root
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
%
!-- Variable declaration must
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 #45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option
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
51 matches
Mail list logo