4D Blog

Home Product Full size background pictures with 4D Write Pro

Full size background pictures with 4D Write Pro

October 27, 2017

Product

There are common user stories where there is a need to have a background image fill the entire printable area, such as paper-folding lines or a watermark. It’s also sometimes required by a company’s graphic charter.

Thanks to a newly added style for background images, it is now possible to create background pictures filling the full page in 4D Write Pro! You can control this attribute, by either the 4D language or standard actions, or even by using the 4D Write Pro widget.

For a better understanding, this feature can be summarized with the illustration below:

Many options are available for background pictures, including clipping, repeating pattern and origin. Images could already be clipped to the border, the padding or to the content in previous versions. But they could not be clipped to the “paper”. Now they can!

The new attribute value (wk paper box) is available for documents/sections for background clipping and background origin.

Of course, the 4D Write Pro widget has also been updated: when selecting the “background picture” and “document” items, the clip and origin options now have a new paper-box option available.

Example database

Programming options

You can use the WP SET ATTRIBUTES command and set the new wk paper box value for background picture clipping and origin.

WP SET ATTRIBUTES(wpDoc;wk background image;vPict)
WP SET ATTRIBUTES(wpDoc;wk background clip;wk paper box)
WP SET ATTRIBUTES(wpDoc;wk background origin;wk paper box)

Another option is to use the standard actions with the INVOKE ACTION command, or in design mode as any other standard action.

// Set origin and clipping for document background image
INVOKE ACTION("doc/backgroundClip?value=paper-box")
INVOKE ACTION("doc/backgroundOrigin?value=paper-box")

Discuss

Tags 4D Write Pro, Pictures, UI, v16 R5, v17, Word processor

Latest related posts

  • June 16, 2025

    Generate, share and use web sessions One-Time Passcodes (OTP)

  • May 20, 2025

    Automatic Refresh of OEM Build Licenses

  • May 16, 2025

    New class to handle incoming TCP connections

Caroline Briaud
Caroline Briaud
• 4D Product Team Leader •Caroline joined 4D SAS in July, 2013 as an Engineering Manager responsible for new features definition. Caroline helped the Engineering team to put in place the R-release concept, with the new development process definition and its application within 4D’s engineering teams.Caroline is now leading the 4D Product team, mainly made up of Product Owners which are representing the customers within Engineering.Caroline started her career as a software developer in the mobile phone industry. She specialized in program management with an American company in an international context spread across US, India and China.
  • Deutsch
  • Français
  • English
  • Português
  • Čeština
  • Español
  • Italiano
  • 日本語

Categories

Browse categories

  • 4D View Pro
  • 4D Write Pro
  • 4D for Mobile
  • Email
  • Development Mode
  • 4D Language
  • ORDA
  • User Interface / GUI
  • Qodly Studio
  • Server
  • Maintenance
  • Deployment
  • 4D Tutorials
  • Generic
  • 4D Summit sessions and other online videos

Tags

4D-Analyzer 4D for Android 4D for iOS 4D NetKit 4D Qodly Pro 4D View Pro 4D Write Pro 20 R8 20 R9 Administration Authentication Build application CI/CD Class Client/Server Code editor Collections Compatibility settings Formula Listbox Logs Mail Microsoft 365 Network Objects ORDA PDF Pictures Preemptive Programming Qodly Studio REST Scalability Security Session Source control Speed Spreadsheet Tutorial UI User Experience v20 vscode Web Word processor

Tags

4D-Analyzer 4D for Android 4D for iOS 4D NetKit 4D Qodly Pro 4D View Pro 4D Write Pro 20 R8 20 R9 Administration Authentication Build application CI/CD Class Client/Server Code editor Collections Compatibility settings Formula Listbox Logs Mail Microsoft 365 Network Objects ORDA PDF Pictures Preemptive Programming Qodly Studio REST Scalability Security Session Source control Speed Spreadsheet Tutorial UI User Experience v20 vscode Web Word processor
Subscribe to 4D Newsletter

© 2025 4D SAS - All rights reserved
Terms & Conditions | Legal Notices | Data Policy | Cookie Policy | Contact us | Write for us


Subscribe to 4D Newsletter

* Your privacy is very important to us. Please click here to view our Policy

Contact us

Got a question, suggestion or just want to get in touch with the 4D bloggers? Drop us a line!

* Your privacy is very important to us. Please click here to view our Policy