

I went into the Bitmap Style Designer (formerly known as Vcl Style Designer) and changed the font for the MenuItemTextNormal. When using Vcl styles this isn't possible any more if a StyleHook is registered for the component.
#DELPHI OBJECT INSPECTOR HOW TO#
I hope I've also given you some clues as to how to navigate the documentation to find out the answers to such questions for yourself.Ĭhanging font of TActionMainMenuBar when using Vcl styles Normally one could change the font of a TActionMainMenuBar or TMainMenu like this: And the equivalent to the VCL Brush property is Fill. More generally, the equivalent to the VCL Pen property are the Stroke properties. So, to answer your question you need to specify a value for StrokeDash. For FillRect, the fill is determined by the Fill property. For DrawRect, the outline is determined by Stroke, StrokeDash etc. The documentation for these methods tell you which properties influence the output. There you will find, amongst many others: DrawRect and FillRect. Notice the various properties that have stroke in their name: Stroke, StrokeCap, StrokeDash, StrokeJoin, StrokeThickness.Īlso take a look at the methods by clicking on the Methods link of the TCanvas documentation page. We recognise brush and font from VCL times, but what about stroke?Ĭlick on the Properties link at the top of the documentation link I gave above. Specifying the type of brush, stroke, and font to use.

How can I convert this to be able to use in Firemonkey? Wallstyle,pathstyle,solvedpathstyle:TPenStyle One of the librarys I use is VCL.Graphics for TpenStyle: VCL.graphics library to FMX I have been trying to convert a unit I had, from VCL to FMX.
#DELPHI OBJECT INSPECTOR CODE#
The TBitBtn doesn't uses style hook on these versions, so your only option is handle the CN_DRAWITEM message for the TBitBtncontrol and then add your own code to draw the button like is explained in this answer Delphi XE2 VCL styles, How to disable VCL styles on TBitBtn? Check this question Disabling TButton issue on a VCL styled form where I post a sample code that override the TButtonStyleHook.Paint method in this case to fix a bug, but you can adapt the same code for your own needs. You must create a new style hook derived from the TBitBtnStyleHook class and then override the DrawButton method. To modify the appearance of a TBitBtn using the Vcl Styles, depends of your Delphi version Essentially, I'd like to apply a different background image to the custom TBitBtn rather than the one included in the theme. I had it work with TLabel and TEdit, but I am not quite sure how to manage it for TButton or TBitBtn.
#DELPHI OBJECT INSPECTOR SKIN#
I have applied a VCL style to skin my whole application.įrom what I understood in reading on the web, I could define my own child class of the TBitBtn and then I could define a style hook for that given class. Override style of some TBitButtons when using VCL Styles I would like to be able to apply a certain style to a handful of BitBtn in an application I am working on.
