KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Programmatically assigning a picture to a 3D button
PRODUCT: 4D | VERSION: 2004 | PLATFORM: Mac & Win
Published On: April 28, 2006
Your current browser may not allow you to download the asset. We recommend Mozilla Firefox or Google Chrome.
Log In

To change a current 3D button picture without affecting other button settings, call the following statement:

SET FORMAT(*;"ButtonName";";?PictureID;;;;;;;;;")

where ButtonName is the 3D button object name, and PictureID is the picture number from the 4D picture library.

Note that there are nine semi-colons after the PictureId number: this insures that other buttom parameters are not changed. Also, the question mark before the PictureID means that the picture is retrieved from the 4D picture library.

Changing the 3D button picture is convenient when emulating multiple states buttons.