Custom Text Field
Author |
Message |
copthesaint
![](http://compsci.ca/v3/uploads/user_avatars/15853548854c9c056fda48d.jpg)
|
Posted: Sat Feb 28, 2009 6:35 pm Post subject: Custom Text Field |
|
|
I spent today and made a Custom Text field
post comments if you wish or whatever
Description: |
|
![](http://compsci.ca/v3/pafiledb/images/icons/clip.gif) Download |
Filename: |
Custom Text Field.t |
Filesize: |
4.49 KB |
Downloaded: |
107 Time(s) |
|
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
rubdoo
![](http://compsci.ca/v3/uploads/user_avatars/149724291549a73c291a40b.png)
|
Posted: Sat Feb 28, 2009 7:51 pm Post subject: RE:Custom Text Field |
|
|
that's cool, it's fun trying to only type 1 letter XD
|
|
|
|
|
![](images/spacer.gif) |
The_Bean
![](http://compsci.ca/v3/uploads/user_avatars/8459755754b4009cee84e9.jpg)
|
Posted: Sun Mar 01, 2009 1:34 pm Post subject: Re: Custom Text Field |
|
|
1) Learn records, it will make things like this much more organized.
2) Learn flexible arrays, it will make the code shorter and faster. And allow you to make more than 1 text field easier.
3) Use View.Set() not Window.Open() when your only using 1 window.
4) Make it work with View.Update().
Try using this when getting the key values, this way you don't have to go through all 255 checking to see if they are pressed.
And it already has the delays for the key being held down.
Turing: |
var key : char
loop
if hasch then
key:= getchar
exit when key= chr(27)
put key, ' ', ord(key )
end if
end loop
|
|
|
|
|
|
![](images/spacer.gif) |
SNIPERDUDE
![](http://compsci.ca/v3/uploads/user_avatars/16932914504cbd0ad6ceaf1.jpg)
|
Posted: Sun Mar 01, 2009 9:35 pm Post subject: Re: Custom Text Field |
|
|
It is also necessary to clear the buffer of any characters once done using it.
|
|
|
|
|
![](images/spacer.gif) |
|
|