Menu
Windows XP: How to change the logon screen

Windows XP: How to change the logon screen

Layout modification

This section is now about modifying the complete layouts go. Since this requires a script language that Microsoft has obviously mixed together from various other languages, the level of difficulty increases noticeably. It is comparatively easy to make the image dimensions variable, so that we no longer need to stick to Microsoft's dimensions for our own graphics. In theory, every little thing can be changed with the script language. However, to get fully behind the source code it takes some time and practice. Therefore I will make the layout modification in a comparatively conventional way and in the simplest possible way. For each modification described below, you must not forget to click on 'Compile Script' before saving, otherwise the changes will be lost.

Briefing 1

As already mentioned at the beginning, Microsoft has combined the logon interface in the menu item 'UIFILE'. If you click on the resource, however, it appears to be empty. It may be on purpose, but the 'UIFILE' is by no means empty. If you use the scroll bar on the right, soappears from about the middle of the source code. In the first part, design schemes are defined for a number of, strictly speaking, nine. Each of these schemes will later be required for a specific part of the logon interface. The names of the styles make this clear. The style with the resid 'framess' defines the standard values ​​that apply to the surface unless otherwise agreed. In contrast, the style with the resid 'toppanelss' defines the settings for the upper strip. (The same applies to a modification of the respective name for 'bottompanelss', 'leftpanelss', 'rightpanelss', 'hotaccountlistss', 'accountlistss', 'passwordpaness' and 'scroller'). It should also be clear that each style is subdivided for itself. The standard values ​​for elements with and without id as well as for buttons and the like are set in separate sub-items.

Apparently no entries in UIFILE
When scrolling, the Contents visible

Briefing 2

To take the theory a little further, you should now scroll to the very end of the 'UIFILE' . There you will find the definition of the 'logon frame', which determines 98 percent of the appearance of the logon screen. The structure of the user display (logonaccount) and the password entry are also defined there. Of course, the definition of the logon screen is particularly interesting, as the previously defined styles are used here.

Defintion of the logon frame
Defintion of thePassword fields

Briefing 3

Before it comes to modifying the styles and the logon frame, I would like to say a few words about the structure of the lose the latter. Microsoft distinguishes between four basic sections in the definition of the logon frame. The first line of code that begins with introduces the entire layout. Furthermore, the standard style is specified in this line of code with sheet = styleref (framess). The next three lines of code define the upper part of the logon screen. However, since this contains nothing other than a blue background and a thin strip with a graphic, the code is correspondingly simple. With the help of sheet = styleref (toppanelss) the style is changed so that within the element that is also closed, the values ​​agreed in the style apply. All sub-elements contained in this element are also supplied with the settings of the enclosing element. After defining the upper part, Microsoft defines the lower strip, which contains e.g. the shutdown button (left) and a text message (right). A total of sixteen lines of code belong to the lower strip.

Allocation of the definition areas (1 )
Allocation of the definition areas (2)

Now that the lower and upper parts have been defined, only the rather complicated middle is missing. The definition of the part is introduced with element. This is followed first by the definition of the left-hand part, which comprises a total of twelve lines and, among other things, places both graphics dealt with in the section 'Image Modification' in their position. After a blank line, the agreement is made withthe right part on just six lines. With that the logon screen would be complete.

Briefing 4

Before we finally get to the layout -Modification of the logon screen starts, I would like to comment on some functions used by Microsoft, as these can be used at any point in the script. The command to include a graphic is probably the most important. Microsoft has chosen rcbmp for this, whereby a total of seven numbers separated by commas must be passed as parameters. The first number always refers to the number of the graphic to be loaded under which it is stored in the file. The next parameter seems to affect the way the next number is interpreted. If the second parameter is '6', the color of the transparent color is specified in the next position using a color code in HTML format. However, this only works if the graphic is used as a background graphic. The next two parameters transfer the width and the height of the graphic. A graphic 200 pixel wide and 100 pixel high is agreed e.g. by the parameters '200rp, 100rp'. If the value '0' is passed in both cases, the size of the graphic can vary. What the other parameters stand for is not yet known. With rcbmp (112.6, # FF00FF, 100pr, 100pr, 1.0) the graphic is loaded at position 112, specifically the background for a selected account, whereby the color # FF00FF should appear transparent and the image 100 pixels wide and should be high.

Another useful function is gradient. This function, which is used in connection with background: gradient (); occurs, ensures a gradient. The starting color, the target color and the type of color gradient must be defined as parameters. The definition of the colors is done using argb (alpha, red, green, blue), the definition of the type ofColor gradient using '1' or '0'. Here '0' causes a horizontal and '1' a vertical course. A complete color gradient function would e.g. show gradient (argb (0,255,0,0), argb (0,0,0,255), 0). The result is a horizontal color gradient from red to blue.

Pre-skirmish

Everything nice and good, but what is the benefit of knowing the commands and the structure? Seen in this way, a lot, since we only have to put our theoretical modifications into practice. At this point I refrain from overturning Microsoft's entire design. On the one hand, Microsoft has found a really good division and on the other hand, all colors and logos are coordinated with each other. Big changes can only be achieved with a lot of work. At this point I would just like to describe how it is possible to use our graphics manipulated in the section 'Image modification' without restricting the dimensions. If you want to go deeper into logonui.exe, you are welcome to look more closely at the already modified files , which can be downloaded at the end of the article.

On the next one Page: Step 1