Skip to content

Runtime error when passing the font size via "WP UpdateWidget" #54

@aeytopixag

Description

@aeytopixag

Hi everyone,

there seems to be a bug (tested in the 20 R8 [100327] version) when setting the font size for the toolbar.

Steps to reproduce:

  • Create a blank project with a new form
  • Add a 4D Write Pro area with toolbar from the library
  • Change the object script to the following:
var $skin : Object
$skin:={fontSize: 12}
WP UpdateWidget("WPtoolbar"; "WParea"; $skin)

When the form is executed, the following runtime error occurs:

Error when executing the method "UI_ApplySkin" at line number 138
- Cannot open file "TableBorders_33.png" (Macintosh HD:Applications:4D 20 R8 100327 NB:4D 20 R8 100327 NB.app:Contents:Components:4D WritePro Interface.4dbase:Contents:4D WritePro Interface.4DZ:Project:Sources:Forms:WP_Toolbar:Images:TableBorders_33.png)

Error code: 602 (xbox)
Cannot open file "TableBorders_33.png" (Macintosh HD:Applications:4D 20 R8 100327 NB:4D 20 R8 100327 NB.app:Contents:Components:4D WritePro Interface.4dbase:Contents:4D WritePro Interface.4DZ:Project:Sources:Forms:WP_Toolbar:Images:TableBorders_33.png)
xtoolbox
xtoolbox
task -1, name: 'Application process'

Error code: 9 (CZip)
Error code: 9 (CZip)
component: 'CZip'
component: 'CZip'
task -1, name: 'Application process'

Call chain:
[
	{
		"type": "projectMethod",
		"name": "UI_ApplySkin",
		"line": 138,
		"database": "4D WritePro Interface"
	},
	{
		"type": "formMethod",
		"name": "WP_Toolbar",
		"line": 146,
		"database": "4D WritePro Interface"
	}
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions