Shop OBEX P1 Docs P2 Docs Learn Events
Text Based GUI for VGA_HiRes_Text Driver — Parallax Forums

Text Based GUI for VGA_HiRes_Text Driver

telluriantellurian Posts: 52
edited 2009-02-18 20:44 in Propeller 1
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)
1024 x 768 - 91K

Comments

  • RaymanRayman Posts: 14,826
    edited 2009-02-17 20:27
    Looks good. I'm curious... What do you use for a mouse cursor? Or, is it only keyboard controlled?
  • telluriantellurian Posts: 52
    edited 2009-02-17 20:52
    Rayman said...
    Looks good. I'm curious... What do you use for a mouse cursor? Or, is it only keyboard controlled?

    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.
  • Bill DrummondBill Drummond Posts: 54
    edited 2009-02-18 04:30
    Good job Allen,·add an SD card and·I could almost believe I was running·Turbo Pascal on a DOS machine.

    ps.. Running the Console Window using the TV would be neat.
  • telluriantellurian Posts: 52
    edited 2009-02-18 20:44
    Bill Drummond said...
    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)
Sign In or Register to comment.