Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#186 treeview endedit received arguments ooDialog4.2

ooDialog.4.2.0
closed
Mark Miesfeld
ooDialog (31)
5
2012-09-07
2012-07-11
hex
No

Found an old note I have, about ooDialog 4.2 ref manual.

I have forgot what first arg (item) returned, but I seems not to be using it in my code elsewhere.

In the manual:
4.7.17.6. EndEdit Event Handler
::method onEndEdit unguarded
use arg item, newText
return 0

Actually a treeview endedit receives three arguments (which is fine, I need the oldtext so good to have a ref. to that)

::method onEndEdit unguarded
use arg item, key , newText

-- and retreive the old text with

tree = self~newTreeView("IDC_TREE1")
info. = tree~itemInfo(key)
oldText = info.!TEXT

-- and modify

If symbol("NEWTEXT") = "VAR" then do
tree~modify(key,newtext)

Chapter 4 on page 484
1. The event-handling method connected to ENDEDIT receives two arguments: the item handle
of which the label has been edited and the newly entered text.

Discussion

  • Mark Miesfeld
    Mark Miesfeld
    2012-08-16

    Committed revision 8198. ooDialog/branches/4.2.0
    Committed revision 8199. docs/trunk/oodialog

    Thanks /hex. It's funny I did not even notice this when you opened it.

    • labels: ooDialog --> ooDialog, ooDialog_4.2.0_release
    • status: open --> pending
     
  • Mark Miesfeld
    Mark Miesfeld
    2012-08-20

    • labels: ooDialog, ooDialog_4.2.0_release --> ooDialog
    • milestone: Next_Release --> ooDialog.4.2.0
     


Anonymous


Cancel   Add attachments