[Gambas-user] simple question about components

2010-03-12 Thread Ian Haywood
I have a third-party component that I want to use in a project. I have installed the .gambas file to ~/.local/lib/gambas3 Running the main project with gbx3 directly finds this file and works fine, Opening the same project in the IDE doesn't work: it can't find the control How do I tell the IDE w

Re: [Gambas-user] Using a printer documentation

2010-03-12 Thread Keith Clark
On Sat, 2010-03-13 at 00:19 +0100, Benoît Minisini wrote: > > Could someone forward me a few links about how to use a printer from > > within Gambas? I need to know how to "Print" to a system default > > printer. > > > > Thanks > > > > Keith > > > > In Gambas 2 or Gambas 3 ? > Gambas 2.19 K

Re: [Gambas-user] Using a printer documentation

2010-03-12 Thread Benoît Minisini
> Could someone forward me a few links about how to use a printer from > within Gambas? I need to know how to "Print" to a system default > printer. > > Thanks > > Keith > In Gambas 2 or Gambas 3 ? -- Benoît Minisini -

Re: [Gambas-user] LostFocus() not working on ubuntu !

2010-03-12 Thread Benoît Minisini
> the (textbox) LostFocus() routine is working on Opensuse (with Gambas > 2.17) but not on Ubuntu (with Gambas 2.19)! > The same components of Gambas are loaded on both PCs! > gb, gb.db, gb.db.form, gb.form, gb.image, gb.net, gb.qt, gb.qt.ext, > gb.vb. Several differences are mixed (version and di

Re: [Gambas-user] de-selecting a multi-select filechooser

2010-03-12 Thread Stefano Palmeri
Il venerdì 12 marzo 2010 23:30:44 richard terry ha scritto: > I wondered if it was possible programatically to deselect a users multi > select > > ie, if I've an checkbox as an option for the user to set the > Filechoose1.multi=true, and they change their mind > click it off, how does > one remove

Re: [Gambas-user] de-selecting a multi-select filechooser

2010-03-12 Thread Olivier Cruilles
Hello, May be it works like that. For my ColumnView I use this little code: ColumnView1.Mode = Select.None ColumnView1.Refresh ColumnView1.Mode = Select.Multiple Perhaps this a solution ? Olivier Cruilles Mail: linu...@club-internet.fr Le 12 mars 2010 à 23:30, richard terry a écrit : > > I w

[Gambas-user] de-selecting a multi-select filechooser

2010-03-12 Thread richard terry
I wondered if it was possible programatically to deselect a users multi select ie, if I've an checkbox as an option for the user to set the Filechoose1.multi=true, and they change their mind > click it off, how does one remove the highlighted multiple selected files? Regards Richard -

Re: [Gambas-user] TableView.text conversion

2010-03-12 Thread Les Hardy
Keith Clark wrote: > Les, > > Thanks, but I found that that was not actually my problem. The problem > showed up in sending data to a field in my database. I just forgot to > surround the field with single quotes! Sometimes the simplest problem > is hard to see! > > Keith > > Yes, if its a st

Re: [Gambas-user] Using a printer documentation

2010-03-12 Thread Johny Provoost
You could look in the help under gb.qt.ext and deeper down on Draw. here's a piece of code as an example PUBLIC SUB btVprint_Click() DIM NaamMaand[13] AS String DIM aantal AS Integer DIM AantalInLijst AS Integer DIM HoeveelRec AS Integer DIM vYdim AS Integer DIM Teller AS Integer DI

[Gambas-user] LostFocus() not working on ubuntu !

2010-03-12 Thread Vassilis K
the (textbox) LostFocus() routine is working on Opensuse (with Gambas 2.17) but not on Ubuntu (with Gambas 2.19)! The same components of Gambas are loaded on both PCs! gb, gb.db, gb.db.form, gb.form, gb.image, gb.net, gb.qt, gb.qt.ext, gb.vb. PUBLIC SUB tEponimia_LostFocus() DIM rs33 AS Result

[Gambas-user] Using a printer documentation

2010-03-12 Thread Keith Clark
Could someone forward me a few links about how to use a printer from within Gambas? I need to know how to "Print" to a system default printer. Thanks Keith -- Download Intel® Parallel Studio Eval Try the new software

Re: [Gambas-user] TableView.text conversion

2010-03-12 Thread Keith Clark
Les, Thanks, but I found that that was not actually my problem. The problem showed up in sending data to a field in my database. I just forgot to surround the field with single quotes! Sometimes the simplest problem is hard to see! Keith On Fri, 2010-03-12 at 19:57 +, Les Hardy wrote: > K

Re: [Gambas-user] TableView.text conversion

2010-03-12 Thread Les Hardy
Keith Clark wrote: > I have input a value into a TableView cell, and now I want to read it. > The problem is that I want to read it as a text string. The 'number' is > actually an ISBN code. It can sometimes be a string, as it can contain > an 'X' or a 10 digit number, but starting with a 0. > >

[Gambas-user] TableView.text conversion

2010-03-12 Thread Keith Clark
I have input a value into a TableView cell, and now I want to read it. The problem is that I want to read it as a text string. The 'number' is actually an ISBN code. It can sometimes be a string, as it can contain an 'X' or a 10 digit number, but starting with a 0. For example, 0123456789, 12345

Re: [Gambas-user] Currency and addition/subtraction

2010-03-12 Thread Les Hardy
Keith Clark wrote: > I have a TableView object and have imported some data into it that is > formatted as currency. How can I know take that and add it to a Float > variable? > > Keith > > > > dim cur as string = "£" dim floatvar as float floatvar = Val(Replace(TableView1[TableView1.row, 1].Te

Re: [Gambas-user] Currency and addition/subtraction

2010-03-12 Thread charlesg
Hi, I guess the simple answer is: fTotal += Val(tblView[row, column].text) However, you will eventually run into rounding errors. there was quite a lengthy thread not long ago about this. The conclusion (if such a thing can be reached on a forum :-)) was that currency should be worked on as inte