Hi,
I am trying to make the selected line's background blue. I tried to send Shift+Space combination but it gives error. Is it possible to send this key combination or have you found any other way to make the selected line different from the others (except OnFormat)?
This is not an important case but users don't like a small black triangle
My code was:
IF ISCLEAR(WShell) THEN
IF NOT CREATE(WShell) THEN EXIT;
WShell.SendKeys('+{SPACE}');
Comments
One way to programmitically change an objects background colour/size/format based on data is to have 2 controls based on the same data and then show or hide them as required. However as it sounds like you're trying to use this with a Table box...I don't think that would work.
Also I would be a little concerned with code that is sending keys to a table box on a form. How do you know which field could be active when the sendkeys command is being sent too? It could result in you sending a " " character into a field you don't want too.
Epimatic Corp.
http://www.epimatic.com
Could be completely off base, though.
My Blog - nav.education
I am thinking of OnAfterGetCurrentRecord with help of OnTimer. After the open forms I will wait for a few time then I will run the code. (Otherwise it could run for all rec)
There isn't a setselected function. In fact the line is also selected by the user. So there isn't any other function need to get the selection.
Regards,
Pargesoft