[Gambas-user] Gambas and 3d game engines

2009-05-04 Thread jbskaggs

Are there any 3d game engines designed to work with Gambas? Or rather  are
there 3d game engines Gambas can use?

JB SKaggs
-- 
View this message in context: 
http://www.nabble.com/Gambas-and-3d-game-engines-tp23381068p23381068.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] What is most efficient method of creating simple paths for sprites to follow?

2009-04-30 Thread jbskaggs

I need to write a path maker for my game maker- it needs to be a graphical
interface s the game maker is geared for people with little to no computer
programming skills.

Paths are used to define the movement of sprites on the game screen like the
aliens in Galaga moving in from the side, etc. Of course there are others
uses for these movement paths.

I am thinking that in the gamemaker on a drawing window the user can place a
series of waypoint objects that an object would move to and when reach that
waypoint execute a set of instructions and goto the next waypoint. A line
could be drawn between each set of objects to show the user the path.

Here is my question:  When the game is compiled should the waypoints become
actual invisible objects or just x,y coordinates in a table or array?

2nd question: is it faster to load an animation or make one at runtime (ie
rotations, scaling, etc)?

JB Skaggs
-- 
View this message in context: 
http://www.nabble.com/What-is-most-efficient-method-of-creating-simple-paths-for-sprites-to-follow--tp23310618p23310618.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] webbrowser

2009-04-28 Thread jbskaggs

What I do is to save the html to a tmp file and use rich text to manipulate
then reload. Not elegant but works.

JB


glenn-65 wrote:
 
 can someone please tell me how to get the html from the webbrowser
 control.it is s easy in VB6 but immposible with gambas
 webbrowser control.i do not wish to have to  highlight then paste as
 this sucks.
 thanks glenn
 very close to using VB6 as i have been trying for weeks to do this 
 
 
 --
 Register Now  Save for Velocity, the Web Performance  Operations 
 Conference from O'Reilly Media. Velocity features a full day of 
 expert-led, hands-on workshops and two days of sessions from industry 
 leaders in dedicated Performance  Operations tracks. Use code vel09scf 
 and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 
 

-- 
View this message in context: 
http://www.nabble.com/webbrowser-tp23284401p23289342.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
Register Now  Save for Velocity, the Web Performance  Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance  Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] I need a shell script

2009-04-27 Thread jbskaggs

When I try to open this with archive manager I get:

tar: This does not look like a tar archive
tar: Skipping to next header
tar: Error exit delayed from previous errors

I also tried with xarchive, and ark and could not get it to open could you
re-archive it and send it again?

JB

Stefano Palmeri wrote:
 
 Il lunedì 27 aprile 2009 03:33:00 jbskaggs ha scritto:
 I am having a sudo (permission) problem in my gamemaker program.  It
 creates the code and writes it to the MMain.Module and creates the
 .Project
 file.

 Now I need to be able to shell from my program to a directory and run the
 gbc2 and gba2 commands.

 I have tried several different shell commands and I have tried a script:

 cd mypathtoproject
 gbc2
 gba2

 but I get a permission not granted error.  I have tired calling the
 script
 from shell with sudo

 Shell sudo   scriptname.sh

 but it asks for password then hangs.

 This is really simple but I am somehow bungling it as usual.

 So could someone one correct my script and to tell me how to call it?

 JB Skaggs
 
 Attached a little example.
 
 Stefano
 
  
 --
 Crystal Reports #45; New Free Runtime and 30 Day Trial
 Check out the new simplified licensign option that enables unlimited
 royalty#45;free distribution of the report engine for externally facing 
 server and web deployment.
 http://p.sf.net/sfu/businessobjects
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 
 

-- 
View this message in context: 
http://www.nabble.com/I-need-a-shell-script-tp23248632p23253548.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
Crystal Reports #45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] I need a shell script

2009-04-26 Thread jbskaggs

I am having a sudo (permission) problem in my gamemaker program.  It creates
the code and writes it to the MMain.Module and creates the .Project file.

Now I need to be able to shell from my program to a directory and run the
gbc2 and gba2 commands.

I have tried several different shell commands and I have tried a script:

cd mypathtoproject
gbc2
gba2

but I get a permission not granted error.  I have tired calling the script
from shell with sudo

Shell sudo   scriptname.sh

but it asks for password then hangs.

This is really simple but I am somehow bungling it as usual.

So could someone one correct my script and to tell me how to call it?

JB Skaggs
-- 
View this message in context: 
http://www.nabble.com/I-need-a-shell-script-tp23248632p23248632.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
Crystal Reports #45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty#45;free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Dependency is not satisfiable: gambas2-gb.sdl.sound

2009-04-21 Thread jbskaggs

It is a mistake in the ubuntu / debian package I had the same problem and
manually installed and configured Gambas2 thru the ./configure etc method. 
Look up on the main Gambas2 website how to compile and install Gambas and it
will list the dependencies and steps needed to do so.   One of the
maintainers of the Ubuntu Gambas packages said he would fix it but I haven't
heard of a new package since.  Maybe they are waiting till 3.0?



Search the message forums and you should find more on this.  Though it is
quite hard sometimes to find all the dependencies.

BTW it might actually be faster to take another distro package and convert
it to Debian? If you have problems finding the dependencies. OR even run
another Distro of Linux- I know the Slackware version doesn't have this
issue.

JB Skaggs



Andreas quot;Müllerquot; wrote:
 
 Hello, all
 
 Gambas2 supplies the gb.sdl.sound component. When I use this component
 on my Ubuntu 8.10 system, I can use sound within gambas applications.
 When I try to create an installation package, it will work. But when I
 try to install the package - just created - the following error pops up:
 Dependency is not satisfiable: gambas2-gb.sdl.sound
 
 Within Synaptic there is listed an installed library: gambas2-gb-sdl
 with description This component use the sound image and ttf fonts parts
 of the SDL library. It allows you to simultaneously play many sounds and
 a music stored in a file.
 
 So it seems to be that the Gambas package creating process refers to its
 sound library as gambas2-gb.sdl.sound but Ubuntu 8.10 lists these
 capabilities as gambas2-gb-sdl. 
 
 Is there any solution available for this missmatch? Are there newer
 versions of Ubuntu and/or Gambas2 which doesn't show this problem? To
 whom should this problem be addressed to - to the Gambas developers or
 to the Ubuntu packagers? (I have just posted the same question to
 launchpad, hope that was correct?)
 
 I'm using the Gambas2 installation (2.7-1) which comes with Ubuntu 8.10
 (intrepid) and have installed all updates available .
 My /etc/apt/sources.lists are not modified.
 uname -a - Linux tax 2.6.27-11-generic #1 SMP Wed Apr 1 20:57:48 UTC
 2009 i686 GNU/Linux
 
 best regards
 Andreas
 
 
 --
 Stay on top of everything new and different, both inside and 
 around Java (TM) technology - register by April 22, and save
 $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
 300 plus technical and hands-on sessions. Register today. 
 Use priority code J9JMT32. http://p.sf.net/sfu/p
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 
 

-- 
View this message in context: 
http://www.nabble.com/Dependency-is-not-satisfiable%3A-gambas2-gb.sdl.sound-tp23145167p23152789.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Sdl mouse problem XCFE problem.

2009-04-20 Thread jbskaggs

I have discovered that running gambas2.12  in fluxbox, gnome, kde,
enlightenment, or xfce had no effect on the SDL Mouse problem.

But I also found out the mouse cursor is controllable on Forms in these
environments (I am on Wolvix 2.0- a Slackware 12.2 enviro) but the cursor is
not controllable in SDL on Slackware.   Yet it works in Ubuntu!  

This is very very frustrating!

JB SKaggs



jbskaggs wrote:
 
 MY SDL mouse problem only occurs on Wolvix 2.0 which is running a XFCE
 environment. This is the same environment that would not let me change
 border colors etc.
 
 I can change mouse cursor just fine on UBUNTU so,
 
 Has anyone gotten mouse cursors to change with XFCE?
 
 Or am I barking up wrong tree?
 
 JB SKaggs
 

-- 
View this message in context: 
http://www.nabble.com/Sdl-mouse-problem-XCFE-problem.-tp23131066p23133058.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] In sdl window how do you hide mouse? Cant fnd a Doc entry for sdl mouse.

2009-04-19 Thread jbskaggs

Hi in my sdl window I need to hide the mouse cursor

here's code:

PUBLIC SUB Main()
 WITH Screen
.Width = 640
.Height = 480
.Framerate = 100
.Show()
.FullScreen = TRUE
.Mouse = Mouse.Blank  i have also tried mouse.cross and
mouse.custom but nothing happens.
  
   END WITH 

At 640 x 480 the mouse cursor is huge! and does not need to be on a keyboard
controlled game screen anyway.  The doc's had no entry yet for .mouse for
sdl and I searched the forums for mouse hide, cursor hide, sdl mouse, and
mouse visible, cursor visible, and custom cursor but to no avail.

JB SKaggs
-- 
View this message in context: 
http://www.nabble.com/In-sdl-window-how-do-you-hide-mouse--Cant-fnd-a-Doc-entry-for-sdl-mouse.-tp23120202p23120202.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Object creating properties? ball.speed, ball.solid, etc

2009-04-18 Thread jbskaggs

I need to know how to either create an object to where I can attach a list of
variables or how to give myself the ability to do the following:

lets say I want to name my special object: ball.

I want to be able to create special properties for that ball I can access
with .property (or variable)

for example:

ball.speed
ball.solid
ball.item
ball.gravity
ball.life
etc...


I don't mean Gambas, I mean just being able to attach variables to an object
like I mentioned.

I write a lot of games and this is something I need to know how to do or at
least get close to it.  I have read all the docs I can find and I am
probably overlooking it.

JB Skaggs
-- 
View this message in context: 
http://www.nabble.com/Object-creating-properties--ball.speed%2C-ball.solid%2C-etc-tp23110588p23110588.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Programming beginner: first program won't run?

2009-04-18 Thread jbskaggs

Okay two other things then:

make sure your control names match the names in your code (ie label1 is
actually named label1 on the form etc)
two make sure you dont have the controls set to visible.false on the form.

try this code:

public sub form_open()
label1.visible=true
button1.visible=true
textbox1.visible=true
textbox1.readonly=false
textbox1.text=Hello World!
end

public sub button1_click()
label1.text = Textbox1.text
end


The first section makes sure your controls are visible and that textbox is
not set to readonly (although you shouldn't have to do this as by default
controls are visible and readonly = false), and sets the text of textbox1 to
hello world. You can type whatever you want in the textbox.

The second section assigns any text in the textbox1 to the label1.

Tell me if this runs for you?

JB Skaggs


phohammer wrote:
 
 Yep, I created the form just as the tutorial said (in my first post):
 
  http://www.nabble.com/file/p23118993/form.png 
 
 
 jbskaggs wrote:
 
 Hi I hope this doesn't seem too basic- but did you create your form and
 draw the textbox1, label1, and button1?
 
 JB SKaggs
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Programming-beginner%3A-first-program-won%27t-run--tp23117770p23119189.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Programming beginner: first program won't run?

2009-04-18 Thread jbskaggs

Please send a screenshot of what it does when it runs?

Oh what components do you have installed under project preferences? QT?

JB Skaggs

phohammer wrote:
 
 
 jbskaggs wrote:
 
 
 Tell me if this runs for you?
 
 
 
 No luck. I even matched the cases (lower case) for the code and
 properties. You can see my code and form in the files I uploaded: 
 http://www.nabble.com/file/p23119191/fmainform.png fmainform.png  and 
 http://www.nabble.com/file/p23119191/fmainclass.png fmainclass.png .
 
 I figured a program so simple should run... hmmm...
 

-- 
View this message in context: 
http://www.nabble.com/Programming-beginner%3A-first-program-won%27t-run--tp23117770p23119193.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Programming beginner: first program won't run?

2009-04-18 Thread jbskaggs

Try just unclicking the gb gui and gb gtk and click QT you shouldnt have to 
rewrite the whole thing.  

JB SKaggs


phohammer wrote:
 
 
 jbskaggs wrote:
 
 Please send a screenshot of what it does when it runs?
 
 Oh what components do you have installed under project preferences? QT?
 
 JB Skaggs
 
 
 
 It simply says compiling project... as seen 
 http://www.nabble.com/file/p23119198/compiling.png here .
 
 I'm not sure what you mean by project preferences.
 There is a project properties and it says I have these components
 running:  http://www.nabble.com/file/p23119198/properties.png
 properties.png ,
 
 I tried to select the qt and gtk components but it said this: 
 http://www.nabble.com/file/p23119198/properties1.png properties1.png .
 
 I wonder if I need to start a whole new project and enable the qt
 component before doing anything?
 
 

-- 
View this message in context: 
http://www.nabble.com/Programming-beginner%3A-first-program-won%27t-run--tp23117770p23119719.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] order of children in container

2009-04-17 Thread jbskaggs

I have a behavior I do not understand-

I have several panels with controls in them.

The controls are numbered sequentially and created in sequential order in
the containers.  My problem is that sometimes the containers count the
controls backwards!

for example:
i = 0
FOR i = 0 TO Fsetupgame.Panel1.Children.Count - 1  ' eleven children
hValueBox1 = Fsetupgame.Panel1.Children[i]' gets the
address of the already existing object
 hd = Fsetupgame.panel14.Children[i]
a = hd.Text
'pfire.Children[i].name = hd.Text
PRINT a, hValueBox1.value
fc = (, fc  i)
IF hValueBox1.Value  0
FOR c = 0 TO hValueBox1.Value - 1 
   fire = (, fc  i  ^  a)
   INC Fsetupgame.firecount
 NEXT 
ENDIF
NEXT

the ouput goes:

textbox11
textbox10
textbox9
textbox8
textbox7
textbox6
textbox5
textbox4
textbox3
textbox2
textbox1

rather than 

textbox1
textbox2
textbox3
and so . . .

Why does this happen?

JB SKaggs
-- 
View this message in context: 
http://www.nabble.com/order-of-children-in-container-tp23106142p23106142.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] order of children in container

2009-04-17 Thread jbskaggs

I closed the form and reloaded it and the control order changed to how I
wanted it.

I still am not sure if I understand why.

JB SKaggs

