>>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:
Angus> Conceptually, doing so is easy. We just need to tell the Dialog Angus> that the buffer has become readOnly, no? That way, the OK and Angus> Apply buttons will be disabled. Angus> Here's an unchecked implementation of the idea. Frontend only. Angus> No hooks from the core. However, I'm sure that you'll be able Angus> to turn this into working code ;-) Angus> We need a member function in frontends/Dialogs.[Ch] that is Angus> called when the cursor is moved somewhere illegal. Eg What we could do too is to call some Dialogs::update() method at the same time menus and toolbars are updated. This method would tell each open dialog to update itself. The Label dialog would call getStatus on LFUN_INSERT_LABEL to see whether insertion is currently possible. But maybe is it what you are proposing :) JMarc