Find and share HowTos to various installations / configurations!
10 posts • Page 1 of 1
10 posts
• Page 1 of 1
AGorbatykh
Posts:59
Joined: Thu Dec 17, 2015 1:01 pm
Alarm table right click
Postby AGorbatykh »
Hello,
I'm working with table and got an issue. I added a function to hide a row (or all at once) in a popup menu (by right clicking on a table) and a function that shows hidden rows back. However, when there's no rows in a table, it's not possible to pop out that menu to show hidden rows.
Unfortunately RightMousePressed (of a table) takes some arguments:
and assumes operation with real current cell, not with an empty table.
I can't find how to overload that function or event, to catch that moment when I right clicked on a table.
Have you faced with this problem?
If anyone needs to show popup panel, you need to modify a few function in aes.ctl:
[spoiler]void aes_onRightClick(...)
{ //if (row < 0) // no line selected -> context menue still shows
// return;
if( emptyRow )
dpeType=DPEL_BOOL; // dummy
else
dpeType=dpElementType( dpid ); } // now check everywhere (row>=0) to disable or hide menu lines that can't work without real cell
...
string ackVal, ackOldest;
bool ackable, bAckable, bAckOldest;
And what about columns headers? RightMousePressed script is not triggered if I click by right mouse button on a colunm header. How can I fix it? How could I catch right click on a column header state?