XP Style Listbar
Developed by Brad Wery
bradwery@gmail.com
-----------------------------------

This is my attempt at duplicating the look and feel of the listbar found in XP. Hopefully you will find it usefull.

Updates:
-----------------------------------

Here is the updated version of the XPListBar. All images have been moved to a subdirectory (XPListBarImages) to make things a little cleaner. The windows theme is determined and evaluated in the constructor event of u_dw_xplistbar. If your app is watching for theme changes you would just call of_ApplyTheme to update the look.



How To Use:
-----------------------------------
All code is encapsulated in u_dw_listbar and d_listbar. Add u_dw_listbar to your window and insert code in the constructor event as follows (refer to the constructor of dw_1 in w_select)


//Declare variable to hold a handle to the parent
Long ll_parent

//Add a parent item
ll_parent = THIS.of_AddItem('header','Header Text',0, '')

//Add children items to the parent
THIS.of_AddItem('child','Item One Text',ll_parent, 'one.bmp')
THIS.of_AddItem('child','Item Two Text',ll_parent, 'two.bmp')


--------------------------------
Function: of_AddItem
Return: Long
Parameters: Action - String   //What type of item you are adding (header, child or filler)
                   Item Text - String   //The text the item will display
                   Item Parent - Long   //The parent to the child. Header items have no parents, zero should be passed in this case.
                                                 //For child and filler actions pass the return code from the of_additem that inserted the header action.
                   Item Picture - String   //A file containing the image for an item. Only used for the child action.

--------------------------------


(Note: all other images are for the demo application)