Page History
...
This property is overridden by the ItemImage property. In other words, the conditions are only evaluated as long as the ItemImage property is empty.
For more information on using conditions, see the Conditions tutorial in the Using SRP OLE Tree section.
...
Code Block |
---|
// Load global images for a tree that groups boys and girls into teams Images = "" Images<1> = "Boy":@VM:"BMPS\BOY.BMP" Images<2> = "Girl":@VM:"BMPS\GIRL.BMP" Images<3> = "Blue":@VM:"BMPS\BLUE.PNG" Images<4> = "Red":@VM:"BMPS\RED.PNG" Images<5> = "Gray":@VM:"BMPS\GRAY.PNG" Set_Property(@Window:".OLE_TREE", "OLE.Images", Images) // Use the ItemClass element to determine which image belongs to which item Conditions = "" Conditions<1> = "Boy":@VM:"Class = 'Boy'" Conditions<2> = "Girl":@VM:"Class = 'Girl'" Conditions<3> = "Blue":@VM:"Class = 'BlueTeam'" Conditions<4> = "Red":@VM:"Class = 'RedTeam'" Conditions<5> = "Gray":@VM:"Class = 'Unassigned'" Set_Property(@Window:".OLE_TREE", "OLE.ImageConditions", Conditions) |