4D Blog

Home Product 4D Write Pro: More display options for anchored pictures and text boxes!

4D Write Pro: More display options for anchored pictures and text boxes!

May 2, 2024

Product

So far 4D Write Pro documents, pictures can be either in line (just like a big character), behind or in front of the text. Text boxes (appeared in 4D v20) can also be placed in front or behind the text. A huge improvement comes with 4D 20 R5 where pictures and text boxes can now be surrounded by wrapping text!

HDI

Pictures and text boxes, position and sizes 

Pictures and text boxes can be already placed anywhere in a document. Thanks to new anchor modes, text wrapping is now possible so the main document text stays visible wherever the picture or text box are located!

NEW ANCHORING MODES

Text can now automatically wrap around pictures in different ways which allows you to create documents and templates without limits! You can decide if the text must stay above and below pictures (letting sides free) or allow text to also wrap on the left, the right, or both sides of the pictures… or text boxes. And this will work fine whatever the number of pictures in your documents. Pictures and text boxes can even overlap themselves and let all the text visible.

Interface and  programming

Interface

The 4D Write Pro interface has been improved to let you chose the way you want pictures and text boxes to be display. Just select the picture then choose the desired display mode !

blank

Standard actions

New values for image/anchorLayout and textBox/anchorLayout standard action are available  

  • wrapTopBottom
  • wrapSquare
  • wrapSquareLeft
  • wrapSquareRight
  • wrapSquareLargest

Examples:

image/anchorLayout?value=wrapSquareLeft
textBox/anchorLayout?value=wrapSquareLargest

Programming 

New attributes are available for pictures and text boxes and can be set using the well-known command WP SET ATTRIBUTES. The new attributes are wk text wrap top bottom, wk text wrap square, wk text wrap square left, wk text wrap square right, and wk text wrap square largest.

WP SET ATTRIBUTES($picture; wk anchor layout; wk text wrap square largest)
WP SET ATTRIBUTES($textBox; wk anchor layout; wk text wrap top bottom)

Import & export

Of course, import and export have not been forgotten!

This great feature is taken into account when exporting to SVG, PDF, HTML (based on embedded mode) as well as import and export to Word!

Note: Even if HTML does not support text wrapping, pictures and text boxes export has been improved. They will be placed at the closest left or right position in the document. See HDI for a sample!

Conclusion

With each new version, 4D Write Pro is enriched by new graphic possibilities. This will certainly enable you to create increasingly rich and modern documents.
As usual, consult the documentation for any further information you may need.

We look forward to hearing from you on the 4D forum!

Discuss

Tags 20 R5, 21, 4D Write Pro, Document creation, Export, Import, PDF, Pictures, SVG, Text boxes, Word processor

Latest related posts

  • January 9, 2026

    Session handling in 4D Qodly Pro

  • January 7, 2026

    Enhance your Desktop Interface with Web widgets using 4D Qodly Pro

  • January 7, 2026

    Embed Qodly pages in a 4D web area without extra cost

Roland Lannuzel
Roland Lannuzel
• Product Owner & 4D Expert • After studying electronics, Roland went into industrial IT as a developer and consultant, building solutions for customers with a variety of databases and technologies. In the late 80’s he fell in love with 4D and has used it in writing business applications that include accounting, billing and email systems.Eventually joining the company in 1997, Roland’s valuable contributions include designing specifications, testing tools, demos as well as training and speaking to the 4D community at many conferences. He continues to actively shape the future of 4D by defining new features and database development tools.
  • Deutsch
  • Français
  • English
  • Português
  • Čeština
  • Español
  • Italiano
  • 日本語

Categories

Browse categories

  • AI
  • 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 AIKit 4D for Android 4D for iOS 4D NetKit 4D Qodly Pro 4D View Pro 4D Write Pro 20 R10 21 Administration AI Artificial Intelligence Build application Class Client/Server Code editor Collections Formula Listbox Logs Mail Microsoft 365 Network Objects OpenAI ORDA PDF Pictures Preemptive Programming REST Scalability Security Session Source control Speed Spreadsheet Tutorial UI User Experience v20 vscode Web Word processor

Tags

4D-Analyzer 4D AIKit 4D for Android 4D for iOS 4D NetKit 4D Qodly Pro 4D View Pro 4D Write Pro 20 R10 21 Administration AI Artificial Intelligence Build application Class Client/Server Code editor Collections Formula Listbox Logs Mail Microsoft 365 Network Objects OpenAI ORDA PDF Pictures Preemptive Programming REST Scalability Security Session Source control Speed Spreadsheet Tutorial UI User Experience v20 vscode Web Word processor
Subscribe to 4D Newsletter

© 2026 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