jbskaggs wrote:
 
 I have a behavior I do not understand-
 
 I have several panels with controls in them.
 
 The controls are numbered sequentially and created in sequential order in
 the containers.  My problem is that sometimes the containers count the
 controls backwards!
 
 for example:
 i = 0
 FOR i = 0 TO Fsetupgame.Panel1.Children.Count - 1  ' eleven children
 hValueBox1 = Fsetupgame.Panel1.Children[i]' gets the
 address of the already existing object
  hd = Fsetupgame.panel14.Children[i]
 a = hd.Text
 'pfire.Children[i].name = hd.Text
 PRINT a, hValueBox1.value
 fc = (, fc  i)
 IF hValueBox1.Value  0
 FOR c = 0 TO hValueBox1.Value - 1 
fire = (, fc  i  ^  a)
INC Fsetupgame.firecount
  NEXT 
 ENDIF
 NEXT
 
 the ouput goes:
 
 textbox11
 textbox10
 textbox9
 textbox8
 textbox7
 textbox6
 textbox5
 textbox4
 textbox3
 textbox2
 textbox1
 
 rather than 
 
 textbox1
 textbox2
 textbox3
 and so . . .
 
 Why does this happen?
 
 JB SKaggs
 

-- 
View this message in context: 
http://www.nabble.com/order-of-children-in-container-tp23106142p23106387.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Writing a Choose Your Own Adventure prototype

2009-04-15 Thread jbskaggs

I am not saying goto isnt needed at all-  just that to do what he is doing it
isn't.  Furthermore too many goto's create spaghetti code which becomes
really hard to follow. :)


But I do get what your saying and I have used goto's the same way- though
not in a while.  For me it was when I began to think less sequentially and
more interconnectedly that my code became clearer and my need for goto's
became less.  And it was hard for me to overcome my habit of:

10 input x
20 if x = 0 then goto 40
30 goto 10
40 print yeah
and so on...

I seriously had a hard time grasping that OO was pseudo nonsequential!

JB Skaggs


nando-7 wrote:
 
 The following is not a true statement:
'Becuase Gambas is object oriented  goto's aren't needed.'
 
 I use Gambas in an OO way and sometimes GOTO is very clear and I use it.
 I also use GOTO when I control to go exactly someplace and (possibly) not
 test or run unnecessary code in-between. 
 I also use GOTO in a soft-real-time (as real as can be).
 
 A whole bunch of GOTO's can be very confusing.
 OO does require planning though.
 
 -- Original Message ---
 From: jbskaggs jbska...@skaggsworld.com
 To: gambas-user@lists.sourceforge.net
 Sent: Wed, 15 Apr 2009 12:39:21 -0700 (PDT)
 Subject: Re: [Gambas-user] Writing a Choose Your Own Adventure prototype
 
 That would be really easy in Gambas!
 

 
 Let me give you a step by step how to do one screen and you can then
 change
 it or redo it how you like.
 
 step 1:
 
 create a form with a textbox, a picture box, and three buttons.
 
 Put your reading selection in the textbox, the image in the picture box
 and
 the three options on the buttons
 
 so button1.text=Open door.
 button2.text=Scream for help
 etc..
 
 Now in your form editor double click one of the buttons and it will take
 you
 to the code page and automatically create an event code:
 
 public sub button1_click()
 
 End
 
 Now between those two lines you would put your code to display a new
 page. 
 You have two options really:
 
 1.  Goto a new form with new controls or
 2. Change the data for the controls (ie the text, the picture, and the
 button labels)
 
 I have done something like this in the past and I stored my texts in
 small
 files.  so my button code looked like this:
 
 public sub button1_click()
 textarea1.text=file.load(user.home / scene1.txt)
 picturebox1.picture = picture.load(user.home / thispic.png)
 button1.text=You have been killed!
 button2.text=Go back?
 Button3.text=Quit.
 End
 
 I will be glad to help you if you want more help.
 
 JB Skaggs
 
 Marc Carson-3 wrote:
  
  I want to make a short adventure game that lets users read text and
 look 
  at an image that explains where they are in the story, and then lets 
  them make a decision like, 1) get in the car or 2) run and call the 
  police. These choices then branch into other choices, and at many
 points 
  the player may die or complete the adventure in different ways. I hope 
  that makes sense...
  
  What I'm wondering is, what sort of data structures and approaches to 
  this type of software should I use? The last time I did something like 
  this, as a youngster, I used GOTO everywhere. :-) But I've heard there 
  are better ways.
  
  Thanks for any tips for a beginner...
  
  Marc
  
 
 --
  This SF.net email is sponsored by:
  High Quality Requirements in a Collaborative Environment.
  Download a free trial of Rational Requirements Composer Now!
  http://p.sf.net/sfu/www-ibm-com
  ___
  Gambas-user mailing list
  Gambas-user@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/gambas-user
  
 
 
 -- 
 View this message in context:
 http://www.nabble.com/Writing-a-%22Choose-Your-Own-
 Adventure%22-prototype-tp23064077p23065712.html Sent from the gambas-user 
 mailing list archive at Nabble.com.
 
 --
 This SF.net email is sponsored by:
 High Quality Requirements in a Collaborative Environment.
 Download a free trial of Rational Requirements Composer Now!
 http://p.sf.net/sfu/www-ibm-com
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 --- End of Original Message ---
 
 
 --
 Stay on top of everything new and different, both inside and 
 around Java (TM) technology - register by April 22, and save
 $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
 300 plus technical and hands-on sessions. Register today. 
 Use priority code J9JMT32. http://p.sf.net/sfu/p
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 
 

-- 
View

Re: [Gambas-user] In Plain English- A definition of the Datatypes please?

2009-04-14 Thread jbskaggs

You are correct:)

Thanks for your kind words.

JB

Doriano Blengino wrote:
 
 jbskaggs ha scritto:
 Thank you,

 I shall search more.  One of the problems I find is that many of the
 terms
 have multiple meanings for example their meaning in mathmetics does not
 always equal the definition in gambas or basic and basic terms do not
 always
 match 
 terms in other langauges so that finding meanings in wiki or google makes
 it
 hard- especially when I dont know which one applies.


 A good example:

 I was trying to find a command that changed the position in the order
 that
 components were drawn-I found that the command .raise did that- but I had
 previously thought the command raise meant to raise the event flag.

 English is not the best language to program in- or speak for that matter
 because the words have so many different meanings in different contexts. 
 It
 wasn't until I learned  a little Greek in bible college how imprecise
 English is unfortunately it is the only language I speak with any
 understanding.
   
 Uhm... I don't like English, just like you, but perhaps you are too much 
 critic. There are very precise words in English too, and Raise is one 
 of them. If you put a control on the top of another, then you are 
 effectively raising it; the fact in gambas RAISE has also another 
 meaning is not an English fault (and nor a gambas one: think at raising 
 an event like to throw it in the air, waiting for someone else to catch 
 it. This figurates what the things actually are).
 
 Don't be in a hurry - take your time and you will discover, day after 
 day, that for programming english is as good as many other languages, 
 and in this very moment English is the mean by which you and me
 communicate.
 
 If you have questions about gambas, try to post: someone will reply and 
 clarify things.
 
 Regards and cheers,
 Doriano
 
 
 --
 This SF.net email is sponsored by:
 High Quality Requirements in a Collaborative Environment.
 Download a free trial of Rational Requirements Composer Now!
 http://p.sf.net/sfu/www-ibm-com
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 
 

-- 
View this message in context: 
http://www.nabble.com/In-Plain-English--A-definition-of-the-Datatypes-please--tp22983213p23035746.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Busy with theatre...

2009-04-13 Thread jbskaggs

Theatre and drama is hardwork- to do that and Gambas is impressive.

Wish I could see the play - but Im stuck in Kansas.

JB


Bugzilla from gam...@users.sourceforge.net wrote:
 
 Hi,
 
 I will play at the festival du théâtre universitaire de Cabourg
 (academic 
 theatre festival of Cabourg - http://www.cabourg.net/spip.php?article388),
 and 
 so won't be in front of my computer between Wednesday, 15th and Sunday,
 19th. 
 
 There are two or three pending bugs, so people must be patient.
 
 If some french reader leaving near Cabourg read that, maybe he can come to
 see 
 me. :-) The play is Les Justes, from Albert Camus.
 
 Regards,
 
 -- 
 Benoît
 
 --
 This SF.net email is sponsored by:
 High Quality Requirements in a Collaborative Environment.
 Download a free trial of Rational Requirements Composer Now!
 http://p.sf.net/sfu/www-ibm-com
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 
 

-- 
View this message in context: 
http://www.nabble.com/Busy-with-theatre...-tp23019427p23019892.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] A random sort of listview

2009-04-13 Thread jbskaggs

It is Gambas related!  Where else are noobs like me going to learn this?

Please continue as you are both teaching me Maestros!  To stop now would be
like taking candy from a baby just after the wrapper was opened.

JB SKaggs



Simonart Dominique wrote:
 
 Hi Doriano,
 
   I agree to everything you wrote.
 
 I thought the same about what you wrote! :)
 
  ... Then, recalling to my mind
  the way a person shuffles cards by hand, I tried to 
 express another
  algorithm, which in a certain way lets you to adjust the 
 randomness: a
  person can shuffle very well, or not. But, thinking over, 
 my algorithm
  does not fully respect this situation, because a true 
 player shuffles
  cards in chunks, by taking the last part of a deck and 
 scattering it in
  the middle of the remaining part... If someone wants to 
 write a
  realistic card games, perhaps could consider this.
 
 It could be interesting to define a sort of randomness 
 evaluation, so we could compare several methods or evaluate 
 the efficient limit to use.
 For exemple, you take 1000 in your method but may be 500 
 will be enough?
 I will take a 10 cards' deck as illustration
 I could think about 2 criters:
 1) absolute difference between the initial and the final 
 positions
 2) absolute difference between 2 adjacent items
 
 The first criter is not fair because all the places are not 
 equivalent! the 5th position could not exceed a 5 difference 
 but the 0th position could be 9! So we have to consider the 
 serie 0-9 as a ring were 0 is next to 9, so the maximum 
 difference is 5.
 The same could be said about the second criter!
 
 Now, I will stop to talk about that because it's no more 
 Gambas related :(
 
 cheers
 Dominique Simonart
 
 
 --
 This SF.net email is sponsored by:
 High Quality Requirements in a Collaborative Environment.
 Download a free trial of Rational Requirements Composer Now!
 http://p.sf.net/sfu/www-ibm-com
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 
 

-- 
View this message in context: 
http://www.nabble.com/A-random-sort-of-listview-tp22919766p23027115.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] A random sort of listview

2009-04-12 Thread jbskaggs

Hi yourself!  Here is the problem in the code:

FOR i = 0 TO ListView1.Count - 1 ' write items in listview2
TRY PRINT myArray[i]
listview1.MoveTo(myArray[i])
TRY c = listview1.Item.Key
TRY PRINT myArray[i], listview1.item.key , c,  counter i: , i,  total
count: , listview1.Count
TRY listview2.add(c, listview1.item.text) 
NEXT 

When the counter i reaches Listview1.Count -1  it gives an error and does
not write the last record!   I have compensated by writing an extra  dummy
record to the data file- but how do I code this properly to write the whole
list?  I have tried several things and they just give different errors.

Thanks

JB

Simonart Dominique wrote:
 
 Hi,
 
 jbskaggs a écrit :
 Okay I thought this was worked out but its still not working- I always
 end up
 losing the last two list items.
 
 Here is the console output from my print statements:
 This first list is printing i, a from this command SWAP myArray[i],
 myArray[a]
 
 21  21
 20  13
 19  0
 18  13
 17  11
 16  4
 15  9
 14  12
 13  4
 12  2
 11  6
 10  2
 9   4
 8   0
 7   5
 6   1
 5   3
 4   3
 3   0
 2   0
 1   0
 0   0
 
 
 Here, you listed i and a but the interesting values are i 
 and myArray[i] instead
 
 This list shows where listview1 is being copied into listview2:
 
 listview1.item.key  21   counter i: 21   total count:  
 22
 listview1.item.key  13   counter i: 20   total count:  
 22
 listview1.item.key  13   counter i: 19   total count:  
 22
 listview1.item.key  20   counter i: 18   total count:  
 22
 listview1.item.key  11   counter i: 17   total count:  
 22
 listview1.item.key  4counter i: 16   total count:  
 22
 listview1.item.key  9counter i: 15   total count:  
 22
 listview1.item.key  12   counter i: 14   total count:  
 22
 listview1.item.key  16   counter i: 13   total count:  
 22
 listview1.item.key  2counter i: 12   total count:  
 22
 listview1.item.key  6counter i: 11   total count:  
 22
 listview1.item.key  14   counter i: 10   total count:  
 22
 listview1.item.key  18   counter i: 9total count:  
 22
 listview1.item.key  19   counter i: 8total count:  
 22
 listview1.item.key  5counter i: 7total count:  
 22
 listview1.item.key  5counter i: 6total count:  
 22
 listview1.item.key  3counter i: 5total count:  
 22
 listview1.item.key  7counter i: 4total count:  
 22
 listview1.item.key  8counter i: 3total count:  
 22
 listview1.item.key  15   counter i: 2total count:  
 22
 listview1.item.key  10   counter i: 1total count:  
 22
 listview1.item.key  17   counter i: 0total count:  
 22
 
 here is a screen shot of the two lists: listview1 is on the left, you
 will
 notice that the last two items are not on the random sorted list on the
 right.
 
 
 First, is it correct that you have twice the keys 13 and 5 
 in ListView1 and that keys 0 and 1 are missing?
 I tried to reproduce exactly your keys sequence but as soon 
 as I want to add an identical key, I get a message and the 
 programme stop immediatly.
 
 http://www.nabble.com/file/p23005690/ScreenshotBug.png 
 
 
 Here is my code:
 
 PUBLIC SUB button4_click()
 DIM myArray AS Integer[ListView1.count]
 DIM a AS Integer
 DIM i AS Integer
 DIM c AS String
 
 FOR i = 0 TO ListView1.count - 1 STEP 1
  myArray[i] = i 
 NEXT 
 
 FOR i = ListView1.count - 1 TO 0 STEP -1
 a = Int(Rnd(i + 1))
 SWAP myArray[i], myArray[a]
 PRINT i, a
 NEXT 
 
 FOR i = ListView1.count - 1 TO 0 STEP -1 ' write items in listview2
 - I
 have also tried running this counting up as well but it changed nothing.
 
 listview1.MoveTo(myArray[i])
 TRY c = listview1.Item.Key
 TRY PRINT listview1.item.key , c,  counter i: , i,  total count: ,
 listview1.Count
 TRY listview2.add(c, listview1.item.text) 
 NEXT 
 'fGlobal.show
 'FRolldice.Show
 
 'ME.Hide
 
 END
 
 
 Sincerly JB SKaggs
 
 
 I run your code and it works quite fine!
 I think your missing items come from the duplicated keys
 
 Dominique Simonart
 
 
 --
 This SF.net email is sponsored by:
 High Quality Requirements in a Collaborative Environment.
 Download a free trial of Rational Requirements Composer Now!
 http://p.sf.net/sfu/www-ibm-com
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 
 

-- 
View this message in context: 
http://www.nabble.com/A-random-sort-of-listview-tp22919766p23008540.html
Sent from the gambas-user mailing list

Re: [Gambas-user] A random sort of listview

2009-04-12 Thread jbskaggs

This works much better at getting a more shuffled list!

Thanks



Doriano Blengino wrote:
 
 jbskaggs ha scritto:

 FOR i = 0 TO ListView1.count - 1 STEP 1
  myArray[i] = i 
 NEXT 

 FOR i = ListView1.count - 1 TO 0 STEP -1
 a = Int(Rnd(i + 1))
 SWAP myArray[i], myArray[a]
 PRINT i, a
 NEXT 
   
 Apart from the problem of missing records, there could be also a 
 randomness problem in the algorithm... I am really not sure, but it 
 seems that certain slots have more chances to be swapped than other - 
 myarray[0] can be swapped COUNT times, while myarray[count-1] gets only 
 a chance.  I am not sure of what this signifies: it is true that the 
 swap affects the values contained in slots, and not the slots 
 themselves, but anyway there could be another method. One could also do 
 this:
 
 for i = 0 to 1000   ' arbitrary value, large enough (100?)
   c1 = int(rnd(listview1.count))
   c2 = int(rnd(listview1.count))
   swap myarray[c1], myarray[c2]
 next
 
 This way, every slot gets the same chances to be swapped; for sufficient 
 loops, it should make a good job... perhaps more random than before.
 And perhaps, as the algorthm is different, it could solve the problem of 
 missing records (which I didn't understand...).
 
 Cheers,
 
 -- 
 Doriano Blengino
 
 Listen twice before you speak.
 This is why we have two ears, but only one mouth.
 
 
 --
 This SF.net email is sponsored by:
 High Quality Requirements in a Collaborative Environment.
 Download a free trial of Rational Requirements Composer Now!
 http://p.sf.net/sfu/www-ibm-com
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 
 

-- 
View this message in context: 
http://www.nabble.com/A-random-sort-of-listview-tp22919766p23013584.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] A random sort of listview

2009-04-12 Thread jbskaggs

You were correct! There was a extra comma in the data file that was breaking
the loop!

BTW to you an everyone else if you celebrate it, Happy Easter! If not ignore
me. ;)

JB SKaggs



Simonart Dominique wrote:
 
 Hi again :)
 
 May be you did not see the last sentence of my answer wich 
 is written in 3 places? Your code is just fine and I don't 
 have any problem with the ListViews. Of course, I had to 
 initialize the ListView1 with my own data like this:
 
 FOR i = 0 to 21
 ListView1.Add(Str(i), number   Str(i))
 NEXT
 After that, I run your code and all is fine!
 If you have problem, this is therefore with the content of 
 your Listview1. I think it is not correct to have identical 
 keys in a ListView because if I attempt to do it the program 
 stop immediatly. I even don't understand how you could get 
 this situation! Here is what I tried:
 
 FOR i = 0 to 21
 SELECT CASE i
 CASE 0
