Forum Discussion
ANW
15 years agoContributor
Thank the gods :) ... you are a life saver.
Your advice helped, and I can now find the correct item coordinates in the radPanelbar, using the LocationToControl method, which gives me the X and Y coordinates of the item in the panel. Took me a while and some guess work to find it, as I can't seem to find any list or document online, that explains what each of the, 100 or so, methods actually do.
I used this code to find and click on the correct item:
menuMobile := FindradPanelbarItem(radPanelBar,'Mobiltelefoni');
ControlX := menuMobile.locationToControl.X;
ControlY := menuMobile.locationToControl.Y;
radpanelbar.Click(ControlX,ControlY);
But at least I found it.
That should make my script reliable in the future too.
Your advice helped, and I can now find the correct item coordinates in the radPanelbar, using the LocationToControl method, which gives me the X and Y coordinates of the item in the panel. Took me a while and some guess work to find it, as I can't seem to find any list or document online, that explains what each of the, 100 or so, methods actually do.
I used this code to find and click on the correct item:
menuMobile := FindradPanelbarItem(radPanelBar,'Mobiltelefoni');
ControlX := menuMobile.locationToControl.X;
ControlY := menuMobile.locationToControl.Y;
radpanelbar.Click(ControlX,ControlY);
But at least I found it.
That should make my script reliable in the future too.