Sign in to follow this  
Followers 0
DjDeep00

Scroll List Like the one in XP Media Center

6 posts in this topic

Does anyone know if it is possible to make some kind of gui look like the following? Have the list data fade as you move up and down the list.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

You'll need to use some GUI skinning, creating your own picture's etc. Probably won't be able to develop the total effect but fairly close.

Edited by Burrup

[u]Old Projects:[/u]A3MORGB2Hex[u]Old Functions:[/u]_TimeAdd/_TimeSub_AddComma_BubbleSort _RippleSort "He who does not understand your silence will probably not understand your words." - Elbert Hubbard.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Microsoft Windows Media Player provides functionality to change the overall appearance of the player itself through the use of "skins". Skins are custom overlays that consist of collections of one or more files of computer art, organized by an XML file. The XML file tells Windows Media Player how to use these files to display a skin as the user interface. In this manner, the user can choose from a variety of standard skins, each one providing an additional visual experience. Windows Media Player comes with several skins to choose from, but it is relatively easy to create and distribute custom skins.

I think that CWebPage.dll should be able to use skins but never tryed it...

kjactive :)

Edited by kjactive

Share this post


Link to post
Share on other sites

Can anyone give me an example because I dont know where to start.

Share this post


Link to post
Share on other sites

Can anyone please give me something to start from?

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

Well if you want to create/use skins you have to move some programming over in DHTML and XML language

The graphic attached is a colorfull 'cone of light' control and the DHTML code could look something like this:

<STYLE>.alpFilter {background-color:blue;filter:light();color:white}</STYLE><script>window.onload=fnInit;function fnInit(){
var iX2=Alp.offsetWidth;var iY2=Alp.offsetHeight;Alp.filters[0].addCone(0,0,1,iX2,iY2,255,250,90,50,180)}</SCRIPT>
<A HREF=str:1><DIV class="alpFilter" ID=Alp style="position:absolute;left:291;top:110;width:100;height:20;border:1 solid red;cursor:hand;text-decoration:none;text-align:center"
 onmousedown="this.style.left=293;this.style.top=112"
 onmouseup="this.style.left=291;this.style.top=110">
Text highlighted by a Cone</DIV></A>

You need an XML editor - there are some nice freeware stuff around and the CWebPage control that is embedded need the library CWebpage.dll in 'system32'...

CWebpage can be found here:

http://www.borg.com/~jglatt/cwebpage.zip

Here is a small example to use DHTML code in autoit3: needs Tul.jpg graphics as the background and the CWebpage library...

#include <GUIConstants.au3>
HotKeySet("ESC", "Exits")
$dll = DLLOpen("cwebpage.dll"); load in the Html library
If $dll = -1 then; check library load okay status or bust
    MsgBox(48,"ERROR...","CWebpage library failed...")
    Exit
EndIf

$Main = GUICreate("Graphics...",-1,-1,200,200,$WS_POPUP)
DLLCall($dll,"long","EmbedBrowserObject","hwnd",$Main); attach the browser object from library
GUISetState()
$a = '<BODY scroll=no><IMG style="position:absolute;left:0;top:0;width:110%;height:110%;padding:10;cursor:none" src="C:\UpLoad\HtmlStrings\Tul.jpg" alt="Help">'
$a = $a & '<STYLE>.alpFilter {background-color:blue;filter:light();color:white}</STYLE><script>window.onload=fnInit;function fnInit(){'
$a = $a & 'var iX2=Alp.offsetWidth;var iY2=Alp.offsetHeight;Alp.filters[0].addCone(0,0,1,iX2,iY2,255,250,90,50,180)}</SCRIPT>'
$a = $a & '<A HREF=str:1><DIV class="alpFilter" ID=Alp style="position:absolute;left:291;top:110;width:100;height:20;border:1 solid red;cursor:hand;text-decoration:none;text-align:center"'
$a = $a & ' onmousedown="this.style.left=293;this.style.top=112" onmouseup="this.style.left=291;this.style.top=110">Text highlighted by a Cone</DIV></A></BODY>'

DLLCall($dll,"long","DisplayHTMLStr","hwnd",$Main,"str",$a); display the html code in the browser control

While 1
    $msg = GUIGetMsg()
    Select
    Case $msg = -3
        ExitLoop
    EndSelect
WEnd

Func Exits()
    DLLCall($dll,"long","UnEmbedBrowserObject","hwnd",$Main)
    DLLClose($dll)
    Exit
EndFunc

ESC shortcut key quits window and closes library...

This is just some example scripts to get you started But you can do a lot lookwise in plain autoit3 gui like change background colors, resize controls but only to a point - no fancy stuff like flash files, roleover events, transitions etc....

kjactive :)

Edited by kjactive

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0