Hi guys,
I'm facing some problems with the automatic scrollbar of a dropdown widget. I would like to change the color of the arrows, thumb area and shaft using function DROPDOWN_SetScrollbarColor() but I still get a skinned scrollbar, even if I've removed skinning from the "father" dropdown widget.
How to remove skinning from automatic scrollbar of dropdown?
I've thought about calling routine WIDGET_SetEffect() on scrollbar, but how to get scrollbar handler to pass to this function?
Here my code
Display All
I'm facing some problems with the automatic scrollbar of a dropdown widget. I would like to change the color of the arrows, thumb area and shaft using function DROPDOWN_SetScrollbarColor() but I still get a skinned scrollbar, even if I've removed skinning from the "father" dropdown widget.
How to remove skinning from automatic scrollbar of dropdown?
I've thought about calling routine WIDGET_SetEffect() on scrollbar, but how to get scrollbar handler to pass to this function?
Here my code
Source Code
- /* Appearance.
- * - Remove skinning (which is the default configuration)
- * - Effect simple
- * - Frame color
- * - Background color
- * - Text Color
- */
- WIDGET_SetEffect( h_dropdown, &WIDGET_Effect_Simple ); DROPDOWN_SetSkinClassic( h_dropdown );
- DROPDOWN_SetBkColor( h_dropdown, DROPDOWN_CI_UNSEL, DROPDOWN_BACKGROUND_COLOR_DEFAULT );
- DROPDOWN_SetBkColor( h_dropdown, DROPDOWN_CI_SEL, DROPDOWN_BACKGROUND_COLOR_DEFAULT );
- DROPDOWN_SetBkColor( h_dropdown, DROPDOWN_CI_SELFOCUS, DROPDOWN_BACKGROUND_COLOR_SELECTED_FOCUS );
- DROPDOWN_SetColor( h_dropdown, DROPDOWN_CI_BUTTON, DROPDOWN_BACKGROUND_COLOR_BUTTON );
- DROPDOWN_SetTextColor( h_dropdown, DROPDOWN_CI_UNSEL, DROPDOWN_TEXT_COLOR_DEFAULT );
- DROPDOWN_SetTextColor( h_dropdown, DROPDOWN_CI_SEL, DROPDOWN_TEXT_COLOR_DEFAULT );
- DROPDOWN_SetTextColor( h_dropdown, DROPDOWN_CI_SELFOCUS, DROPDOWN_TEXT_COLOR_DEFAULT );
- // Scrollbar
- DROPDOWN_SetScrollbarWidth( h_dropdown, DROPDOWN_SCROLLBAR_WIDTH ); DROPDOWN_SetScrollbarColor( h_dropdown, SCROLLBAR_CI_THUMB, GUI_CYAN ); DROPDOWN_SetScrollbarColor( h_dropdown, SCROLLBAR_CI_SHAFT, GUI_CP_GRAY ); DROPDOWN_SetScrollbarColor( h_dropdown, SCROLLBAR_CI_ARROW, GUI_CP_ORANGE );