Programmatically edit a treeview label: Difference between revisions
From DataFlex Wiki
Jump to navigationJump to search
(→Getting it to work: added vdf source tags) |
|||
Line 9: | Line 9: | ||
First you have to enable label editing with: | First you have to enable label editing with: | ||
<source lang="vdf"> | |||
Set TreeEditLabelsState to True | Set TreeEditLabelsState to True | ||
</source> | |||
Then you have to send TVM_EDITLABEL for example as in: | Then you have to send TVM_EDITLABEL for example as in: | ||
<source lang="vdf"> | |||
Procedure EditNow | Procedure EditNow | ||
Handle hItem | Handle hItem | ||
Line 24: | Line 26: | ||
On_Key Key_Alt+Key_F1 Send EditNow | On_Key Key_Alt+Key_F1 Send EditNow | ||
</source> | |||
As you can see I've not tested with doing it just after adding the item but | As you can see I've not tested with doing it just after adding the item but |