feature request: color picker

could you think of a color picker, that enables a user to choose a color and return the code of the color? with that, we could store and set colors database-driven.

We could made a method:
var color = application.showColorChooser()
which you could use as:
elements.anElement.fgcolor = color

whould this help? (this is not exactly database driven, but you could store the color)

that’s it! thanks.

implemented, in release 1.2rc4.

are there any more clues on how to use the colour picker so that a user can pick a colour that is entered into the database…

ps is there any way to use an eye droper for copying a colour

many thanks

i guess im hoping for a basic guide if one exists, ive read a few notes on colour picker but am still unsure how to actually use the method

thanks

Eugene

I do not understand your questions fully but making it possible for a user the pick a color and store this in the record, do something similar like:
textualColorColumn = application.showColorChooser(); // this stores the “#FE340D” alike codes in the column of current record.

Jan Blok:
I do not understand your questions fully but making it possible for a user the pick a color and store this in the record, do something similar like:
textualColorColumn = application.showColorChooser(); // this stores the “#FE340D” alike codes in the column of current record.

I am having troubles to get to work in a table-view.
I use

var a = application.showColorChooser();
if (a){
	kleur = a;
}

Are there problems with this in a table-view?? It works perfectly in List and Record view

Im not aware of any problems
Is your tableview element transparent?
Or are you using bgcolorcalc?

Jan Blok:
Im not aware of any problems
Is your tableview element transparent?
Or are you using bgcolorcalc?

No and nope
As soon as I change the form into Record or Listview it works like a charm

Servoy Developer
Version R2 2.2.5-build 337
Java version 1.5.0_06-b05 (Windows 2000)

please create a support case in the support system, with a sample solution

tweetie:

Jan Blok:
Im not aware of any problems
Is your tableview element transparent?
Or are you using bgcolorcalc?

No and nope
As soon as I change the form into Record or Listview it works like a charm

It also might have sumthing to do the field is non-editable??
I made the field where the color is stored start up this Method

Servoy Developer
Version R2 2.2.5-build 337
Java version 1.5.0_06-b05 (Windows 2000)

Ignore the non-editable field thing…it doesnt make a difference…still not working in table view

I have a feature request for the existing application.showColorChooser(), that I haven’t seen.

I would like to have an option to preload/init the 35 “recent” swatch chips.

You might avoid adding new arguments, by simply detecting a color arg strings of this nature:

“|||…”

Thanks for considering..