Thread: pgaccess: backgroud colors

pgaccess: backgroud colors

From
Salustiano Villanueva
Date:
Hey there!

Is it possible to give some background color to  Pgaccess windows ?
(just to soften the glare of the white surfaces).
If so, would somebody tell me how to do it?

What i have is pgaccess 0.98.7 running on Linux RedHat 7.1 with Tcl/Tk 8.4

TIA

Salustiano



Re: pgaccess: backgroud colors

From
Constantin Teodorescu
Date:
Salustiano Villanueva wrote:
> Hey there!
> 
> Is it possible to give some background color to  Pgaccess windows ?
> (just to soften the glare of the white surfaces).
> If so, would somebody tell me how to do it?

I think you mean the background of table windows.
You should enter into the source (possible)

/usr/share/pgsql/pgaccess/lib/tables.tcl

or search for the source

locate tables.tcl

then learn a drop of Tcl and change the canvas background color when 
creating new windows in procedure createWindow

canvas $base.c  -background #fefefe

change #fefefe to other color

teo



pgaccess: Form's Query usage

From
"John L. Turner"
Date:
Could any one give me an example of how to use the 
Query, that can be setup in: pgaccess FORMS

eg. how can I display the rev_date, in a text  box
in my FORM with a Query that  is from a table in the Current DB 
Query = SELECT rev_date FROM revisions ORDER BY rev_num

Thanks to anyone, very much!

John Turner


Re: pgaccess: Form's Query usage

From
Constantin Teodorescu
Date:
John L. Turner wrote:
> Could any one give me an example of how to use the 
> Query, that can be setup in:
>      pgaccess FORMS
> 
> eg. how can I display the rev_date, in a text  box
> in my FORM with a Query that  is from a table in the Current DB 
> Query = SELECT rev_date FROM revisions ORDER BY rev_num
> 
> Thanks to anyone, very much!

There is a 'formdemo.sql' script file that builds a database (formdemo) 
that contains a small example of a rolodex using forms and query.

Did you tried it?

teo




Re: pgaccess: backgroud colors

From
Salustiano Villanueva
Date:
Done!
I put #dcdcdc in place of #fefefe, and a nice light grey appear.
Thanks for your help and .. for the program,

Salustiano


Constantin Teodorescu wrote:

> Salustiano Villanueva wrote:
> 
>> Hey there!
>> 
>> Is it possible to give some background color to  Pgaccess windows ?
>> (just to soften the glare of the white surfaces).
>> If so, would somebody tell me how to do it?
> 
> 
> I think you mean the background of table windows.
> You should enter into the source (possible)
> 
> /usr/share/pgsql/pgaccess/lib/tables.tcl
> 
> or search for the source
> 
> locate tables.tcl
> 
> then learn a drop of Tcl and change the canvas background color when 
> creating new windows in procedure createWindow
> 
> canvas $base.c  -background #fefefe
> 
> change #fefefe to other color
> 
> teo
> 
> 
>