Navigation: Ultimate Suite for PowerBuilder Help >

Global Theme

Send comments on this topic.

 

Themes can be set globally for all UI controls. In the Open event of your application, set your theme with the f_pbus_set_global_theme function:

f_pbus_set_global_theme("Windows10_BLUE")

When you're application closes (in the Application Close event or the Close event of your main frame window), you'll have to turn off global themes:

f_pbus_set_global_theme(FALSE)

If you wish to change your theme at any point, follow step one again. Not that this method ONLY sets the default theme for new controls. Calling this function will not change the theme of the controls that are already created. If you want your users to be able to change themes dynamically, you'll have to call of_SetTheme on all open controls. Note that this may be changed as an enhancement in the future.


Copyright © 2021 Werysoft Inc.