D
Daniel Carlsson
Hello
I have a bit of a problem, Im building my own component which shows a
specialized list of data. Its used to allow you to select patterns from the
data. Each cell is its own control and stored in the parent control.
The problem is that I want to be able to select an area when shift is held
and you click one of the cells. And I cant find any information of how you
can sense the state of the keyboard, or the shift button. Using OnKeyDown/Up
might work if I make all the cells and the container components trigger on
those, but if the user presses shift when the component is not focused I
dont think it will work, and Im not so sure shift triggers unless you press
another key anyways (havent checked that yet).
Does anyone have any tips of how I can check if shift is being pressed when
the user clicks a component?
Thanks in advance,
Dan
I have a bit of a problem, Im building my own component which shows a
specialized list of data. Its used to allow you to select patterns from the
data. Each cell is its own control and stored in the parent control.
The problem is that I want to be able to select an area when shift is held
and you click one of the cells. And I cant find any information of how you
can sense the state of the keyboard, or the shift button. Using OnKeyDown/Up
might work if I make all the cells and the container components trigger on
those, but if the user presses shift when the component is not focused I
dont think it will work, and Im not so sure shift triggers unless you press
another key anyways (havent checked that yet).
Does anyone have any tips of how I can check if shift is being pressed when
the user clicks a component?
Thanks in advance,
Dan