How make transparent window
How make transparent window
Sorry my bad English but how i can make transparent window in linux. I need to do textgadget with transparent background and window. Transparent text i can draw with png but how to make windows transparent?
-
Anonymous
hello,you can make a transparent window with GTK. , this this :http://plan99.net/~mike/blog/?p=38
since GTK 2.12 you can simply use
where opacity is a range from 0.0 to 1.0
This only works if a compisite manager is running
To check that, use
where widget is the WindowID
for sure you have to import these funcions with the ImportC function
Code: Select all
gtk_window_set_opacity (*widget, opacity.f)
This only works if a compisite manager is running
To check that, use
Code: Select all
gtk_widget_is_composited (*widget)
for sure you have to import these funcions with the ImportC function
Code: Select all
ImportC
gtk_window_set_opacity (*widget, opacity.f)
gtk_widget_is_composited (*widget)
EndImport
@walker : which library must we import for using these functions ?walker wrote: for sure you have to import these funcions with the ImportC functionCode: Select all
ImportC gtk_window_set_opacity (*widget, opacity.f) gtk_widget_is_composited (*widget) EndImport


