IPB

ISO Image Creator | Cheap EQ2 gold - Buy EQ2 gold, EVE ISK, EQ Plat and more!

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Making the scrollbars display the correct bitmaps, by dmmason
bfarber
post Nov 29 2004, 02:26 PM
Post #1


Administrator
Group Icon

Group: Admin
Posts: 10,302
Joined: 9-February 03
From: Jacksonville, FL
Member No.: 1
 United States


This was originally posted by dmmason, and copied to the forums by bfarber

Part 1

Windows XP will insert scroll bars (code permitting) on logon screens. They appear automatically when the total size of the account list boxes exceeds the size of the panel in which the account lists are placed. The resolution of the screen is unimportant, but the number of accounts required will be less for the scroll bars to appear, the lower the resolution or smaller the panel. However, there are a number of problems when using the default logon screen UIFILE.

1) The code does not use bitmaps 109, 110 and 111.
2) There is presently a bug in Windows XP which prevents the scroll bar from appearing when using “switch user” and the appearance is set to Windows Classic style.
3) The code uses an internal command called “handlemap”, which Microsoft has not yet defined.
4) The code does not contain the necessary commands for horizontal scrolling.

This tutorial will show you how to make the scrollbars appear as you intend, and will also show you how to fix the problems associated with horizontal scrollbars.

Scrollbar Components

Attached File  image001.gif ( 3.11k ) Number of downloads: 187

Handlemap Command

The handlemap command has the following format:- handlemap(a), b, c.

Where a=1 ---- used by resid=scroller
a=2 ---- used by resid=listscroller
a=3 ---- used by resid=ARPSelector

b=1 ---- scroll arrow
b=2 ---- horizontal thumb
b=3 ---- vertical thumb
b=4 ---- page right
b=5 ---- page left
b=6 ---- page down
b=7 ---- page up
b=8 ---- horizontal thumb grip
b=9 ---- vertical thumb grip
b=10 ---- gripper

(c=1 - right gripper, c=2 - left gripper, other values of c not used)

c=1 ---- normal
c=2 ---- hot
c=3 ---- pressed
c=4 ---- disabled

Just to confuse the issue slightly, the c parameter is used for the type of arrow when b=1.

Value of c + 0 ---- lineup
c + 4 ---- linedown
c + 8 ---- lineleft
c + 12 ---- lineright

The actual colour is determined by the appearance scheme in use. (Blue [default], olive green or silver)

Changing Default Logon Screen to Horizontal Scrolling

The following procedure uses Resource Hacker:-

a) Enable automatic logon. This is to ensure you can return to windows after a reboot if you are unable to see the account boxes on the logon screen.

b) Copy the logonui.exe file from the windows\system32 directory (normally C:\Windows\System32) to a directory of your choice.

c) Open the file in Resource Hacker.

d) Click on + next to UIFILE. Click on + next to 1000. Click on 1033 (can vary depending on language in use). Scroll down to line 773 (number may alter with updates). It should read < style resid=scroller >. Highlight the text to end of section at line 873 (should read < /style >). Replace this section of the UIFILE with this: Attached File  DefaultHor.txt ( 3.82k ) Number of downloads: 224
. It includes the code for page left and page right and the left and right arrows.

e) In the element section of the UIFILE, near the end, look for the paragraph which beings and ends with scrollviewer. Change the following:- xscrollable=false to yscrollable=false and verticalflowlayout to flowlayout.

f) Click Compile Script.

g) Change orientation of bitmaps 109, 110 and 111. (See Changing Orientation)

h) Click File/Save to save the modified logonui.exe file.

i) Use Changer XP to replace the default logonui.exe file.

Changing Orientation of Bitmaps

Using Resource Hacker, select required bitmap in tree. e.g. Bitmap:109:1033.

a) Click Action/Save [Bitmap:109:1033]

b) Type in a useful name and click save.

c) Open saved bitmap into MS Paint (or your favourite graphics editor). Click Image/Flip/Rotate. Select Rotate by angle. Select 270° and click OK, then File/Save.

d) Return to Resource Hacker. Click Action/Replace Bitmap. Click Open file with new bitmap.

e) Locate new bitmap and click open. Click Replace.

f) Repeat steps a-e for bitmaps 110 and 111.

g) Click File/Save.


Part 2

To use your own designed scrollbars to match your colour scheme, you will need to invoke bitmaps 109, 110 and 111.

Replace the scroller section of your UIFILE with this: Attached File  Scroller.txt ( 4.41k ) Number of downloads: 263
. The code will also eliminate the switch user bug. It also includes the code for both vertical and horizontal scrolling. This is the basic code and can be modified as you wish. The colours remain the same for normal/hot/pressed states and the page up/down/left/right colour is white.

For designers who have moved the accounts to the left panel, the default code will usually put the scroll bar in the middle of the screen, spoiling the graphics. I would suggest the scroll bar is moved to the left side of the screen. To do this, change the scrollbar [vertical] layoutpos from nineright to nineleft.

Horizontal Scrollbars

A number of designers have started placing the accounts horizontally and without scroll bars this can cause problems for users. To enable horizontal scroll bars, carry out the following procedure:-

a) Enable automatic logon. This is to ensure you can return to windows after a reboot if you are unable to see the account boxes on the logon screen.

b) Open your logonui file with Resource Hacker.

c) Replace the scroller section of the UIFILE with this: Attached File  Scroller.txt ( 4.41k ) Number of downloads: 263
. It includes the code for page left, page right and the left and right arrows.

d) In the element section of the UIFILE, near the end, look for the paragraph which beings and ends with scrollviewer. Change the following:- xscrollable=false to yscrollable=false and verticalflowlayout to flowlayout.

e) Click Compile Script.

f) Change orientation of bitmaps 109, 110 and 111. (See Changing Orientation)

g) Save the logonui file.

h) Use Logon Loader or Style XP to make the logon screen active.
Attached File(s)
Attached File  Scroller.txt ( 4.41k ) Number of downloads: 263
 
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 20th July 2008 - 08:11 PM

  Page top

Webber Enhanced skin created by Im4eversmart of RuneHQ.

  Webmasters     Cool Sites     Money Network     Privacy Policy