摘要 |
The treeview software component is limited in its use in that it uses a lot of screen real-estate, especially where indentation is deep, or the text in the tree nodes becomes very long. This text often becomes truncated or hidden. This is because the tree structure is created using text indentation, pushing the text to the right as the levels increase, leaving less space for the text to be visible. For this reason, treeviews are seldom used on screens or forms where space is restricted. The innovation addresses this shortcoming by displaying all node text at zero indentation, in a single column, with an overlaid background in the same column indicating the treeview level/indentation. e, cn It e.yt t cc, n ............... Figure 3 Treeview showing limitation if text is too long .............. ........... -....... -... ......................... ft "to -W8n .................. ........................... ........................... ........................... ........... -- ....... -........................... ........... -- ....... -........................... ........................ ........................ ............. ........... .......................... ........... -- ....... -........................... ........... --- ......... ..................... ......................... ............... --- , ......................... .... -............ .................... ............ - .... .................... ............. -........ ........................ ...... ............... . ........... . . ........... ............ ............ -........... ......................... .............. ............... ............... ................ ............ ...................... ........... --....... ...................... ........... .......... ........... .................. ..................... ................... .................. ................... ..... -........... .................. ........... --......... ............. ............... . .............. ............. ........... --......... ........................ .......... - -....... ....................... ...................... ....................... ............ -................. ............ - ........ ...................... ............ - ........ ...................... ...................... ........... .......... ........... .......... - -...... ...................... .......... - -...... ...................... .......... ................ .......... -................ ........................... .................. --....... ....... ................. -- ... ................... ...... , "C'Ns 0.. W ; ar. 4- *:::::h-'::::::: d ........... --........ ....................... ........................... ............... ---........................... ............... ---........................... ............... ---........................... .......... ................ ........................... ........................ ............. -......... ........................ ........... --......... ........................ T0.66"t' OA*TV 6" 1 0 1"'1 .......... .................. ............... --- ..- ................. ............... --........................ ................... -........................ ............. :-3c --,- h ............... ........................... ............... --- .... ........................... ............... --- .... .................... ............... --- .... ........................... ............... --- .... ........................... .............. ............ d H ........................ .......... -.- ........ -.......................... ........................... ................ - --...... ............................ ............ .......... ......................... ............ -........... .......................... ........... - -.............. ..... .............. ..... Figure 4: Example of space saver treeview with some nodes expanded |