PDA

View Full Version : Howto make text non selectable


blarouche
09-22-2009, 09:12 AM
Hi everybody


I am developing a nice product which I have to put text on the screen. Something like a Market Profile.

Now I would like to make the text non selectable by the mouse. Is there a way in my code to make that happen ?


Thank you very much for your help

Bernard

Ralph
09-22-2009, 09:48 AM
Bernard,

just in case you couldn't find a more convenient solution: Text printed by overwriting the Plot()-Method is not selectable.

Regards
Ralph

NinjaTrader_Bertrand
09-22-2009, 09:54 AM
Bernard, unfortunately this is not supported for the DrawText methods in NinjaScript - however in C# custom programming I think there's a property to set textboxes to ReadOnly property.