Hi Everyone
With “Configuration.Instance.GetItemsByKind(Kind.Screen)” i get all available Screens. Can i now know on which Screen the Main Smart Client Window is running? Or do i have to calculate it with the coordinates?
Thanks for any help.
Hi Everyone
With “Configuration.Instance.GetItemsByKind(Kind.Screen)” i get all available Screens. Can i now know on which Screen the Main Smart Client Window is running? Or do i have to calculate it with the coordinates?
Thanks for any help.
I have an idea you might be able to see this if you use the ConfigDump tools plugin sample looking at the screen nodes and the information. This is a guess as I have not done the experiment, i hope it is a valid hint. If you can get the information using the sample you will be able to see the coding and implement it for your plugin.
Hi Bo
Thanks for the answer. I already looked at that. It is a very interesting plugin. But I didn’t find anything there.
I’ll have to find another solution.
It is currently not possible, via the API, to get information about which screens the Smart client windows are located on. So for now I think you will need to work on other ways of getting the information. Perhaps you ca use the window coordinates as you mention. However remember to keep in mind that the windows can be positioned across screens as well.
This could be something that we might add support for in the future but I think we will need more information about the use case. In which situation and why do you need this information?
Hi Jimmi
I got it working using the Window bounds and calculating if it is inside the bounds any of the screens. Yes, that the windows can be positioned across screens is a small problem. But i think the probability is very small and not a “normal” case. I could theoreticaly calculate on which screen the larger part of the window is.
Thank you for your reply.