Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Well, at the beginning you should have in mind, that the implementation of new text box control is kinda complicate thing. It is necessary that you consider the following points:</p> <p>1) What should your textbox do? How can the user interact with it? Which events do you necessarely throw? 2) How should you textbox be drawn? Is it a simple box with an outline or do you have elements which are different if the user gets interacted.</p> <p>A good starting point for implementing your own textbox is to look how it works under the hood - in fact, you should start by referencing to samples which came from the DirectX and DirectDrawing area, one example is the following link (the sample is for c++, but the concepts are the same as used in windowsforms or wpf drawing):</p> <p><a href="http://www.uc-forum.com/forum/d3d-tutorials-and-source/65377-make-textbox-ingame-console-directx.html" rel="nofollow">http://www.uc-forum.com/forum/d3d-tutorials-and-source/65377-make-textbox-ingame-console-directx.html</a></p> <p>a more direct sample (explaining howto extend an existing textbox) can be found here: <a href="http://www.codedblog.com/2007/09/17/owner-drawing-a-windowsforms-textbox/" rel="nofollow">http://www.codedblog.com/2007/09/17/owner-drawing-a-windowsforms-textbox/</a></p> <p>All in all, to achieve your goal try to extend the basic text box at the beginning and afterwards start with a component which is not that complicated, for example a simple checkbox. Go on and at the end you will be able to implement your own textbox control ;)</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload