|
From: Joe E. <jen...@fl...> - 2004-10-27 20:49:36
|
George Petasis wrote:
> I have managed to write my first themed widget
> (although is a plain button only :-)).
> However, one point still remains unclear.
> If I inherit my theme from the classic theme in TTK_CreateTheme,
> my drawing code (element in general) is not called, so I get the
> label on a gray background. If I don't use any parent theme,
> (i.e. placing NULL as the last parameter of the TTK_CreateTheme),
> everything works as expected. I am not sure I have understood
> why is this happening.
It's hard to say for sure without seeing your code, but:
the "classic" theme registers a different button layout,
maybe that's causing a conflict?
> Also, a side-effect of my attempt to create a themed widget, is that
> a partial link with Qt/KDE is feasible, at least in making the widgets
> look "similar" (apart from the fonts/font colours). In my test
> I used qApp->style().drawControl() to draw a button. The results
> in the attached image :-)
Wow :-) I'm impressed!
> PS: A very important notice is that tkTheme.c is badly missing
> handing for C++ compilers (
> #ifdef __cplusplus
> extern "C" {
> #endif ...)
Fixed now...
--Joe English
jen...@fl...
|