Topic
create new user-defined image
Home page › Community › Automation and VBA › create new user-defined image
- This topic has 2 replies and 2 voices and was last updated 16 years, 3 months ago ago by raphael mean.
-
AuthorPosts
-
12.02.2009 at 23:43 #34808raphael meanParticipant
Hello,
My question is; Is it possible to create automatically a new user defined image on the “Button Appearance” dialog box for customized image so that I can have as much FaceId as required?
thanks,
12.02.2009 at 23:43 #34810raphael meanParticipantHello,
My question is; Is it possible to create automatically a new user defined image on the “Button Appearance” dialog box for customized image so that I can have as much FaceId as required?
thanks,
13.02.2009 at 20:24 #34809Bernhard KantzParticipantYou have the possibility to add a user-defined button using VBA.
[code]
Dim oBar As CommandBar
Set oBar = CommandBars.Add(Name:=”Test”, _
Position:=fpBarPositionTop, Temporary:=False)
oBar.Visible = TrueDim picPictureI As IPictureDisp
Dim picMaskI As IPictureDisp
Set picPictureI = stdole.StdFunctions.LoadPicture(“c:picturepic.bmp”)
Set picMaskI = stdole.StdFunctions.LoadPicture(“c:picturemask.bmp”)Dim oButton As CommandBarButton
Set oButton = sdfCmdBar.Controls.Add(Type:=fpControlTypeButton)
oButton.Picture = picPictureI
oButton.Mask = picMaskI
[/code]
When you run this macro, a new picture is saved in the file ‘userimages.bmp’.
(Vista: C:Userss.sattler.IGBAppDataLocalWeisangFlexPro8.0)
Unfortunately, you cannot access an existing user-defined picture using VBA. -
AuthorPosts
- You must be logged in to reply to this topic.