We are pleased to announce that this is the last step for dark mode on macOS. The last widgets of the library are compatible with dark mode:
- 4D Write Pro Interface toolbar
- 4D Write Pro Interface Sidebar
- Rich text area
So starting with 4D v19 R4, the choice is yours, as you can completely develop and deploy using light or dark mode on macOS.
There is a multitude of interfaces and rules to be respected. Often, these constraints are linked to the domains of activity. Obviously, some data can be entered or not by the user. For a field that is not enterable, there are two ways of managing the interface:
- users can still select and copy its content, for example to add it to a report
- users are not allowed to copy the field or select its content
When it comes to customizing the code editor, everyone thinks of the font and colors of the code. But it is also possible to customize the code editor window and some interactions with the code. Everyone has their own preferences and ways of working.
Moreover, the most essential part of a code editor is the writing code area. With 4D v19 R4, we have redesigned the editor to highlight your code and give it as much space as possible.
This is precisely why 4D v19 R4 enables you to show or hide the ten clipboards. If you don’t use all ten clipboards, you can lighten the toolbar with the “Show clipboard” preference.
Comments are essential in a developer’s life. When we work on a new feature, we often add comments that are reminders. For example:
- to validate a part of code with a colleague,
- to refactor a function,
- to fix code that is slowing down the performance,
- to split a method or a class into sections,
- to prepare the skeleton of a class and add a todo comment inside each function.
Even if you write some straightforward code, try reading it months or years later. Will it still seem simple, or would you wish you’d added comments?
4D v19 R4 takes comments to a whole new level with comment tags that enables you to better organize your comments.
Auto-completion for classes is available since 4D v18 R4. This feature simplifies code writing and limits errors in function names, for example. But it doesn’t avoid them entirely; it’s easy to reverse two letters or to forget a capital letter, and then have to spend time looking for why your code doesn’t work.
So what better way than to ask 4D to check if the classes or functions already exist?
Starting with 4D v19 R4, a warning is displayed in the code editor if you call a function that does not exist.
Classes were introduced with 4D v18 R3. They allow you to organize your business logic and separate it from the UI part more quickly.
Classes are composed of several functions of varying lengths, so it’s not always easy to find the function you want to modify, or to move from one function to another. You can use the explorer, which displays classes and functions, but when you’re coding in the editor window, you don’t want to waste time changing windows.
With 4D v19 R4, the list of functions in your class is displayed in the code editor toolbar, allowing you to easily jump to a specific function.
We are pleased to announce that a new version of 4D is available with new features for 4D for iOS and 4D for Android. Without further ado, let’s dive in:
WHAT’S IN IT?
For 4D for Android and 4D for iOS
- Display object fields in your mobile application in human-readable format or in JSON format. Object fields are used to store various types of data in a 4D application, and now they are easily usable in mobile apps.
- Improvement to generate your embedded data set.
For 4D for Android (already available in 4D for iOS):
- All related data is managed in your application.
- Online actions are available. It’s possible to execute code on a 4D server to check data, execute calculations or add an entity.
You have made your first application with 4D for Android. Congratulations!
After visualizing the simulator’s result, you want to test it on your smartphone to appreciate the interaction, the fluidity…
It’s straightforward! All it takes is one action on the smartphone and another one in the project. Let’s see the details.
Since 4D v19, you can create applications on macOS that support dark mode, so you can match your users’ taste by giving them the possibility to choose either light or dark style applications.
With 4D v19 R3, we are giving you, as a developer, the choice when developing your application. 4D Developer Edition integrates seamlessly with the light or dark look of macOS to avoid the battle between light and dark mode that has been waging for years!
Images are an essential part of documents. On an invoice for example, getting the right positioning for the company logo is important. That’s why the 4D Write Pro interface component offers a property dialog for images. You or your end users can easily define:
- the size of the image
- the display format
- the margins and padding
- the position on the page for anchored images