randomkeyhits Posted October 30, 2014 Share Posted October 30, 2014 I've gotten my text entry function almost finished but I need to add a cursor to it which seems tricker than I first thought. When using Context:DrawText are there any special characters in the same way as ASCII control chars, things like blink or reverse or do I have to emulate them? Assuming the latter is there an easy way to get how many pixels a text stream took to be displayed or is there a way to effectively append more text in a second DrawText Command. Quote content over form, game play over all. Link to comment Share on other sites More sharing options...
Admin Posted October 30, 2014 Share Posted October 30, 2014 You can use this to get the width: http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/font/fontgettextwidth-r52 Maybe you can use the underscore for a cursor? Quote Link to comment Share on other sites More sharing options...
randomkeyhits Posted October 30, 2014 Author Share Posted October 30, 2014 Perfect, thanks, was too wrapped up looking in window & context and missed that I've never been a fan of an underscore cursor but its always a reasonable fall back position.I'll experiment a bit and see if I can do something I like first. Quote content over form, game play over all. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.