Profile Picture

Selection problem

Posted By Sergey Suloev 11 Years Ago
Author
Message
Sergey Suloev
Posted 11 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)

Group: Forum Members
Last Active: 11 Years Ago
Posts: 5, Visits: 1
Thank you for your response,
but I would like to select all the shapes, including the top level group, which I want to be draggable over the document, and subgroups too.
The only thing I don't like about default selection is that I 'm not able to select subgroups and rectangles directly by clicking on them.
First click on a rectangle always gives me top-level group selected, the second click select a subgroup, where rectangle resides, and the 3rd click gives me rectangle itself.
Look at screenshot to understand configuration.

Attachments
question.png (146 views, 26.00 KB)
Sergey Suloev
Posted 11 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)

Group: Forum Members
Last Active: 11 Years Ago
Posts: 5, Visits: 1
Thank you for your response,
but I would like to select all the shapes, including the top level group, which I want to be draggable over the document, and subgroups too.
The only thing I don't like about default selection is that I 'm not able to select subgroups and rectangles directly by clicking on them.
First click on a rectangle always gives me top-level group selected, the second click select a subgroup, where rectangle resides, and the 3rd click gives me rectangle itself.
Look at screenshot to understand configuration.

Attachments
question.png (142 views, 26.00 KB)
Nevron Support
Posted 11 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

Hi, you should apply Select protection to the groups you do not want to participate in the selection process. For example you can use the following method:

private static void SetSelectProtection(NShape shape)

{

        NAbilities protection = shape.Protection;

        protection.Select = true;

        shape.Protection = protection;

}

Then if you want to directly be able to select the rectangles you can call this method for the groups and the subgroups.



Best Regards,
Nevron Support Team



Sergey Suloev
Posted 11 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)Forum Newbie (5 reputation)

Group: Forum Members
Last Active: 11 Years Ago
Posts: 5, Visits: 1
Hi Support,

I have a problem selecting a shape when it's nested in NGroup.
In my application I have parent NGroup, with a few nested NGroup objects, and each nested NGroup
has a number of NRectangleShape objects.
NGroup shapes have a padding , so that their background is partially visible.
I want to select a nested NGroup (by clicking on partially visible background), or a NRectangleShape immediately,
but instead I need to click 2 or 3 times to achieve this.

How to setup selection the way I need ?


Thank you



Similar Topics


Reading This Topic