11 |
ImageSize property on 32 (specifies the size of the control' icons)
|
10 |
ImageSize property on 16 (default) (specifies the size of the control' icons)
|
9 |
How can I display pictures
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oRollist oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRollist := XbpActiveXControl():new( oForm:drawingArea ) oRollist:CLSID := "Exontrol.Rollist.1" /*{08EA793D-92E4-4DA3-A66D-06E33F1F3945}*/ oRollist:create(,, {10,60},{610,370} ) oRollist:SetProperty("HTMLPicture","pic1","c:\exontrol\images\zipdisk.gif") oRollist:SetProperty("HTMLPicture","pic2","c:\exontrol\images\auction.gif") oRollist:Add("Item <img>pic1</img>") oRollist:Add("Item <img>pic2</img>") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
8 |
How can I display icons
|
7 |
Is it possible to display a colored EBN so the borders will be transparent
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oRollist oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRollist := XbpActiveXControl():new( oForm:drawingArea ) oRollist:CLSID := "Exontrol.Rollist.1" /*{08EA793D-92E4-4DA3-A66D-06E33F1F3945}*/ oRollist:create(,, {10,60},{610,370} ) oRollist:VisualAppearance():Add(1,"c:\exontrol\images\normal.ebn") oRollist:Appearance := 27822685/*0x1a88a58+Bump*/ oRollist:Add("Item 1") oRollist:Add("Item 2") oRollist:Add("Item 3") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
6 |
Is it possible to display an EBN so the borders will be transparent
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oRollist oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRollist := XbpActiveXControl():new( oForm:drawingArea ) oRollist:CLSID := "Exontrol.Rollist.1" /*{08EA793D-92E4-4DA3-A66D-06E33F1F3945}*/ oRollist:create(,, {10,60},{610,370} ) oRollist:VisualAppearance():Add(1,"c:\exontrol\images\normal.ebn") oRollist:Appearance := 16777216/*0x1000000+*/ oRollist:Add("Item 1") oRollist:Add("Item 2") oRollist:Add("Item 3") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
5 |
How do I put/resize/stretch a picture 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 oRollist oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRollist := XbpActiveXControl():new( oForm:drawingArea ) oRollist:CLSID := "Exontrol.Rollist.1" /*{08EA793D-92E4-4DA3-A66D-06E33F1F3945}*/ oRollist:create(,, {10,60},{610,370} ) oRollist:Picture := oRollist:ExecuteTemplate("loadpicture(`c:\exontrol\images\zipdisk.gif`)") oRollist:PictureDisplay := 49/*Stretch*/ oRollist:Add("Item 1") oRollist:Add("Item 2") oRollist:Add("Item 3") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
4 |
How can I change the control's font
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oRollist LOCAL f oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRollist := XbpActiveXControl():new( oForm:drawingArea ) oRollist:CLSID := "Exontrol.Rollist.1" /*{08EA793D-92E4-4DA3-A66D-06E33F1F3945}*/ oRollist:create(,, {10,60},{610,370} ) f := CreateObject("StdFont") f:Name := "Verdana" f:Size := 12 oRollist:Font := f oRollist:Add("Item 1") oRollist:Add("Item 2") oRollist:Add("Item 3") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
3 |
How can I change the control's font
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oRollist oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRollist := XbpActiveXControl():new( oForm:drawingArea ) oRollist:CLSID := "Exontrol.Rollist.1" /*{08EA793D-92E4-4DA3-A66D-06E33F1F3945}*/ oRollist:create(,, {10,60},{610,370} ) oRollist:ItemWidth := 196 oRollist:Add("<font ;24>Item 1") oRollist:Add("<font ;24>Item 2") oRollist:Add("<font ;24>Item 3") oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |
2 |
How do I change the control's foreground color
#include "AppEvent.ch" #include "ActiveX.ch" PROCEDURE Main LOCAL oForm LOCAL nEvent := 0, mp1 := NIL, mp2 := NIL, oXbp := NIL LOCAL oRollist oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRollist := XbpActiveXControl():new( oForm:drawingArea ) oRollist:CLSID := "Exontrol.Rollist.1" /*{08EA793D-92E4-4DA3-A66D-06E33F1F3945}*/ oRollist:create(,, {10,60},{610,370} ) oRollist:SetProperty("ForeColor",AutomationTranslateColor( GraMakeRGBColor ( { 255,0,0 } ) , .F. )) oRollist:Add("Item 1") oRollist:Add("Item 2") oRollist:Add("Item 3") 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 oRollist oForm := XbpDialog():new( AppDesktop() ) oForm:drawingArea:clipChildren := .T. oForm:create( ,,{100,100}, {640,480},, .F. ) oForm:close := {|| PostAppEvent( xbeP_Quit )} oRollist := XbpActiveXControl():new( oForm:drawingArea ) oRollist:CLSID := "Exontrol.Rollist.1" /*{08EA793D-92E4-4DA3-A66D-06E33F1F3945}*/ oRollist:create(,, {10,60},{610,370} ) oRollist:SetProperty("BackColor",AutomationTranslateColor( GraMakeRGBColor ( { 255,0,0 } ) , .F. )) oForm:Show() DO WHILE nEvent != xbeP_Quit nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO RETURN |