Text Based GUI for VGA_HiRes_Text Driver
tellurian
Posts: 52
I am using the VGA_HiRes_Text driver a lot these days and needed a basic GUI interface to control devices and display feedback. I wrote a simple bunch of UI objects to do this and have uploaded them to the OBEX (under the same title as this post subject). It is a trite, first principles text based UI with menubar, scrolling text panes, radio buttons, input fields, etc... It is simple enough so that most people can modify it to suit their specific needs.
Bug reports would be appreciated, as well as any suggestions.
- tellurian (Allen)
Bug reports would be appreciated, as well as any suggestions.
- tellurian (Allen)
Comments
There is a mouse and text (keyboard) cursor provided by the VGA_HiRes_Text driver. The mouse cursor is a solid inverted block, the text cursor is a blinking underscore. When you move the mouse around the mouse cursor moves around. If you left click on an InputField the text cursor will appear in the input field. The UI is mouse controlled, the keyboard is used for typing in InputFields to enter data.
ps.. Running the Console Window using the TV would be neat.
I thought about it and I might do it if I have some free time but the TV screen access is not as efficient as the VGA screen access (i.e. TV 'printstring' is a character by character affair with colour attributes encoded into each one to produce a word that is placed in the screen buffer, whereas for VGA you just use bytemove() on the whole string in one shot). However, if lots (some ..., more than xx?) people are interested I could look into porting it to TV. On the other hand ... you could try porting it yourself if you have time. The structure does not have to change just the final video buffer access (and some optimizations perhaps).
cheers,
tellurian (Allen)