New 4D View Pro form events

Automatically translated from English

As of 4D v18, a new set of 4D View Pro form events are available. They return special information that can be accessed with the new FORM Event command, introduced in this blog post. Say hello to: “On Column Resize”, “On Row Resize”, “On Clicked”, “On Double Clicked”, “On Header Click”, “On Selection Change”, and “On After Edit”. 


HDI 4D View Pro Events

These new events are listed in the property list:

When the event occurs, you can retrieve all of the associated information from the object returned by the FORM Event command. For example, if you’ve selected the “On Column Resize” event, the command will return an object with information like this when a column is resized:

You can use this object to trigger an action, such as setting the background color of the resized column to red:

If (FORM Event.code=On Column Resize)
   VP SET CELL STYLE (FORM Event.range;New object("backColor";"red"))
End if 

Take a look at the HDI to see these new events in action, and check out the doc center for more technical details.

Note: As explained in this blog post, the returned attributes depend on the context and they can be different according to the element used. The example above is for a 4D View Pro object during an “On Column Resize” event. For other objects or other events, different attributes are returned.

Fabrice Mainguené

• Product Owner •

Fabrice Mainguené joined 4D Program team in November, 2016. As a Product Owner, he is in charge of writing the user stories then translating it to functional specifications. His role is also to make sure that the feature implementation delivered is meeting the customer need.

After obtaining a Bachelor degree in Computer Science at CNAM, Fabrice joined a small software publishing company as a Windev developer. Then he worked for different companies in industry and trade areas as a Windev and web developer as well as technical advisor on new features.