|
Theo,
> This works fine but I'm sure there is a better (ie correct) way, can
> anyone let me know what it is?
I don't recall seeing a way of changing the controls default behaviour,
and a quick trawl through the TextEdit control documentation on MSDN
didn't come up with anything obvious, so I guess your method is as good
as any. You could refactor it a bit, pass the presenter as an argument
so that you only need one additional method, or even do away with the
extra method completely....
createSchematicWiring
...
fromPresenter
when: #focusLost
send: #selectionRange:
to: fromPresenter
with: (1 to: 1).
toPresenter
....&etc
--
Ian
Use the Reply-To address to contact me.
Mail sent to the From address is ignored.
|