ChrisKudla
14 years agoOccasional Contributor
Working with VCL Dev Express ExpressBars 6
Hi
I am having problems working with menus which are done using DevExpress ExpressBars6. I have followed an older post http://www.automatedqa.com/newsgroups/d.cgi?cmd=article&group=automatedqa.public.testcomplete&item=9172&utag=
but the same thing no longer works. I have tried the ESBarDemo (supplier by DevExpress) and using TestComplete 7.52 I cannot seem to access the ItemLinks and TdxBarControl_1 is not available. There is now a TxDockControl which has a TDxBarControl as a child, but this has no ItemLinks. The fact that these controls are not normally visible makes it even harder to try and work out what is going on.
This is my script.
Test;p, w: OleVariant;ItemCount, i;p := .Process('ESBarDemo'); w := p.ESBarDemoMainForm; w.Activate; ItemCount := w.dxBarManager1.TdxBarControl_1.ItemLinks.VisibleItemCount; i := 0 (ItemCount - 1) .Message(w.dxBarManager1.TdxBarControl_1.ItemLinks.VisibleItems.Caption);end;I would really appreciate some help here as I need to try and get the menu options working to test my app. RegardsChris
I am having problems working with menus which are done using DevExpress ExpressBars6. I have followed an older post http://www.automatedqa.com/newsgroups/d.cgi?cmd=article&group=automatedqa.public.testcomplete&item=9172&utag=
but the same thing no longer works. I have tried the ESBarDemo (supplier by DevExpress) and using TestComplete 7.52 I cannot seem to access the ItemLinks and TdxBarControl_1 is not available. There is now a TxDockControl which has a TDxBarControl as a child, but this has no ItemLinks. The fact that these controls are not normally visible makes it even harder to try and work out what is going on.
This is my script.
procedure Test;
var
p, w: OleVariant;
ItemCount, i;
begin
p := Sys.Process('ESBarDemo');
w := p.ESBarDemoMainForm;
w.Activate;
ItemCount := w.dxBarManager1.TdxBarControl_1.ItemLinks.VisibleItemCount;
for i := 0 to (ItemCount - 1) do
Log.Message(w.dxBarManager1.TdxBarControl_1.ItemLinks.VisibleItems.Caption);
end;
I would really appreciate some help here as I need to try and get the menu options working to test my app.
Regards
Chris
Test;p, w: OleVariant;ItemCount, i;p := .Process('ESBarDemo'); w := p.ESBarDemoMainForm; w.Activate; ItemCount := w.dxBarManager1.TdxBarControl_1.ItemLinks.VisibleItemCount; i := 0 (ItemCount - 1) .Message(w.dxBarManager1.TdxBarControl_1.ItemLinks.VisibleItems.Caption);end;I would really appreciate some help here as I need to try and get the menu options working to test my app. RegardsChris