What text app are you using? I'm using Handcent and this is how i did it.
Go into settings of HC and make it the default for both SMS and MMS. Then go into the stock app via Manage App and disable it. A warning will pop up about screwing something up and press ok anyway. Now Handcent will be default and appear on the lock