Hey guys and gals,
anyone ever get this to work properly with cascading or (sub menu's)? I've tried different parameters for the style including using the "color.menu_h_..." thinking maybe the 'h' stood for 'horizontal' which would affect the sub menu's but no go! I would think it should inherit the color choices from the top menu but it doesn't. So either I'm missing something or they never finished the code to make this work properly for cascading menu's.
I placed this code on a button on a form just to play with it.
I placed this code on the interactive window to get all of the enumerated color properties:
hoping it would shed some light, but after experimenting for awhile I still haven't succeeded in achieving the end result, which is color control over the sub menu's.
Of course, the documentation doesn't cover that aspect of the popup menu, any help from someone who figured this out would be helpful, thanks!
anyone ever get this to work properly with cascading or (sub menu's)? I've tried different parameters for the style including using the "color.menu_h_..." thinking maybe the 'h' stood for 'horizontal' which would affect the sub menu's but no go! I would think it should inherit the color choices from the top menu but it doesn't. So either I'm missing something or they never finished the code to make this work properly for cascading menu's.
I placed this code on a button on a form just to play with it.
Code:
'These are some of the enumerated properties that I thought could be used on the popup menu 'menu_h_background 'menu_h_text 'menu_h_highlight_background 'menu_h_highlight_text 'menu_v_background 'menu_v_text 'menu_v_highlight_background 'menu_v_highlight_text 'menu_v_left 'menu_v_right 'menu_v_disabled_background 'menu_v_disabled_text 'menu_h_disabled_background 'menu_h_disabled_text 'menu_v_disabled_highlight_background 'menu_v_disabled_highlight_text 'menu_h_disabled_highlight_background 'menu_h_disabled_highlight_text 'menu_h_flyover_highlight_background 'menu_h_flyover_highlight_text 'menu_h_background_grad 'menu_h_highlight_background_grad 'menu_v_background_grad 'menu_v_highlight_background_grad 'menu_v_left_grad 'menu_v_right_grad 'menu_v_disabled_background_grad 'menu_h_disabled_background_grad 'menu_v_disabled_highlight_background_grad 'menu_h_disabled_highlight_background_grad 'menu_h_flyover_highlight_background_grad 'BUTTON CODE: 'use ui_popup_styled_menu to display a right-click menu for the icon dim vMenuItems as C vMenuItems = <<%a% {I=$$window.restore}Restore A5 | {I=$$window.restore}Restore A5 {I=$$window.restore}Restore A5 | sub-selection Two Choice Two Choice Three %a% dim style as C style = <<%str% menu.v_item_min_leftx=0 color.menu_v_background=#20,20,20 color.menu_v_text=white color.menu_v_highlight_text=gold color.menu_v_highlight_background=gray-50 color.menu_v_highlight_background_grad=gray-50 color.menu_v_right=gray-80 color.menu_v_left=gray-80 font.menu=Tahoma,8,0 %str% dim Result as c = "" Result = ui_popup_styled_menu(vMenuItems,style) trace.write(Result)
Code:
?A5.SYSTEM_COLORS_GET()
Of course, the documentation doesn't cover that aspect of the popup menu, any help from someone who figured this out would be helpful, thanks!
Comment