Feature suggestion for next version
Publicado: Dom Jul 08, 2012 6:47 pm
Hi,
One thing that would be nice to have, is a comment noting which event a
generated Method comes from.
So, if we name a Double Click event from a listbox lstOfSecondaryItems
ProcessItem
,
it would generate the standard
WITH OBJECT ::lstOfSecondaryItems := TListbox():New( Self )
:SetBounds( 16, 52, 278, 108 )
:nIndex := 0
:OnDblClick := "ProcessItem"
:Create()
END
in the .xfm file, but ALSO would generate a comment similar to
/*
Method ProcessItem
Generated for OnDblClick
*/
Sometimes, we can name our event methods in a standard way, so we
immediately recognize what event the method belongs to. But it would
still be convenient to have this auto-generated, during development.
Perhaps this could be an option, that can be turned on or off.
One thing that would be nice to have, is a comment noting which event a
generated Method comes from.
So, if we name a Double Click event from a listbox lstOfSecondaryItems
ProcessItem
,
it would generate the standard
WITH OBJECT ::lstOfSecondaryItems := TListbox():New( Self )
:SetBounds( 16, 52, 278, 108 )
:nIndex := 0
:OnDblClick := "ProcessItem"
:Create()
END
in the .xfm file, but ALSO would generate a comment similar to
/*
Method ProcessItem
Generated for OnDblClick
*/
Sometimes, we can name our event methods in a standard way, so we
immediately recognize what event the method belongs to. But it would
still be convenient to have this auto-generated, during development.
Perhaps this could be an option, that can be turned on or off.