Author Topic: OpenGl Scrolling Text  (Read 6596 times)

0 Members and 1 Guest are viewing this topic.

Charles Pegge

  • Admin Support Member
  • *****
  • Posts: 4267
    • Oxygen Basic
OpenGl Scrolling Text
« on: October 27, 2010, 06:27:26 AM »
This is a demo of the Opengl text control I've been working on. To see the listing modes in action press number keys 4 or 5. I'd be interested to know if this works smoothly on your PCs.

Notes
Code: [Select]
12:13 27/10/2010
Charles Pegge

DEMO:

Work in progress to develop Opengl Controls including text navigation,
editing, and to give OxygenBasic a thorough workout!

-------------
Viewing Modes
=============


Main Keyboard numbers 2..6
==========================

2 wire frame orthogonal view
3 shaded 3d view
4 Four viewports combining orthogonal and perspective
5 Listing
6 Combined Listing with Perspective view of object

Other active keys:
'-----------------

Space: toggles object rotation
+      enlarge object
-      reduce object
left arrow   rotate y axis clockwise
right arrow  rotate y axis anticlockwise
up arrow     rotate x axis
down arrow   rotate x axis
Home         Move left
End          Move right
Pg Up        Move Up
Pg Down      Move down

F2           Reset position of object

Mouse
=====

Moving with:

Left Button Down   Rotate Object

when 'M' key is also held down the Object can also be moved in X and Y directions


'--------
List Mode
'========

Scrolling zones:
'---------------

Using the mouse:

UP    Top Left
DOWN  Bottom Left
LEFT  mid left
RIGHT mid right

When Left button is held down:

Highlight select word and character

Left button double click

The selected word is highlighted and any other occurence of the character
pattern is also highlighted throughout the listing.


The Window may be freely resized


I'm using a proto version of Alpha019 so I advise confining it to this demo.

Charles

[attachment deleted by admin]

efgee

  • Full Member
  • ***
  • Posts: 172
Re: OpenGl Scrolling Text
« Reply #1 on: October 27, 2010, 07:43:38 AM »
1.) The scrolling is slower than on "normal" editor controls (cpu=P4-3GHz).

2.) Also when resizing the window the text resizes as well - it's proportional to the window size.

3.) When another window with the focus overlaps this one and the fucus goes back to this one (with clicking on the title bar) the blue screen is not redrawn until the mouse is inside the client area.

bye
efgee

« Last Edit: October 27, 2010, 07:47:48 AM by efgee »

jcfuller

  • Full Member
  • ***
  • Posts: 181
Re: OpenGl Scrolling Text
« Reply #2 on: October 27, 2010, 08:18:12 AM »
It's difficult for me to compare speed as this a high end i7 machine but all looks and works fine here.

James

 

kryton9

  • Hero Member
  • *****
  • Posts: 721
Re: OpenGl Scrolling Text
« Reply #3 on: October 27, 2010, 04:41:21 PM »
Ran smoothly here on almost 5 year old amd dual core 4600, video card nvidia 8800 gt

Charles Pegge

  • Admin Support Member
  • *****
  • Posts: 4267
    • Oxygen Basic
Re: OpenGl Scrolling Text
« Reply #4 on: October 28, 2010, 02:09:26 PM »
Thank you all.

I think I've resolved some of the focus problems and am in the process of releasing the Lister from its Viewport moorings so it becomes a movable control on the screen with well defined boundaries.

To make it practical as a coding tool, I've also been tryiing out a few monospaced fonts. "Lucida Console" seems to be the cleanest so far. Any preferences?

The scrolling speed is independent of processor speed since everything is synchronised to a timer event. To change the scrolling speed only the y step is altered.

Charles






John

  • Hero Member
  • *****
  • Posts: 3639
Re: OpenGl Scrolling Text
« Reply #5 on: October 28, 2010, 08:37:00 PM »
Quote
To make it practical as a coding tool, I've also been tryiing out a few monospaced fonts. "Lucida Console" seems to be the cleanest so far. Any preferences?

Courier New