On Monday 24 September 2001 14:13, Jean-Marc Lasgouttes wrote:
> >>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes:
> 
> Angus> But how do I do this?
> 
> Angus> If I perform the test in input, then the change has already
> Angus> been made to the fl_choice. How do I discover what the previous
> Angus> choice was?
> 
> I do not know :)
> 
> Angus> I need to define a pre-handler that doesn't call the
> Angus> appropriate draw routine for the fl_choice if the selection
> Angus> lies outside the range. But I don't know how to do this. Can
> Angus> you talk me through it?
> 
> Of course not :)

Well I sent a message to the xforms list asking if it was possible to define 
a filter for a choice. You may get lucky.

> >> Also, would it be possible to apply MakeDisplayPath to the buffers
> >> in the list at the top?
> 
> Angus> Sorry, you've lost me.
> 
> In the list of buffers, I see something like
>   /afs/inria.fr/rocq/home/meval/lasgoutt/file1.lyx
> 
> It would be much better to have the info like
>   ~/file1.lyx
> 
> This is done via the MakeDisplayPath function of filetools.C (could be
> done in ControlRef::getBufferList, for example). However, looking at
> the code of FormRef, it assumes that the selected text string is the
> real name of the buffer, which would be wrong here. So you would have
> to change getLabelList to use the index of the buffer, and not its
> name.
> 
> Is that clearer?

Crystal clear.
A

Reply via email to