KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: OBJECT SET FORMAT can be used with static pictures
PRODUCT: 4D | VERSION: 13.0 | PLATFORM: Mac & Win
Published On: October 13, 2012

To programmatically place a static picture on a 4D form, the 4D command OBJECT SET FORMAT can be used to accomplish the task.

The syntax to use : OBJECT SET FORMAT(*;"myStaticPicture";"#Images/newImage.png")

The given path is relative to the Resources' folder.

Using this technique combined with specific events or a timer an database can have a series of backgrounds for a form instead of one.