I get an access violation with the RichEdit Tool Bar when the app is themed. It works as expected without theming. I have tried various themes and the issue remains.
Here is the basic code that works without theming. ImageEnView1.LayersAdd( ielkText ); TIETextLayer( ImageEnView1.CurrentLayer ).EnableFormatting := True; TIETextLayer( ImageEnView1.CurrentLayer ).RichText := 'Double-Click To Edit'; TIETextLayer( ImageEnView1.CurrentLayer ).BorderColor := clBlack; TIETextLayer( ImageEnView1.CurrentLayer ).BorderWidth := 1; TIETextLayer( ImageEnView1.CurrentLayer ).FillColor := clWhite; ImageEnView1.Update();
I can't reproduce this. Can you forward me your demo and confirm what version of ImageEn and Delphi you are using. 32 or 64bit app? Also, what is the theme?
Hmm, your demo works fine when I test it here and I don't have a a 10.4 dev environment. You might want to email me for v15.5.5 or try the latest beta which has some TIERichEdit tweaks.
I tried the beta and still the same issue, I don't have a clue what it is. So I just I just disabled the popup and captured the layer to use a custom form to handle the formating.
Okay, I figured out both the issues I was having, the popup toolbar was due to a Delphi update and the richedit font color was due to themes over riding the font color.
There is one issue with the Popuptool bar When in layer properties and the text tab, it covers the other tabs. I did do some positioning in global setting but the results are not ideal. It might be useful to make it dragable.