Re: [MSEide-MSEgui-talk] Different font and image color selected row in twidgetgrid

2017-04-10 Thread Martin Schreiber
On Sunday 09 April 2017 20:46:10 Krzysztof wrote:
> Hi Martin,
>
> Two questions:
> 1. How to change font color for selected row in twidgetgrid
> (ttreeitemedit)? From tscincontroller. Is there any definded color which I
> can override by setcolormapvalue()? Something like cl_gridselectedtext?

T*Grid.Datacols has FontSelect and FontActiveNum/FontFocusedNum which select 
an item in T*Grid.RowFonts. Please use TSkinController.OnAfterUpdate in order 
to set them. If you solely want to change the font color it is also possible 
to setup the fonts at design time and to define the color by a user color 
(cl_user0..cl_user19) where the rgb value can be defined by 
TSkinController.Colors[n]. The designtime rgb-values of cl_user0..cl_user19 
can be defined in 'Project'-'Options'-'User Colors'.

> 2. Is it possible to set different image for selected row in ttreeitemedit?
> My icons are dark and I would like to set them as "negative" color when
> selected. So it should be also from different timagelist (which I init with
> brighter color). Or some trick to do this on the fly when image is painted.
>
The selected imagelist item is defined by the sum of 
TTreeItemEdit.ItemList.Imnr_* + the image number of the datanode. TimageList 
can have a lookup table ("IndexLookup") in order to save duplicate images.
On the fly drawing is possible with grid.DataCols[n].OnBeforeDrawcell, 
OnDrawcell and OnAfterDrawcell and T*EditWidget.OnBeforePaint, OnPaint and 
OnAfterPaint.

Martin

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk


Re: [MSEide-MSEgui-talk] Change tdialogstringedit frame buttons from

2017-04-10 Thread Martin Schreiber
On Sunday 09 April 2017 21:49:34 Krzysztof wrote:
> Hi,
>
> I would like to modify edit's frame buttons from tskincontroller, especialy
> change color to cl_foreground so only icon is visible, also set fso_flat
> and fso_noanim. I can do this with tdialogstringedits belongs to my project
> by changing it individually but don't know how to do this from
> tskincontroller because I want to files dialog be affected too.
>
Please use TSkinController.framebutton_* properties. The filedialog had 
accidentally set local button colors, fixed in git master 
ae508e5744a45c07f5a4bbd40c661cac45fac7fe

Martin

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk