Hi,
well it should be possible i think. Here's how i would go about this, i'll just sow the seed and leave the coding to you
The aircraft i know of (VC-10 is not one of them) don't have seperate controls for flaps and slats. It is all controlled from 1 lever, maybe combined as a function of airspeed and flap position.
What you need is to have an inhibit switch which sets an L:Var to 1 for inhibit and 0 for uninhibit (ie L:inhibit, enum or something like that). Next check if the flap lever has moved from 0 and if so, reset it to zero if the inhibit switch is on.
Make a code:
IF (Inhibit equals 1) AND (Flaps Handle Percent LARGER THAN 1) THEN (move Flaps Handle to Zero)
One caveat though, i don't know what this will do if you use a throttle quadrant with a flap lever on it. Maybe the quadrant will keep asking for flaps to be set to a certain position and the code keeps saying no way. That might cause a looping action which could degrade performance.
But you could go ahead and try anyway, right?
grt
Willem