ESBPCS for VCL
Showfocus
Thread Starter: Pentti Pohjonen Started: 6/28/2008 2:21 PM UTC
Replies: 3
Showfocus
Hi,

Could " The attached UICtrl must have a ColorSet.FocusColor that is different
to ColorSet.RWColor" requirement be dropped or changed ?

I just want to change bordercolor when field has focus, I don't want to change
fieldcolor too.

TIA

Pentti
RE: Showfocus
Could " The attached UICtrl must have a ColorSet.FocusColor that is
different
to ColorSet.RWColor" requirement be dropped or changed ?
I just want to change bordercolor when field has focus, I don't want to
change
fieldcolor too.

Pentti - the following seems to do what I think you want and I assume you
mean for an ESB Edit

Starting with a "fresh" UICtrl that I've attached a TESBPCSEdit to.

For the UICtrl.ColorSet I do the following changes:

Flat <- True

ShowFocus <-True

FocusColor <- clWindow (or whatever you hyave RWColor set to)

You can also change BorderFocusColor if you don't like the default.

Is that what you were after?


Glenn Crouch, mailto:glenn@esbconsult.com
ESB Consultancy, http://www.esbconsult.com
Home of ESBPCS, ESB Calculators, ESBStats and ESBPDF Analysis
Kalgoorlie-Boulder, Western Australia
Re: Showfocus
Hmm, problem seems to be with LMDSimplepanel.

When edits are on LMDSimplepanel they don't change focuscolor when
I press TAB, it works with mouse.

Pentti


"Glenn Crouch" <support@esbconsult.com> kirjoitti viestiss�:095401c8d92d$c3a9a5d0$4afcf170$@com...
> Could " The attached UICtrl must have a ColorSet.FocusColor that is
> different
> to ColorSet.RWColor" requirement be dropped or changed ?
>
> I just want to change bordercolor when field has focus, I don't want to
> change
> fieldcolor too.

Pentti - the following seems to do what I think you want and I assume you
mean for an ESB Edit

Starting with a "fresh" UICtrl that I've attached a TESBPCSEdit to.

For the UICtrl.ColorSet I do the following changes:

Flat <- True

ShowFocus <-True

FocusColor <- clWindow (or whatever you hyave RWColor set to)

You can also change BorderFocusColor if you don't like the default.

Is that what you were after?


Glenn Crouch, mailto:glenn@esbconsult.com
ESB Consultancy, http://www.esbconsult.com
Home of ESBPCS, ESB Calculators, ESBStats and ESBPDF Analysis
Kalgoorlie-Boulder, Western Australia



RE: Showfocus
Hmm, problem seems to be with LMDSimplepanel.
When edits are on LMDSimplepanel they don't change focuscolor when
I press TAB, it works with mouse.

I use LMDSimplePanels in a lot of my Apps and can't say I've notice the
problem - if it still works with the Mouse it sounds like a Focus problem -
i.e. when you Tab the Panel has the focus and not the edit.

If you want to put a small demo of a LMDSimplePanel + Edit(s) + UICtrl -
demonstrating what you are trying and zip it up and email it to me direct,
I'll see if I can be of more specific help :)


Glenn Crouch, mailto:glenn@esbconsult.com
ESB Consultancy, http://www.esbconsult.com
Home of ESBPCS, ESB Calculators, ESBStats and ESBPDF Analysis
Kalgoorlie-Boulder, Western Australia