I have a situation where a band can be re-sized by the user and can end up being 1 pixel wide. When this happens I disable the border re-size and only allow re-sizing using the chart event markers.
However, when trying to move the band it's difficult to grab the band because the band is only 1 pixel wide. Is it possible to make a property that can change the size of the "BandMoveWidth" or something like that?
Band Width Small - Hard to Grab
Moderator: Queue Moderators
- blakeadkins
- Posts: 44
- Joined: Tue Feb 25, 2014 7:49 pm
Band Width Small - Hard to Grab
- Attachments
-
- Band Width 1 Pixel Wide - Difficult to Move
- bandTinyWidth.png (1.74 KiB) Viewed 4886 times
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: Band Width Small - Hard to Grab
The band resizing edge can be adjusted by band.ResizeBorderWidth, but it won't probably help with your case.
When the band is very narrow, you could place a secondary, transparent band with slightly larger size, behind the primary band, so the mouse interactive is targeted to that. In that secondary band's MovedByMouse or ValuesChanged event handler, you can update the primary band's position. You may want to disable primary band's mouse interactivity in that case so it won't disturb the secondary band's mouse event handling.
When the band is very narrow, you could place a secondary, transparent band with slightly larger size, behind the primary band, so the mouse interactive is targeted to that. In that secondary band's MovedByMouse or ValuesChanged event handler, you can update the primary band's position. You may want to disable primary band's mouse interactivity in that case so it won't disturb the secondary band's mouse event handling.
LightningChart Support Team, PT