Silverfrost Forums

Welcome to our forums

loss of views using Plato Ver 4.51

24 May 2013 8:21 #12276

Paul,

A simple ftn95 example would be very helpful.

The thought of being able to get and put strings associated with program status is very interesting. Does it accept only strings, or can you get numbers also ?

I presume it is of the form: set_variable ( program_name, string_name, string_value, error_code) get_variable ( program_name, string_name, string_value, len_returned)

do you need a get_program_handle ( program_name ) ?

I had gone off using this with all the restrictions with Windows 7, but this looks to be a good option.

John

29 May 2013 7:01 #12290
program reg
C_EXTERNAL SET_REGISTER_VALUE@ '__set_register_value' (VAL,STRING,STRING,STRING):INTEGER*4
C_EXTERNAL GET_REGISTER_VALUE@ '__get_register_value' (VAL,STRING,STRING,STRING):INTEGER*4
integer,parameter::HKEY_CURRENT_USER=Z'80000001'
integer r
character*80 mydata
mydata = 'MyDataValue'
r = SET_REGISTER_VALUE@(HKEY_CURRENT_USER,'Software\\MyCompany\\MyApp','MySection',mydata)
mydata = ''
r = GET_REGISTER_VALUE@(HKEY_CURRENT_USER,'Software\\MyCompany\\MyApp','MySection',mydata)
print*, mydata
end

The API can handle integer values but there is currently no FTN95 equivalent.

29 May 2013 8:46 #12291

Paul,

Thanks very much for this. I will try it out and see what I can achieve.

Limiting to character fields won't be a problem.

John

( also, the support of .png file format has been a very useful addition, as the format is very good for exporting screen dumps, for later importing into word and powerpoint. It has solved all the problems I was having with .gif and there is not a significant file size penalty. )

16 Sep 2013 3:35 #13000

Paul,

Is there any progress on the problems I am having with Plato when operating with two screens (1920 x 1080 and 1920 x 1200). I am using Plato on only 1 of the 2 screens and it still fails when Plato is on the left screen. Even 1920 x 1200 resolution for a single screen exhibits the problem.

The problem occurs when Plato is minimised, although it also might occur when Plato looses focus. The only temporary solution is to exit Plato and then restart. The two main problems are: code windows being coloured with no text, and a large gap below the menu and above the code file tabs.

Sometimes, changing the file selected with the file tabs or start bar selection can recover the screen view ( screen scaleing) but other times it does not help.

Let me know if I can provide any further info or do some alpha/beta testing.

John

16 Sep 2013 6:01 #13001

John

I have not been able to replicate this problem. I have tried with two screens and various resolutions but everything works OK for me.

To my knowledge, no one else is experiencing this problem so there seems to be something exceptional about your setup.

Paul

18 Sep 2013 8:43 #13022

Paul,

I don't know where this problem is going ? I have checked all versions of salflibc.dll ( does Plato uses this ?) I have cleaned out the config files

I checked the screen definition; the adaptor is NVIDIA Quadro 1000M for 1920 x 1080 for notebook and screen NVIDIA Quadro FX 1800 for 1920 x 1200 for desktop screen (desktop is running with a single screen )

If I minimise Plato then try to return via the start bar, then frequently either the menu band or the code windows gets corrupted.

The code windows problem can also have the %mn menu blanked out, but the icons visable. If I have multiple files open, then switching between the tabs can correct this problem and repaint the menu.

I have not found a fix for the menu band problem, with a large 1' ribon space occuring below the menu ( Office 2010 ?) My OS is Windows 7 Enterprise Service Pack 1

I think I have sent screen dumps in the past.

No-one else is reporting the problem, so I'm not sure what the problem could be.

Any ideas on what direction I should look further ?

John

18 Sep 2013 12:26 #13026

John

Plato does not use salflibc.dll and is also independent of any other DLL except the standard Windows DLLs.

I can not think of any way to help you further. As you will appreciate, I can not fix a problem that I am unable to reproduce.

There is an option (in the Options dialog on the Tools menu) that allows you to disable enhanced menus but I doubt if this will make any difference.

Paul

19 Sep 2013 3:46 #13031

Paul,

I again cleaned out all the registry, plato.ini and plato3.ini but the problem remains. It is failing on a single 1920 x 1200 screen. If I open a single file then minimise Plato, then go to the start bar and select the pop-up image of the plato screen, the resulting Plato window is returned, but corrupted. ( the pop-ups are also corrupt) The window menu is being corrupted (no caption bar) and the code window is black. If I select ALT f, this brings up the File menu, I then open another file and the screen layout is then refreshed and back to normal.

No idea what is corrupted in this version. Do Java updates have an effect ? My OS and updates are managed by out IT department, but no other package exhibits the problem.

I'm using FTN95 6.30.0 at the moment.

If you have no solution and no-one else has the problem, then it remains an annoying puzzle.

John

19 Sep 2013 6:57 #13034

John

If you have cleaned out the ini file and the Plato registry settings then there is no point in repeating that exercise.

Plato is a stand alone Windows app based only on the static Microsoft Foundation library. So it only uses the standard Windows API plus the MFC interface (which is built in statically).

All I can suggest is that you try using Plato on a different machine to see if you can get any step by step experience that way.

Paul

24 Sep 2013 12:57 #13058

I have the same problem as John using Plato 4.63 on Windows 7. I can avoid the problem by deleting the .ini file that is created when you form a project, but as soon as the .ini file is reformed, the screen problem recurs.

24 Sep 2013 6:28 #13059

This is very odd. The project ini file does not contain any data that would affect the appearance of the screen. Also John's problem is not related to any ini or registry data.

25 Sep 2013 12:45 #13064

