FlexPro
HistoryBase
Engineering
Training
Downloads
FlexPro-Support
Wissen
Community
Über Uns
Referenzen
Jobs
Allgemeiner Kontakt
Händlerverzeichnis
FlexPro-Support
DE
EN
FR
Placeholder
Produkte und Lösungen
Support und Downloads
Unternehmen
Magazin
Kontakt
Sprache
MyWeisang

Account Einstellungen

Topic

create new user-defined image

Startseite ' Community ' Automation and VBA ' create new user-defined image

Anzeigen von 3-Stellen - 1 bis 3 (von insgesamt 3)
  • Autor
    Beiträge
  • #34808
    raphael mean
    Teilnehmer

    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,

    #34810
    raphael mean
    Teilnehmer

    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,

    #34809
    Bernhard Kantz
    Teilnehmer

    You 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 = True

    Dim 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.

    support@weisang.com

Anzeigen von 3-Stellen - 1 bis 3 (von insgesamt 3)
  • Du musst angemeldet sein, um auf dieses Thema antworten zu können.