Is it possible to make a treeview win7-like? Now it's winXP-like by default.
Terra Informatica Forums » htmlayout
Treeview style
(10 posts)-
Posted 2 years ago #
-
Yes, it is possible.
You just need to redefine these images:
option:has-children-of-type(option):collapsed, options:has-children:collapsed { foreground-image:url(theme:tree-view-glyph-closed); } option:has-children-of-type(option):expanded, options:has-children:expanded { foreground-image:url(theme:tree-view-glyph-open); }Posted 2 years ago # -
This code doesn't work, what am I doing wrong?
<html>
<head>
<style>
option:has-children-of-type(option):collapsed,
options:has-children:collapsed
{
foreground-image:url(theme:tree-view-glyph-closed);
}option:has-children-of-type(option):expanded,
options:has-children:expanded
{
foreground-image:url(theme:tree-view-glyph-open);
}
</style>
</head>
<body>
Select with 200 options:
<widget type="select">
<OPTIONS expanded>AFRICA
<OPTION>Algeria</OPTION>
<OPTION>Angola</OPTION>
<OPTION>Benin</OPTION>
<OPTION>Botswana</OPTION>
<OPTION>Burkina</OPTION>
</OPTIONS>
<OPTIONS expanded>AFRICA
<OPTION>Samoa</OPTION>
<OPTION>Solomon Islands</OPTION>
<OPTION>Tonga</OPTION>
<OPTION>Tuvalu</OPTION>
<OPTION>Vanuatu</OPTION>
</OPTIONS>
</widget>
</body>
</html>Posted 2 years ago # -
What exactly is not working there?
Posted 2 years ago # -
It works the same as without css at all. Regular XP-style tree-view.
Posted 2 years ago # -
This is
option:has-children-of-type(option):collapsed, options:has-children:collapsed { foreground-image:url(theme:tree-view-glyph-closed); }a definition found in master-CSS. ("Show master CSS" button on ScIDE toolbar, Sciter SDK)
As I said "you just need to redefine these images". To something like this:
option:has-children-of-type(option):collapsed, options:has-children:collapsed { foreground-image:url( my-tree-view-glyph-closed.png ); }This URL 'theme:tree-view-glyph-closed' points to pseudo image - delegation of drawing to uxtheme.dll on Windows. What you see is how it renders it.
I'll check later if uxtheme.h on W7 have any additional definitions of these glyphs.
Posted 2 years ago # -
Ok, thanks. BTW, except images there is one more big difference: option selection and hover background, it is complex gradient with rounded corners. Is it possible to make it by default?
Posted 2 years ago # -
In principle it is possible but the window should have
SetWindowTheme(hwnd, L\"Explorer\", NULL);In next build I'll add support for these images:
theme:list-view-item-normal theme:list-view-item-hover theme:list-view-item-selected theme:list-view-item-selected-not-focus theme:list-view-item-disabled theme:list-view-item-selected-hoverPosted 2 years ago # -
SetWindowTheme(htmLayoutHWND, L"Explorer", NULL)?
>In next build...
- It would be very cool.Posted 2 years ago # -
I do SetWindowTheme(m_hWnd, L"Explorer", NULL); // m_hWnd is CEngine::m_hWnd
and it's no sense. What's wrong here?Posted 2 years ago # -
In frankly,it's hard to be the NO.1 in [url=http://www.storeingame.com]RuneScape Gold[/url]
business.But it's possible,right?If we have enough resources,we can be the NO.1.Do not say I
can't.You should say I can.I want to be the NO.1 and I will be. [url=http://www.rsfarming.com/]
RuneScape Gold[/url]is a simple product.You needn't to worry about the quality.Just make sure you
offer best price and best service.If the buyers want to [url=http://www.zyy.com]Buy WOW Gold[/url]
,he would know my website.And he would remember my website.He would tell his friends my
website.To sell [url=http://www.gobuycheaprsgold.com]Cheap RS Gold[/url] is a business for
me.It's a way to earn money.And it's a way to earn my life.
Posted 2 years ago # -
Why suffer defeat any longer than you have to when the purchase of WOW gold([url= http://www.storeingame.comRuneScape Gold[/url]) can make victory
within your reach? If you have or are able to obtain all of the above mentioned items it is highly likely that you should be able to buy cheap WOW
gold([url= http://www.zyy.comBuy WOW Gold[/url]) for your World of Warcraft game. It can be used to purchase a number of items, including weapons.
These weapons are likely to help you in your quest to victory with the WOW gold([url= http://www.rsfarming.com/RuneScape Gold[/url]). If you are a
video gamer that regularly plays the World of Warcraft, but constantly end up being defeated before advancing in the game, you may be interested in
buying WOW gold([url= http://www.gobuycheaprsgold.comRS Gold[/url]).
Posted 2 years ago #
Reply
You must log in to post.