quote:
...a question about it yesterday...
I saw that question alright, but then I spotted the word ''pattern'' amongst the posts. I didn''t run and hide immediately, just soon after, when I followed the link to what they were talking about. Curiously, this type of thing is what I''ve ended up with in my code also:
class CoinInsertedEvent : public TEvent
That''s from the link ''typed message pattern'' provided by antareus in one post. I didn''t/doesn''t look ''right'', but it works. I''ll have another look at that thread, since you discribed what you are working on as ''very similar''.
quote:
I''m planning on trying to implement an auto-type feature in mine. As you type, it would start trying to guess which command you want. So if you typed /s it would show a dimmed ''ay'' after the cursor. If you hit tab, it would auto complete the command for you, add a space, and move the cursor to the end of the line. You could even implement a pop-down list of matched commands (similar to the way IE autofills URL''s in the address field). This would give you a functionality similar to what you were going for I think.
A combination of what you''re suggesting would be cool. A listbox would be really necessary I think. If you type just ''s'' for example, it could match a good number of commmands. Rather than the I.E. approach of the listbox appearing separate from the line you''re typing in, one could combine it with the ''greyed out rest of command'' approach. I''ll try some illustration:
salad -- <-greysalad |salamander | <-listboxsalute |
Just imagine that without the gap with the ''--'', and ''ad'' in grey. I''m unsure whether salad should be repeated in the listbox as shown?
Regardless, this is the type of thing that might make my obtuse hierarchical system quite useable. I already have a ''history'' system, like that provided by a Win2k console, or DOSKey.
Oh, and one can scroll to the very top of the console buffer by using ''Ctrl-Pgup'', and to the very bottom by using ''Ctrl-Pgdn''. The latter is something that drove me mad using the Quake console. Scolling all the way up to see something, and then having to scroll all the way down again. I''m sure I''ve just missed the key to do it?!
Ro_Akira