Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi everybody,
how do I change the background image of a TextBox?
Thanks
Function changeBG(pg)
IMG_PATH = "T:\EDV\Qlickview\src\img\katalog"
Set d = ActiveDocument
Set tA = d.GetSheetObject("katalog_akt")
Set tV = d.GetSheetObject("katalog_vor")
Set tVp = tV.GetProperties
Set tAp = tA.GetProperties
tVp.Layout.BkgImageSettings.Image = IMG_PATH & "2009" & pg & ".jpg"
End Function
Considering all the bad reputation that Macros had earned, I'd recommend alternative solutions:
1. Conditional Show - create two or more text objects, with show conditions dependent on a variable, and set the variable when you need, using Actions.
2. Use "Info" load and function "Info" for the images (see Sample "Presidents" for example)
Hello,
May I ask you, why you want to use a Macro when you can set the Image directly for the background?
ANDY
Hi Andy,
i have 2 Buttons "Prev and Next", and i want change the Background Image from my TextBox when i clicked one of the Buttons.
Hello,
I am also interested in the solution for this problem... anyone?
Greetings
Considering all the bad reputation that Macros had earned, I'd recommend alternative solutions:
1. Conditional Show - create two or more text objects, with show conditions dependent on a variable, and set the variable when you need, using Actions.
2. Use "Info" load and function "Info" for the images (see Sample "Presidents" for example)