How to work with Turbo Vision?

I can't understand of Turbo Vision. Can anybody help me? By the way, I'm newbie.


«1

Comments

  • : I can't understand of Turbo Vision. Can anybody help me? By the way, I'm newbie.
    :
    :
    Sure, although it's been a while since I worked with it, but I still know how to create basic programs with it.

    What would you like to know?

  • : : I can't understand of Turbo Vision. Can anybody help me? By the way, I'm newbie.
    : :
    : :
    : Sure, although it's been a while since I worked with it, but I still know how to create basic programs with it.
    :
    : What would you like to know?
    :
    How to create new views? How to set their palette? How to make them dragable?

    [b]From [blue]NetGert[/blue] [red] (NetGert@Programmers.2ndmail.com or Netgert@hot.ee)[red][/b] [code];-)[/code]


  • what's turbo vision?


  • : what's turbo vision?
    :
    :
    Turbo Vision is a text-based Windows-like appearance for Pascal programs. If you have Borland's Turbo Pascal 6.0 to 7.0, then you see Turbo Vision working, since the IDE of these versions are written in the previous pascal version.
    Maybe other pascal versions also have this appearance, but I haven't seen them. Of the two I have given, I am certain.

  • A view is quite difficult to create. Here is some code to get you started:
    BEWARE: THIS CODE IS UNTESTED!!!
    The parts in the [] are optional.
    [code]
    type
    TMyView=object(TView)
    SomeText:string;
    constructor Init[(R: TRect)];
    function GetPalette: PPalette; virtual;
    procedure Draw; virtual;
    end;

    constructor TMyView.Init[(R: TRect)];
    [var
    R:TRect;]
    begin
    [R.Assign(5, 3, 29, 18);] { Set the window's size }
    inherited Init(R); { BEWARE: R must exist here, either as local variable or a parameter }
    end;

    function TMyView.GetPalette: PPalette;
    begin
    const
    P: string[1] = #19; { This is the color index in the TApplication.Palette }
    begin
    GetPalette := @P;
    end;

    procedure TMyView.Draw;
    begin
    WriteStr(1,1,SomeText,1); { Write the SomeText field to the screen with color index 1 }
    end;

    [/code]
    You can also check out the TVDemo example.

    I don't know how to make a view dragable, but you might want to check the help-file on DragMode and DragView. I think (based on the help-file), that you must write an EventHandler() for the cmResize and cmMove events. These must then call the DrawView() method to do the actual moving or resizing.


  • I don't get it. I still don't understand what turbo vision is. btw the source u gave me won't compile (that's ok coz i don't understand a bit of it)

  • : I don't get it. I still don't understand what turbo vision is. btw the source u gave me won't compile (that's ok coz i don't understand a bit of it)
    :
    That code was meant for Netgert and was not a program, but parts of an object inresponse to his question.

    Turbo vision is basically a number of objects, which are used to create a semi-graphical user interface (semi-GUI), such as the intergrated development environment (IDE) of pascal. It consists of a menubar at the top of the screen, a statusbar at the bottom, and a desktop, in which windows and dialog boxes appear.

    Here is the most simple turbo vision program possible:
    [code]
    program MyFirstTV;

    uses App; { I'm not sure about this unit. If this isn't the correct unit, find the unit which has the TApplication type in it. }

    var
    MyApplication: TApplication;
    begin
    MyApplication.Init; { Create the TV application, and initializes its memory }
    MyApplicarion.Run; { Run the application }
    MyApplication.Done; { Destroy the application and free its memory. }
    end.
    [/code]

    This program shows the GUI elements, I described. You can get more help from the "TVISION.HLP" file. (btw this is NOT a windows help-file, but a pascal help-file.

  • : : I don't get it. I still don't understand what turbo vision is. btw the source u gave me won't compile (that's ok coz i don't understand a bit of it)
    : :
    : That code was meant for Netgert and was not a program, but parts of an object inresponse to his question.
    :
    : Turbo vision is basically a number of objects, which are used to create a semi-graphical user interface (semi-GUI), such as the intergrated development environment (IDE) of pascal. It consists of a menubar at the top of the screen, a statusbar at the bottom, and a desktop, in which windows and dialog boxes appear.
    :
    : Here is the most simple turbo vision program possible:
    : [code]
    : program MyFirstTV;
    :
    : uses App; { I'm not sure about this unit. If this isn't the correct unit, find the unit which has the TApplication type in it. }
    :
    : var
    : MyApplication: TApplication;
    : begin
    : MyApplication.Init; { Create the TV application, and initializes its memory }
    : MyApplicarion.Run; { Run the application }
    : MyApplication.Done; { Destroy the application and free its memory. }
    : end.
    : [/code]
    :
    : This program shows the GUI elements, I described. You can get more help from the "TVISION.HLP" file. (btw this is NOT a windows help-file, but a pascal help-file.
    :
    oops, i'm really really sorry, Netgert and zibadian. anyway it won't compile in this line
    MyApplication: TApplication;



  • : : : I don't get it. I still don't understand what turbo vision is. btw the source u gave me won't compile (that's ok coz i don't understand a bit of it)
    : : :
    : : That code was meant for Netgert and was not a program, but parts of an object inresponse to his question.
    : :
    : : Turbo vision is basically a number of objects, which are used to create a semi-graphical user interface (semi-GUI), such as the intergrated development environment (IDE) of pascal. It consists of a menubar at the top of the screen, a statusbar at the bottom, and a desktop, in which windows and dialog boxes appear.
    : :
    : : Here is the most simple turbo vision program possible:
    : : [code]
    : : program MyFirstTV;
    : :
    : : uses App; { I'm not sure about this unit. If this isn't the correct unit, find the unit which has the TApplication type in it. }
    : :
    : : var
    : : MyApplication: TApplication;
    : : begin
    : : MyApplication.Init; { Create the TV application, and initializes its memory }
    : : MyApplicarion.Run; { Run the application }
    : : MyApplication.Done; { Destroy the application and free its memory. }
    : : end.
    : : [/code]
    : :
    : : This program shows the GUI elements, I described. You can get more help from the "TVISION.HLP" file. (btw this is NOT a windows help-file, but a pascal help-file.
    : :
    : oops, i'm really really sorry, Netgert and zibadian. anyway it won't compile in this line
    : MyApplication: TApplication;
    :
    What is the error the compiler gives?


  • : What is the error the compiler gives?
    :

    Sorry, i made a mistake. It won't compile on this line
    uses App;

    and i don't know what to do


  • :
    : : What is the error the compiler gives?
    : :
    :
    : Sorry, i made a mistake. It won't compile on this line
    : uses App;
    :
    : and i don't know what to do
    :
    :
    That's easy. Check if you have the APP.DCU file. If you have that file on your computer, add its directory to the Unit Directories in the Options dialog (Options|Directories...)
    If you don't have it, I can give it to you for Borland's TP7.0 for DOS.

  • : :
    : : : What is the error the compiler gives?
    : : :
    : :
    : : Sorry, i made a mistake. It won't compile on this line
    : : uses App;
    : :
    : : and i don't know what to do
    : :
    : :
    : That's easy. Check if you have the APP.DCU file. If you have that file on your computer, add its directory to the Unit Directories in the Options dialog (Options|Directories...)
    : If you don't have it, I can give it to you for Borland's TP7.0 for DOS.
    :
    I don't know why i don't have it coz i bought tp7 so it must have it. Anyway i use tp7 for windows, I also have tp7 for dos but i don't like it and i don't wanna use it.


  • : what's turbo vision?
    :
    :
    tp7 for windows?? isnt that delhpi or something? do you really have win-tp7???

  • : : what's turbo vision?
    : :
    : :
    : tp7 for windows?? isnt that delhpi or something? do you really have win-tp7???
    :

    though turbo vision is interresting. there is an IDE like that for tasm, it's pretty useful.

  • : : what's turbo vision?
    : :
    : :
    : tp7 for windows?? isnt that delhpi or something? do you really have win-tp7???
    :
    yep i really have it


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories