Page 1 of 1
Webgadget scrollbars and window colors
Posted: Wed Jun 24, 2020 6:34 pm
by Mike Yurgalavage
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?
Re: Webgadget scrollbars and window colors
Posted: Wed Jun 24, 2020 7:30 pm
by Kiffi
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
Re: Webgadget scrollbars and window colors
Posted: Thu Jun 25, 2020 1:18 am
by Mike Yurgalavage
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?