Forum Discussion
ChrisKudla
14 years agoOccasional Contributor
Hi
My Java Script is not too hot but running this against the Dev Express and making a small change I get the error "Type Message Time Link
Unable to find the object BarManager. 13:25:28
Looking in Object Browser, there is no BarManager under the DockControl.
My script looks like this
Main_Sample()
There are two BarManager items in the Object Browser.
Sys.Process("ESBarDemo", 4).VCLObject("ESBarDemoMainForm").VCLObject("dxBarManager1Bar1")
Sys.Process("ESBarDemo", 4).VCLObject("ESBarDemoMainForm").VCLObject("dxBarManager1")
Regards
Chris
My Java Script is not too hot but running this against the Dev Express and making a small change I get the error "Type Message Time Link
Unable to find the object BarManager. 13:25:28
Looking in Object Browser, there is no BarManager under the DockControl.
My script looks like this
function Main_Sample()
Main_Sample()
{
// ...
var wBarControl = Sys.Process("ESBarDemo").VCLObject("ESBarDemoMainForm").Window("TdxDockControl", "", 3).Window("TdxBarControl", "MainMenu", 1)
var itemStr = "&File|&Open Practice...";
if (ClickByCaption(wBarControl.BarManager, itemStr, 0))
{ Sys.Process("ESBarDemo").VCLObject("ESBarDemoMainForm").VCLObject("dxBarManager1")
//The menu item was successfully clicked
}
}
There are two BarManager items in the Object Browser.
Sys.Process("ESBarDemo", 4).VCLObject("ESBarDemoMainForm").VCLObject("dxBarManager1Bar1")
Sys.Process("ESBarDemo", 4).VCLObject("ESBarDemoMainForm").VCLObject("dxBarManager1")
Regards
Chris
Related Content
Recent Discussions
- 7 hours agomarkos