If the target ICE Tree view is the one under the mouse there is a semi-deterministic way via Pythons win32com extensions. Basically you need to query the view under the mouse, get it's coordinates, compare it with all other existing view's coordinates and take the one with the least amount of difference in the coordinate values. This only fails if two views have exactly the same screen coordinates (two floating views exactly overlapping). It works pretty well (I never tried on Linux though) but as you said, it's a PITA that we can't query the view object under the mouse directly of course. I don't know how many times I kindly asked for that to be added during the last 4 years ;-(

Also there's now way to be sure which of the open ICE trees the user wants
to place a new node into. PITA.

On Mon, Apr 8, 2013 at 10:45 AM, Stefan Kubicek <[email protected]>wrote:

also, we can't even get decent SDK functionality for the views so we can
create this ourselves.


Right, that's the biggest problem for implementing any quick-search
utility atm.
All quick-search functionality (or menus for favorite nodes, as in the
Qmenu implementation) is mostly futile once you need to add nodes to a
dense ICE tree since there is no exposed functionality in the SDK to place
them at some distinct location or view coordinate  - they simply get
dropped where ever Soft thinks is enough space to avoid node overlapping in
the tree, and that can be way off screen. All the precious time saved to
create the node quickly goes to waste searching for it in the tree after
creation. I added a feature req early during the 2014 beta for that
(basically suggesting to mimicing the Schematic View SDK functionality in
this respect) the but it didn't make it into the initial release, and I
don't have high hopes it will make it into SP1 either.
I even wrote to Chris directly about this very issue (sorry Chris, I know
I can be a PITA sometimes),
but got no response, maybe because it was just before the official
announcement of 2014 and everybody was busy.

Good things come to those who wait too I guess, just a little later...


--
------------------------------**-------------
               Stefan Kubicek
------------------------------**-------------
           keyvis digital imagery
          Alfred Feierfeilstraße 3
       A-2380 Perchtoldsdorf bei Wien
         Phone:    +43/699/12614231
      www.keyvis.at  [email protected]
--  This email and its attachments are   --
--confidential and for the recipient only--




--
-------------------------------------------
               Stefan Kubicek
-------------------------------------------
           keyvis digital imagery
          Alfred Feierfeilstraße 3
       A-2380 Perchtoldsdorf bei Wien
         Phone:    +43/699/12614231
      www.keyvis.at  [email protected]
--  This email and its attachments are   --
--confidential and for the recipient only--

Reply via email to