Focus Rectangle lazarus / 31-LCL ---------------------------------------------------------------------- Blaazen · 2011-06-22 14:50 Hi, I use KDE4 and some desktop themes use focus rectangle and the others don't. Has Lazarus some function or boolean property to detect whether current desktop theme uses Focus Rectangle ? I need for my component - to make its design uniform. Thanks. ---------------------------------------------------------------------- JuhaManninen · 2011-06-22 17:56 Sounds like a KDE-only feature. Lazarus or LCL don't have it. You could try to connect to KDE API directly somehow but I don't know how. This is a typical problem with cross-platform GUI libraries. You only get a subset of of each target platform. Juha ---------------------------------------------------------------------- Blaazen · 2011-06-22 18:10 Juha, do you mean that all themes on all other (Win, GTK2 & Carbon) widgetsets have always Focus Rectange painted ? ---------------------------------------------------------------------- zeljko · 2011-06-25 21:25 Quote from: Blaazen on June 22, 2011, 04:50:41 pmHi, I use KDE4 and some desktop themes use focus rectangle and the others don't. Has Lazarus some function or boolean property to detect whether current desktop theme uses Focus Rectangle ? I need for my component - to make its design uniform. You don't need to know if it "uses" Focus Rectangle or not, you should send paint via Themes, so theme will paint it or not. It's easy with qt but don't know for others. Do you use LCLIntf.DrawFocusRect() or something else ? ---------------------------------------------------------------------- Blaazen · 2011-06-26 15:44 QuoteYou don't need to know if it "uses" Focus Rectangle or not, you should send paint via Themes, so theme will paint it or not. It's easy with qt but don't know for others. Do you use LCLIntf.DrawFocusRect() or something else ? How can I send paint via Themes ? For  example I use ThemeServices for painting button, highlighted button and so. I can use LCLIntf.DrawFocusRect() or Canvas.DrawFocusRect() and both draw FocusRect anyway (even if theme does not draw it).