View Issue Details

IDProjectCategoryView StatusLast Update
0000741NoesisGUIC++ SDKpublic2018-11-22 23:14
ReporterZanAlex Assigned Tosfernandez  
PrioritynormalSeverityminor 
Status assignedResolutionopen 
Summary0000741: Non-rectangular clipping region not affecting hit tests
Description

I've tried to do a radial menu that could have any given number of entries (I mean by that between 2 and 6). Here's the result so far:
https://gyazo.com/8f193373be331f78aa358114dbf471b1
The way I've done it is to create all the button I need, all these button fill the entire Canvas. Then, I cut each button to be a slice of pie.

It works reasonnably fine with few entries, but after 6 it gets weird with buttons being rolled over and pressed instead of others. I've also noticed that a button can be clicked if the cursor is out of the circle, but inside its bouding box. I think my solution is inefficient and I should probably try another way (Button should not overlap, I guess) but I'd like to know if that kind of problem is known to you. It seems the hitbox of a button is not exactly its unclipped part.

PlatformAny

Activities

sfernandez

sfernandez

2018-11-22 23:14

manager   ~0005332

I was able to reproduce it with this simple xaml:

<Grid
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Border BorderBrush="Red" BorderThickness="2" Width="300" Height="300">
<Button Content="Hello">
<Button.Clip>
<StreamGeometry>M0,30L30,0 300,60 200,300z</StreamGeometry>
</Button.Clip>
</Button>
</Border>
</Grid>

Issue History

Date Modified Username Field Change
2015-10-22 12:02 ZanAlex New Issue
2015-10-29 11:05 sfernandez Assigned To => sfernandez
2015-10-29 11:05 sfernandez Status new => assigned
2018-11-01 02:14 jsantos View Status public => private
2018-11-22 23:14 sfernandez Note Added: 0005332
2018-11-22 23:14 sfernandez View Status private => public
2018-11-22 23:14 sfernandez Platform => Any