Modernice sus aplicaciones PowerBuilder

Windows Style Bar

Windows Style Bar duplica el aspecto y el comportamiento de la barra de tareas de las aplicaciones XP como el Control Panel.

Este control puede ser utilizado para agrupar funciones de una aplicación. Cada grupo puede contener enlaces, etiquetas y líneas.

Este control viene con 4 temas que pueden ser modificados en tiempo de ejecución.


Implementación

//Open Event of window that contains the controlwindows style bar
//Or the post constructor event of the userobject that contains the control
//Declare variable to hold parent handle
Long ll_parent

//Add first group to control with a blue header
ll_parent = uo_xplistbar.of_AddGroup('General', 'Mail.ico',
uo_xplistbar.SPECIAL)

//Add items to the group
uo_xplistbar.of_AddLink('Item One', 'Custom001!', ll_parent)
uo_xplistbar.of_AddLink('Item Two', 'Custom002!', ll_parent)

 //Add second group to the control (no image)
ll_parent = uo_xplistbar.of_AddGroup('Group Two', '')

 //Add items to second group
uo_xplistbar.of_AddLink('Item One', 'Average!', ll_parent)
uo_xplistbar.of_AddLink('Item Two', 'Custom005!', ll_parent)
uo_xplistbar.of_AddLine(ll_parent)
uo_xplistbar.of_AddLink('Item Three', 'Custom005!', ll_parent)

 

Volver a Controles