ListView1.Add(5, number   Str(i))
 CASE 1
ListView1.Add(13, number   Str(i))
 CASE ELSE
ListView1.Add(Str(i), number   Str(i))
 END SELECT
 NEXT
 this code stop with i=5 and say that the key is already used!
 
 Could you make a try with unique keys only?
 Plus, could you run it without TRY?
 
 Hope we could identify the error
 Dominique Simonart
 
 jbskaggs a écrit :
 Hi yourself!  Here is the problem in the code:
 
 FOR i = 0 TO ListView1.Count - 1 ' write items in listview2
 TRY PRINT myArray[i]
 listview1.MoveTo(myArray[i])
 TRY c = listview1.Item.Key
 TRY PRINT myArray[i], listview1.item.key , c,  counter i: , i, 
 total
 count: , listview1.Count
 TRY listview2.add(c, listview1.item.text) 
 NEXT 
 
 When the counter i reaches Listview1.Count -1  it gives an error and does
 not write the last record!   I have compensated by writing an extra 
 dummy
 record to the data file- but how do I code this properly to write the
 whole
 list?  I have tried several things and they just give different errors.
 
 Thanks
 
 JB
 
 Simonart Dominique wrote:
 Hi,

 jbskaggs a écrit :
 Okay I thought this was worked out but its still not working- I always
 end up
 losing the last two list items.

 Here is the console output from my print statements:
 This first list is printing i, a from this command SWAP myArray[i],
 myArray[a]

 21  21
 20  13
 19  0
 18  13
 17  11
 16  4
 15  9
 14  12
 13  4
 12  2
 11  6
 10  2
 9   4
 8   0
 7   5
 6   1
 5   3
 4   3
 3   0
 2   0
 1   0
 0   0

 Here, you listed i and a but the interesting values are i 
 and myArray[i] instead

 This list shows where listview1 is being copied into listview2:

 listview1.item.key  21   counter i: 21   total count:  
 22
 listview1.item.key  13   counter i: 20   total count:  
 22
 listview1.item.key  13   counter i: 19   total count:  
 22
 listview1.item.key  20   counter i: 18   total count:  
 22
 listview1.item.key  11   counter i: 17   total count:  
 22
 listview1.item.key  4counter i: 16   total count:  
 22
 listview1.item.key  9counter i: 15   total count:  
 22
 listview1.item.key  12   counter i: 14   total count:  
 22
 listview1.item.key  16   counter i: 13   total count:  
 22
 listview1.item.key  2counter i: 12   total count:  
 22
 listview1.item.key  6counter i: 11   total count:  
 22
 listview1.item.key  14   counter i: 10   total count:  
 22
 listview1.item.key  18   counter i: 9total count:  
 22
 listview1.item.key  19   counter i: 8total count:  
 22
 listview1.item.key  5counter i: 7total count:  
 22
 listview1.item.key  5counter i: 6total count:  
 22
 listview1.item.key  3counter i: 5total count:  
 22
 listview1.item.key  7counter i: 4total count:  
 22
 listview1.item.key  8counter i: 3total count:  
 22
 listview1.item.key  15   counter i: 2total count:  
 22
 listview1.item.key  10   counter i: 1total count:  
 22
 listview1.item.key  17   counter i: 0total count:  
 22

 here is a screen shot of the two lists: listview1 is on the left, you
 will
 notice that the last two items are not on the random sorted list on the
 right.

 First, is it correct that you have twice the keys 13 and 5 
 in ListView1 and that keys 0 and 1 are missing?
 I tried to reproduce exactly your keys sequence but as soon 
 as I want to add an identical key, I get a message and the 
 programme stop immediatly.

 http://www.nabble.com/file/p23005690/ScreenshotBug.png 


 Here is my code:

 PUBLIC SUB button4_click()
 DIM myArray AS Integer[ListView1.count]
 DIM a AS Integer
 DIM i AS Integer
 DIM c

Re: [Gambas-user] X coordinate of a Form Frame. My Second Problem.

2009-04-12 Thread jbskaggs

Have you tried me.center?

