KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Enabling toolbar for 4D Write Pro when in subform
PRODUCT: 4D | VERSION: 20 | PLATFORM: Mac & Win
Published On: August 26, 2024

When creating a form for an application, there may be several subforms created that include 4D Write Pro inside of them. When testing out that form, Write Pro's toolbar would appear dimmed out until the user clicks into the input area. Though it is a minor detail, it could lead to some issues especially with first time users who are unfamiliar with the application.

A basic workaround for this issue is to write some method in the parent form that would focus into the specific subform and the object within that subform upon load or activation of the page. A simple implementation is found below, which can also deal with the scenario of the subform having multiple other objects in it besides Write Pro.

Case of
   : (Form event code = On Activate)
     GOTO OBJECT(*; "WParea")
End case