On Friday 01 April 2016 23:52:08 Krzysztof wrote:
> Hi,
>
> I'm still learning Frame and Faces. There is a lot of sub properties
> so sometimes I'm little lost. I have flat TRichButton (pic1), I want
> to change "on mouse" / "hover" frame (pic2) from gray 3d / light to
> the one uniform custom color. I thought that I should look in
> Frame.ColorXXXX, but it doesn't change anything until I set
> Frame.FrameWidth but 3d gray frame is still present when mouse is on
> button (pic3 and pic4). So where is setting? In FaceMouse?
>
The default frame and hover and click effect of buttons is drawn in client
area additionally to TButton.Frame. In order to switch it of activate
TButton.Frame.OptionsSkin fso_flat and fso_noanim.
In order to implement a custom hover frame it is possible to use
Frame.FrameImage_* properties. The index in FrameImage_List is the sum of
FrameImage_Offset* where * means the widget states. TimageList has an
additional TimageList.IndexLookup property which can be used to map multiple
stages to a single image index.
Another option is to use TFrame.FrameFace where an item of a TFaceList can be
selected depending on widget state.
An example is here:
https://gitlab.com/mseide-msegui/mseuniverse/tree/master/samples/widgets/buttons/hoverframe
it needs MSEgui git master e037c5246cfe1c3ac242f850762fbe6193a724fd.
I suggest to extend the frameimagemaker tool to a complete frame/face designer
which deals with the boring work of frame designing and widgetstate mapping.
> BTW: Is there official full documentation for MSEgui classes?
> Especialy for enums: options, optionsskin, optionswidget,
> optionswidget1, state, localprops, localprops1 and all similar
> properties in frame.* and face*.
TFrame and TFace are documented here:
http://wiki.freepascal.org/Reference:_MSEgui/TFrame
http://wiki.freepascal.org/Reference:_MSEgui/TFace
Martin
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk