Re: [Gambas-user] The Gambas wiki...

2009-10-18 Thread Rob
On Sunday 18 October 2009 06:47 pm, Jerry McBride wrote: > Is the source code for the wiki available? I understand it's written in > gambas... It would make a great tutorial. As far as I know, it's included in the Gambas tarball in the "app/src/doc.cgi" directory. Rob

Re: [Gambas-user] Code Editor Problem

2009-10-18 Thread Saba Moshe
Because the pop-up list would be too long? Saba Moshe >>> Date: Sun, 18 Oct 2009 18:00:50 +0200 From: Beno?t Minisini Subject: Re: [Gambas-user] Code Editor Problem To: mailing list for gambas users Message-ID: <200910181800.50789.gam...@users.sourceforge.net> Content-Type: Text/Plain; charse

Re: [Gambas-user] make Label background from Database field

2009-10-18 Thread Werner
Vassilis K wrote: > After a more accurate control I discovered that the last record was not > included with red color. But when I put the LOOP up to rsThesi.Count it shows > up the same old error. > so I put just after the LOOP the line : > change_bgcolor("Label" & CInt(rsThesi!thesi)) > AND eve

[Gambas-user] The Gambas wiki...

2009-10-18 Thread Jerry McBride
Is the source code for the wiki available? I understand it's written in gambas... It would make a great tutorial. Jerry -- * From the desk of:

[Gambas-user] Gambas and Gnome dependencies...

2009-10-18 Thread Jerry McBride
I'm building Gambas on Gentoo and it's dragging in all kinds of gnome libraries... My question is why? Jerry -- * From the desk of:

Re: [Gambas-user] make Label background from Database field

2009-10-18 Thread Vassilis K
After a more accurate control I discovered that the last record was not included with red color. But when I put the LOOP up to rsThesi.Count it shows up the same old error. so I put just after the LOOP the line : change_bgcolor("Label" & CInt(rsThesi!thesi)) AND everything is OK at last !! Here'

Re: [Gambas-user] Missing feature?

2009-10-18 Thread Kad Mann
On Sun, 2009-10-18 at 17:53 +0200, Benoît Minisini wrote: > > TextBoxes and Labels have an alignment property but DataControls do not. > > > > Is that by design? Are there plans to change it? > > > > Is there a workaround to allow the alignment of a DataControl, apart > > from hiding the DataCont

Re: [Gambas-user] make Label background from Database field

2009-10-18 Thread Kad Mann
On Sun, 2009-10-18 at 14:00 +0200, Doriano Blengino wrote: > Kad Mann ha scritto: > > On Sun, 2009-10-18 at 10:47 +0200, Doriano Blengino wrote: > > > >> Kad Mann ha scritto: > >> > >>> On Sun, 2009-10-18 at 09:08 +0200, Doriano Blengino wrote: > >>> > >>> > Kad Mann ha scrit

Re: [Gambas-user] make Label background from Database field

2009-10-18 Thread Doriano Blengino
Vassilis K ha scritto: > After the function of change_bgcolor that existed and Benoit reminded us, the > code is becoming more sophisticated: > > PUBLIC SUB Form_Open() > DIM rsThesi AS Result > DIM iTemp AS Integer > DIM sTemp AS String >MODMain.Connect() >rsThesi = MODMain.$Con.ex

Re: [Gambas-user] make Label background from Database field

2009-10-18 Thread Vassilis K
After the function of change_bgcolor that existed and Benoit reminded us, the code is becoming more sophisticated: PUBLIC SUB Form_Open() DIM rsThesi AS Result DIM iTemp AS Integer DIM sTemp AS String MODMain.Connect() rsThesi = MODMain.$Con.exec("select * from egrafes where elenchos

Re: [Gambas-user] make Label background from Database field

2009-10-18 Thread Doriano Blengino
Benoît Minisini ha scritto: >> I get error: >> "Result is not available" >> at line: >> "change_bgcolor("Label" & rsThesi!thesi)" >> >> of the code: >> >> PUBLIC SUB Form_Open() >> DIM i AS Integer >> DIM rsThesi AS Result >> MODMain.Connect() >> rsThesi = MODMain.$Con.exec("select * fr

[Gambas-user] serial port.

2009-10-18 Thread abdurrahman ulusoy
hi i want to send data to serial port.  when i send  a number  (for exam: 37) ,  what is writing gambas to seri port (100101 or 37) ? if gambas  write (37) how can i convert decimaltobinary. (are there any module or command  ?  

Re: [Gambas-user] make Label background from Database field

2009-10-18 Thread Benoît Minisini
> I get error: > "Result is not available" > at line: > "change_bgcolor("Label" & rsThesi!thesi)" > > of the code: > > PUBLIC SUB Form_Open() > DIM i AS Integer > DIM rsThesi AS Result > MODMain.Connect() > rsThesi = MODMain.$Con.exec("select * from egrafes where elenchosAnax = > 0")

Re: [Gambas-user] Using masks

2009-10-18 Thread Benoît Minisini
> Is it possible to use an image as a background of a TabStrip? Are the masks > usable for that? > How can I attach a mask to an object? I would like to have an example. > Thanks! No, mask are only for top-level windows. X-Window allows what you want, but I didn't implement it because of the dif

Re: [Gambas-user] Code Editor Problem

2009-10-18 Thread Benoît Minisini
> > On Sat, 2009-10-17 at 16:21 +0200, Benoît Minisini wrote: > > > > No such thing happens if the module name is from 1 to 3 characters in > > > > length. The problem is, I need a module to be called k, nothing else, > > > > and I need the constants to be displayed when I type k and a period. > >

Re: [Gambas-user] Code Editor Problem

2009-10-18 Thread Benoît Minisini
> On Sat, 2009-10-17 at 16:21 +0200, Benoît Minisini wrote: > > > No such thing happens if the module name is from 1 to 3 characters in > > > length. The problem is, I need a module to be called k, nothing else, > > > and I need the constants to be displayed when I type k and a period. > > > > Do y

Re: [Gambas-user] Missing feature?

2009-10-18 Thread Benoît Minisini
> TextBoxes and Labels have an alignment property but DataControls do not. > > Is that by design? Are there plans to change it? > > Is there a workaround to allow the alignment of a DataControl, apart > from hiding the DataControls and mirroring the data in a TextBox? > Not really, not really.

Re: [Gambas-user] Classes and Modules in Gambas Server Pages

2009-10-18 Thread Benoît Minisini
> Hey guys, > > I know that in gambas server pages there's #USE that allows us to use > gambas components. > > Is there something similar to PHPs include statement to be able to use > classes and modules? > > and when making modules and classes for server pages are there any changes > we need t

Re: [Gambas-user] make Label background from Database field

2009-10-18 Thread Doriano Blengino
Doriano Blengino ha scritto: > Dimitris Anogiatis ha scritto: > >> Vassili, >> >> Glad to hear that it's working for you :) >> >> > I join - congratulations! > > The only pity is to have such an awful case statement, when 5 or 6 lines > of code would do the same job. That SELECT it is n

Re: [Gambas-user] make Label background from Database field

2009-10-18 Thread Doriano Blengino
Dimitris Anogiatis ha scritto: > Vassili, > > Glad to hear that it's working for you :) > I join - congratulations! The only pity is to have such an awful case statement, when 5 or 6 lines of code would do the same job. That SELECT it is not much faster, because it compares case by case until

Re: [Gambas-user] make Label background from Database field

2009-10-18 Thread Dimitris Anogiatis
Vassili, Glad to hear that it's working for you :) Keep up the good work :) Regards, Dimitris On Sun, Oct 18, 2009 at 7:22 AM, Vassilis K wrote: > It is Solved !! > > > It works fine with: rsThesi.Count - 1 > > DO WHILE rsThesi.Index < rsThesi.Count - 1 > change_bgcolor(CInt(rsThe

Re: [Gambas-user] make Label background from Database field

2009-10-18 Thread Vassilis K
It is Solved !! It works fine with: rsThesi.Count - 1 DO WHILE rsThesi.Index < rsThesi.Count - 1 change_bgcolor(CInt(rsThesi!thesi)) rsThesi.MoveNext() LOOP Thank you Dimitri and Doriano -- Come build wi

Re: [Gambas-user] make Label background from Database field

2009-10-18 Thread Vassilis K
Dimitri it worked !! I put the code that you suggested and it works only when I put a number smaller than rsThesi.Count . For example when I put 10 it shows 10 Labels coloured ! I ' m writing down the code that worked: PUBLIC SUB Form_Open() DIM rsThesi AS Result DIM iTemp AS Integer DIM

Re: [Gambas-user] make Label background from Database field

2009-10-18 Thread Dimitris Anogiatis
Vassili, Going back and forth through the whole thread I can also see that change_bgcolor is not as efficient as it could be simply because it's doing a loop looking through all the controls trying to match the desired control's name. for change_bgcolor I would suggest this Public SUB change_b

Re: [Gambas-user] make Label background from Database field

2009-10-18 Thread Doriano Blengino
Kad Mann ha scritto: > On Sun, 2009-10-18 at 10:47 +0200, Doriano Blengino wrote: > >> Kad Mann ha scritto: >> >>> On Sun, 2009-10-18 at 09:08 +0200, Doriano Blengino wrote: >>> >>> Kad Mann ha scritto: > On Sat, 2009-10-17 at 22:46 +0300, Vassilis

Re: [Gambas-user] make Label background from Database field

2009-10-18 Thread Kad Mann
On Sun, 2009-10-18 at 10:47 +0200, Doriano Blengino wrote: > Kad Mann ha scritto: > > On Sun, 2009-10-18 at 09:08 +0200, Doriano Blengino wrote: > > > >> Kad Mann ha scritto: > >> > >>> On Sat, 2009-10-17 at 22:46 +0300, Vassilis K wrote: > >>> > >>> > >>> > Dimitri I don't u

Re: [Gambas-user] make Label background from Database field

2009-10-18 Thread Doriano Blengino
Kad Mann ha scritto: > On Sun, 2009-10-18 at 09:08 +0200, Doriano Blengino wrote: > >> Kad Mann ha scritto: >> >>> On Sat, 2009-10-17 at 22:46 +0300, Vassilis K wrote: >>> >>> >>> Dimitri I don't understand >>> Why don't you take a look at the database

Re: [Gambas-user] make Label background from Database field

2009-10-18 Thread Vassilis K
Dear Doriano, I have tested both codes with sTemp = CStr(rsThesi!thesi) 'As a string variable AND then with iTemp = rsThesi!thesi 'As Integer I get the results on the console but the code now stops at: sTemp = CStr(rsThesi!thesi) OR at iTemp = rsThesi!thesi with message "Result is not

Re: [Gambas-user] make Label background from Database field

2009-10-18 Thread Kad Mann
On Sun, 2009-10-18 at 09:08 +0200, Doriano Blengino wrote: > Kad Mann ha scritto: > > On Sat, 2009-10-17 at 22:46 +0300, Vassilis K wrote: > > > > > >> Dimitri I don't understand > >> > > > > Why don't you take a look at the database example in Gambas? > > > > After creating the test table,

Re: [Gambas-user] make Label background from Database field

2009-10-18 Thread Doriano Blengino
Kad Mann ha scritto: > On Sat, 2009-10-17 at 22:46 +0300, Vassilis K wrote: > > >> Dimitri I don't understand >> > > Why don't you take a look at the database example in Gambas? > > After creating the test table, if you type in an SQL command and click > the run button, you will see a gridv