95 |
The control shows no icons. What can be the problem (32-bit, alpha channel vs 4-bit icons problem)
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oItems LOCAL oRadialMenu oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRadialMenu := XbpActiveXControl():new( oForm:drawingArea ) oRadialMenu:CLSID := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/ oRadialMenu:create(,, {10,60},{610,370} ) oRadialMenu:BeginUpdate() oRadialMenu:Expanded := .T. oRadialMenu:ImageSize := 32 oRadialMenu:Images("gBJJgBggAAQAAgAEEKAD/hz/EMNh8TIRNGwAjEZAEXjAojKAjMLjABhkaABAk0plUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbmiAQD/jL/r1fYFlsFctFptVrtltt0qsdgrz/srAs8NsNxut3t99v1/wGBwQAuNhwlks17veGjFiueLweRyWTymVm+FxsTw90xOdu2Ks2Mht60OW02n1GprWYiUTh+b0Gfz2c2W1u+30l21W73m93021mu4UO2Gz2O05HHyF4xu5vm/6HR6WB4PD61yxG25XG7na0vMhvL6fj8nlqXV6/p4ve9nX7ft5eO7PP831+33rtzsPp/mvx7uuS77bus97kLy/T8QTBUFpM9D+we7D3QA47RQC9rRQZDMNQTCEOs0/UQK/AkJxJC7Gw3FEUvLD0HsKh7Fv8r7NxG+EStvFUcRy3sWOs50YIdH8DRDCUattDEdSRJLIx4" +; "h64rizUXtDKLdSmsEYwjGkLRvJUuS6v0WRch0nyq1sgzNKUgNDIcsyPL03TerMWv1KsxuJMk7zTKk8ytPbWs3GbXxPOFB0Iqjrx9ND5NdM89QNPFHT7QK8QQ8FC0tS6ktdJy5yhPc6uvMtE0ZPlIQNQVMVRVNM0/T8g1a2c2UfUc/VPVVbVuobcU4186V24VQts61gVJWda1xY9kKDB6903EVeU8udPonWdJPpZNr2wm1F1g4bW2bRVh2/YUyWNbNzXOl1QSqvdY0jd0ttbX9y3Rel6pNAdn1M8F1Xe+KVXhe2A4FdMK4IzLhyDNuB4XhilXxeVK4biWJqXgGKYvjGM41jeOY7jycIqHyVZEjqPpCjKSJIkyDpxSWP5fmCZIC") oRadialMenu:Images("gBJJgBggAAQAAgAEEKAD/hz/EMNh8TIRNGwAjEZAEXjAojKAjMLjABhkaABAk0plUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTqlVq1XrFZrVbmiAkEar0gYFjrlls1ntFptVrllhjFeAFjYFtuFytl3vF5vV7vkmt1+sVku12lduwl9xGJxWLxk3v8Zh9vwNzweCy1zwt1smNzmdz2frePjGRyIAzWUy9x1OVzEqw2b0Gx2Wz2k10USf+43Wmyeq1G/33B1nBzO92vH5HJxO30kO3Wl0/C1fT4HDw8p6/K7Xb7lS5nO5u58OS6XV1Pj63U4kf6Pd93v+E57/i8H1+n38np82tlPo9Tstu+MBQHAjJK+yD7OfBLxt5BTcv08qWQg7MCwrC0KvHDMFwTBsOrg/z9wjCbYQvEsTPfDT8RS3ivucwjnQ8kEQRE/8SRPG8cNrFcVte4CJOJFzNrhBsZxG/kcyRJLOR3" +; "BK3Lc0sgsxKLRwezcYSHD8EwhJUuS6xEmNyv7nSfKcfxfKspTRKjiSxGUtRtL04zks8eSHKcyNzM0rTVPU0yBPkrq/LM8znQtDKy8cez/FjdTPRdHUhPdFsBQ9K0sqTIydQc1rtPEHU5SVIz9UVL1LUyo09T1HVU8831HUNYT9U9Z1op9PT7RkGSmu1dUBXz11rYNhKRFdOrhW872PTbI1JH9h2faCg2ZVr8R/TSQTFNVr0/XFo29b6cV7CMZ27MsYJVBlwXVdabShPl0Q5c133Zel6qxclz3tfV9qvdN+X/gGA4FgeCYLg2D4RhLFoqHyVYajqPpCjKSJIkyD3C+1CJYiaX44lx/nhfKVn+cAf41kZgAfk90EAAeVv60aXn8jAfpefiMA+l58IwA6XngjAHpecGcaFoiXaGAGc6PoyW6RpWm6YlmnaLpOqD/q2fIxq6XZuAGtpbruvpZsOZIRl6TH+RgD7OjSHbXjp/mftkEZFeG6pSgIA==") oItems := oRadialMenu:Items() oItems:Add("Icon 32-bit<br><c><img>1</img>") oItems:Add("Icon 4-bit<br><c><img>2</img>") oRadialMenu:EndUpdate() oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
94 |
ImageSize property on 32 (specifies the size of control' icons/images)
|
93 |
ImageSize property on 16 (specifies the size of control' icons/images)
|
92 |
How can I displays items rotated (exDisplayRadialRotated90)
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oItems LOCAL oRadialMenu oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRadialMenu := XbpActiveXControl():new( oForm:drawingArea ) oRadialMenu:CLSID := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/ oRadialMenu:create(,, {10,60},{610,370} ) oRadialMenu:BeginUpdate() oRadialMenu:Expanded := .T. oRadialMenu:PicturesPath := "C:\Program Files\Exontrol\ExRadialMenu\Sample\Images" oRadialMenu:SetProperty("HTMLPicture","arrow","arrow.png") oRadialMenu:SetProperty("SubItemsBackColor",AutomationTranslateColor( GraMakeRGBColor ( { 190,190,190 } ) , .F. )) oRadialMenu:SetProperty("ShadowColor",oRadialMenu:SubItemsBackColor()) oRadialMenu:SetProperty("RadialLineColor",6/*exRadialParentBorder*/,oRadialMenu:SubItemsBackColor()) oRadialMenu:SetProperty("RadialLineColor",5/*exRadialItemsGridLines*/,-1) oItems := oRadialMenu:Items() oItems:Add("Foreground","color_line.png"):Items():ToString := "Foreground" oItems:Add("Background","color_fill.png"):Items():ToString := "Background" oItems:Add("Font","format_font_size_less.png"):Items():ToString := "Font" oItems:Add("Undo","edit_undo.png"):Items():ToString := "Undo" oItems:Add("Redo","edit_redo.png"):Items():ToString := "Redo" oItems:Add("Copy","edit_copy.png"):Items():ToString := "Copy" oItems:Add("List","fileview_text.png"):Items():ToString := "List" oItems:Add("Tag","checkmark_korganizer.png"):Items():ToString := "Tag" oRadialMenu:SetProperty("DisplayRadial",1/*exRadialItems*/,4/*exDisplayRadialRotated90*/) oRadialMenu:EndUpdate() oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
91 |
How can I displays items rotated (exDisplayRadialRotated270)
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oItems LOCAL oRadialMenu oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRadialMenu := XbpActiveXControl():new( oForm:drawingArea ) oRadialMenu:CLSID := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/ oRadialMenu:create(,, {10,60},{610,370} ) oRadialMenu:BeginUpdate() oRadialMenu:Expanded := .T. oRadialMenu:PicturesPath := "C:\Program Files\Exontrol\ExRadialMenu\Sample\Images" oRadialMenu:SetProperty("HTMLPicture","arrow","arrow.png") oRadialMenu:SetProperty("SubItemsBackColor",AutomationTranslateColor( GraMakeRGBColor ( { 190,190,190 } ) , .F. )) oRadialMenu:SetProperty("ShadowColor",oRadialMenu:SubItemsBackColor()) oRadialMenu:SetProperty("RadialLineColor",6/*exRadialParentBorder*/,oRadialMenu:SubItemsBackColor()) oRadialMenu:SetProperty("RadialLineColor",5/*exRadialItemsGridLines*/,-1) oItems := oRadialMenu:Items() oItems:Add("Foreground","color_line.png"):Items():ToString := "Foreground" oItems:Add("Background","color_fill.png"):Items():ToString := "Background" oItems:Add("Font","format_font_size_less.png"):Items():ToString := "Font" oItems:Add("Undo","edit_undo.png"):Items():ToString := "Undo" oItems:Add("Redo","edit_redo.png"):Items():ToString := "Redo" oItems:Add("Copy","edit_copy.png"):Items():ToString := "Copy" oItems:Add("List","fileview_text.png"):Items():ToString := "List" oItems:Add("Tag","checkmark_korganizer.png"):Items():ToString := "Tag" oRadialMenu:SetProperty("DisplayRadial",1/*exRadialItems*/,3/*exDisplayRadialRotated270*/) oRadialMenu:EndUpdate() oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
90 |
How can I displays items rotated (exDisplayRadialRotated180)
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oItems LOCAL oRadialMenu oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRadialMenu := XbpActiveXControl():new( oForm:drawingArea ) oRadialMenu:CLSID := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/ oRadialMenu:create(,, {10,60},{610,370} ) oRadialMenu:BeginUpdate() oRadialMenu:Expanded := .T. oRadialMenu:PicturesPath := "C:\Program Files\Exontrol\ExRadialMenu\Sample\Images" oRadialMenu:SetProperty("HTMLPicture","arrow","arrow.png") oRadialMenu:SetProperty("SubItemsBackColor",AutomationTranslateColor( GraMakeRGBColor ( { 190,190,190 } ) , .F. )) oRadialMenu:SetProperty("ShadowColor",oRadialMenu:SubItemsBackColor()) oRadialMenu:SetProperty("RadialLineColor",6/*exRadialParentBorder*/,oRadialMenu:SubItemsBackColor()) oRadialMenu:SetProperty("RadialLineColor",5/*exRadialItemsGridLines*/,-1) oItems := oRadialMenu:Items() oItems:Add("Foreground","color_line.png"):Items():ToString := "Foreground" oItems:Add("Background","color_fill.png"):Items():ToString := "Background" oItems:Add("Font","format_font_size_less.png"):Items():ToString := "Font" oItems:Add("Undo","edit_undo.png"):Items():ToString := "Undo" oItems:Add("Redo","edit_redo.png"):Items():ToString := "Redo" oItems:Add("Copy","edit_copy.png"):Items():ToString := "Copy" oItems:Add("List","fileview_text.png"):Items():ToString := "List" oItems:Add("Tag","checkmark_korganizer.png"):Items():ToString := "Tag" oRadialMenu:SetProperty("DisplayRadial",1/*exRadialItems*/,2/*exDisplayRadialRotated180*/) oRadialMenu:EndUpdate() oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
89 |
How can I displays items rotated (exDisplayRadialRotated)
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oItems LOCAL oRadialMenu oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRadialMenu := XbpActiveXControl():new( oForm:drawingArea ) oRadialMenu:CLSID := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/ oRadialMenu:create(,, {10,60},{610,370} ) oRadialMenu:BeginUpdate() oRadialMenu:Expanded := .T. oRadialMenu:PicturesPath := "C:\Program Files\Exontrol\ExRadialMenu\Sample\Images" oRadialMenu:SetProperty("HTMLPicture","arrow","arrow.png") oRadialMenu:SetProperty("SubItemsBackColor",AutomationTranslateColor( GraMakeRGBColor ( { 190,190,190 } ) , .F. )) oRadialMenu:SetProperty("ShadowColor",oRadialMenu:SubItemsBackColor()) oRadialMenu:SetProperty("RadialLineColor",6/*exRadialParentBorder*/,oRadialMenu:SubItemsBackColor()) oRadialMenu:SetProperty("RadialLineColor",5/*exRadialItemsGridLines*/,-1) oItems := oRadialMenu:Items() oItems:Add("Foreground","color_line.png"):Items():ToString := "Foreground" oItems:Add("Background","color_fill.png"):Items():ToString := "Background" oItems:Add("Font","format_font_size_less.png"):Items():ToString := "Font" oItems:Add("Undo","edit_undo.png"):Items():ToString := "Undo" oItems:Add("Redo","edit_redo.png"):Items():ToString := "Redo" oItems:Add("Copy","edit_copy.png"):Items():ToString := "Copy" oItems:Add("List","fileview_text.png"):Items():ToString := "List" oItems:Add("Tag","checkmark_korganizer.png"):Items():ToString := "Tag" oRadialMenu:SetProperty("DisplayRadial",1/*exRadialItems*/,1/*exDisplayRadialRotated*/) oRadialMenu:EndUpdate() oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
88 |
How do I load images to sub-items zone
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oItem LOCAL oItems LOCAL oRadialMenu oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRadialMenu := XbpActiveXControl():new( oForm:drawingArea ) oRadialMenu:CLSID := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/ oRadialMenu:create(,, {10,60},{610,370} ) oRadialMenu:Expanded := .T. oRadialMenu:SubItemsSize := "48*dpi" oRadialMenu:PicturesPath := "C:\Program Files\Exontrol\ExRadialMenu\Sample\Images" oRadialMenu:SetProperty("RadialLineColor",9/*exRadialHotItem*/,AutomationTranslateColor( GraMakeRGBColor ( { 128,128,128 } ) , .F. )) oRadialMenu:SetProperty("RadialLineColor",10/*exRadialHotSubItem*/,AutomationTranslateColor( GraMakeRGBColor ( { 128,128,128 } ) , .F. )) oRadialMenu:SetProperty("RadialLineColor",11/*exRadialHotFullItem*/,-1) oItems := oRadialMenu:Items() oItem := oItems:Add("") oItem:SetProperty("Image",1/*exRadialItems*/,"favorites.png") oItem:SetProperty("Image",2/*exRadialSubItems*/,"download.png") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
87 |
How can I display the control directly on the screen
|
86 |
How do I add a radial-slider control
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oItem LOCAL oItems LOCAL oRadialMenu oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRadialMenu := XbpActiveXControl():new( oForm:drawingArea ) oRadialMenu:CLSID := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/ oRadialMenu:create(,, {10,60},{610,370} ) oRadialMenu:Expanded := .T. oRadialMenu:SetProperty("ShadowColor",-1) oRadialMenu:InflateItems := "-8*dpi" oRadialMenu:InflateCustom := oRadialMenu:InflateItems() oRadialMenu:SetProperty("ItemsBackColor",AutomationTranslateColor( GraMakeRGBColor ( { 240,240,240 } ) , .F. )) oRadialMenu:SetProperty("RadialLineColor",4/*exRadialCustomBorder*/,AutomationTranslateColor( GraMakeRGBColor ( { 0,0,0 } ) , .F. )) oRadialMenu:SetProperty("RadialLineStyle",4/*exRadialCustomBorder*/,2/*exRadialLineDot*/) oRadialMenu:SetProperty("RadialLineSize",4/*exRadialCustomBorder*/,3) oItems := oRadialMenu:Items() oItem := oItems:Add("Slider") oItem:BrowseType := 2/*exBrowseItemCustom*/ oItem:BrowseCustomType := 16/*exRadialCustomSlider*/ oItem:SetProperty("BrowseCustom",9/*exRadialCustomSliderValue*/,35) oRadialMenu:BrowseItem := oRadialMenu:Items:Item("Slider") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
85 |
How can I display a slider directly on the radial menu, with no items...
|
84 |
How can I programatically browses for a new item
|
83 |
How can I display the items rotated
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oRadialMenu oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRadialMenu := XbpActiveXControl():new( oForm:drawingArea ) oRadialMenu:CLSID := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/ oRadialMenu:create(,, {10,60},{610,370} ) oRadialMenu:BeginUpdate() oRadialMenu:Expanded := .T. oRadialMenu:PicturesPath := "C:\Program Files\Exontrol\ExRadialMenu\Sample\Images" oRadialMenu:SetProperty("HTMLPicture","arrow","arrow.png") oRadialMenu:Expanded := .T. oRadialMenu:Items():ToString := "Item 1(1,2),Item 2(1,2),Item 3(1,2),Item 4(1,2),Item 5(1,2),Item 6(1,2),Item 7(1,2),Item 8(1,2)" oRadialMenu:SetProperty("DisplayRadial",1/*exRadialItems*/,1/*exDisplayRadialRotated*/) oRadialMenu:SetProperty("DisplayCenter",1/*exRadialItems*/,0.05) oRadialMenu:EndUpdate() oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
82 |
Is it possible to display the arrow into the items section, and how I can change the default position
|
81 |
Can I display the arrow into the items section
|
80 |
How can I know if the cursor is hovering the center ring ( parent zone )
PROCEDURE OnMouseMove(oRadialMenu,Button,Shift,X,Y) DevOut( "ParentOnPoint " ) DevOut( Transform(oRadialMenu:ParentOnPoint(-1,-1),"") ) RETURN #include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oRadialMenu oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRadialMenu := XbpActiveXControl():new( oForm:drawingArea ) oRadialMenu:CLSID := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/ oRadialMenu:create(,, {10,60},{610,370} ) oRadialMenu:MouseMove := {|Button,Shift,X,Y| OnMouseMove(oRadialMenu,Button,Shift,X,Y)} /*Occurs when the user moves the mouse.*/ oRadialMenu:Expanded := .T. oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
79 |
How can I specify the size to display the images/pictures into the items
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oItems LOCAL oRadialMenu oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRadialMenu := XbpActiveXControl():new( oForm:drawingArea ) oRadialMenu:CLSID := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/ oRadialMenu:create(,, {10,60},{610,370} ) oRadialMenu:BeginUpdate() oRadialMenu:AllowToggleExpand := .F. oRadialMenu:PicturesPath := "C:\Program Files\Exontrol\ExRadialMenu\Sample\Images" oRadialMenu:SetProperty("ItemsImageHeight",1/*exRadialItems*/,"64*dpi") oRadialMenu:SetProperty("ItemsImageWidth",1/*exRadialItems*/,"64*dpi") oItems := oRadialMenu:Items() oItems:Add("","color_line.png") oItems:Add("","color_fill.png") oItems:Add("","format_font_size_less.png") oItems:Add("","edit_undo.png") oItems:Add("","edit_redo.png") oItems:Add("","edit_copy.png") oItems:Add("","fileview_text.png") oItems:Add("","checkmark_korganizer.png") oRadialMenu:EndUpdate() oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
78 |
By default, the parent image is 32-pixels wide. Can I display it larger
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oRadialMenu oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRadialMenu := XbpActiveXControl():new( oForm:drawingArea ) oRadialMenu:CLSID := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/ oRadialMenu:create(,, {10,60},{610,370} ) oRadialMenu:BeginUpdate() oRadialMenu:AllowToggleExpand := .F. oRadialMenu:PicturesPath := "C:\Program Files\Exontrol\ExRadialMenu\Sample\Images" oRadialMenu:SetProperty("HTMLPicture","logo","settings.png") oRadialMenu:ParentSize := "96 * dpi" oRadialMenu:SetProperty("ParentImageWidth",-1/*exRadialMenuStateAll*/,"64*dpi") oRadialMenu:SetProperty("ParentImageHeight",-1/*exRadialMenuStateAll*/,"64*dpi") oRadialMenu:SetProperty("ParentCaption",-1/*exRadialMenuStateAll*/,"<font ;14><c>System Settings</font><br><c>Surround") oRadialMenu:EndUpdate() oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
77 |
Is it possible to specify where to display the item's caption
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oRadialMenu oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRadialMenu := XbpActiveXControl():new( oForm:drawingArea ) oRadialMenu:CLSID := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/ oRadialMenu:create(,, {10,60},{610,370} ) oRadialMenu:BeginUpdate() oRadialMenu:Expanded := .T. oRadialMenu:Items():ToString := "Item 1(1,2),Item 2(1,2),Item 3(1,2),Item 4(1,2),Item 5(1,2),Item 6(1,2),Item 7(1,2),Item 8(1,2)" oRadialMenu:Items:Item(0):SetProperty("BackColor",3/*exRadialFullItems*/,AutomationTranslateColor( GraMakeRGBColor ( { 240,240,240 } ) , .F. )) oRadialMenu:SetProperty("DisplayCenter",1/*exRadialItems*/,0.85) oRadialMenu:EndUpdate() oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
76 |
How can I disable browsing the items, or prevent displaying its children
|
75 |
How do I get the item from the point
PROCEDURE OnMouseMove(oRadialMenu,Button,Shift,X,Y) DevOut( "Full-Item: " ) DevOut( Transform(oRadialMenu:ItemFromPoint(3/*exRadialFullItems*/,-1,-1)oRadialMenu:Caption(1/*exLayerCaptionBackColor*/),"") ) DevOut( "Item: " ) DevOut( Transform(oRadialMenu:ItemFromPoint(1/*exRadialItems*/,-1,-1)oRadialMenu:Caption(1/*exLayerCaptionBackColor*/),"") ) DevOut( "SubItem: " ) DevOut( Transform(oRadialMenu:ItemFromPoint(2/*exRadialSubItems*/,-1,-1)oRadialMenu:Caption(2/*exLayerCaptionForeColor*/),"") ) RETURN #include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oRadialMenu oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRadialMenu := XbpActiveXControl():new( oForm:drawingArea ) oRadialMenu:CLSID := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/ oRadialMenu:create(,, {10,60},{610,370} ) oRadialMenu:MouseMove := {|Button,Shift,X,Y| OnMouseMove(oRadialMenu,Button,Shift,X,Y)} /*Occurs when the user moves the mouse.*/ oRadialMenu:Expanded := .T. oRadialMenu:Items():ToString := "Item 1[scap=sub item 1],Item 2[scap=sub item 2],Item 3[scap=sub item 3],Item 4[scap=sub item 4],Item 5[scap=sub item 5],Item 6[scap=sub item 6],Item 7[scap=sub item 7],Item 8[scap=sub item 8]" oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
74 |
How do I get the index of the pie from the point
PROCEDURE OnMouseMove(oRadialMenu,Button,Shift,X,Y) DevOut( "Full-Index: " ) DevOut( Transform(oRadialMenu:IndexFromPoint(3/*exRadialFullItems*/,-1,-1),"") ) DevOut( "Index: " ) DevOut( Transform(oRadialMenu:IndexFromPoint(1/*exRadialItems*/,-1,-1),"") ) DevOut( "Sub-Index: " ) DevOut( Transform(oRadialMenu:IndexFromPoint(2/*exRadialSubItems*/,-1,-1),"") ) RETURN #include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oRadialMenu oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRadialMenu := XbpActiveXControl():new( oForm:drawingArea ) oRadialMenu:CLSID := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/ oRadialMenu:create(,, {10,60},{610,370} ) oRadialMenu:MouseMove := {|Button,Shift,X,Y| OnMouseMove(oRadialMenu,Button,Shift,X,Y)} /*Occurs when the user moves the mouse.*/ oRadialMenu:Expanded := .T. oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
73 |
How can I select an item
|
72 |
How can I use the sub-items zone only
|
71 |
Is it possible to display all items with a different rotation angle
|
70 |
How can I programatically advance / browse for the parent item (method 2)
PROCEDURE OnRClick(oRadialMenu) oRadialMenu:BrowseItem := oRadialMenu:BrowseItem:Parent() RETURN #include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oItem LOCAL oItems,oItems1 LOCAL oRadialMenu oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRadialMenu := XbpActiveXControl():new( oForm:drawingArea ) oRadialMenu:CLSID := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/ oRadialMenu:create(,, {10,60},{610,370} ) oRadialMenu:RClick := {|| OnRClick(oRadialMenu)} /*Occurs once the user right clicks the control.*/ oRadialMenu:Expanded := .T. oRadialMenu:DisplayArrow := 1/*exRadialItems*/ oItems := oRadialMenu:Items() oItem := oItems:Add("Volume") oItem:SetProperty("Caption",2/*exRadialSubItems*/,"slider") oItem:BrowseType := 2/*exBrowseItemCustom*/ oItem:BrowseCustomType := 16/*exRadialCustomSlider*/ oItems1 := oItems:Add("Item"):Items() oItems1:Add("Child 1") oItems1:Add("Child 2") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
69 |
How can I programatically advance / browse for the parent item (method 1)
PROCEDURE OnRClick(oRadialMenu) oRadialMenu:GoBack() RETURN #include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oItem LOCAL oItems,oItems1 LOCAL oRadialMenu oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRadialMenu := XbpActiveXControl():new( oForm:drawingArea ) oRadialMenu:CLSID := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/ oRadialMenu:create(,, {10,60},{610,370} ) oRadialMenu:RClick := {|| OnRClick(oRadialMenu)} /*Occurs once the user right clicks the control.*/ oRadialMenu:Expanded := .T. oRadialMenu:DisplayArrow := 1/*exRadialItems*/ oItems := oRadialMenu:Items() oItem := oItems:Add("Volume") oItem:SetProperty("Caption",2/*exRadialSubItems*/,"slider") oItem:BrowseType := 2/*exBrowseItemCustom*/ oItem:BrowseCustomType := 16/*exRadialCustomSlider*/ oItems1 := oItems:Add("Item"):Items() oItems1:Add("Child 1") oItems1:Add("Child 2") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
68 |
Can I display the pointer with a different angle
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oRadialMenu oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRadialMenu := XbpActiveXControl():new( oForm:drawingArea ) oRadialMenu:CLSID := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/ oRadialMenu:create(,, {10,60},{610,370} ) oRadialMenu:BeginUpdate() oRadialMenu:PicturesPath := "C:\Program Files\Exontrol\ExRadialMenu\Sample\Images" oRadialMenu:PointerPicture := "pointer.png" oRadialMenu:PointerPictureY := "y + (height-pheight)/2- 21*dpi" oRadialMenu:PointerPictureX := "x + (width-pwidth)/2 + 1 * dpi" oRadialMenu:AllowHotPointer := .F. oRadialMenu:ParentSize := "36*dpi" oRadialMenu:SetProperty("ParentImageHeight",-1/*exRadialMenuStateAll*/,"48*dpi") oRadialMenu:SetProperty("ParentImageWidth",-1/*exRadialMenuStateAll*/,"48*dpi") oRadialMenu:SetProperty("RadialLineSize",8/*exRadialHotParent*/,-1) oRadialMenu:SetProperty("RadialLineAlpha",8/*exRadialHotParent*/,32) oRadialMenu:SetProperty("RadialLineColor",11/*exRadialHotFullItem*/,-1) oRadialMenu:Expanded := .T. oRadialMenu:Items():ToString := "Item 1,Item 2,Item 3,Item 4,Item 5,Item 6,Item 7,Item 8" oRadialMenu:PointerAngle := 12 oRadialMenu:EndUpdate() oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
67 |
How can I use the pointer (select sample)
PROCEDURE OnSelectItem(oRadialMenu,Item) /*PointerIndex = Item.Index*/ oRadialMenu:SetProperty("SelectedIndex",3/*exRadialFullItems*/,oRadialMenu:PointerIndex()) RETURN #include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oRadialMenu oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRadialMenu := XbpActiveXControl():new( oForm:drawingArea ) oRadialMenu:CLSID := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/ oRadialMenu:create(,, {10,60},{610,370} ) oRadialMenu:SelectItem := {|Item| OnSelectItem(oRadialMenu,Item)} /*Notifies once the user selects an item.*/ oRadialMenu:BeginUpdate() oRadialMenu:PicturesPath := "C:\Program Files\Exontrol\ExRadialMenu\Sample\Images" oRadialMenu:PointerPicture := "pointer.png" oRadialMenu:SetProperty("SelBackAlpha",1/*exRadialItems*/,32) oRadialMenu:SetProperty("SelBackAlpha",2/*exRadialSubItems*/,128) oRadialMenu:PointerPictureY := "y + (height-pheight)/2- 21*dpi" oRadialMenu:PointerPictureX := "x + (width-pwidth)/2 + 1 * dpi" oRadialMenu:AllowHotPointer := .F. oRadialMenu:SetProperty("SelForeColor",3/*exRadialFullItems*/,AutomationTranslateColor( GraMakeRGBColor ( { 0,0,0 } ) , .F. )) oRadialMenu:ParentSize := "36*dpi" oRadialMenu:SetProperty("ParentImageHeight",-1/*exRadialMenuStateAll*/,"48*dpi") oRadialMenu:SetProperty("ParentImageWidth",-1/*exRadialMenuStateAll*/,"48*dpi") oRadialMenu:SetProperty("RadialLineSize",8/*exRadialHotParent*/,-1) oRadialMenu:SetProperty("RadialLineAlpha",8/*exRadialHotParent*/,32) oRadialMenu:SetProperty("RadialLineColor",11/*exRadialHotFullItem*/,-1) oRadialMenu:Expanded := .T. oRadialMenu:Items():ToString := "Item 1,Item 2,Item 3,Item 4,Item 5,Item 6,Item 7,Item 8" oRadialMenu:PointerIndex := 0 oRadialMenu:SetProperty("SelectedIndex",3/*exRadialFullItems*/,oRadialMenu:PointerIndex()) oRadialMenu:EndUpdate() oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
66 |
How can I use the pointer (hot sample)
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oRadialMenu oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRadialMenu := XbpActiveXControl():new( oForm:drawingArea ) oRadialMenu:CLSID := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/ oRadialMenu:create(,, {10,60},{610,370} ) oRadialMenu:BeginUpdate() oRadialMenu:PicturesPath := "C:\Program Files\Exontrol\ExRadialMenu\Sample\Images" oRadialMenu:PointerPicture := "pointer.png" oRadialMenu:PointerIndex := -1 oRadialMenu:PointerPictureY := "y + (height-pheight)/2- 21*dpi" oRadialMenu:PointerPictureX := "x + (width-pwidth)/2 + 1 * dpi" oRadialMenu:AllowHotPointer := .T. oRadialMenu:SetProperty("SelBackAlpha",3/*exRadialFullItems*/,128) oRadialMenu:SetProperty("SelForeColor",3/*exRadialFullItems*/,AutomationTranslateColor( GraMakeRGBColor ( { 0,0,0 } ) , .F. )) oRadialMenu:ParentSize := "36*dpi" oRadialMenu:SetProperty("ParentImageHeight",-1/*exRadialMenuStateAll*/,"48*dpi") oRadialMenu:SetProperty("ParentImageWidth",-1/*exRadialMenuStateAll*/,"48*dpi") oRadialMenu:SetProperty("RadialLineSize",8/*exRadialHotParent*/,-1) oRadialMenu:SetProperty("RadialLineAlpha",8/*exRadialHotParent*/,32) oRadialMenu:SetProperty("RadialLineColor",11/*exRadialHotFullItem*/,-1) oRadialMenu:Expanded := .T. oRadialMenu:Items():ToString := "Item 1(1),Item 2,Item 3(1),Item 4,Item 5,Item 6,Item 7,Item 8" oRadialMenu:EndUpdate() oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
65 |
Is it possible to apply the control's background picture on the parent zone too
|
64 |
Can I display the picture on the parent zone, a bit larger
|
63 |
Is it possible to assign a different background picture when displaying a slider/custom data
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oItem LOCAL oRadialMenu oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRadialMenu := XbpActiveXControl():new( oForm:drawingArea ) oRadialMenu:CLSID := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/ oRadialMenu:create(,, {10,60},{610,370} ) oRadialMenu:Expanded := .T. oRadialMenu:PicturesPath := "C:\Program Files\Exontrol\ExRadialMenu\Sample\Images" oRadialMenu:DisplayArrow := 1/*exRadialItems*/ oRadialMenu:Items():ToString := "[scap=Item 1],[scap=Item 2],[scap=Item 3],[scap=Item 4]" oRadialMenu:InflateRadialMenu := "-4*dpi" oRadialMenu:InflateCustom := "-4*dpi" oRadialMenu:CustomPicture := "Background\frontb.png" oRadialMenu:Items():ToString := "Item 1(Sub Child 1,Sub Child 2),Item 2[scap=slider],Item 3(1),Item 4,Item 5,Item 6,Item 7,Item 8" oItem := oRadialMenu:Items:Item("Item 2") oItem:BrowseType := 2/*exBrowseItemCustom*/ oItem:BrowseCustomType := 16/*exRadialCustomSlider*/ oRadialMenu:BrowseItem := oRadialMenu:Items:Item("Item 2") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
62 |
How can I customize the custom part of the control, the inside ring/circle
|
61 |
How do I prevent expanding / collapsing the radial menu
|
60 |
Is it possible to change the parent's picture/image when expanding collapsing the radial menu
PROCEDURE OnBrowseItem(oRadialMenu,Item) DevOut( "Current State: " ) DevOut( Transform(oRadialMenu:State(),"") ) RETURN PROCEDURE OnSelectParent(oRadialMenu) DevOut( "Current State: " ) DevOut( Transform(oRadialMenu:State(),"") ) RETURN #include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oItem LOCAL oRadialMenu oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRadialMenu := XbpActiveXControl():new( oForm:drawingArea ) oRadialMenu:CLSID := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/ oRadialMenu:create(,, {10,60},{610,370} ) oRadialMenu:BrowseItem := {|Item| OnBrowseItem(oRadialMenu,Item)} /*Notifies once the user browses for a new item.*/ oRadialMenu:SelectParent := {|| OnSelectParent(oRadialMenu)} /*Occurs once the user clicks the parent of the item.*/ oRadialMenu:PicturesPath := "C:\Program Files\Exontrol\ExRadialMenu\Sample\Images" oRadialMenu:Items():ToString := "Item 1(Sub Child 1,Sub Child 2),Item 2,Item 3(1),Item 4,Item 5,Item 6,Item 7,Item 8" oItem := oRadialMenu:Items:Item("Item 2") oItem:BrowseType := 2/*exBrowseItemCustom*/ oItem:BrowseCustomType := 16/*exRadialCustomSlider*/ oRadialMenu:SetProperty("ParentImage",0/*exRadialMenuCollapsed*/,"format_font_size_less.png") oRadialMenu:SetProperty("ParentImage",1/*exRadialMenuExpandedNoItems*/,"fileview_text.png") oRadialMenu:SetProperty("ParentImage",2/*exRadialMenuExpandedRootItem*/,"edit_undo.png") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
59 |
Is it possible to assign a different picture on the parent zone (center ring)
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oRadialMenu oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRadialMenu := XbpActiveXControl():new( oForm:drawingArea ) oRadialMenu:CLSID := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/ oRadialMenu:create(,, {10,60},{610,370} ) oRadialMenu:Expanded := .T. oRadialMenu:PicturesPath := "C:\Program Files\Exontrol\ExRadialMenu\Sample\Images" oRadialMenu:ParentSize := "48 * dpi" oRadialMenu:ParentPicture := "Background\frontb.png" oRadialMenu:Items():ToString := "Item 1(1),Item 2,Item 3(1),Item 4,Item 5,Item 6,Item 7,Item 8" oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
58 |
Is it possible to assign a different picture on the items zone (inner ring)
|
57 |
How can I change the control's background picture
|
56 |
How can I hide the line being shown around the item form the cursor
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oRadialMenu oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRadialMenu := XbpActiveXControl():new( oForm:drawingArea ) oRadialMenu:CLSID := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/ oRadialMenu:create(,, {10,60},{610,370} ) oRadialMenu:Expanded := .T. oRadialMenu:SetProperty("ShadowColor",-1) oRadialMenu:InflateItems := "-8*dpi" oRadialMenu:SetProperty("ItemsBackColor",AutomationTranslateColor( GraMakeRGBColor ( { 240,240,240 } ) , .F. )) oRadialMenu:SetProperty("RadialLineSize",11/*exRadialHotFullItem*/,0) oRadialMenu:Items():ToString := "Item 1(1),Item 2,Item 3(1),Item 4,Item 5,Item 6,Item 7,Item 8" oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
55 |
Is it possible to highlight items with children, with a different background color, for those arrow picture is shown (items, inner ring)
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oRadialMenu oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRadialMenu := XbpActiveXControl():new( oForm:drawingArea ) oRadialMenu:CLSID := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/ oRadialMenu:create(,, {10,60},{610,370} ) oRadialMenu:Expanded := .T. oRadialMenu:SetProperty("ShadowColor",-1) oRadialMenu:InflateItems := "-8*dpi" oRadialMenu:SetProperty("ItemsBackColor",AutomationTranslateColor( GraMakeRGBColor ( { 240,240,240 } ) , .F. )) oRadialMenu:SetProperty("RadialLineColor",13/*exRadialItemsChildren*/,AutomationTranslateColor( GraMakeRGBColor ( { 0,0,0 } ) , .F. )) oRadialMenu:SetProperty("RadialLineAlpha",13/*exRadialItemsChildren*/,64) oRadialMenu:SetProperty("RadialLineSize",13/*exRadialItemsChildren*/,-1) oRadialMenu:Items():ToString := "Item 1(1),Item 2,Item 3(1),Item 4,Item 5,Item 6,Item 7,Item 8" oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
54 |
Is it possible to highlight items with children, with a different background color, for those arrow picture is shown (subitems, outer ring)
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oRadialMenu oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRadialMenu := XbpActiveXControl():new( oForm:drawingArea ) oRadialMenu:CLSID := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/ oRadialMenu:create(,, {10,60},{610,370} ) oRadialMenu:Expanded := .T. oRadialMenu:SetProperty("ShadowColor",-1) oRadialMenu:InflateItems := "-8*dpi" oRadialMenu:SetProperty("ItemsBackColor",AutomationTranslateColor( GraMakeRGBColor ( { 240,240,240 } ) , .F. )) oRadialMenu:SetProperty("RadialLineColor",12/*exRadialSubItemsChildren*/,AutomationTranslateColor( GraMakeRGBColor ( { 0,0,0 } ) , .F. )) oRadialMenu:SetProperty("RadialLineAlpha",12/*exRadialSubItemsChildren*/,64) oRadialMenu:SetProperty("RadialLineSize",12/*exRadialSubItemsChildren*/,-1) oRadialMenu:Items():ToString := "Item 1(1),Item 2,Item 3(1),Item 4,Item 5,Item 6,Item 7,Item 8" oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
53 |
Is it possible to highlight the entire item, when cursor hovers it
|
52 |
How can I change the border around the subitems zone, when cursor hovers it ( outer ring )
|
51 |
How can I change the border around the subitems zone, when cursor hovers it ( outer ring )
|
50 |
How can I change the border around the items zone, when cursor hovers it ( inner ring )
|
49 |
How can I change the border around the parent zone, when cursor hovers it ( center ring )
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oRadialMenu oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRadialMenu := XbpActiveXControl():new( oForm:drawingArea ) oRadialMenu:CLSID := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/ oRadialMenu:create(,, {10,60},{610,370} ) oRadialMenu:Expanded := .T. oRadialMenu:SetProperty("ShadowColor",-1) oRadialMenu:InflateItems := "-8*dpi" oRadialMenu:SetProperty("ItemsBackColor",AutomationTranslateColor( GraMakeRGBColor ( { 240,240,240 } ) , .F. )) oRadialMenu:SetProperty("RadialLineColor",8/*exRadialHotParent*/,AutomationTranslateColor( GraMakeRGBColor ( { 0,0,0 } ) , .F. )) oRadialMenu:SetProperty("RadialLineStyle",8/*exRadialHotParent*/,2/*exRadialLineDot*/) oRadialMenu:SetProperty("RadialLineSize",8/*exRadialHotParent*/,3) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
48 |
How can I change the border around the items zone ( inner ring )
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oRadialMenu oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRadialMenu := XbpActiveXControl():new( oForm:drawingArea ) oRadialMenu:CLSID := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/ oRadialMenu:create(,, {10,60},{610,370} ) oRadialMenu:Expanded := .T. oRadialMenu:SetProperty("ShadowColor",-1) oRadialMenu:InflateItems := "-8*dpi" oRadialMenu:SetProperty("ItemsBackColor",AutomationTranslateColor( GraMakeRGBColor ( { 240,240,240 } ) , .F. )) oRadialMenu:SetProperty("RadialLineColor",7/*exRadialItemsBorder*/,AutomationTranslateColor( GraMakeRGBColor ( { 0,0,0 } ) , .F. )) oRadialMenu:SetProperty("RadialLineStyle",7/*exRadialItemsBorder*/,2/*exRadialLineDot*/) oRadialMenu:SetProperty("RadialLineSize",7/*exRadialItemsBorder*/,3) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
47 |
How can I change the border around the parent zone ( center ring )
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oRadialMenu oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRadialMenu := XbpActiveXControl():new( oForm:drawingArea ) oRadialMenu:CLSID := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/ oRadialMenu:create(,, {10,60},{610,370} ) oRadialMenu:Expanded := .T. oRadialMenu:SetProperty("ShadowColor",-1) oRadialMenu:InflateItems := "-8*dpi" oRadialMenu:SetProperty("ItemsBackColor",AutomationTranslateColor( GraMakeRGBColor ( { 240,240,240 } ) , .F. )) oRadialMenu:SetProperty("RadialLineColor",6/*exRadialParentBorder*/,AutomationTranslateColor( GraMakeRGBColor ( { 0,0,0 } ) , .F. )) oRadialMenu:SetProperty("RadialLineStyle",6/*exRadialParentBorder*/,2/*exRadialLineDot*/) oRadialMenu:SetProperty("RadialLineSize",6/*exRadialParentBorder*/,3) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
46 |
How can I change the grid lines in the items zone ( inner ring )
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oRadialMenu oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRadialMenu := XbpActiveXControl():new( oForm:drawingArea ) oRadialMenu:CLSID := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/ oRadialMenu:create(,, {10,60},{610,370} ) oRadialMenu:Expanded := .T. oRadialMenu:SetProperty("ShadowColor",-1) oRadialMenu:InflateItems := "-8*dpi" oRadialMenu:SetProperty("ItemsBackColor",AutomationTranslateColor( GraMakeRGBColor ( { 240,240,240 } ) , .F. )) oRadialMenu:SetProperty("RadialLineColor",5/*exRadialItemsGridLines*/,AutomationTranslateColor( GraMakeRGBColor ( { 0,0,0 } ) , .F. )) oRadialMenu:SetProperty("RadialLineStyle",5/*exRadialItemsGridLines*/,2/*exRadialLineDot*/) oRadialMenu:SetProperty("RadialLineSize",5/*exRadialItemsGridLines*/,3) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
45 |
How can I change the border around the slider / custom part of the control
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oItem LOCAL oItems LOCAL oRadialMenu oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRadialMenu := XbpActiveXControl():new( oForm:drawingArea ) oRadialMenu:CLSID := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/ oRadialMenu:create(,, {10,60},{610,370} ) oRadialMenu:Expanded := .T. oRadialMenu:SetProperty("ShadowColor",-1) oRadialMenu:InflateItems := "-8*dpi" oRadialMenu:InflateCustom := oRadialMenu:InflateItems() oRadialMenu:SetProperty("ItemsBackColor",AutomationTranslateColor( GraMakeRGBColor ( { 240,240,240 } ) , .F. )) oRadialMenu:SetProperty("RadialLineColor",4/*exRadialCustomBorder*/,AutomationTranslateColor( GraMakeRGBColor ( { 0,0,0 } ) , .F. )) oRadialMenu:SetProperty("RadialLineStyle",4/*exRadialCustomBorder*/,2/*exRadialLineDot*/) oRadialMenu:SetProperty("RadialLineSize",4/*exRadialCustomBorder*/,3) oItems := oRadialMenu:Items() oItem := oItems:Add("Slider") oItem:BrowseType := 2/*exBrowseItemCustom*/ oItem:BrowseCustomType := 16/*exRadialCustomSlider*/ oRadialMenu:BrowseItem := oRadialMenu:Items:Item("Slider") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
44 |
How can I change the grid lines in the subitems zone ( outer ring )
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oRadialMenu oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRadialMenu := XbpActiveXControl():new( oForm:drawingArea ) oRadialMenu:CLSID := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/ oRadialMenu:create(,, {10,60},{610,370} ) oRadialMenu:Expanded := .T. oRadialMenu:SetProperty("ShadowColor",-1) oRadialMenu:InflateItems := "-8*dpi" oRadialMenu:SetProperty("ItemsBackColor",AutomationTranslateColor( GraMakeRGBColor ( { 240,240,240 } ) , .F. )) oRadialMenu:SetProperty("RadialLineColor",3/*exRadialSubItemsGridLines*/,AutomationTranslateColor( GraMakeRGBColor ( { 0,0,0 } ) , .F. )) oRadialMenu:SetProperty("RadialLineStyle",3/*exRadialSubItemsGridLines*/,2/*exRadialLineDot*/) oRadialMenu:SetProperty("RadialLineSize",3/*exRadialSubItemsGridLines*/,3) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
43 |
How can I change the border around the subitems (exRadialSubItemsBorder)
|
42 |
How can I change the border around the radial menu (exRadialBorder)
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oRadialMenu oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRadialMenu := XbpActiveXControl():new( oForm:drawingArea ) oRadialMenu:CLSID := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/ oRadialMenu:create(,, {10,60},{610,370} ) oRadialMenu:Expanded := .T. oRadialMenu:SetProperty("ShadowColor",-1) oRadialMenu:InflateItems := "-8*dpi" oRadialMenu:SetProperty("ItemsBackColor",AutomationTranslateColor( GraMakeRGBColor ( { 240,240,240 } ) , .F. )) oRadialMenu:SetProperty("RadialLineColor",1/*exRadialBorder*/,AutomationTranslateColor( GraMakeRGBColor ( { 0,0,0 } ) , .F. )) oRadialMenu:SetProperty("RadialLineStyle",1/*exRadialBorder*/,2/*exRadialLineDot*/) oRadialMenu:SetProperty("RadialLineSize",1/*exRadialBorder*/,3) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
41 |
How can I customize the parent part of the control, the center ring/circle
|
40 |
How can I prevent showing the arrow in the outer ring
|
39 |
Is it possible to change the default arrow, that items with children display (method 2)
|
38 |
Is it possible to change the default arrow, that items with children display (method 1)
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oRadialMenu oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRadialMenu := XbpActiveXControl():new( oForm:drawingArea ) oRadialMenu:CLSID := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/ oRadialMenu:create(,, {10,60},{610,370} ) oRadialMenu:SetProperty("HTMLPicture","arrow","gCJKBOI4NBQaBQAhQNJJIIhShQAEEREAIA0ROZ6PT0iIEOZCJJUBEjBB8BBkRERAJzKRHIQAVzODjpjpnIJNIMKWKPBb8MIFiIJOBILJzhQLCdHCYBACaTgYiJfJJEIJULBHdrOYIJQAwCBEaK1FQbeaoYwGVjLWR0EgJRAEBpICwPf7BY4cQgdAYAcCjUCWfD0G6rHrlHziPTcPrEUjuY5zZpHHgdZ41DYxVTSYJSaojXT0PrTVZBar+P5aaoWT8KfiWbIBZQ1ErVPbDPyYiIAJJFJxEVxCMCCgIA==") oRadialMenu:Expanded := .T. oRadialMenu:Items():ToString := "Child(SubChild)" oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
37 |
How can I change the logo image
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oRadialMenu oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRadialMenu := XbpActiveXControl():new( oForm:drawingArea ) oRadialMenu:CLSID := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/ oRadialMenu:create(,, {10,60},{610,370} ) oRadialMenu:SetProperty("HTMLPicture","logo","C:\Program Files\Exontrol\ExRadialMenu\Sample\Images\favorites.png") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
36 |
How can I customize the items part of the control, the inside ring/circle
|
35 |
How can I customize the subitems part of the control, the outside ring/circle
|
34 |
Can I expand/shrink the radial menu relative to its border/shadow
|
33 |
Is it possible to remove/hive the control's shadow
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oRadialMenu oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRadialMenu := XbpActiveXControl():new( oForm:drawingArea ) oRadialMenu:CLSID := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/ oRadialMenu:create(,, {10,60},{610,370} ) oRadialMenu:Expanded := .T. oRadialMenu:SetProperty("ShadowColor",-1) oRadialMenu:Items():ToString := "Item 1,Item 2,Item 3,Item 4" oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
32 |
How do I change the color of the control's shadow
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oRadialMenu oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRadialMenu := XbpActiveXControl():new( oForm:drawingArea ) oRadialMenu:CLSID := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/ oRadialMenu:create(,, {10,60},{610,370} ) oRadialMenu:Expanded := .T. oRadialMenu:SetProperty("ShadowColor",AutomationTranslateColor( GraMakeRGBColor ( { 255,0,0 } ) , .F. )) oRadialMenu:Items():ToString := "Item 1,Item 2,Item 3,Item 4" oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
31 |
How can I evaluate/format an expression using the control
|
30 |
Is it possible to display some extra captions on the control's background
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oRadialMenu oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRadialMenu := XbpActiveXControl():new( oForm:drawingArea ) oRadialMenu:CLSID := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/ oRadialMenu:create(,, {10,60},{610,370} ) oRadialMenu:BeginUpdate() oRadialMenu:Expanded := .T. oRadialMenu:MinVisibleCount := 6 oRadialMenu:Items():ToString := "Item 1,Item 2,Item 3,Item 4" oRadialMenu:SetProperty("Caption",0/*exLayerCaption*/,"This is a caption to be displayed on the control's background.") oRadialMenu:SetProperty("ExtraCaption","extra",0/*exLayerCaption*/,"This is an extra caption to be displayed on the control's background.") oRadialMenu:SetProperty("ExtraCaption","extra",3/*exLayerCaptionAnchor*/,2) oRadialMenu:SetProperty("ExtraCaption","extra",8/*exLayerCaptionWordWrap*/,.T.) oRadialMenu:SetProperty("ExtraCaption","extralogo",0/*exLayerCaption*/,"<img>logo:64</img>") oRadialMenu:SetProperty("ExtraCaption","extralogo",3/*exLayerCaptionAnchor*/,4) oRadialMenu:SetProperty("ExtraCaption","extralogo",4/*exLayerCaptionLeft*/,"width-twidth") oRadialMenu:EndUpdate() oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
29 |
What events the control supports
PROCEDURE OnEvent(oRadialMenu,EventID) DevOut( Transform(oRadialMenu:EventParam(-2),"") ) RETURN #include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oRadialMenu oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRadialMenu := XbpActiveXControl():new( oForm:drawingArea ) oRadialMenu:CLSID := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/ oRadialMenu:create(,, {10,60},{610,370} ) oRadialMenu:Event := {|EventID| OnEvent(oRadialMenu,EventID)} /*Notifies the application once the control fires an event.*/ oRadialMenu:BeginUpdate() oRadialMenu:Expanded := .T. oRadialMenu:Items():ToString := "Item 1,Item 2,Item 3,Item 4" oRadialMenu:EndUpdate() oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
28 |
How can I use/load images/pictures
|
27 |
Does your control supports tooltips (method 2)
PROCEDURE OnMouseMove(oRadialMenu,Button,Shift,X,Y) oRadialMenu:ShowToolTip(Transform(oRadialMenu:FormatABC("`Index of the pie from the cursor: ` + (value >= 0 ? value : `<fgcolor=808080>none` )",oRadialMenu:IndexFromPoint(3/*exRadialFullItems*/,-1,-1)),""),"Info",0,"8","8") RETURN #include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oItems LOCAL oRadialMenu oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRadialMenu := XbpActiveXControl():new( oForm:drawingArea ) oRadialMenu:CLSID := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/ oRadialMenu:create(,, {10,60},{610,370} ) oRadialMenu:MouseMove := {|Button,Shift,X,Y| OnMouseMove(oRadialMenu,Button,Shift,X,Y)} /*Occurs when the user moves the mouse.*/ oRadialMenu:BeginUpdate() oRadialMenu:DisplayAngle := -45 oRadialMenu:Expanded := .T. oItems := oRadialMenu:Items() oItems:ToString := "Item 0" oItems:Add("Item 1") oItems:Add("Item 2") oRadialMenu:EndUpdate() oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
26 |
Can I change the visual appearance of the control's tooltip
|
25 |
Does your control supports tooltips (method 1)
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oItem LOCAL oItems LOCAL oRadialMenu oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRadialMenu := XbpActiveXControl():new( oForm:drawingArea ) oRadialMenu:CLSID := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/ oRadialMenu:create(,, {10,60},{610,370} ) oRadialMenu:DisplayAngle := -45 oRadialMenu:Expanded := .T. oItems := oRadialMenu:Items() oItems:ToString := "Item 0[ttp=tooltip's item][sttp=tooltip's subitem]" oItems:Add("Item 1"):SetProperty("Tooltip",1/*exRadialItems*/,"This is a bit of text that shown when user <b>hovers</b> the item") oItem := oItems:Add("Item 2") oItem:SetProperty("Tooltip",1/*exRadialItems*/,"This is a bit of text that shown when user hovers the item") oItem:SetProperty("Tooltip",2/*exRadialSubItems*/,"This is a bit of text that shown when user hovers the sub-item") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
24 |
How can I use/load icons
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oItems LOCAL oRadialMenu oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRadialMenu := XbpActiveXControl():new( oForm:drawingArea ) oRadialMenu:CLSID := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/ oRadialMenu:create(,, {10,60},{610,370} ) oRadialMenu:BeginUpdate() oRadialMenu:Expanded := .T. oRadialMenu:PicturesPath := "C:\Program Files\Exontrol\ExRadialMenu\Sample\Images\Icons" oRadialMenu:Images("copy.ico") oRadialMenu:Images("C:\Program Files\Exontrol\ExRadialMenu\Sample\Images\Icons\dvd.ico") oRadialMenu:Images("gBJJgBggAAQAAgACEKAD/hz/EMNh8TIRNGwAjEZAEXjAojJAjMLjABAAgjUYkUnlUnOktd54mD/lp0f5wmz/Ns5f5qnj/NE/f5noT/M1FolGopmo9KpNLpxfqDvldTqlVq1XrFZrVbrldr1fjKPsT/ftlf72er0s71er/e72e1ut9ye90uz3vF3vN4ut8u1NsGBwWDwmFw2DUWJf9peb/UyXSj/Yq+Xj/Y7BX7/ZLDYL/ZTFYeeYrEf7LY2kZbHYul1T/arTaT/Kq4Kb/G7IGz/cD5cD/Ne/f+H4XD4nF41UWvJxb0xq4Viqf66V6sf68WKvf69WSw7KzWL/Xy0WXg8T/X/l8/jbzcbb/MDAL/uanxcb7cb/Pv54PH/n9/z/qsY8BOWxq0LUtC2reuK8QWvcHL7B67HAeTem2er2n0fx9H+SEOv3AEQRDETDl/Ep3mWZJkH+ZhlGUf5mmWZcXmZGUaRkZRkmSf5kQG0bSGEYTOmBErsl4ypdFyXJ/lu" +; "W5bH+WkoH+TEpqlEcrSvLCsKEM5Am6bT2n4eq6zDMcxH/MkzzMfZ6LifR5rafB4wKd54H+eR1HWf52nIcp/nKbhun+SpJEkf4aUOQMs0VRdFAbRwImfSJ/nyeS1TQclAH+fR7Lqc52PuGBVBgf4klaIx/mMYRbs8XEnGZIc9T4f5vmua5/j3XB/gPXYI0ZX1fwAgiCD/YhPnIcJxTSup+nyfZ/nceh2n+HRYh4f4HFCCNr2zaZYh2f51ngdB/nwea1T3PpbFk8Yn3aT9hJJYF5Xm4V4A1e4Q0iZ9J0rZ54HSf4glqIh/gwU4OH+FxahxhOF4Lg5/iAWYhH+chzG8f5znAcJ/ksSpKn+CORBDeF6ZNk6wXheA5ZYR5gmUYWIlkIp/g+VgTH+Gxc4oJRiiyf4jmGKuc53mubn+HBVB8f5MlETR/itqJH5VYWUatq6r6pqgQkeE5nhSWIYn/sGxbIf4wmmOp/imZQybHsO37LuGua9rWVaxvG8ozu2+a0GZ" +; "bh6f48nCSKgmsPh/7/wO+8Zqu9cfq3G8aFBaYYL5tEIf4omgOJ/8phnJcZyHR5N0O+gqVgUn+Fhgisf4TF4JZ/9R1XTb50ncWB227AiUgQ5D33gd/3vf93rXc+RRaKh8lfmI6j6Q72AF4oyQDBIf5N6IC") oRadialMenu:SetProperty("HTMLPicture","icon","download.ico") oItems := oRadialMenu:Items() oItems:ToString := "Icon 0[img=0]" oItems:Add("Icon 1",1) oItems:Add("Icon 2","print.ico") oItems:Add("Icon 3"):SetProperty("Image",2/*exRadialSubItems*/,"icon") oRadialMenu:EndUpdate() oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
23 |
How can I load items /images to the control, in sub-items zone
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oItems LOCAL oRadialMenu oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRadialMenu := XbpActiveXControl():new( oForm:drawingArea ) oRadialMenu:CLSID := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/ oRadialMenu:create(,, {10,60},{610,370} ) oRadialMenu:BeginUpdate() oRadialMenu:AllowToggleExpand := .F. oRadialMenu:PicturesPath := "C:\Program Files\Exontrol\ExRadialMenu\Sample\Images" oRadialMenu:SetProperty("HTMLPicture","logo","settings.png") oRadialMenu:SetProperty("RadialLineColor",6/*exRadialParentBorder*/,oRadialMenu:SubItemsBackColor()) oRadialMenu:SetProperty("RadialLineColor",5/*exRadialItemsGridLines*/,-1) oRadialMenu:SubItemsSize := "64 * dpi" oRadialMenu:ParentSize := "value - 66 * dpi" oRadialMenu:SetProperty("ParentImageWidth",-1/*exRadialMenuStateAll*/,"64*dpi") oRadialMenu:SetProperty("ParentImageHeight",-1/*exRadialMenuStateAll*/,"64*dpi") oRadialMenu:SetProperty("ParentCaption",-1/*exRadialMenuStateAll*/,"<font ;14><c>System Settings</font><br><c>Surround") oRadialMenu:SetProperty("RadialLineSize",11/*exRadialHotFullItem*/,0) oRadialMenu:SetProperty("RadialLineSize",10/*exRadialHotSubItem*/,-1) oRadialMenu:SetProperty("RadialLineColor",10/*exRadialHotSubItem*/,0x8000000d) oRadialMenu:SetProperty("RadialLineAlpha",10/*exRadialHotSubItem*/,128) oRadialMenu:SetProperty("ItemsBackColor",oRadialMenu:SubItemsBackColor()) oItems := oRadialMenu:Items() oItems:Add("","color_line.png",2) oItems:Add("","color_fill.png",2) oItems:Add("","format_font_size_less.png",2) oItems:Add("","edit_undo.png",2) oItems:Add("","edit_redo.png",2) oItems:Add("","edit_copy.png",2) oItems:Add("","fileview_text.png",2) oItems:Add("","checkmark_korganizer.png",2) oRadialMenu:EndUpdate() oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
22 |
How can I load items /images to the control
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oItems LOCAL oRadialMenu oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRadialMenu := XbpActiveXControl():new( oForm:drawingArea ) oRadialMenu:CLSID := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/ oRadialMenu:create(,, {10,60},{610,370} ) oRadialMenu:BeginUpdate() oRadialMenu:Expanded := .T. oRadialMenu:PicturesPath := "C:\Program Files\Exontrol\ExRadialMenu\Sample\Images" oRadialMenu:SetProperty("HTMLPicture","arrow","arrow.png") oRadialMenu:SetProperty("SubItemsBackColor",AutomationTranslateColor( GraMakeRGBColor ( { 190,190,190 } ) , .F. )) oRadialMenu:SetProperty("ShadowColor",oRadialMenu:SubItemsBackColor()) oRadialMenu:SetProperty("RadialLineColor",6/*exRadialParentBorder*/,oRadialMenu:SubItemsBackColor()) oRadialMenu:SetProperty("RadialLineColor",5/*exRadialItemsGridLines*/,-1) oItems := oRadialMenu:Items() oItems:Add("Foreground-Color","color_line.png"):Items():ToString := "Foreground" oItems:Add("Background-Color","color_fill.png"):Items():ToString := "Background" oItems:Add("Font","format_font_size_less.png"):Items():ToString := "Font" oItems:Add("Undo","edit_undo.png"):Items():ToString := "Undo" oItems:Add("Redo","edit_redo.png"):Items():ToString := "Redo" oItems:Add("Copy","edit_copy.png"):Items():ToString := "Copy" oItems:Add("List","fileview_text.png"):Items():ToString := "List" oItems:Add("Tag","checkmark_korganizer.png"):Items():ToString := "Tag" oRadialMenu:EndUpdate() oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
21 |
How can I load items to the control
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oItems,oItems1 LOCAL oRadialMenu oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRadialMenu := XbpActiveXControl():new( oForm:drawingArea ) oRadialMenu:CLSID := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/ oRadialMenu:create(,, {10,60},{610,370} ) oRadialMenu:BeginUpdate() oRadialMenu:MinVisibleCount := 3 oRadialMenu:PicturesPath := "C:\Program Files\Exontrol\ExRadialMenu\Sample\Images" oRadialMenu:SetProperty("HTMLPicture","remove","remove.png") oRadialMenu:SetProperty("HTMLPicture","refresh","refresh.png") oRadialMenu:SetProperty("HTMLPicture","preview","preview.png") oRadialMenu:SetProperty("HTMLPicture","search","search.png") oItems := oRadialMenu:Items() oItems1 := oItems:Add("Search","search"):Items() oItems1:ToString := "Search A,Search B,Search C" oItems:Add("Refresh","refresh") oItems:Add("Preview","preview") oItems:Add("Remove","remove") oRadialMenu:Expanded := .T. oRadialMenu:EndUpdate() oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
20 |
How do I get the version of the control I am running
|
19 |
How do I select an item
|
18 |
How can I change the item's foreground color (sample 3)
|
17 |
How can I change the item's foreground color (sample 2)
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oItem LOCAL oItems,oItems1 LOCAL oRadialMenu oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRadialMenu := XbpActiveXControl():new( oForm:drawingArea ) oRadialMenu:CLSID := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/ oRadialMenu:create(,, {10,60},{610,370} ) oRadialMenu:BeginUpdate() oRadialMenu:Expanded := .T. oRadialMenu:MinVisibleCount := 6 oRadialMenu:Font():Size := "14.25" oItems := oRadialMenu:Items() oItem := oItems:Add("Item 1") oItem:SetProperty("ForeColor",1/*exRadialItems*/,AutomationTranslateColor( GraMakeRGBColor ( { 255,0,0 } ) , .F. )) oItems1 := oItem:Items() oItems1:Add("SubItem 1") oItems1:Add("SubItem 2") oItems:Add("Item 2") oItems:Add("Item 3") oItems:Add("Item 4") oItems:Add("Item 5") oItems:Add("Item 6") oRadialMenu:EndUpdate() oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
16 |
How can I change the item's foreground color (sample 1)
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oItems,oItems1 LOCAL oRadialMenu oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRadialMenu := XbpActiveXControl():new( oForm:drawingArea ) oRadialMenu:CLSID := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/ oRadialMenu:create(,, {10,60},{610,370} ) oRadialMenu:BeginUpdate() oRadialMenu:Expanded := .T. oRadialMenu:MinVisibleCount := 6 oRadialMenu:Font():Size := "14.25" oRadialMenu:SetProperty("ForeColor",AutomationTranslateColor( GraMakeRGBColor ( { 255,0,0 } ) , .F. )) oItems := oRadialMenu:Items() oItems1 := oItems:Add("Item 1"):Items() oItems1:Add("SubItem 1") oItems1:Add("SubItem 2") oItems:Add("Item 2") oItems:Add("Item 3") oItems:Add("Item 4") oItems:Add("Item 5") oItems:Add("Item 6") oRadialMenu:EndUpdate() oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
15 |
How can I add new items / childrend to the control (method 2)
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oItems,oItems1 LOCAL oRadialMenu oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRadialMenu := XbpActiveXControl():new( oForm:drawingArea ) oRadialMenu:CLSID := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/ oRadialMenu:create(,, {10,60},{610,370} ) oRadialMenu:BeginUpdate() oRadialMenu:Expanded := .T. oItems := oRadialMenu:Items() oItems1 := oItems:Add("Item 1"):Items() oItems1:Add("SubItem 1") oItems1:Add("SubItem 2") oItems:Add("Item 2") oItems:Add("Item 3") oItems:Add("Item 4") oItems:Add("Item 5") oItems:Add("Item 6") oItems:Add("Item 7") oItems:Add("Item 8") oRadialMenu:EndUpdate() oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
14 |
How can I add new items / childrend to the control (method 1)
|
13 |
How do I enlarge the font (method 2)
|
12 |
How do I enlarge the font (method 1)
|
11 |
How can I expand the control (method 2)
|
10 |
How can I expand the control (method 1)
|
9 |
By default, the control displays 8-pies. How can I change that
|
8 |
How can I prevents expanding / collapsing the radial menu
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oRadialMenu oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRadialMenu := XbpActiveXControl():new( oForm:drawingArea ) oRadialMenu:CLSID := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/ oRadialMenu:create(,, {10,60},{610,370} ) oRadialMenu:BeginUpdate() oRadialMenu:AllowToggleExpand := .F. oRadialMenu:ToString := "Item 1,Item 2,Item 3,Item 4,Item 5,Item 6,Item 7,Item 8" oRadialMenu:SetProperty("Caption",0/*exLayerCaption*/,"Cant expand/collapse the radial menu") oRadialMenu:SetProperty("Caption",3/*exLayerCaptionAnchor*/,0) oRadialMenu:SetProperty("Caption",4/*exLayerCaptionLeft*/,"width-twidth") oRadialMenu:SetProperty("Caption",5/*exLayerCaptionTop*/,"height-theight") oRadialMenu:EndUpdate() oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
7 |
How can I prevent flickering the item, when user selects it
|
6 |
How do I highlight the sub-item zone when cursor hovers it (method 2)
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oItems LOCAL oRadialMenu oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRadialMenu := XbpActiveXControl():new( oForm:drawingArea ) oRadialMenu:CLSID := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/ oRadialMenu:create(,, {10,60},{610,370} ) oRadialMenu:Expanded := .T. oRadialMenu:SetProperty("RadialLineSize",11/*exRadialHotFullItem*/,oRadialMenu:FormatABC(oRadialMenu:SubItemsSize())) oRadialMenu:SetProperty("RadialLineColor",11/*exRadialHotFullItem*/,0x8000000d) oRadialMenu:SetProperty("RadialLineAlpha",11/*exRadialHotFullItem*/,64) oItems := oRadialMenu:Items() oItems:Add("Item A") oItems:Add("Item B") oItems:Add("Item C") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
5 |
How do I highlight the sub-item zone when cursor hovers it (method 1)
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oItems LOCAL oRadialMenu oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRadialMenu := XbpActiveXControl():new( oForm:drawingArea ) oRadialMenu:CLSID := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/ oRadialMenu:create(,, {10,60},{610,370} ) oRadialMenu:Expanded := .T. oRadialMenu:SetProperty("RadialLineSize",11/*exRadialHotFullItem*/,0) oRadialMenu:SetProperty("RadialLineSize",10/*exRadialHotSubItem*/,-1) oRadialMenu:SetProperty("RadialLineColor",10/*exRadialHotSubItem*/,0x8000000d) oRadialMenu:SetProperty("RadialLineAlpha",10/*exRadialHotSubItem*/,64) oItems := oRadialMenu:Items() oItems:Add("Item A") oItems:Add("Item B") oItems:Add("Item C") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
4 |
Is it possible to highlight the entire item when cursor hovers the item
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oItems LOCAL oRadialMenu oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRadialMenu := XbpActiveXControl():new( oForm:drawingArea ) oRadialMenu:CLSID := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/ oRadialMenu:create(,, {10,60},{610,370} ) oRadialMenu:Expanded := .T. oRadialMenu:SetProperty("RadialLineSize",11/*exRadialHotFullItem*/,-1) oRadialMenu:SetProperty("RadialLineColor",11/*exRadialHotFullItem*/,0x8000000d) oRadialMenu:SetProperty("RadialLineAlpha",11/*exRadialHotFullItem*/,64) oItems := oRadialMenu:Items() oItems:Add("Item A") oItems:Add("Item B") oItems:Add("Item C") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
3 |
How can I hide the hot line when hovering the cursor
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oItems LOCAL oRadialMenu oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRadialMenu := XbpActiveXControl():new( oForm:drawingArea ) oRadialMenu:CLSID := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/ oRadialMenu:create(,, {10,60},{610,370} ) oRadialMenu:AllowToggleExpand := .F. oRadialMenu:SetProperty("RadialLineSize",11/*exRadialHotFullItem*/,0) oItems := oRadialMenu:Items() oItems:Add("Item A") oItems:Add("Item B") oItems:Add("Item C") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
2 |
How can I hide the control's shadow
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oRadialMenu oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRadialMenu := XbpActiveXControl():new( oForm:drawingArea ) oRadialMenu:CLSID := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/ oRadialMenu:create(,, {10,60},{610,370} ) oRadialMenu:Expanded := .T. oRadialMenu:SetProperty("ShadowColor",-1) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
1 |
How do I change the control's background color
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oRadialMenu oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRadialMenu := XbpActiveXControl():new( oForm:drawingArea ) oRadialMenu:CLSID := "Exontrol.RadialMenu.1" /*{1604BDE1-D48F-4D3F-B51B-49C0CD74236C}*/ oRadialMenu:create(,, {10,60},{610,370} ) oRadialMenu:SetProperty("BackColor",AutomationTranslateColor( GraMakeRGBColor ( { 240,240,249 } ) , .F. )) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |