06-28-2011 02:32 PM
Hi All,
We require to navigate to a path for each row in the table control. Is it possible to have a hyperlink in a table cell for each row? or do I use button cell to do the same ?
Regards,
Kanu
Solved! Go to Solution.
06-28-2011 03:27 PM
Hi again,
instead of a button you could also use a regular string or text message control. In the callback routine you can then launch a Web browser. It might also be of interest to have a look at the toolslib functions, e.g. userint\custctrl\hyperlinkctrl\simple.cws
06-28-2011 03:39 PM
Hi Wolfgang,
Thanks for your reply. I understand that a text message control can be made a hyperlink as per simple.cws example. However, I don't know how to do the make a string cell of a table a hyperlink. Even though, I set the cell attribute as VAL_CELL_STRING, how do I make it a hypelink ?
Regards,
Kanu
06-29-2011 11:17 AM
The answer is, you can't. However, the hyperlink custom control is open-source. You can find the source in toolslib\custctrl\hyperlinkctrl.c. It's a fairly simple code module, so it wouldn't be all that hard to modify that code so that it could operate in a table cell, rather than a text message control.
Luis
06-29-2011 11:20 AM
Thanks Luis. I appreciate your help.
Regards,
Kanu