Silverfrost Forums

Welcome to our forums

Library with screen location(x,y)

4 Apr 2023 10:57 #30160

Just FYI: your variable LOC is also an intrinsic integer(7) function. It returns the address of the argument.

FTN95 is really good about divining intent of reserved function names usage. Still, best to avoid using function names as variables with dimensions.

In the example:

integer(7):: i,a
i = loc(a)
print *,i

you will get the decimal address of the variable 'a' printed.

LOC() has lots of great uses!

4 Apr 2023 11:02 #30161

Use WINAPP and the black DOS command box will not be displayed.

If you do console output in a WINAPP application, an output window will be created automatically. All I/O from to/from the console are carried out in this window.

Please note: When you close you main window and there is a console window displayed, you'll need to also close this window in order re-compile and run.

5 Apr 2023 6:57 (Edited: 5 Apr 2023 11:21) #30162

Removed

5 Apr 2023 8:02 #30163

Look up the help file for IMPORT_IMAGE@

Clearwin+ is extremely powerful and you should persevere with it.

Given the complexity of some of the user interfaces I have developed over the last 10 years using Clearwin+, I cannot fault the library, everything needed is there.

5 Apr 2023 12:15 (Edited: 5 Apr 2023 2:16) #30164

Is there a way to change the as is big cross-cursor into something more modest? And can the font be changed to Consolas, because the output as is, is very feeble. And can the size of big the black compiler output frame be reduced in size, and also to say: 'One moment please.'? Thank you very much in advance.

5 Apr 2023 12:26 #30165

I suggest you look at the help available on cursors found in the FTN95 and Clearwin HELP file available through Plato. Search for cursor and gets lots of references. Read up on them. I use it constantly, even after a decade of using this product!

Specifically, winio@() format code**%cu**. I think you'll find good stuff there.

The help is available there, to start.

5 Apr 2023 12:40 (Edited: 5 Apr 2023 1:26) #30166

I did not expect to find (a reference to) the language manual under the help button of the ide. Sorry.

5 Apr 2023 12:52 #30167

From PLATO. find 'Help' on the menu bar and click it.

5 Apr 2023 2:05 #30168

There is also an FTN95 link on this HELP menu, as well as for ClearWin, etc. Just pull it up, and search. It's a single HELP file (generally) that has links in Plato to the appropriate starting sections for the HELP you're looking for.

5 Apr 2023 4:03 (Edited: 5 Apr 2023 7:02) #30169

I am taking a break from this discussion. Thank you for having shown so much patience with me.

5 Apr 2023 6:38 #30170

I am so sorry that my attempt to show you where to find the relevant information was not what you were looking for. Your observation about the standard cursor did not yield enough information about what you wanted it to look like, so I chose a more general approach to help you find the solution that works for you.

10 Apr 2023 6:38 (Edited: 12 Apr 2023 7:30) #30178

Removed

11 Apr 2023 9:59 #30180

I have been using Fortran on a PC since the early 1980s – a period of 40 years – and although I had my ‘favourite’ compiler at various times, I tried many compilers, a number of which are no longer available. In every case, the supplied documentation <u>never</u> contained a tutorial on using Fortran, but expected the user to have received that training elsewhere. It was the same with the mainframe compilers I used before that.

Fortran is not a computer language that has always been the same, but it has evolved. There have certainly been standardisations which have led to Fortran-66, -77, -90, -95, -2003, -2008 and quite possibly others. For my own modest purposes, I am content to use FTN95’s 32-bit mode, and I write code that very largely conforms to the Fortran-77 standard. If I was looking for a book from which I could learn that, I would probably select the book by Delores Etter (Structured Fortran 77 for Engineers and Scientists), which I could find secondhand rather cheaply. If your needs are modest, you could easily follow this path. The limitations of 32-bit Fortran are primarily concerned with the size of data structures, and FTN95 can now operate in 64-bit mode in which all the memory in a modern PC is available to a single application, while still operating in a Fortran-77 compliant way.

Many users want or need to use the additional or alternate facilities introduced with later versions of Fortran. FTN95 supports everything in Fortran 90 and 95, plus many features of later standards. The tutorials for those facilities require a more modern book than Etter – although she did update her book to cover Fortran-90. I’m afraid that the more modern books cost a great deal more than a secondhand copy of Etter, and are less likely to be found ‘used’. I suggest looking in a library to begin with, then buying your own copy of the book you like best.

Fortran has never had an integrated graphics system, nor facilities for preparing a modern graphical user interface. FTN95 does – it’s called ClearWin+. The reference I gave you provides a tutorial for using the system that only requires a minimal knowledge of Fortran itself. Unlike books that teach Fortran (any version), the ClearWIn+ tutorial book Is absolutely free to anyone who wants it.

I suspect that you will never find a completely free tutorial on using Fortran – unless you do what so many of my past students did, which is to borrow a book from someone, and never return it!

Eddie

18 Apr 2023 12:13 #30200

'I suspect that you will never find a completely free tutorial on using Fortran – unless you do what so many of my past students did, which is to borrow a book from someone, and never return it!'

There are two excellent books that I know of:

  1. Mastering Fortran. A Comprehensive Guide (get it at Amazon and Bol. Com) The book is a bit odd but superior, money well spent
  2. Fortran 90/95 Programming Manual, by Tanja van Mourik, free download, also excellent, however much less detail.
28 Apr 2023 3:22 #30244

In the mean time, and a teeny weeny bit wiser, I have discovered that many of the things one would like to do, regarding positioning something x,y on the display, removing the vertical slide, and to forth, can easily be done in C and be called from there.

Please login to reply.