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

2009-10-14 Thread Matti
I guess that "Label(["i"])" causes the problem. I don't think you can address them that way, but need an array of labels. Here, it works with PRIVATE $alblTime AS NEW Object[] $alblTime[i] = NEW Label(ME) And then you can address every label with $alblTime[i].Property = xy Regards Matti Vassil

[Gambas-user] make Label background from Database field

2009-10-14 Thread Vassilis K
Hello, I want to change the color of about 100 Labels of a form according to the values of a table in the database. If the value of the field thesi is 12, I want to make Label12 look red (with red background color). For this purpose I made the following : PUBLIC SUB Form_Open() DIM rsThesi AS

Re: [Gambas-user] DataBrowser question

2009-10-14 Thread Kad Mann
On Wed, 2009-10-14 at 16:16 +0200, Ricardo Díaz Martín wrote: > If someone needs it I can put here . I'd like to see it. > Note the component is in spanish ;-) I'm sure the code will speak for itself :) -- Come build

Re: [Gambas-user] Normal behaviour for GTK+?

2009-10-14 Thread Kad Mann
On Wed, 2009-10-14 at 19:35 +0200, Benoît Minisini wrote: > > On Tue, 2009-10-13 at 18:58 +0200, Benoît Minisini wrote: > > > > This has me pulling my hair out. I think I have narrowed the problem > > > > down to the GTK+ toolkit for Gambas. > > > > > > > > If I create a GTK+ project and put a Tex

Re: [Gambas-user] DataBrowser question

2009-10-14 Thread nospam.nospam.nos...@gmail.com
On Wed, 2009-10-14 at 18:08 +0200, Matti wrote: > DataSource1.ReadOnly = TRUE > and the buttons are gone. Ah! Absolutely brilliant. Thank you. It's not exactly clear in the documentation, and I searched everywhere before asking. I've sent an email to "gam...@users.sourceforge.net" to request sig

Re: [Gambas-user] DataBrowser question

2009-10-14 Thread Jorge Carrión
Gracias colega. Regards 2009/10/14 Ricardo Díaz Martín > Jorge, > > You got it. There are more subs/functions you need but I hope you can > extract you want. Please note there is a class TipoString that is only used > to pass a string by reference (I'm using gambas2) > > Regards, > Ricardo > > E

Re: [Gambas-user] DataBrowser question

2009-10-14 Thread Ricardo Díaz Martín
Jorge, You got it. There are more subs/functions you need but I hope you can extract you want. Please note there is a class TipoString that is only used to pass a string by reference (I'm using gambas2) Regards, Ricardo El 14 de octubre de 2009 17:56, Jorge Carrión escribió: > Ricardo: > I'm i

Re: [Gambas-user] Normal behaviour for GTK+?

2009-10-14 Thread Benoît Minisini
> On Tue, 2009-10-13 at 18:58 +0200, Benoît Minisini wrote: > > > This has me pulling my hair out. I think I have narrowed the problem > > > down to the GTK+ toolkit for Gambas. > > > > > > If I create a GTK+ project and put a TextBox and a ValueBox on a form > > > and set their default values, whe

Re: [Gambas-user] serial port

2009-10-14 Thread Benoît Minisini
> Salut, > > I tried to follow what you wrote, here you are the result. > > >From the other side when working on it and waiting for a little longer > > time, > > I recognised that the program is not permanently frozen, after several 10 > seconds it came back to normal. So at the end it's not so

Re: [Gambas-user] DataBrowser question

2009-10-14 Thread Matti
DataSource1.ReadOnly = TRUE and the buttons are gone. nospam.nospam.nos...@gmail.com schrieb: > Is there a way to selectively disable the buttons on the navigation > panel shown on a DataBrowser? I want to allow users to move forward and > back through the data but not add, delete or save changes

Re: [Gambas-user] TextEdit and HTML

2009-10-14 Thread Matti
Yes, of course. But if you'd load a rtf-file into TextEdit, you'd see why I tried html. All the meta informations of rtf are shown as text, that's not useable. No, the solution is easier: just activate qt.kde and qt.kde.html and use the control WebBrowser. Works perfectly. Didn't see it before,

Re: [Gambas-user] DataBrowser question

2009-10-14 Thread Jorge Carrión
Ricardo: I'm interested in your component. I have done something like this, and I like to compare. Thanks 2009/10/14 Ricardo Díaz Martín > I use for do this no contol box. I got a form with a grid view with two > columns (first length = 0) and I got a funtion that open the form fill the > gridv

Re: [Gambas-user] DataBrowser question

2009-10-14 Thread Ricardo Díaz Martín
I use for do this no contol box. I got a form with a grid view with two columns (first length = 0) and I got a funtion that open the form fill the gridvied with available values (at fist row the key and at the second the visible value for the user) and send to the form the value you choice. In the

Re: [Gambas-user] Normal behaviour for GTK+?

2009-10-14 Thread Ricardo Díaz Martín
Dimitris, I understand you said and think the same, but if you're programming software for a customer you only want it run and I think qt components in gambas got less bugs than gtk+. Benoit said is more difficult for him to program in gtk+ than QT althoug he also said he's thinking to continue gt

[Gambas-user] DataBrowser question

2009-10-14 Thread nospam.nospam.nos...@gmail.com
Is there a way to selectively disable the buttons on the navigation panel shown on a DataBrowser? I want to allow users to move forward and back through the data but not add, delete or save changes. Thanks for your assistance. -

Re: [Gambas-user] Custom Colour

2009-10-14 Thread nospam.nospam.nos...@gmail.com
On Wed, 2009-10-14 at 03:57 -0700, Bill-Lancaster wrote: > Is it possible to set a control's backcolor to a custom value? > If so how? Control.BackColor Or Control.Background TextBox1.BackColor = &HEF0F& -- Come b

[Gambas-user] Custom Colour

2009-10-14 Thread Bill-Lancaster
Is it possible to set a control's backcolor to a custom value? If so how? -- View this message in context: http://www.nabble.com/Custom-Colour-tp25888950p25888950.html Sent from the gambas-user mailing list archive at Nabble.com.

Re: [Gambas-user] TextEdit and HTML

2009-10-14 Thread nospam.nospam.nos...@gmail.com
On Wed, 2009-10-14 at 09:28 +0200, Matti wrote: > Somewhere in the mailing archives I've read that a TextEdit could display > HTML files "nicely". > But how? > > When I do > textstr = File.Load("xyfile.html") > TextEdit1.Text = textstr > > a plain text is shown, without any formatting. All the H

[Gambas-user] TextEdit and HTML

2009-10-14 Thread Matti
Somewhere in the mailing archives I've read that a TextEdit could display HTML files "nicely". But how? When I do textstr = File.Load("xyfile.html") TextEdit1.Text = textstr a plain text is shown, without any formatting. All the HTML tags are ignored. And the special chars like äöß are displayed