Klem,
Not sure what kind of stick you use. I use the Thrustmaster/TQS and program most of my own Sim files. Other programable sticks should work this way.
You must use a RAW code to get a view to stay. Also works for stuff like dive or wheel brakes. IE: Press switch = brakes on, Release switch = brakes off.
(WAX ON, WAX OFF has already been done and is copyrighted

)
To make RAW codes work you got to use the Key Press RAW codes and the Key Release RAW codes. This is what the FE sends to the Sim for certain keys.
Example:
Spacebar pressd = Wheel Brakes On.
Spacebar released = Wheel Brakes Off.
When you push the spacebar a Key pressed code is sent and when you release the spacebar a Key released code is sent.
(Not actualy RAW codes sorry I'm at work, just an example)
Example:
Spacebar press = RAW(#E0)
Spacebar release = RAW(#E0 #OD)
So you fake out the FE. Flip a control switch and send spacebar press. Now, until you send a spacebar release, the FE thinks the key is pressed continuesly and your wheelbrakes are ON constantly.
This works for control switches that stay in the position that they are moved to.
You must always send a Key release code. If you don't you can really foul things up, for other key presses. You can also manually press the key in question to reset it.
You can set up your views using much the same method.
A flip of one of your hat switches, changes to the selected view, these hat switches are spring return to center. Using the RAW MAKE code or Key press code, the view stays until you reset it.
You can build multiple views this way. IE BackLeft, UpRight etc. I think AH only likes 2 modifications to each view.
The tricky part is reseting or sending Key released codes for your views. I do this by making a RAW code that in essense sends Key release codes for ALL the view keys. Reseting the ones I have used, the FE ignores all the ones I have not used.
This reset is given by selecting a often used view. Back, FrontUp, Up, and BackUP --> the lift vector views.
The codes are sent as follows ---> RAWReset and then the view selected. So now I go DIRECTLY to the view I want by 1st reseting all other views, and then selecting the view I desire. The switch does not need to be held, for the view to remain.
To totally reset my views and return to the Front view, I use the Back (Check Six)view.
Example:
Look --> Left Back, I now have 2 Key presses sent.
I want to check six or just reset my views back to the Front view.
On Press I send --> RAWReset then Back (Back view switch is held). On Release I send ---> RAWReset then Front. Pick an easy switch to hold, usually not held for more than a moment in a DF anyway.
This all becomes immensely easier using FOX2 software for Thrustmaster gear, get the URL from the Thrustmaster web site to download it. I can send you an example file.
Whew, hope this helps, typers tired.

Mino