English (English)

Sample 2. Step 18: Creating a CookingTime block

To create the CookingTime block:

  1. Activate the FlexiLayout window in the program main window.
  2. Select the Blocks object in the FlexiLayout tree.
  3. Select Add Block → Text in the FlexiLayout menu or Add Block → Text in the shortcut menu.
  4. In the Properties dialog box, type a name for the block in the Name field, e.g. CookingTime.
  5. To describe the location of the block, select Expression.
  6. Describe the block as a rectangle created by merging the rectangles around the CookingTimeHeader and CookingTime elements. To give the program some leeway, enlarge the height and width of the resulting rectangle by 3mm.
    In the FlexiLayout language this must be written as follows:
    Rect outputRect;
    outputRect = SearchElements.Cooking.CookingTime.Rect Or SearchElements.Cooking.CookingTimeHeader.Rect;
    OutputRegion = outputRect;
    OutputRegion.Inflate (3*mm, 3*mm);

    Show me...

25.05.2023 7:55:03

Please leave your feedback about this article

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.