Is it possible to change the color of the scrollbars of the webgadget? (without changing all the color scheme of windows theme/os?)
I have a nice app, but the webgadget has windows theme colors for stuff like scrollbars, etc. Is this changeable? What else in the webgadet can be modified color wise, if so?
Webgadget scrollbars and window colors
-
- Enthusiast
- Posts: 118
- Joined: Thu May 17, 2007 8:35 pm
- Location: USA
Re: Webgadget scrollbars and window colors
Code: Select all
HTML.s = "<html>" +
"<head>" +
"<style>" +
" body { " +
" scrollbar-base-color: red; " +
" scrollbar-face-color: yellow; " +
" scrollbar-3dlight-color: blue; " +
" scrollbar-highlight-color: green; " +
" scrollbar-track-color: orange; " +
" scrollbar-arrow-color: black; " +
" scrollbar-shadow-color: white; " +
" scrollbar-dark-shadow-color: silver; " +
" } " +
"</style>" +
"</head>" +
"<body>" +
"<h1>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut...</h1>" +
"<h1>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut...</h1>" +
"</body>" +
"</html>"
OpenWindow(0, 0, 0, 300, 300, "WebGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
WebGadget(0, 10, 10, 280, 280, "")
SetGadgetItemText(0, #PB_Web_HtmlCode, HTML)
Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindow
Hygge
-
- Enthusiast
- Posts: 118
- Joined: Thu May 17, 2007 8:35 pm
- Location: USA
Re: Webgadget scrollbars and window colors
Kiffi, thanks so much for the reply!
Is there any way to make this stay in place when you load a URL?
For instance to have the orange and yellow scrollbar that you made to be used when loading the page
www.purebasic.com
for instance..
I need to be able to customize the scrollbar of the webgadget when loading a page, if that's possible?
Is there any way to make this stay in place when you load a URL?
For instance to have the orange and yellow scrollbar that you made to be used when loading the page
www.purebasic.com
for instance..
I need to be able to customize the scrollbar of the webgadget when loading a page, if that's possible?