View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0002695||JEDI VCL||00 JVCL Components||public||2005-02-27 23:45||2005-03-13 06:43|
|Product Version||3.00 BETA|
|Target Version||Fixed in Version||3.00|
|Summary||0002695: JvExpressButton not storing font information|
|Description||I created a new D6 Enterprise application. I added a JvExpress to the main form and then a couple of JvExpressButtons to the JvExpress. I set the JvExpress to use the Parent Font (Trebuchet MS). I set the JvExpressButton to use the Parent Font as well.|
Then I save the application, close all and reload the application. The JvExpressButton Parent Font value is False and the font colour has revered back to the default of clWhite (can we change that to clWindowText?).
|Tags||No tags attached.|
Add to/change in class
property ParentFont default false;
Add in constructor:
ParentFont := false;
Font.Color := clHighlightText;
Rebuild the RT package (JvCustomD?R.dpk)
That appears to have done the trick.
I switched things up a bit:
1) I changed the default to True
2) In the constructor I set ParentFont := True;
3) I set Font.Color := clWindowText;
It seemed like a TButton was setting the ParentFont to true and the color to clWindowText so that's why I made those adjustments.
Thanks for your help.
Your changes restore the default behavior and you could have accomplished the same thing it by just removing the line that changes the Font properties :)
Anyway, the Expressbuttons should have a default white color since they are generally placed on a JvExpress that has a dark gray background, so the changes I posted are the ones I am going to commit to CVS.
I'll arm wrestle you for which colour they should start out as. :-)
|I have very big arms ;)|
|Fixed in CVS|
|2005-02-27 23:45||anonymous||New Issue|
||Note Added: 0006634|
||Status||new => feedback|
|2005-03-06 00:13||anonymous||Note Added: 0006643|
||Note Added: 0006658|
|2005-03-10 09:06||anonymous||Note Added: 0006674|
||Note Added: 0006675|
||Status||feedback => resolved|
||Resolution||open => fixed|
||Assigned To||=> user72|
||Note Added: 0006693|