Paul,

I open Plate Ver 4.51 (on my desktop pc) in part of the screen (restore down) and open 2 files. If I then go to the windows start bar, the pop-up display of the available plato screens show up as blank. Moving the mouse between the pop-up options modifies the menu area of the Plato window. Selecting a the pop-up option repaints the plato window, but the menu area is being painted multiple times, finally with part removed. The window caption is changing, with the active file name not always displayed. I have also opened excel with 2 files and explorer with 2 tabs. These do not display these problems. Plato also paints differently, depending if Plato or (say) Excel is the active window, while scanning the possible windows on the windows start bar.

I can not see what is the cause of this problem, as it does not occur with other packages.

During this process the original .ini file is not being updated: C:\Users\myname\AppData\Roaming\SilverFrost\FTN95\plato.ini

[Settings]
BuildBarWasVisible=1
ConfigComboSel=1
[Output]
Span=136
[OpenFiles]
Index=0
0='C:\\TEMP\\test_time_in_nanoseconds.for',0,0,1,-1,-1,-1,-1,2,20,2,20
M=0,1,-32000,-32000,-1,-1,139,111,1579,1034

Plato Version 4.62 (ftn95 ver 6.35) behaves in a different way (on my notebook pc). When Plato is the active window, selecting different windows from the start bar works ok (unlike 4.51), however if Plato is minimised, then previewing the screens on the start bar looks ok, but selecting provides a screen coloured with the tab colour. Both versions exhibit problems when selecting different windows from the start bar. Ver 4.61 performs similarly. I shall replace Ver 4.51 with Ver 4.62 on my desktop, as it appears to be easier to manage.

I shall download FTN95 Ver 7 and see if there is any change.

Also, As for other changes to Plato,

  1. could the options for providing a comment line of the last update date stamp be provided. The following are examples from two different IDE's I have found. ! Last change: JDC 1 Aug 2004 3:08 pm !Last edited by arctica on Tue Jul 16, 2013 10:37 pm; edited 1 time in total

  2. Could the date/time be included in the header or footer when printing, bottom left would work well or even spaced after the page number.

25 Sep 2013 6:55 #13068

At the moment I can only note your requests.

4 Oct 2013 12:00 #13083

Paul,

I am wondering if the problems I am having with Plato relate to a missing font ?

I am now using Plato Ver 4.61 on both pc's that I am using. If I select Find in Files..., there is incorrect overwrite of the selected blue text in the 'Find Result 1' on only one pc, but the other works ok.

Could this be related to the font being selected is not available on this (notebook) pc ? On this pc that fails, I typically have the second screen on the left, although this still occurs when only 1 screen is in use (no second screen conected).

The pc which works only uses 1 screen, although this one does have the menu problem, which could also be a font issue ?

John

4 Oct 2013 7:02 #13084

John

The default font (for text not menus etc.) will be a mono-spaced font (probably Courier New). When you change this font using the Options dialog (found on the Tools menu) then the drop-down combo should only display available fonts. You can use this Options dialog to find out what the current font is (the one for code may be different from the one for results etc) and also what fonts are available.

There are very few standard mono-spaced fonts but I think that Courier New may well be available on all standard Windows installations.

Note that the fonts for 'Output' is changed by right clicking on the Output window and selecting Font and Colours from the popup menu.

7 Oct 2013 4:55 #13090

Perhaps one more clue to what might be going wrong with the view in Plato. The blank screen occurs whether the Plato is maximised or not, but if it is not maximised when the blank screen occurs, maximizing it seems to restore everything to normal. However, if Plato is initially maximised when the blank screen occurs then although you can get to view the code by Ctrl-F6 (if more than one window is opened) or Ctrl-S, the window of code is always too small, and you have to quit Plato to restore it to its proper size.

7 Oct 2013 6:57 #13091

Simon

I think that the problem you are experiencing may be different to John's. His only occurs when using two screens.

Are you using the latest Plato? When does the problem occur?

7 Oct 2013 10:08 #13099

Hi Paul,

I get the view problem (blank screen that restores after Ctrl+F6, missing menu items that appear after Alt, reduced window size because of a very thick band immediately beneath the menu icons) only if I am editing a project. Plato works fine if I am editing individual files. I am using 4.63 on Windows 7, but have had this problem for a long time (previous versions of Plato, and possibly on Windows XP, but I can't remember for certain). The problem occurs when I minimize Plato and then try to restore it. As mentioned in a previous note, the problem does not occur if the project's .ini file is deleted.

8 Oct 2013 4:43 #13100

Paul,

I am also getting these menu problems that Simon reports, on a single screen mode, with Ver 4.51 and now Ver 4.62. There appears to be some interaction with the Windows 7 start bar viewer.

I looked at the blue highlight problem with the find in files option, by changing the font and the highlight colour. Changing the font had no affect on the problem, but changing the colour to white did make it more readable. It does not appear to be a font problem, as changing the fonts does appear to show the expected font. This only occurs on my notebook but not the desktop, so I'm not sure what is causing this offset.

John

8 Oct 2013 6:57 #13102

Thanks Simon and John.

Maybe we can now make some progress on this.

I still can not reproduce the problem but there is a chance that you will be able to locate the fault for me.

If the problem is removed by deleting the project ini file then you could selectively delete lines from it to locate the offending line.

If you have the time and patience, open the project ini file in (say) Notepad. The most likely candidate is the [OpenFiles] section. This gives the names and positions of files that are open. Delete these lines (and the whole section if you wish), save the changes but leave Notepad open. Test the effect of any changes to see if it 'fixes' the problem. Work interactively between Notepad and Plato until the problem line is located.

Please login to reply.