Forum Discussion
kvooturi
16 years agoOccasional Contributor
I checked the object in the object browser: The following properties have
Name = WPFObject("TextBlock", "Segment A1 (12:28)", 2)
Text = Segment A1 (12:28)
WPFControlText = Segment A1 (12:28)
So I am doing the following way.
1. setting
set mysegment = frmNewsPlexMDI.MdiClient.frmMocoContainer.splitContainer1.SplitterPanel.mocoHost.HwndSource_AdornerDecorator.AdornerDecorator.AvalonAdapter.main.dockMain.gridContent.gridMain.Viewbox.Grid.MocoPanel.header.Border.Grid
2. getting cordinates
leftcordinate = mysegment.TextBlock(WPFcontroltext = "Segment A1 (12:28)").screenleft
3. MsgBox(leftcordinate)
But I get the message saying non-existent object. please suggest the correct way to do.
Name = WPFObject("TextBlock", "Segment A1 (12:28)", 2)
Text = Segment A1 (12:28)
WPFControlText = Segment A1 (12:28)
So I am doing the following way.
1. setting
set mysegment = frmNewsPlexMDI.MdiClient.frmMocoContainer.splitContainer1.SplitterPanel.mocoHost.HwndSource_AdornerDecorator.AdornerDecorator.AvalonAdapter.main.dockMain.gridContent.gridMain.Viewbox.Grid.MocoPanel.header.Border.Grid
2. getting cordinates
leftcordinate = mysegment.TextBlock(WPFcontroltext = "Segment A1 (12:28)").screenleft
3. MsgBox(leftcordinate)
But I get the message saying non-existent object. please suggest the correct way to do.