1
votes

How can I use TSynEdit or TSynMemo with Delphi XE4 and apply a Delphi VCL Style? I have SynEdit installed but I can not drag & drop a TSynMemo component onto a form once I activated a VCL style in the app. Do I need to make some kind of change to the SynEdit source to allow for VCL Style to work?

1
I can't reproduce this issue in Berlin. Here's what I did: File->New->VCL Forms Application. Project->Options->Application->Appearance, checked several visual styles, and set Windows 10 as the default style. Closed the dialog, went to the Component Palette, typed Syn into the search box, and double-clicked a TSynMemo. It appeared on the form as usual. Re-opened the options dialog and changed to Amakrits as the style, closed the dialog, and ran the app. It worked (although the SynEdit wasn't styled). Do you have the most recent SynEdit installed?Ken White
And what exactly does can not drag & drop mean?Ken White
@KenWhite: "And what exactly does "can not drag & drop" mean?" - at design-time, users can visually drag a component from the Component Palette or Tools Palette and drop it on the Form Designer, instead of double-clicking or pressing Enter. So presumably the IDE is preventing the drop, or the component constructor is raising an exceptionRemy Lebeau
I'm suspecting you don't have the most recent SynEdit version, then. You may want to see if you can update it.Ken White
@ThomasJaeger "SynEdit component pallet does not even show up. It does show up under a normal Windows Application" - the palettes are context sensitive. So either the project is not in a context that SynEdit is registered for (VCL vs FMX), or maybe the Form Designer is not active, or maybe the project simply doesn't have the SynEdit packages loaded (packages can be loaded/unloaded on a per-project basis)Remy Lebeau

1 Answers

1
votes

I was using an older version of SynEdit. I used this version: TurboPack/SynEdit

Once I installed it, the SynEdit pallet showed up in the designer. However, I don't see it being skinned at all whereas all other standard controls are skinned.

I found solutions here and here using a TStyleHook.