agrgal wrote:
 
 I wrote some code to center a Form window, even the Desktop Size is
 different. Here it is:
 
 pcode  FMain.X = Int((Desktop.Width - FMain.Width) / 2)/code/p
 pcodeFMain.Y = Int((Desktop.Height - FMain.Height) / 2)/code/p
 
 Meanwhile the Form is resized regarding to the Y coordinate, it doesn't
 work as well for the X coordinate. Why? It seems that FMain.X doesn't
 'catch up' a number (FMain.X=100 won't work too) 
 
 What's happening? Please, help me!!! :-)
 

-- 
View this message in context: 
http://www.nabble.com/X-coordinate-of-a-Form-Frame.-My-Second-Problem.-tp23013834p23016773.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] A random sort of listview

2009-04-11 Thread jbskaggs

Okay I thought this was worked out but its still not working- I always end up
losing the last two list items.

Here is the console output from my print statements:
This first list is printing i, a from this command SWAP myArray[i],
myArray[a]

21  21
20  13
19  0
18  13
17  11
16  4
15  9
14  12
13  4
12  2
11  6
10  2
9   4
8   0
7   5
6   1
5   3
4   3
3   0
2   0
1   0
0   0

This list shows where listview1 is being copied into listview2:

listview1.item.key  21   counter i: 21   total count:   22
listview1.item.key  13   counter i: 20   total count:   22
listview1.item.key  13   counter i: 19   total count:   22
listview1.item.key  20   counter i: 18   total count:   22
listview1.item.key  11   counter i: 17   total count:   22
listview1.item.key  4counter i: 16   total count:   22
listview1.item.key  9counter i: 15   total count:   22
listview1.item.key  12   counter i: 14   total count:   22
listview1.item.key  16   counter i: 13   total count:   22
listview1.item.key  2counter i: 12   total count:   22
listview1.item.key  6counter i: 11   total count:   22
listview1.item.key  14   counter i: 10   total count:   22
listview1.item.key  18   counter i: 9total count:   22
listview1.item.key  19   counter i: 8total count:   22
listview1.item.key  5counter i: 7total count:   22
listview1.item.key  5counter i: 6total count:   22
listview1.item.key  3counter i: 5total count:   22
listview1.item.key  7counter i: 4total count:   22
listview1.item.key  8counter i: 3total count:   22
listview1.item.key  15   counter i: 2total count:   22
listview1.item.key  10   counter i: 1total count:   22
listview1.item.key  17   counter i: 0total count:   22

here is a screen shot of the two lists: listview1 is on the left, you will
notice that the last two items are not on the random sorted list on the
right.

http://www.nabble.com/file/p23005690/ScreenshotBug.png 


Here is my code:

PUBLIC SUB button4_click()
DIM myArray AS Integer[ListView1.count]
DIM a AS Integer
DIM i AS Integer
DIM c AS String

FOR i = 0 TO ListView1.count - 1 STEP 1
 myArray[i] = i 
NEXT 

FOR i = ListView1.count - 1 TO 0 STEP -1
a = Int(Rnd(i + 1))
SWAP myArray[i], myArray[a]
PRINT i, a
NEXT 

FOR i = ListView1.count - 1 TO 0 STEP -1 ' write items in listview2 - I
have also tried running this counting up as well but it changed nothing.

listview1.MoveTo(myArray[i])
TRY c = listview1.Item.Key
TRY PRINT listview1.item.key , c,  counter i: , i,  total count: ,
listview1.Count
TRY listview2.add(c, listview1.item.text) 
NEXT 
'fGlobal.show
'FRolldice.Show

'ME.Hide

END


Sincerly JB SKaggs



Simonart Dominique wrote:
 
 Simonart Dominique a écrit :
 Hi,
 
 Hmm, did you run exactly this code? If so, there is 
 something wrong with the second FOR NEXT loop
 
 jbskaggs a écrit :
 using your suggestions and the swap command vs manual swapping this is
 my
 code:

 public b as string  'optional string used to hold the array data for
 file or
 split later

 PUBLIC SUB button4_click() ' initialize array
 DIM myArray AS Integer[200]
 DIM a AS Integer
 DIM i AS Integer

 FOR i = 0 TO 199 STEP 1 'add array items 
  myArray[i] = i 
 NEXT 

 FOR i = 0 TO 199 STEP 1 ' random swap array items
 a = Int(Rnd(i + 1))
 SWAP myArray[i], myArray[a]
 NEXT 

 
 the right code is:
 
 FOR i = 199 TO 0 STEP -1
 ...
 NEXT
 
 But if you prefer incremental loop, you could write:
 
 FOR i = 0 TO 199
 A = Int(Rnd(i,200))
 SWAP ...
 NEXT
 
 
 FOR i = 0 TO 199 STEP 1 ' write items in listview2
 listview1.MoveTo(myArray[i])
 c = listview1.Item.Key
 listview2.add(c, listview1.item.text) 
 NEXT 



 FOR i = 0 TO 199 STEP 1 'optional step to write array as a string for
 file
 or whatever use
 b = slot  myArray[i]  ,
 NEXT 
 PRINT b
 END

 PUBLIC SUB Button1_Click() 'an optional way to load the array values
 from
 the variable b and / or a file if b was file loaded
 DIM egg AS String[]
 DIM c AS String
  listview1.Clear
  egg = Split(b, ,)
  FOR EACH c IN egg 
 TRY listview1.Add(c, c) 
 IF ERROR THEN RETURN 
 NEXT 
 IF listview1.Count = 200 THEN RETURN 
 END

 JB Skaggs

 
 Dominique Simonart
 
 
 
 --
 This SF.net email is sponsored by:
 High Quality Requirements in a Collaborative Environment.
 Download a free trial of Rational Requirements Composer Now!
 http://p.sf.net/sfu/www-ibm-com
 ___
 Gambas-user mailing list
 Gambas-user

Re: [Gambas-user] A random sort of listview

2009-04-07 Thread jbskaggs

When I ran the code it ran fine- why is it important to have it  count
backwards in the random swap?

ie for i =199 to 0 step -1 instead of for i=0 to 199 step 1?

JB SKaggs


Simonart Dominique wrote:
 
 Hi,
 
 Hmm, did you run exactly this code? If so, there is 
 something wrong with the second FOR NEXT loop
 
 jbskaggs a écrit :
 using your suggestions and the swap command vs manual swapping this is my
 code:
 
 public b as string  'optional string used to hold the array data for file
 or
 split later
 
 PUBLIC SUB button4_click() ' initialize array
 DIM myArray AS Integer[200]
 DIM a AS Integer
 DIM i AS Integer
 
 FOR i = 0 TO 199 STEP 1 'add array items 
  myArray[i] = i 
 NEXT 
 
 FOR i = 0 TO 199 STEP 1 ' random swap array items
 a = Int(Rnd(i + 1))
 SWAP myArray[i], myArray[a]
 NEXT 
 
 
 the right code is:
 
 FOR i = 199 TO 0 STEP -1
 ...
 NEXT
 
 
 FOR i = 0 TO 199 STEP 1 ' write items in listview2
 listview1.MoveTo(myArray[i])
 c = listview1.Item.Key
 listview2.add(c, listview1.item.text) 
 NEXT 
 
 
 
 FOR i = 0 TO 199 STEP 1 'optional step to write array as a string for
 file
 or whatever use
 b = slot  myArray[i]  ,
 NEXT 
 PRINT b
 END
 
 PUBLIC SUB Button1_Click() 'an optional way to load the array values from
 the variable b and / or a file if b was file loaded
 DIM egg AS String[]
 DIM c AS String
  listview1.Clear
  egg = Split(b, ,)
  FOR EACH c IN egg 
 TRY listview1.Add(c, c) 
 IF ERROR THEN RETURN 
 NEXT 
 IF listview1.Count = 200 THEN RETURN 
 END
 
 JB Skaggs
 
 
 Dominique Simonart
 
 
 --
 This SF.net email is sponsored by:
 High Quality Requirements in a Collaborative Environment.
 Download a free trial of Rational Requirements Composer Now!
 http://p.sf.net/sfu/www-ibm-com
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 
 

-- 
View this message in context: 
http://www.nabble.com/A-random-sort-of-listview-tp22919766p22930824.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] A random sort of listview

2009-04-06 Thread jbskaggs

I came up with a way to random sort listview.  (Iuse this for random
shuffling card slots on games) But it isnt efficient some pointers if you
dont mind?

I use two listviews one to sort from and one to sort to:

I first copy all the listitems from list 1 to list 2 EXCEPT the key for
listview2 items = the integer from my for next loop

eg 
for i = 0 to listview1.count -1 step 1
listview2.add(i, listview1.item.text)
next

then with a for next loop based on the length of list1 I copy the
listview.item key to a string A and listview.item.text to second string B

Then I  calculate a random number the count of listview2 and add that to a
integer C
 thenadd it to listview2
listview2.add(nA, B,,C)   nA creates a key of n1, n2, etc ...


AFter the loop ends

I run a second loop 

and run 
for i = 0 to listview1.count -1 step 1
listview.moveto(i)
listview2.item.delete
next

This gives me a random sorted list in viewlist2 of viewlist1 with no
duplicates etc- 

But is there a more efficient way of doing this?

here is total code:

PUBLIC SUB button3_click()
DIM a AS String
DIM d AS Integer
DIM e AS Integer
DIM i AS Integer
DIM c AS Integer
listview1.Clear 'clears the list
FOR i = 0 TO 199 STEP 1 'number of items to add
  listview2.Add(i, Slot  i) 'adds items to sort to list
NEXT 'next item
i = 0

FOR i = 0 TO 199 STEP 1 'number of items
 e = 0
listview1.MoveTo(i) 'goto item
a = listview1.Item.Text 'get text
PRINT a
d = listview1.Key 'get key
PRINT old key, d
listview1.Item.Delete 'delete item (the cut part of cut and paste)
   e = Round(Rnd(200)) ' make sure old key doesNOT equal NEW Key
   PRINT e,  the randomimzed number

IF e = 200 THEN e = 199
listview2.Add(n  d, n  a,, e) 'adds cut items after randomly
chosen item
listview3.Add(n  d, n  a)
PRINT new key, e
NEXT   'next item down

FOR i = 0 TO 199 STEP 1 'number of items
listview2.MoveTo(i)
listview2.Item.Delete
NEXT 

ValueBox1.value = listview1.Count
END

JB SKaggs
-- 
View this message in context: 
http://www.nabble.com/A-random-sort-of-listview-tp22919766p22919766.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] A random sort of listview

2009-04-06 Thread jbskaggs

using your suggestions and the swap command vs manual swapping this is my
code:

public b as string  'optional string used to hold the array data for file or
split later

PUBLIC SUB button4_click() ' initialize array
DIM myArray AS Integer[200]
DIM a AS Integer
DIM i AS Integer

FOR i = 0 TO 199 STEP 1 'add array items 
 myArray[i] = i 
NEXT 

FOR i = 0 TO 199 STEP 1 ' random swap array items
a = Int(Rnd(i + 1))
SWAP myArray[i], myArray[a]
NEXT 


FOR i = 0 TO 199 STEP 1 ' write items in listview2
listview1.MoveTo(myArray[i])
c = listview1.Item.Key
listview2.add(c, listview1.item.text) 
NEXT 



FOR i = 0 TO 199 STEP 1 'optional step to write array as a string for file
or whatever use
b = slot  myArray[i]  ,
NEXT 
PRINT b
END

PUBLIC SUB Button1_Click() 'an optional way to load the array values from
the variable b and / or a file if b was file loaded
DIM egg AS String[]
DIM c AS String
 listview1.Clear
 egg = Split(b, ,)
 FOR EACH c IN egg 
TRY listview1.Add(c, c) 
IF ERROR THEN RETURN 
NEXT 
IF listview1.Count = 200 THEN RETURN 
END

JB Skaggs


Simonart Dominique wrote:
 
 Simonart Dominique a écrit :
 jbskaggs a écrit :
 I came up with a way to random sort listview.  (Iuse this for random
 shuffling card slots on games) But it isnt efficient some pointers if
 you
 dont mind?

 I use two listviews one to sort from and one to sort to:

 I first copy all the listitems from list 1 to list 2 EXCEPT the key for
 listview2 items = the integer from my for next loop

 eg 
 for i = 0 to listview1.count -1 step 1
 listview2.add(i, listview1.item.text)
 next

 then with a for next loop based on the length of list1 I copy the
 listview.item key to a string A and listview.item.text to second string
 B

 Then I  calculate a random number the count of listview2 and add that to
 a
 integer C
  thenadd it to listview2
 listview2.add(nA, B,,C)   nA creates a key of n1, n2, etc ...


 AFter the loop ends

 I run a second loop 

 and run 
 for i = 0 to listview1.count -1 step 1
 listview.moveto(i)
 listview2.item.delete
 next

 This gives me a random sorted list in viewlist2 of viewlist1 with no
 duplicates etc- 

 But is there a more efficient way of doing this?

 here is total code:

 PUBLIC SUB button3_click()
 DIM a AS String
 DIM d AS Integer
 DIM e AS Integer
 DIM i AS Integer
 DIM c AS Integer
 listview1.Clear 'clears the list
 FOR i = 0 TO 199 STEP 1 'number of items to add
   listview2.Add(i, Slot  i) 'adds items to sort to list
 NEXT 'next item
 i = 0

 FOR i = 0 TO 199 STEP 1 'number of items
  e = 0
 listview1.MoveTo(i) 'goto item
 a = listview1.Item.Text 'get text
 PRINT a
 d = listview1.Key 'get key
 PRINT old key, d
 listview1.Item.Delete 'delete item (the cut part of cut and paste)
e = Round(Rnd(200)) ' make sure old key doesNOT equal NEW Key
PRINT e,  the randomimzed number
 
 IF e = 200 THEN e = 199
 listview2.Add(n  d, n  a,, e) 'adds cut items after
 randomly
 chosen item
 listview3.Add(n  d, n  a)
 PRINT new key, e
 NEXT   'next item down

 FOR i = 0 TO 199 STEP 1 'number of items
 listview2.MoveTo(i)
 listview2.Item.Delete
 NEXT 

 ValueBox1.value = listview1.Count
 END

 JB SKaggs
 Hi,
 
 Let say you want to populate an array with 0-199 randomly
 (please note that I write this directly, so check carefully 
 the syntax)
 
 dim myArray as integer[200]
 dim A as integer
 dim i as integer
 
 FOR i=0 to 199
 A=int(Rnd(200-i))
 ' I think we could use a Swap instruction
 ' instead of the 2 instructions below
 myArray[i]=A
 myArray[A]=i
 NEXT
 
 That's all
 If these numbers was the keys of the initial Listview you 
 just have to populate the second Listview in the new order
 
 Hope this help
 Dominique Simonart
 
 
 Well, never write directly like that!!
 I make some mistake in my sample, here is a new one:
 
 DIM myArray AS Integer[200]
 DIM A AS Integer
 DIM i AS Integer
 
 'initialize the array
 FOR i=0 TO 199
 myArray[i]=i
 NEXT
 
 'Randomize the order of the array
 FOR i = 199 TO 0 STEP -1
 A = Int(Rnd(i + 1))
 SWAP myArray[i], myArray[A]
 NEXT
 
 
 --
 This SF.net email is sponsored by:
 High Quality Requirements in a Collaborative Environment.
 Download a free trial of Rational Requirements Composer Now!
 http://p.sf.net/sfu/www-ibm-com
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 
 

-- 
View this message in context: 
http://www.nabble.com/A-random-sort-of-listview-tp22919766p22922075.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http

Re: [Gambas-user] On ver 2.12 Form tool box properties why doesn't valubox have a value property?

2009-04-05 Thread jbskaggs

Cool- I just learned something.

JB

Bugzilla from gam...@users.sourceforge.net wrote:
 
 I know valuebox has a value property that can be set in code- but why
 isn't
 there one on the Form designer toolbox? For forms with default values it
 should be there when you are making the controls on the form like textbox
 or label.

 Was this intentional or just overlooked?

 JB SKaggs
 
 Value is a Variant property, so I didn't put it in the property list used
 by 
 the IDE, as the IDE does not know how to handle Variant properties. 
 
 But ValueBox.Value can take a string instead, so maybe I will find a hack.
 But 
 you will get it only in Gambas 3!
 
 -- 
 Benoît
 
 --
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 
 

-- 
View this message in context: 
http://www.nabble.com/On-ver-2.12-Form-tool-box-properties-why-doesn%27t-valubox-have-a-value-property--tp22890701p22897164.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] In simple English could someone explain what the h does in instanciation?

2009-04-05 Thread jbskaggs

Thanks.

JB Skaggs

Rob Kudla wrote:
 
 On Sunday 05 April 2009 23:15, jbskaggs wrote:
 dim hTextbox1 as Textbox
 vesus
 dim myTextbox1 as Textbox
 What is happening with these two different statements?
 
 The first one creates a new textbox object called hTextbox1.  The second 
 creates a new textbox object called myTextbox1.  
 
 The use of h in object variable names is just a convention (h usually 
 meaning handle, like p or ptr in C programs usually 
 means pointer), not syntactically significant.
 
 Rob
 
 --
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 
 

-- 
View this message in context: 
http://www.nabble.com/In-simple-English-could-someone-explain-what-the-h-does-in-instanciation--tp22901580p22902059.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] A way to compile, make exec, and create package from outside IDE?

2009-04-04 Thread jbskaggs

Thanks this was what I was thinking.  But I could not remember the compile
commands

JB





Rob Kudla wrote:
 
 On Saturday 04 April 2009 16:02, jbskaggs wrote:
 I am working a game maker program- and I am trying to determine my next
 
 This sounds like a good idea, since Linux doesn't have too many tools like 
 this and I don't think any are free software.
 
 What I want to do is have my program write all the code into a class
 file and then shell to Gambas load the file compile, make exec and
 package.

 IS there a way to do this in my program at runtime or does this have to
 be done in the Gambas IDE Console only?
 
 Some of it can be done pretty easily through shell commands.  You generate 
 your Gambas project (I think it needs to be a whole project, including 
 a .project file, not just a class file), then change to that directory and 
 run these commands:
 
 gbc2
 gba2
 
 gbc2 compiles the project, gba2 makes the executable.  
 
 However, building packages is another story.  You may want to try to copy 
 the package building code out of the Gambas IDE and integrate it into 
 yours... or maybe work on making it into a component to be used by all 
 Gambas programs.
 
 Rob
 
 --
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 
 

-- 
View this message in context: 
http://www.nabble.com/A-way-to-compile%2C-make-exec%2C-and-create-package-from-outside-IDE--tp22887283p22887920.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Maybe off topic: but have anyone dealt with domain transfer issues?

2009-04-02 Thread jbskaggs

One of my main sites the one I had put the Gambas school on had a domain
registered with siteground. Last month I transferred the domain on 3/19 to
rubyringtech.  The domain was not expired was paid and would not expire
until  the April 1st.

Today siteground somehow refused to transfer my account and so my gambas
school site and some others went down.

Siteground said that I cannot transfer a site with fifteen days of
expiration- that I had to pay for another year just to finish the transfer!

Is this legal or even normal?  I have used webhosting for almost ten years
now and never had anything like this.

SO I paid the registration fee for a domain I paid to have transferred away
from on the 19th- and its not a huge amount of money but it seems well
crooked.

JB
-- 
View this message in context: 
http://www.nabble.com/Maybe-off-topic%3A-but-have-anyone-dealt-with-domain-transfer-issues--tp22861782p22861782.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Maybe off topic: but have anyone dealt with domain transfer issues?

2009-04-02 Thread jbskaggs

I just checked my bank and siteground withdrew $95 on my debit card instaed
of $7.95! The theiving weasles!

I am so angry I feel like gnashing my teeth!.



jbskaggs wrote:
 
 One of my main sites the one I had put the Gambas school on had a domain
 registered with siteground. Last month I transferred the domain on 3/19 to
 rubyringtech.  The domain was not expired was paid and would not expire
 until  the April 1st.
 
 Today siteground somehow refused to transfer my account and so my gambas
 school site and some others went down.
 
 Siteground said that I cannot transfer a site with fifteen days of
 expiration- that I had to pay for another year just to finish the
 transfer!
 
 Is this legal or even normal?  I have used webhosting for almost ten years
 now and never had anything like this.
 
 SO I paid the registration fee for a domain I paid to have transferred
 away from on the 19th- and its not a huge amount of money but it seems
 well crooked.
 
 JB
 

-- 
View this message in context: 
http://www.nabble.com/Maybe-off-topic%3A-but-have-anyone-dealt-with-domain-transfer-issues--tp22861782p22862054.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] We should offer online Gambas courses!

2009-03-31 Thread jbskaggs

I am not saying people should charge for tutorials, I am saying that it would
not be unreasonable if they did. Benoit has done a momentous amount of work
in creating Gambas.  ANd Richard's idea about annodated code is a great one-
except for one flaw.

That flaw is for the beginner without a systematic method of learning the
language the odds are stacked against him /her.

But like I said earlier why not have both?  

SOme people can see an example and go OH that's how it works- and others
need more help.  Good example: Algebra why can't kids just look at the
example and understand it?   Even when the example has comments the children
have a hard time following- but with guided instruction and guided questions
and answers then child is more likely to understand the math.

Same works for adults not everyone does well solo with a textbook.

Plus another problem is when people just cut and paste code without knowing
what all the code is for becuase they are told it does x but in reality it
does xyz.

As far as more work for Benoit I am trying to come up with a way to lighten
the load. :)

I rreally do understand what you are saying, but I think people are thinking
I a looking to replace a current method.  I am not I want to another
resource to the same methods. For the dummies like my self.

JB





charlesg wrote:
 
 Hi all,
 
 As one of the great unwashed (i.e. less proficient) Gambas users, I must
 say that I prefer Richards approach using annotated code examples at a
 simple level. I don't really feel comfortable with the idea of a paid-for
 tutorial system and feel that 'we' as a user base should freely contribute
 to the project. There is no chance of us ever equaling the stupendous
 contribution of Benoit and to consider charging for any contribution that
 we make is, I feel, not in the spirit of Gambas.
 
 I wrote a small intro tutorial to Gambas which features quite well on a
 Google search. I put it on a Wordpress blog so that I could get some
 stats. It is currently viewed about 300 times a month.
 
 Benoit has also kindly used a program of mine as a Gambas example. The
 examples in Gambas could be extended with a beginners section although I
 could see this ending up as being yet more work for Benoit.
 
 rgds
 

-- 
View this message in context: 
http://www.nabble.com/We-should-offer-online-Gambas-courses%21-tp22792079p22800230.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] What is the most asked question in gambas programming?

2009-03-31 Thread jbskaggs

To the oldtimers here: Out of curiousity what is the most common question
asked by newcomers to gambas besides install problems?  What causes them the
most common problem?

JB
-- 
View this message in context: 
http://www.nabble.com/What-is-the-most-asked-question-in-gambas-programming--tp22805257p22805257.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Please help with color problem!

2009-03-30 Thread jbskaggs


I have only qt on my wolvix (slackware system). Well no I do have Kde base
as well.

But in Gambas I only have the qt.component selected

This occurs on both gambas 2.11 and 2.12.

Now qtconfig  can change my colors (somewhat) but otherwise I get no change.

Do you mean to change the qt styles?  I will investigate that thanks.

JB





Bugzilla from gam...@users.sourceforge.net wrote:
 
 I have asked this before, but I cannot change colors on may controls like
 Textlabel, or Progressbar

 for example:

 ProgressBar1.ForeColor = Color.DarkGreen

 This does nothing the bar remains black this happens with many of my
 controls in Slackware 12.2 but not Ubuntu 8.1.

 BUT   ProgressBar1.BackColor = Color.DarkGreen does work.

 Although on TextLabel I can change forecolor but not backcolor.

 Why would that happen?  And how do I fix it?

 JB Skaggs
 
 Do you use gb.qt or gb.gtk? Some bugs in the Foreground and Background 
 properties were fixed for gb.gtk in the 2.12 version.
 
 Moreover, some Qt/Kde styles do not allow some changes in the color
 properties 
 of some controls. Try to change the style and see if the control behave
 the 
 same, and tell me the result.
 
 Regards,
 
 -- 
 Benoît
 
 --
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 
 

-- 
View this message in context: 
http://www.nabble.com/Please-help-with-color-problem%21-tp22772751p22779963.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] We should offer online Gambas courses!

2009-03-30 Thread jbskaggs

I would like to set up a online gambas school where the more experienced
users and coders here could offer an online workshop on Gambas for users.

Make it an affordable cost (Like a $0 to $25 a course, depending on
complexity, length, and time required. A course on making Forms should be
free, but a all inclusive course on writing a mmorpg in gambas should have a
fee attached)  and offer a workshop for different fundamentals:

I know for me a lot of Gambas is intuitive but much of it isn't.

Im thinking it could be setup on a moodle or someother workshop / class
software.  With online lessons and quizzes for free but to get the actual
coding graded it would require a live teacher to grade and comment thereby
why a nominal fee would be justified.  I could even host the moodle site and
help admin it but my programming knowledge is so low I wouldn't make a good
teacher.  But I could help someone setup a course and host it and that
person could charge a reasonable fee to teach the course. (Though in the
spirit of linux the less money the better.)

For example I would be willing to pay right now to be tutored in how to
reference, manipulate, and check objects and controls via code (dynamically
via nested loops and such).  I read the documents- I look at the examples
and still I get the wrong impressions and waste hours and hours on many
different controls or functions.

I helped setup an online bible college and the way it ran was every course
had a different instructor (or most did) and those instructors set their own
prerequisites and graded assignments on their own schedule (within reason).

But the very basic courses were almost entirely automated - no need to have
heavy instructor interaction.  But as the courses became more in depth then
instructors became paramount.  Because students needed to ask questions and
yes other students could answer and even grade (though their gradings were
subject to instructor override.)

I look at the number of basic questions on Nabbles and just think that a
systematic instruction courses would make gambas bloom even more.   

Maybe something like:

1- Setting up your Gambas
 a. download and installation
 b. Defining preferences and intro to Gambas

2- Mastering the IDE interface:
 a. creating projects, forms, simple control, saving, compiling, and
packaging
 
3- Gambas Programming fundamentals: A big unit broken into smaller courses
 a. Forms
 b. Controls
 c. Assignments, Operators, Strings, Numbers, and Booleans
 d. Comparisons, Loops, and nestings
 e. Good programming, coding practices, and the Gambas Programming
language

4. Components: Another big unit
 a. gb
 b. gb.compress
 c. gb.chart etc...

5. FX
a. BMP, JPG, PNG, GIF, etc what they are.  Editing and making them.
b. Animations and movies
c. creating, editing, and sounds and music

6. Application specific courses:
   a. How to write a text editor
   b. How to write a scrolling shooter game etc and so on

and so forth.

And of course offer a Certificates for completing the courses.

I know moodle and setting up the site would be easy- and if someone wanted
to teach a course I could setup the course, forums, and quizzes etc.  I
could make some beginner courses on my own- but I would need help with more
advanced subjects.  

Any thoughts? Objections? Volunteers?

JB Skaggs
-- 
View this message in context: 
http://www.nabble.com/We-should-offer-online-Gambas-courses%21-tp22792079p22792079.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Re ferencing

2009-03-30 Thread jbskaggs


-- 
View this message in context: 
http://www.nabble.com/Referencing-tp22792128p22792128.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Re ferencing existing multiple controls in loops

2009-03-30 Thread jbskaggs

Okay I have a form with say 50 picturebox controls:

How does one check each controls in a loop?

So if I wanted to have a big picture box reference each of the previous
pictureboxes


In GML I could use this:

a=PictureBox
for i = 0 to 50 step 1
b=ai
BigPicturebox.Picture=b.picture
wait 2
next i

But In gambas I cannot reference a control with a string.  I have tried
dozens of ways and spent eleven hours reading the docs, looking at examples,
and so on.  But the solution eludes me.

It seems really inefficient to type out

Bigpicturebox.picture=picturebox1.picture
wait 2.0
Bigpicturebox.picture=picturebox2.picture
wait 2.0
Bigpicturebox.picture=picturebox3.picture
wait 2.0
Bigpicturebox.picture=picturebox4.picture
wait 2.0

etc... fifty times

I am using pictureboxes but it could be any existing control I would want to
control from another event.
-- 
View this message in context: 
http://www.nabble.com/Referencing-existing-multiple-controls-in-loops-tp22792680p22792680.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] We should offer online Gambas courses!

2009-03-30 Thread jbskaggs

Well the thing about moodle sites is you dont have to be there all the time
you'd only be notified if a student registers and or submits something.  

Setting up the courses would be tougher as the most time intensive part is
creating the quizzes and writing the course text- the Gambas docs can be
used but would need more intense commentary, example and explanation. 

JB



M0E.lnx wrote:
 
 This sounds like a good idea, and I would support it if there were people
 interested.
 
 I tried something similar @ our vectorlinux forums where I offered to help
 anyone as much as I could get on the road with gambas.
 
 Did not pick up a whole lot of interested people, as I remember, only 2
 people really got into it. One of them was able to write an application.
 The other one was getting really deep into the documentation before he got
 to the IDE, and something happened in his family, so he dropped it.
 
 I like the idea, I really think there is definitely a market for gambas in
 linux development, but dont expect to get a whole lot of interest. And i'm
 not being pesimistic, but rather realistic.
 
 --
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 
 

-- 
View this message in context: 
http://www.nabble.com/We-should-offer-online-Gambas-courses%21-tp22792079p22792915.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] We should offer online Gambas courses!

2009-03-30 Thread jbskaggs

Like I said I'd admin the site so I guess that's what you mean by co-ordinate
the samples.

Ill setup a site tonite, so when you get a chance you can email me the
samples to just remove the spaces:  

jbskaggs   @   skaggs   world  .   com

Im in the states but Im in the office from noon central time till about 4 or
5 am. I work and live  children's home (used to be called orphanages) so at
night  have time to program and write etc.  I'm the one who makes sure kids
don't run away, are comforted when scared or lonely, provide counseling,
that kind of thing.

jb skaggs


richard terry-5 wrote:
 
 On Tue, 31 Mar 2009 07:43:22 am Ron wrote:
 richard terry wrote:
  On Tue, 31 Mar 2009 07:22:48 am jbskaggs wrote:
  I would like to set up a online gambas school where the more
 experienced
  users and coders here could offer an online workshop on Gambas for
  users.
 
  Make it an affordable cost (Like a $0 to $25 a course, depending on
  complexity, length, and time required. A course on making Forms should
  be free, but a all inclusive course on writing a mmorpg in gambas
 should
  have a fee attached)  and offer a workshop for different fundamentals:
 
  I know for me a lot of Gambas is intuitive but much of it isn't.
 
  Im thinking it could be setup on a moodle or someother workshop /
 class
  software.  With online lessons and quizzes for free but to get the
  actual coding graded it would require a live teacher to grade and
  comment thereby why a nominal fee would be justified.  I could even
 host
  the moodle site and help admin it but my programming knowledge is so
 low
  I wouldn't make a good teacher.  But I could help someone setup a
 course
  and host it and that person could charge a reasonable fee to teach the
  course. (Though in the spirit of linux the less money the better.)
 
  For example I would be willing to pay right now to be tutored in how
 to
  reference, manipulate, and check objects and controls via code
  (dynamically via nested loops and such).  I read the documents- I look
  at the examples and still I get the wrong impressions and waste hours
  and hours on many different controls or functions.
 
  I helped setup an online bible college and the way it ran was every
  course had a different instructor (or most did) and those instructors
  set their own prerequisites and graded assignments on their own
 schedule
  (within reason).
 
  But the very basic courses were almost entirely automated - no need to
  have heavy instructor interaction.  But as the courses became more in
  depth then instructors became paramount.  Because students needed to
 ask
  questions and yes other students could answer and even grade (though
  their gradings were subject to instructor override.)
 
  I look at the number of basic questions on Nabbles and just think that
 a
  systematic instruction courses would make gambas bloom even more.
 
  Maybe something like:
 
  1- Setting up your Gambas
   a. download and installation
   b. Defining preferences and intro to Gambas
 
  2- Mastering the IDE interface:
   a. creating projects, forms, simple control, saving, compiling,
 and
  packaging
 
  3- Gambas Programming fundamentals: A big unit broken into smaller
  courses a. Forms
   b. Controls
   c. Assignments, Operators, Strings, Numbers, and Booleans
   d. Comparisons, Loops, and nestings
   e. Good programming, coding practices, and the Gambas Programming
  language
 
  4. Components: Another big unit
   a. gb
   b. gb.compress
   c. gb.chart etc...
 
  5. FX
  a. BMP, JPG, PNG, GIF, etc what they are.  Editing and making
 them.
  b. Animations and movies
  c. creating, editing, and sounds and music
 
  6. Application specific courses:
 a. How to write a text editor
 b. How to write a scrolling shooter game etc and so on
 
  and so forth.
 
  And of course offer a Certificates for completing the courses.
 
  I know moodle and setting up the site would be easy- and if someone
  wanted to teach a course I could setup the course, forums, and quizzes
  etc.  I could make some beginner courses on my own- but I would need
  help with more advanced subjects.
 
  Any thoughts? Objections? Volunteers?
 
  JB Skaggs
 
  Personally I think we should do what I've pushed for before - include
  extensively commented sample code along with gambas. We could all
  contribute on our own level - have a look at the wxPython demo as such
 an
  sample code-base of how to use the language.
 
  Richard

 I agree, an example code/snippets site or part on the official wiki for
 it would be much better.

 Ron_2nd.
 
 I for one will put up my hand to contribute with simple sample programs if 
 someone will do the co-ordination. My working day (I'm in general practice
 in 
 Australia) starts at 7:30am and I finish around 6-630PM - it is so long
 that 
 I have only a few hours at night for my life, so I can't volunteer the 
 co-ordination role.
 
 If someone could take

Re: [Gambas-user] We should offer online Gambas courses!

2009-03-30 Thread jbskaggs

Thanks for the code!

JB



richard terry-5 wrote:
 
 On Tue, 31 Mar 2009 08:49:37 am jbskaggs wrote:
 Like I said I'd admin the site so I guess that's what you mean by
 co-ordinate the samples.

 Ill setup a site tonite, so when you get a chance you can email me the
 samples to just remove the spaces:
 
 Personally I think the samples should be part of a gambas program - an 
 overview of gambas like I said wxPython demo does - and not part of a web 
 site.  I think there needs to be two parts of this
 
 1) More detailed examples in the documentation wiki even for really simple 
 things
 
 2) Complete code examples as part of a larger demo included with the 
 distribution of Gambas, and maintained as part of the source code in svn
 
 That way, if you or I get run over by a truck it is still there.
 
 Ive never experienced much joy looking for code on websites - it tends to
 be 
 fragmented, difficult to maintain and I don't really want to contribute to
 it 
 if that is the format.
 
 I enclose a screen dump of a very simple one for beginners (my code may be 
 bad - so if so you can fix it), which shows the concept I think would
 work, 
 and could be included as part of a whole demo. I've others I've done.
 
 

 jbskaggs   @   skaggs   world  .   com

 Im in the states but Im in the office from noon central time till about 4
 or 5 am. I work and live  children's home (used to be called orphanages)
 so
 at night  have time to program and write etc.  I'm the one who makes sure
 kids don't run away, are comforted when scared or lonely, provide
 counseling, that kind of thing.

 jb skaggs

 richard terry-5 wrote:
  On Tue, 31 Mar 2009 07:43:22 am Ron wrote:
  richard terry wrote:
   On Tue, 31 Mar 2009 07:22:48 am jbskaggs wrote:
   I would like to set up a online gambas school where the more
 
  experienced
 
   users and coders here could offer an online workshop on Gambas for
   users.
  
   Make it an affordable cost (Like a $0 to $25 a course, depending on
   complexity, length, and time required. A course on making Forms
   should be free, but a all inclusive course on writing a mmorpg in
   gambas
 
  should
 
   have a fee attached)  and offer a workshop for different
   fundamentals:
  
   I know for me a lot of Gambas is intuitive but much of it isn't.
  
   Im thinking it could be setup on a moodle or someother workshop /
 
  class
 
   software.  With online lessons and quizzes for free but to get the
   actual coding graded it would require a live teacher to grade and
   comment thereby why a nominal fee would be justified.  I could even
 
  host
 
   the moodle site and help admin it but my programming knowledge is
 so
 
  low
 
   I wouldn't make a good teacher.  But I could help someone setup a
 
  course
 
   and host it and that person could charge a reasonable fee to teach
   the course. (Though in the spirit of linux the less money the
   better.)
  
   For example I would be willing to pay right now to be tutored in
 how
 
  to
 
   reference, manipulate, and check objects and controls via code
   (dynamically via nested loops and such).  I read the documents- I
   look at the examples and still I get the wrong impressions and
 waste
   hours and hours on many different controls or functions.
  
   I helped setup an online bible college and the way it ran was every
   course had a different instructor (or most did) and those
 instructors
   set their own prerequisites and graded assignments on their own
 
  schedule
 
   (within reason).
  
   But the very basic courses were almost entirely automated - no need
   to have heavy instructor interaction.  But as the courses became
 more
   in depth then instructors became paramount.  Because students
 needed
   to
 
  ask
 
   questions and yes other students could answer and even grade
 (though
   their gradings were subject to instructor override.)
  
   I look at the number of basic questions on Nabbles and just think
   that
 
  a
 
   systematic instruction courses would make gambas bloom even more.
  
   Maybe something like:
  
   1- Setting up your Gambas
a. download and installation
b. Defining preferences and intro to Gambas
  
   2- Mastering the IDE interface:
a. creating projects, forms, simple control, saving,
 compiling,
 
  and
 
   packaging
  
   3- Gambas Programming fundamentals: A big unit broken into smaller
   courses a. Forms
b. Controls
c. Assignments, Operators, Strings, Numbers, and Booleans
d. Comparisons, Loops, and nestings
e. Good programming, coding practices, and the Gambas
   Programming language
  
   4. Components: Another big unit
a. gb
b. gb.compress
c. gb.chart etc...
  
   5. FX
   a. BMP, JPG, PNG, GIF, etc what they are.  Editing and making
 
  them.
 
   b. Animations and movies
   c. creating, editing, and sounds and music
  
   6. Application specific courses:
  a. How to write a text editor
  b. How

Re: [Gambas-user] We should offer online Gambas courses!

2009-03-30 Thread jbskaggs

Here is the website I set up: http://gambas.wwmkr.com/

I have the front page setup and one course setup an intro to Gambas using
the official doc's. And a small four question quiz.

This is to get an idea of could be done.

JB SKaggs





jbskaggs wrote:
 
 I would like to set up a online gambas school where the more experienced
 users and coders here could offer an online workshop on Gambas for users.
 
 Make it an affordable cost (Like a $0 to $25 a course, depending on
 complexity, length, and time required. A course on making Forms should be
 free, but a all inclusive course on writing a mmorpg in gambas should have
 a fee attached)  and offer a workshop for different fundamentals:
 
 I know for me a lot of Gambas is intuitive but much of it isn't.
 
 Im thinking it could be setup on a moodle or someother workshop / class
 software.  With online lessons and quizzes for free but to get the actual
 coding graded it would require a live teacher to grade and comment thereby
 why a nominal fee would be justified.  I could even host the moodle site
 and help admin it but my programming knowledge is so low I wouldn't make a
 good teacher.  But I could help someone setup a course and host it and
 that person could charge a reasonable fee to teach the course. (Though in
 the spirit of linux the less money the better.)
 
 For example I would be willing to pay right now to be tutored in how to
 reference, manipulate, and check objects and controls via code
 (dynamically via nested loops and such).  I read the documents- I look at
 the examples and still I get the wrong impressions and waste hours and
 hours on many different controls or functions.
 
 I helped setup an online bible college and the way it ran was every course
 had a different instructor (or most did) and those instructors set their
 own prerequisites and graded assignments on their own schedule (within
 reason).
 
 But the very basic courses were almost entirely automated - no need to
 have heavy instructor interaction.  But as the courses became more in
 depth then instructors became paramount.  Because students needed to ask
 questions and yes other students could answer and even grade (though their
 gradings were subject to instructor override.)
 
 I look at the number of basic questions on Nabbles and just think that a
 systematic instruction courses would make gambas bloom even more.   
 
 Maybe something like:
 
 1- Setting up your Gambas
  a. download and installation
  b. Defining preferences and intro to Gambas
 
 2- Mastering the IDE interface:
  a. creating projects, forms, simple control, saving, compiling, and
 packaging
  
 3- Gambas Programming fundamentals: A big unit broken into smaller courses
  a. Forms
  b. Controls
  c. Assignments, Operators, Strings, Numbers, and Booleans
  d. Comparisons, Loops, and nestings
  e. Good programming, coding practices, and the Gambas Programming
 language
 
 4. Components: Another big unit
  a. gb
  b. gb.compress
  c. gb.chart etc...
 
 5. FX
 a. BMP, JPG, PNG, GIF, etc what they are.  Editing and making them.
 b. Animations and movies
 c. creating, editing, and sounds and music
 
 6. Application specific courses:
a. How to write a text editor
b. How to write a scrolling shooter game etc and so on
 
 and so forth.
 
 And of course offer a Certificates for completing the courses.
 
 I know moodle and setting up the site would be easy- and if someone wanted
 to teach a course I could setup the course, forums, and quizzes etc.  I
 could make some beginner courses on my own- but I would need help with
 more advanced subjects.  
 
 Any thoughts? Objections? Volunteers?
 
 JB Skaggs
 

-- 
View this message in context: 
http://www.nabble.com/We-should-offer-online-Gambas-courses%21-tp22792079p22798789.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Please help with color problem!

2009-03-29 Thread jbskaggs

I have asked this before, but I cannot change colors on may controls like
Textlabel, or Progressbar

for example:

ProgressBar1.ForeColor = Color.DarkGreen

This does nothing the bar remains black this happens with many of my
controls in Slackware 12.2 but not Ubuntu 8.1.

BUT   ProgressBar1.BackColor = Color.DarkGreen does work.

Although on TextLabel I can change forecolor but not backcolor.

Why would that happen?  And how do I fix it?

JB Skaggs


-- 
View this message in context: 
http://www.nabble.com/Please-help-with-color-problem%21-tp22772751p22772751.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] SPawing pictureboxs

2009-03-28 Thread jbskaggs

I want to be able to spawn a series of indentical pictureboxes then if I
click on an individual pixturebox get it to run code for that picturebox.

I can genrate the pictureboxes just fine with the =new picturebox but then I
cant use the picturebox with Public sub picturebox_mousedown() command as I
would a picturebox I drew.  How would I go about doing that and giving the
pictureboxes unique names that I can use with the mouse.

So could somebody give a little example that generates  three or four
identical pictureboxes and how I can use the _mousedown or _click events?

Pretty please:jumping:

JB SKaggs
-- 
View this message in context: 
http://www.nabble.com/SPawing-pictureboxs-tp22760869p22760869.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] SPawing pictureboxs

2009-03-28 Thread jbskaggs

I should have thought  a 'Muir would have come and helped!  (I had a an old
friend named Ted Muir who allways helped me in a bind- he's passed away now.
You couldn't have a better name.)  Thanks a bunch!

JB


Richard Muir-Gladman wrote:
 
 I use this code to create my picture boxes which are actually buttons.
 I did this because I couldn't find a click event for a picture box.
 
 PRIVATE SUB addPicture(pName AS String, title AS String, id AS Integer)
 DIM f AS Frame
 DIM p AS Button
 
 f = NEW Frame(scrPictures)
 f.Text = Left$(title, 15)
 f.w = 130
 f.h = 130
 
 p = NEW Button(f) AS pictureItem
 p.Name = pName
 p.tag = id
 p.ToolTip = title
 p.W = 100
 p.h = 100
 p.x = 14
 p.y = 21
   
 p.Picture = Picture.Load(Global.pictureCache / thumbs / pName)
   
 END 
 
 This is the click handler for the button
 
 PUBLIC SUB pictureItem_Click()
   DIM f AS NEW PictureDetail
   f.id = LAST.tag
   f.ShowDialog
 END
 
 It's not exactly what you wanted but it does work quite nicely
 
 Richard.
 
 On Sat, 2009-03-28 at 13:15 -0700, jbskaggs wrote:
 I want to be able to spawn a series of indentical pictureboxes then if I
 click on an individual pixturebox get it to run code for that picturebox.
 
 I can genrate the pictureboxes just fine with the =new picturebox but
 then I
 cant use the picturebox with Public sub picturebox_mousedown() command as
 I
 would a picturebox I drew.  How would I go about doing that and giving
 the
 pictureboxes unique names that I can use with the mouse.
 
 So could somebody give a little example that generates  three or four
 identical pictureboxes and how I can use the _mousedown or _click events?
 
 Pretty please:jumping:
 
 JB SKaggs
 -- 
 Quantum materiae materietur marmota monax si marmota monax materiam
 possit materiari?
 (How much wood would a woodchuck chuck if a woodchuck could chuck wood?)
 
 Registered Linux User: #459086
 
 
 --
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 
 

-- 
View this message in context: 
http://www.nabble.com/SPawing-pictureboxs-tp22760869p22761344.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Sdl.sound and Qt dependencies not satisfiable

2009-03-27 Thread jbskaggs

Well I install 2.12 on 64 bit ubuntu via ./configure /make install and My
LORD what a pain if your are missing dependencies!  Its like some type of
fraternity treasure hunt and the dependencies are not easy to find or even
neccessarily easy to define especially if the install is looking for a
certian version no longer maintained.

Anyway it is all up and running again and I now have 2.12 on Ubuntu 64bit
Wolvix 2.0 beta and Wolvix 1.10.

The wolvix distributor has created a Wolvix package on his repository that
is slackware 12.2 based.  www.wolvix.org

Though I think he did not have Corba configured.

There was another slackware 12.2 package at:
http://darkstar.ist.utl.pt/slackware/addon/slacky/slackware-12.2/development/gambas/

JB SKaggs



jbskaggs wrote:
 
 I am running ubuntu 8.10 64 bit, Gambas 2.7 (highest packaged for 64bit
 8.1).
 
 I add the gb.sdl.sound and now cannot install packages because I get
 Dependencies not satisfiable for gb.sdl.sound.
 
 So I figured maybe I need to add gb.sdl but I can't because my program is
 qt based and it says qt and sdl incompatible.
 
 When I run my program without gb.sdl installed and with gb.sdl.sound
 installed it runs fun from IDE. I can create executable, and I can package
 it but I cannot install the package without the error popping about
 dependencies.
 
 All I want to do is have a wav file played without having to call an
 external shell.
 
 How can I do that with qt?  Or how do I fix this dependency issue?
 
 
 JB SKaggs
 

-- 
View this message in context: 
http://www.nabble.com/Sdl.sound-and-Qt-dependencies-not-satisfiable-tp22696057p22746201.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Sdl.sound and Qt dependencies not satisfiable

2009-03-27 Thread jbskaggs

Well I install 2.12 on 64 bit ubuntu via ./configure /make install and My
LORD what a pain if your are missing dependencies!  Its like some type of
fraternity treasure hunt and the dependencies are not easy to find or even
neccessarily easy to define especially if the install is looking for a
certian version no longer maintained.

Anyway it is all up and running again and I now have 2.12 on Ubuntu 64bit
Wolvix 2.0 beta and Wolvix 1.10.

The wolvix distributor has created a Wolvix package on his repository that
is slackware 12.2 based.  www.wolvix.org

Though I think he did not have Corba configured.

There was another slackware 12.2 package at:
http://darkstar.ist.utl.pt/slackware/addon/slacky/slackware-12.2/development/gambas/

JB SKaggs



jbskaggs wrote:
 
 I am running ubuntu 8.10 64 bit, Gambas 2.7 (highest packaged for 64bit
 8.1).
 
 I add the gb.sdl.sound and now cannot install packages because I get
 Dependencies not satisfiable for gb.sdl.sound.
 
 So I figured maybe I need to add gb.sdl but I can't because my program is
 qt based and it says qt and sdl incompatible.
 
 When I run my program without gb.sdl installed and with gb.sdl.sound
 installed it runs fun from IDE. I can create executable, and I can package
 it but I cannot install the package without the error popping about
 dependencies.
 
 All I want to do is have a wav file played without having to call an
 external shell.
 
 How can I do that with qt?  Or how do I fix this dependency issue?
 
 
 JB SKaggs
 

-- 
View this message in context: 
http://www.nabble.com/Sdl.sound-and-Qt-dependencies-not-satisfiable-tp22696057p22746202.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Missing Component Directory in Ubuntu and Debian packages

2009-03-27 Thread jbskaggs

Could whoever packages the Ubuntu and / or Debian Packages look into fixing
the gb-sdl-sound directories?  They are missing and do not get installed.

JB Skaggs
-- 
View this message in context: 
http://www.nabble.com/Missing-Component-Directory-in-Ubuntu-and-Debian-packages-tp22746203p22746203.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Missing Component Directory in Ubuntu and Debian packages

2009-03-27 Thread jbskaggs

gb-sdl and gb-sdl-sound are two seperate components and should have their own
directories.  I discovered this by accident when I ran Gambas on slackware
and noticed it installed sdl-sound seperate form sdl.

And sdl.sound component did not work on my Gambas package or the debian
package and Benoit said they should have seperate directories and to ask the
package makers.

So I have. :)

JB Skaggs



jbskaggs wrote:
 
 Could whoever packages the Ubuntu and / or Debian Packages look into
 fixing the gb-sdl-sound directories?  They are missing and do not get
 installed.
 
 JB Skaggs
 

-- 
View this message in context: 
http://www.nabble.com/Missing-Component-Directory-in-Ubuntu-and-Debian-packages-tp22746203p22751883.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Sdl.sound and Qt dependencies not satisfiable

2009-03-26 Thread jbskaggs

I checked the Deban contents and theses are the components listed below:

I do not see gambas2-gb-sdl-sound

gambas2
Complete visual development environment for Gambas
gambas2-dev
Gambas compilation tools
gambas2-doc
Gambas documentation
gambas2-gb-chart
The Gambas charting component
gambas2-gb-compress
The Gambas compression component
gambas2-gb-compress-bzlib2
The Gambas bzlib2 component
gambas2-gb-compress-zlib
The Gambas zlib compression component
gambas2-gb-crypt
The Gambas crypt encription component
gambas2-gb-db
Gambas database access common libraries
gambas2-gb-db-firebird
The Firebird driver for the Gambas database component
gambas2-gb-db-form
Gambas database bound controls
gambas2-gb-db-mysql
The MySQL driver for the Gambas database component
gambas2-gb-db-odbc
The Gambas ODBC driver database component
gambas2-gb-db-postgresql
The PostgreSQL driver for the Gambas database component
gambas2-gb-db-sqlite
The Gambas sqlite3 driver database component
gambas2-gb-db-sqlite2
The Gambas sqlite2 driver database component
gambas2-gb-desktop
Gambas Portland project compatibility component
gambas2-gb-form
A gambas native form component
gambas2-gb-form-dialog
A gambas native mdi form component
gambas2-gb-form-mdi
A gambas native mdi form component
gambas2-gb-gtk
The Gambas gtk component
gambas2-gb-gtk-ext
The Gambas extended gtk GUI component
gambas2-gb-gtk-svg
The Gambas SVG importing component
gambas2-gb-gui
The graphical toolkit selector component
gambas2-gb-image
A Gambas image effects component
gambas2-gb-info
A Gambas information component
gambas2-gb-net
The Gambas networking component
gambas2-gb-net-curl
The Gambas advanced networking component
gambas2-gb-net-smtp
Gambas component to use smtp protocol
gambas2-gb-opengl
The OpenGL component for Gambas
gambas2-gb-pcre
The Gambas regexp component
gambas2-gb-pdf
The Gambas pdf component
gambas2-gb-qt
The Gambas Qt GUI component
gambas2-gb-qt-ext
The Gambas extended Qt GUI component
gambas2-gb-qt-kde
The Gambas KDE component
gambas2-gb-qt-kde-html
The Gambas KHTML component
gambas2-gb-qt-opengl
OpenGL with QT toolkit Gambas component
gambas2-gb-report
Gambas report component
gambas2-gb-sdl
The Gambas SDL component
gambas2-gb-settings
Gambas utilities class
gambas2-gb-v4l
The Gambas video for Linux component
gambas2-gb-vb
The Gambas to Visual Basic(tm) compatibility component
gambas2-gb-web
Gambas CGI for web applications component
gambas2-gb-xml
Gambas XML component
gambas2-gb-xml-rpc
Gambas RPC component
gambas2-gb-xml-xslt
Gambas XSLT component
gambas2-ide
Visual development environment for the Gambas programming language
gambas2-runtime
The Gambas runtime
gambas2-script
The Gambas scripter 

JB Skaggs


Bugzilla from gam...@users.sourceforge.net wrote:
 
 I have discovered that Gambas2 for ubuntu does not have a
 gambas2-gb-sdl-sound package like the other distros.

 BUT I can install my program with dpkg -i and it works fine and accesses
 the sdl.sound drivers okay.

 Although the Ubuntu system keeps pointing out that my program package is
 broken. (such as the synaptic package manager)

 Is this a bug in Ubuntu 8.1 or what am I missing?

 JB SKaggs

 
 I guess this is a bug in the Ubuntu packages. Maybe they put gb.sdl.sound 
 inside the gb.sdl package? Did you try to remove the Ubuntu package and 
 install the Debian ones instead?
 
 -- 
 Benoît
 
 
 --
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 
 

-- 
View this message in context: 
http://www.nabble.com/Sdl.sound-and-Qt-dependencies-not-satisfiable-tp22696057p22729920.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Sdl.sound and Qt dependencies not satisfiable

2009-03-25 Thread jbskaggs

I am running ubuntu 8.10 64 bit, Gambas 2.7 (highest packaged for 64bit 8.1).

I add the gb.sdl.sound and now cannot install packages because I get
Dependencies not satisfiable for gb.sdl.sound.

So I figured maybe I need to add gb.sdl but I can't because my program is qt
based and it says qt and sdl incompatible.

When I run my program without gb.sdl installed and with gb.sdl.sound
installed it runs fun from IDE. I can create executable, and I can package
it but I cannot install the package without the error popping about
dependencies.

All I want to do is have a wav file played without having to call an
external shell.

How can I do that with qt?  Or how do I fix this dependency issue?


JB SKaggs
-- 
View this message in context: 
http://www.nabble.com/Sdl.sound-and-Qt-dependencies-not-satisfiable-tp22696057p22696057.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Sdl.sound and Qt dependencies not satisfiable

2009-03-25 Thread jbskaggs

I have discovered that Gambas2 for ubuntu does not have a
gambas2-gb-sdl-sound package like the other distros.  

BUT I can install my program with dpkg -i and it works fine and accesses the
sdl.sound drivers okay.

Although the Ubuntu system keeps pointing out that my program package is
broken. (such as the synaptic package manager)

Is this a bug in Ubuntu 8.1 or what am I missing?

JB SKaggs


jbskaggs wrote:
 
 I am running ubuntu 8.10 64 bit, Gambas 2.7 (highest packaged for 64bit
 8.1).
 
 I add the gb.sdl.sound and now cannot install packages because I get
 Dependencies not satisfiable for gb.sdl.sound.
 
 So I figured maybe I need to add gb.sdl but I can't because my program is
 qt based and it says qt and sdl incompatible.
 
 When I run my program without gb.sdl installed and with gb.sdl.sound
 installed it runs fun from IDE. I can create executable, and I can package
 it but I cannot install the package without the error popping about
 dependencies.
 
 All I want to do is have a wav file played without having to call an
 external shell.
 
 How can I do that with qt?  Or how do I fix this dependency issue?
 
 
 JB SKaggs
 

-- 
View this message in context: 
http://www.nabble.com/Sdl.sound-and-Qt-dependencies-not-satisfiable-tp22696057p22707549.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Gambas and Aspell

2009-03-12 Thread jbskaggs

Could someone post me an example of using apsell with an textedit box?

I asume I would save a tmp file run aspell and then reload the changed file.

but when I try and call aspell from shell I get weird errors.  

Does anyone have experience running aspell from a shell?  If so how do I
pass on quotes properly? I assume that's the problem.
JB
-- 
View this message in context: 
http://www.nabble.com/Gambas-and-Aspell-tp22485767p22485767.html
Sent from the gambas-user mailing list archive at Nabble.com.


--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Strange error in Embedder

2008-10-16 Thread jbskaggs

Okay I have an embedder working to embed Open Office- But a couple of users
of the program get this error:

Wanted Pointer [] got integer

I cannot duplicate this on my system and my other users don't get this
error.  

Here is the code:

PUBLIC SUB Presence_Embed(windowTitle AS String)
  DIM key AS Pointer[]
  DIM i AS Integer
  WAIT 3.5 'time to allow OpenOffice to load
  key = Desktop.Find(windowTitle)
  i = key[0]
  Embedder1.Embed(i)
  Embedder1.SetFocus
  Embedder1.Visible = TRUE
END

What could be causing this?
JB
-- 
View this message in context: 
http://www.nabble.com/Strange-error-in-Embedder-tp20016035p20016035.html
Sent from the gambas-user mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Text formatting in TextArea

2008-10-16 Thread jbskaggs

Hi,

Try using replace$.  replace$(text_to_be_searched, text_to_look_for,
text_to_replace_with)

JB


Almanova Sistemi wrote:
 
 Hello,
 
 in first tank's to Doriano Blengino and Stefano Palmeri for suggestion
 about TableView.
 I have followed the second suggestion from Doriano Blengino.
 
 Now I have a new problem:
 
 I need to modify part of text in TextArea.
 
 E.g.: I have a text like bla bla bla ... and I nedd to have bla *bla*
 bla... or bla _bla_ bla ... and so on.
 
 Ok, how I can do this?
 
 Regard's.
 
 Massimo
 
 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's
 challenge
 Build the coolest Linux based applications with Moblin SDK  win great
 prizes
 Grand prize is a trip for two to an Open Source event anywhere in the
 world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 
 

-- 
View this message in context: 
http://www.nabble.com/Html-versus-RTF-format-in-TextEdit-tp19963633p20016134.html
Sent from the gambas-user mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Html versus RTF format in TextEdit

2008-10-13 Thread jbskaggs

In Gambas 2.5 I could not get .rtf files from Abi or Openoffice to load into
Textedit properly.  But TextEdit loads HTML very nicely.

Am I to assume that for rich text editing we are to use to HTML/XML format
and not the *.rtf format generated by word processors?

If Textedit can properly read and parse *.rtf how do I set textedit to do
this?

Because for now it displays all the style settings etc as text.

For th time being I am using the html/xml format, but RTF would seem a
better option.

Thoughts anyone?

JB
-- 
View this message in context: 
http://www.nabble.com/Html-versus-RTF-format-in-TextEdit-tp19963633p19963633.html
Sent from the gambas-user mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] embed OpenOffice

2008-10-13 Thread jbskaggs

Okay I have both Abiword and Openoffice embedding properly. The issue was a
missing space at the end of the window name.

Anyway now both of the applications while running as embedded features do
not respond to the mouse properly.  You have multi click or rick click and
cancel to get the curser on either program to move to the new location and
the scrollbars do not respond to the mouse.

Is that normal for embedded objects?

JB


jbskaggs wrote:
 
 I can get Abiword to embed.  Openoffice is still giving me a fit.  I got
 it to embed once but could not duplicate it.  Is it possible that
 OpenOffice specifically did their window names like this to keep people
 from embedding it? Or at least difficult.
 
 I have tried searching by both window classes
 by the strings open, office, text, etc
 by the window id
 All I ever get is a out of bounds error
 
 here is my code: (which works great with Abiword)
 
 PUBLIC SUB Presence_Embed(windowTitle AS String)
   DIM key AS Pointer[]
   DIM i AS Integer
   WAIT 3.0
   key = Desktop.Find(windowTitle)
   i = key[0]
   Embedder1.Embed(i)
   Embedder1.SetFocus
   Embedder1.Visible = TRUE
 END 
 
 PUBLIC SUB Form_Open()
 
   DIM iWindowInfoArray AS Integer
  SHELL ooffice -writer   Quote.Shell(FChandScn.htmlpath)
Presence_Embed(text)  this is where I tried
 the various strings to search by
 
 END 
 
 Thanks
 JB
 
 
 
 Benoit Minisini wrote:
 
 On samedi 11 octobre 2008, Doriano Blengino wrote:
 jbskaggs ha scritto:
  I have looked at the embedder example. I have looked at every post on
  this forum on finding the title of the new window.
 
  I cannot figure it out and get it to work.
 
  Could somebody have pity and show me how to get the title of the
 window
  when I shell to Openoffice and how to give it to the embedder?
 
  JB

 You can use xwininfo to look at window information. xlsclients -al
 shows many informations about windows.

 On my PC I did this test after launching openoffice:

 [EMAIL PROTECTED]:/root$ xlsclients -la
 Window 0x1c5:
   Machine:  doripc
   Name:  mrxvt
   Icon Name:  mrxvt
   Command:  mrxvt -xft -xftfm FreeMono -xftsz 11 -vb -geometry 90x30
   Instance/Class:  mrxvt/XTerm
 Window 0x12a:
   Machine:  doripc
   Name:  kicker
   Command:  kicker
   Instance/Class:  kicker/Kicker
 Window 0x41:
   Machine:  doripc
   Name:  Mozilla-Thunderbird
   Icon Name:  icedove-bin
   Command:  icedove-bin
   Instance/Class:  icedove-bin/Icedove-bin
 Window 0x1a1:
 ''  Command:  /bin/sh /usr/lib/openoffice/program/soffice


 Now I see that the window 0x1a1 is the window I am interested in, so
 I issue:

 doripc:~# xprop -id  0x1a1
 WM_COMMAND(STRING) = { /bin/sh, /usr/lib/openoffice/program/soffice
 }
 WM_CLIENT_LEADER(WINDOW): window id # 0x1a1
 _KDE_NET_WM_USER_CREATION_TIME(CARDINAL) = 3979416247

 ...just to discover that that window seems not to have a name...

 So, while a common method to find a window was Desktop.find() (look at
 previous messages in this list), this time may be that doesn't work.
 Perhaps you can 'SHELL xlsclients -la TO sXls', and then parse sXls to
 find out the window ID. Desktop.Find() can be used to get all the
 windows,
 but then don't know how to get more information. One way could be to
 execute a find, then launch openoffice, then do a find again to see what
 window has been added...

 Hope this could help.

 Doriano.


 
 You have to look at the window class:
 
 $ xprop
 click on the OpenOffice window
 ...
 WM_CLASS(STRING) = VCLSalFrame.DocumentWindow, OpenOffice.org 2.4
 ...
 
 Desktop.Find can look for a specific window class with its second
 argument. I 
 don't know if it works in that case, because apparently the OpenOffice
 window 
 has two classes!
 
 Regards,
 
 -- 
 Benoit Minisini
 
 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's
 challenge
 Build the coolest Linux based applications with Moblin SDK  win great
 prizes
 Grand prize is a trip for two to an Open Source event anywhere in the
 world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/embed-OpenOffice-tp19929257p19965155.html
Sent from the gambas-user mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists

[Gambas-user] embed OpenOffice

2008-10-10 Thread jbskaggs

I have looked at the embedder example. I have looked at every post on this
forum on finding the title of the new window.

I cannot figure it out and get it to work.

Could somebody have pity and show me how to get the title of the window when
I shell to Openoffice and how to give it to the embedder?

JB
-- 
View this message in context: 
http://www.nabble.com/embed-OpenOffice-tp19929257p19929257.html
Sent from the gambas-user mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Wordwrap in Textedit

2008-10-10 Thread jbskaggs

Is there a way to have word wrap in textedit?

JB
-- 
View this message in context: 
http://www.nabble.com/Wordwrap-in-Textedit-tp19929263p19929263.html
Sent from the gambas-user mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Semi noob question for Best way to do something.

2008-10-08 Thread jbskaggs

I have written an app in gambas that is generating a little bit of interest
in the linux world.  But I have two features I wish to add, that I am not
sure how to implement in Gambas.

My app is a writer's app.  As such I would like to have a way to have my app
be able to upload and download posts to and from a secure forum.  Ie the
prog would upload a text, then download comments on the text, and upload
replies etc.

the second feature  I would  like to add is a mapmaker. And then be able to
export the graphical maps to a pdf file.

I have written the mapmaker before in windows under gml  but I am not sure
how to do so using gambas.  Basically just having a background layer that
the user can then choose and add small graphics or text on top then export
the total.

Maybe if someone could point me in the right direction?

JB
-- 
View this message in context: 
http://www.nabble.com/Semi-noob-question-for-Best-way-to-do-something.-tp19885070p19885070.html
Sent from the gambas-user mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] 2.8.2 for Ubuntu amd64

2008-10-05 Thread jbskaggs

When is a Gambas 2.8.2 Ubuntu package for ubuntu 8.04 amd 64 going to become
available?

Right now 2.5 is highest.

JB
-- 
View this message in context: 
http://www.nabble.com/2.8.2-for-Ubuntu-amd64-tp19829401p19829401.html
Sent from the gambas-user mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request

2008-09-10 Thread jbskaggs

Sure-

When I make a package release for say ubuntu, mandrake, debian, fedora, etc
and have gambas IDE make all the packages. It places all the make packages
in one single directory.

When I try and make the packages at seperate times it changes the release
number which really complicates tracking the software.  And its a pain to
manually go back and either change the release number or to try and copy out
which files go with which packages and cut and move them.  (I almost always
end up losing or missing files)

If there was a way to have the IDE request a directory for each different
package:

Right now the IDE asks for one destination directory, but if I could have it
ask for a destination dirctory for each type of linux chosen that would help
alot.

Example:

so for ubuntu I could choose: /home/distro/ubuntu

for fedora I could choose: /home/distro/fedora

etc

does that make sense?

JB


Benoit Minisini wrote:
 
 On lundi 25 août 2008, jbskaggs wrote:
 On the  packager utility in gambas- would it be possible to add a feature
 so when you create more than one linux flavor installation it asks you
 for
 a new directory for each flavor?

 This would make distribution updates much faster.

 JB Skaggs
 
 Can you elaborate?
 
 -- 
 Benoit Minisini
 
 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's
 challenge
 Build the coolest Linux based applications with Moblin SDK  win great
 prizes
 Grand prize is a trip for two to an Open Source event anywhere in the
 world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 
 

-- 
View this message in context: 
http://www.nabble.com/Feature-request-tp19136261p19425714.html
Sent from the gambas-user mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature request

2008-09-10 Thread jbskaggs

Perfect!  Thank you.

JB


Benoit Minisini wrote:
 
 On jeudi 11 septembre 2008, jbskaggs wrote:
 Sure-

 When I make a package release for say ubuntu, mandrake, debian, fedora,
 etc
 and have gambas IDE make all the packages. It places all the make
 packages
 in one single directory.

 When I try and make the packages at seperate times it changes the release
 number which really complicates tracking the software.  And its a pain to
 manually go back and either change the release number or to try and copy
 out which files go with which packages and cut and move them.  (I almost
 always end up losing or missing files)

 If there was a way to have the IDE request a directory for each different
 package:

 Right now the IDE asks for one destination directory, but if I could have
 it ask for a destination dirctory for each type of linux chosen that
 would
 help alot.

 Example:

 so for ubuntu I could choose: /home/distro/ubuntu

 for fedora I could choose: /home/distro/fedora

 etc

 does that make sense?

 JB

 
 If I add a the sub-directory automatically from the name of the
 distribution, 
 will it be enough?
 
 -- 
 Benoit Minisini
 
 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's
 challenge
 Build the coolest Linux based applications with Moblin SDK  win great
 prizes
 Grand prize is a trip for two to an Open Source event anywhere in the
 world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 
 

-- 
View this message in context: 
http://www.nabble.com/Feature-request-tp19136261p19426571.html
Sent from the gambas-user mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Feature request

2008-08-24 Thread jbskaggs

On the  packager utility in gambas- would it be possible to add a feature so
when you create more than one linux flavor installation it asks you for a
new directory for each flavor?

This would make distribution updates much faster.

JB Skaggs
-- 
View this message in context: 
http://www.nabble.com/Feature-request-tp19136261p19136261.html
Sent from the gambas-user mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] could somebody write how to make a package for Gentoo?

2008-07-25 Thread jbskaggs

Could somebody write how to create a distribution package of my application
for the gentoo version of linux?

I dont have Gentoo but I have requests on how to install my program on
gentoo.

I'd assume the easiest way would be for them to install Gambas 2.5 and
compile my Source code.

But is there a more professional way?  Mind you I am a newbie.

JB


-- 
View this message in context: 
http://www.nabble.com/could-somebody-write-how-to-make-a-package-for-Gentoo--tp18658903p18658903.html
Sent from the gambas-user mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] [29]invalid object. ValueBox.Warning.Timer.410

2008-07-20 Thread jbskaggs

I think I understand what I did. When I switched from gtk to qt I did not
recreate all the controls.  I mistakenly thought I could just switch
compnent library and the IDE would know the difference.

So now I am back to using GTK and having to restart on my printing problems
or recreate all my controls in qt.

I feel like an idiot.

JB



jbskaggs wrote:
 
 Help! My program was running fine then suddenly and unexpectedly it
 started this:  It does it at seemingly random times.  The only difference
 I have done was to switch from GTK to QT for printing purposes.
 
  http://www.nabble.com/file/p18551527/bugScreenshot.png 
 
 What does this mean?
 
 JB
 

-- 
View this message in context: 
http://www.nabble.com/-29-invalid-object.-ValueBox.Warning.Timer.410-tp18551527p18551996.html
Sent from the gambas-user mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] [29]invalid object. ValueBox.Warning.Timer.410

2008-07-20 Thread jbskaggs

So the error was not caused because I just switched my component library
without changing the actual controls on the form?

For example I drew a text area in gb.gtk  then switched to gb.qt but did not
recreate this textarea control I just left the textarea I created in GTK. 
Is that what caused the crash?  Becuase I don't get it in GTK.

Where can I find more about this bug?

JB



Benoit Minisini wrote:
 
 On dimanche 20 juillet 2008, jbskaggs wrote:
 Help! My program was running fine then suddenly and unexpectedly it
 started
 this:  It does it at seemingly random times.  The only difference I have
 done was to switch from GTK to QT for printing purposes.

 http://www.nabble.com/file/p18551527/bugScreenshot.png

 What does this mean?

 JB
 
 This is a bug I just have fixed. You will get the fix in the 2.8 version.
 
 You should have it with GTK+ too, that's strange...
 
 Regards,
 
 -- 
 Benoit Minisini
 
 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's
 challenge
 Build the coolest Linux based applications with Moblin SDK  win great
 prizes
 Grand prize is a trip for two to an Open Source event anywhere in the
 world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 
 

-- 
View this message in context: 
http://www.nabble.com/-29-invalid-object.-ValueBox.Warning.Timer.410-tp18551527p18558176.html
Sent from the gambas-user mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] [29]invalid object. ValueBox.Warning.Timer.410

2008-07-20 Thread jbskaggs

Okay so in  my case the bug is called by the gb.qt.ext printer component? 
That is the only .ext component I have.

How long before 2.8 comes out?

I am wondering if I should find a work around for the printer until the 2.8
comes out.

Unfortunately I released this program for beta.

JB


Benoit Minisini wrote:
 
 On dimanche 20 juillet 2008, jbskaggs wrote:
 So the error was not caused because I just switched my component library
 without changing the actual controls on the form?

 For example I drew a text area in gb.gtk  then switched to gb.qt but did
 not recreate this textarea control I just left the textarea I created in
 GTK. Is that what caused the crash?  Becuase I don't get it in GTK.

 
 You can switch between gb.qt and gb.gtk without having to change anything
 in 
 your project, provided that you don't use the gb.xxx.ext components.
 
 Otherwise, if you find a different behaviour between gb.qt and gb.gtk,
 then 
 this is most of the time a bug.
 
 You didn't get a crash with gb.gtk because I think that the LostFocus
 event is 
 not raised the same way in gb.qt and gb.gtk. This can be called a bug.
 
 Where can I find more about this bug?

 
 What do you want to know? The bug is fixed in revision #1473.
 
 Regards,
 
 -- 
 Benoit Minisini
 
 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's
 challenge
 Build the coolest Linux based applications with Moblin SDK  win great
 prizes
 Grand prize is a trip for two to an Open Source event anywhere in the
 world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 
 

-- 
View this message in context: 
http://www.nabble.com/-29-invalid-object.-ValueBox.Warning.Timer.410-tp18551527p18558578.html
Sent from the gambas-user mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] [29]invalid object. ValueBox.Warning.Timer.410

2008-07-20 Thread jbskaggs

Okay the work around fixes the warning.timer message.  But sporadically when
I click on a Textarea it reboots my computer. (more specifically Ubuntu)

This doesn't happen with any other software and never started until this 
error message started.

Anyideas?

JB


Benoit Minisini wrote:
 
 On dimanche 20 juillet 2008, Benoit Minisini wrote:
 On dimanche 20 juillet 2008, jbskaggs wrote:
  Okay so in  my case the bug is called by the gb.qt.ext printer
 component?
  That is the only .ext component I have.
 
  How long before 2.8 comes out?
 
  I am wondering if I should find a work around for the printer until the
  2.8 comes out.
 
  Unfortunately I released this program for beta.
 
  JB

 A workaround is to be sure that the focus is not on a ValueBox when its
 window is closed.

 Regards,
 
 More precisely, you must do something like that in the Form_Close event 
 handler:
 
 AControlThatIsNotAValueBox.SetFocus
 WAIT ' Mandatory, to be sure that The ValueBox receives its GotFocus event 
 before the form is closed.
 
 Tell me if it works.
 
 Regards,
 
 -- 
 Benoit Minisini
 
 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's
 challenge
 Build the coolest Linux based applications with Moblin SDK  win great
 prizes
 Grand prize is a trip for two to an Open Source event anywhere in the
 world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 
 

-- 
View this message in context: 
http://www.nabble.com/-29-invalid-object.-ValueBox.Warning.Timer.410-tp18551527p18562240.html
Sent from the gambas-user mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] I finished my basic module.

2008-07-19 Thread jbskaggs

Well I finished my basic module of my first serious Gambas Project and posted
it to qtapps and freshmeat for usage and beta testing.  I am hoping people
like it.

It is a program for writing novels.

Even though there are a lot of features I need to add I have finished my
first major release.

if anyone is interested they can see the program and source code at
http://www.wwmkr.com. 

Would love anybodies comments.

JB
-- 
View this message in context: 
http://www.nabble.com/I-finished-my-basic-module.-tp18550419p18550419.html
Sent from the gambas-user mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] [29]invalid object. ValueBox.Warning.Timer.410

2008-07-19 Thread jbskaggs

Help! My program was running fine then suddenly and unexpectedly it started
this:  It does it at seemingly random times.  The only difference I have
done was to switch from GTK to QT for printing purposes.

http://www.nabble.com/file/p18551527/bugScreenshot.png 

What does this mean?

JB
-- 
View this message in context: 
http://www.nabble.com/-29-invalid-object.-ValueBox.Warning.Timer.410-tp18551527p18551527.html
Sent from the gambas-user mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] [29]invalid object. ValueBox.Warning.Timer.410

2008-07-19 Thread jbskaggs

Okay it has caused my computer to reboot.

I ran the program in terminal and here is what it showed:

ValueBox.WarningTimer.410: #29: Invalid object
0: ValueBox.WarningTimer.410
1: ValueBox.TextBox_LostFocus.375
Mutex destroy failure: Device or resource busy
[EMAIL PROTECTED]:~$ 

Any idea what this means?



jbskaggs wrote:
 
 Help! My program was running fine then suddenly and unexpectedly it
 started this:  It does it at seemingly random times.  The only difference
 I have done was to switch from GTK to QT for printing purposes.
 
  http://www.nabble.com/file/p18551527/bugScreenshot.png 
 
 What does this mean?
 
 JB
 

-- 
View this message in context: 
http://www.nabble.com/-29-invalid-object.-ValueBox.Warning.Timer.410-tp18551527p18551626.html
Sent from the gambas-user mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] [29]invalid object. ValueBox.Warning.Timer.410

2008-07-19 Thread jbskaggs

Okay it has caused my computer to reboot.

I ran the program in terminal and here is what it showed:

ValueBox.WarningTimer.410: #29: Invalid object
0: ValueBox.WarningTimer.410
1: ValueBox.TextBox_LostFocus.375
Mutex destroy failure: Device or resource busy
[EMAIL PROTECTED]:~$ 

Any idea what this means?



jbskaggs wrote:
 
 Help! My program was running fine then suddenly and unexpectedly it
 started this:  It does it at seemingly random times.  The only difference
 I have done was to switch from GTK to QT for printing purposes.
 
  http://www.nabble.com/file/p18551527/bugScreenshot.png 
 
 What does this mean?
 
 JB
 

-- 
View this message in context: 
http://www.nabble.com/-29-invalid-object.-ValueBox.Warning.Timer.410-tp18551527p18551627.html
Sent from the gambas-user mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Adding headers and footers to printing

2008-07-18 Thread jbskaggs

I switched my program to qt from gtk to add printer capabilities beyond just
LPR.

Could somebody give me an example how to add headers (page numbers)  etc?

I have the printing module working just fine I just need to understand how
to add the header.

JB Skaggs
-- 
View this message in context: 
http://www.nabble.com/Adding-headers-and-footers-to-printing-tp18541412p18541412.html
Sent from the gambas-user mailing list archive at Nabble.com.


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user