Search found 295 matches

by Harrison Pratt
14 Mar 2020 12:54
Forum: Visual Prolog
Topic: What is this: ideStorage.DLL in Exe folder
Replies: 1
Views: 324

What is this: ideStorage.DLL in Exe folder

I found a file named ideStorage.DLL in the Exe folder of two of my very tiny Vip8x a testing project. One project is for testing code in console mode and the other for testing in GUI mode. The Project Settings directories are the default locations initialized when a new project is created. It is not...
by Harrison Pratt
11 Mar 2020 2:48
Forum: Visual Prolog
Topic: Dialog and Window Expert(Problem)
Replies: 1
Views: 343

Re: Dialog and Window Expert(Problem)

I have had that occur with projects in which I have several code editor files open. It seems that the code actually is inserted but taskwindow.pro is not brought to the foreground. Sometimes there is a delay in response if the computer is busy doing other things. I got in the habit of clicking the [...
by Harrison Pratt
6 Mar 2020 18:46
Forum: Visual Prolog
Topic: Accessing IDE Variables & Version Information
Replies: 9
Views: 691

Re: Accessing IDE Variables & Version Information

Here is a small point I noticed while working on this topic -- there is no code to retrieve legalTrademarks or originalFileName . constants % in fileVersion.CL companyNameApi = "CompanyName". fileVersionApi = "FileVersion". legalCopyrightApi = "LegalCopyright". fileDescriptionApi = "FileDescription"...
by Harrison Pratt
5 Mar 2020 14:43
Forum: Visual Prolog
Topic: Accessing IDE Variables & Version Information
Replies: 9
Views: 691

Re: Accessing IDE Variables & Version Information

Got it!

It's simple to extend the File Version parameters in aboutDialog.pro, but I don't see how to access the File Flags Project Settings (i.e., "Debug", "Prerelease", ... ) or Product Version in versonControl.pro. These parameters are not defined in versionControl.i
by Harrison Pratt
4 Mar 2020 14:06
Forum: Visual Prolog
Topic: Accessing IDE Variables & Version Information
Replies: 9
Views: 691

Re: Accessing IDE Variables & Version Information

Oh, now I understand!

"main.version" is use by the build system to create a version resource which is linked into your program. So "main.version" is a source file, the version resource is the corresponding target in your executable.

I'd want the resource, of course. :D
by Harrison Pratt
3 Mar 2020 22:26
Forum: Visual Prolog
Topic: Accessing IDE Variables & Version Information
Replies: 9
Views: 691

Re: Accessing IDE Variables & Version Information

Ahhhhh ... thank you very much, Thomas! (2) Works better for me with the code modified as below, otherwise the properties are unassigned. Apparently the predicate doesn't fail or cause an exception if the file is missing. VersionData = vip\versionDataFactory::get(vip\versionData::interfaceVersion, @...
by Harrison Pratt
3 Mar 2020 14:28
Forum: Visual Prolog
Topic: Accessing IDE Variables & Version Information
Replies: 9
Views: 691

Accessing IDE Variables & Version Information

(1) Is there a built-in way to retrieve IDE variables (Tools > IDE Variables...) ? I am using this approach: run() :- % Existing IDE variable 'TestVar' set to "MyTestVariableAsString" console::write("\nStarting test ...\n"), RootKey = @"SOFTWARE\Prolog Development Center\Visual Prolog6\settings\tool...
by Harrison Pratt
23 Dec 2019 22:55
Forum: Visual Prolog
Topic: The control is shift to right on the ToolBar of application
Replies: 5
Views: 1395

Re: The control is shift to right on the ToolBar of application

It behaves as expected for me using VP 802. Did you check the automatically generated controlList for spurious (? invisible) items? I have a tiny suggestion for PDC: The automatically generated code for ProjectToolbar.pro needs the following: open core so that the following code does not need manual...
by Harrison Pratt
18 Dec 2019 12:29
Forum: Visual Prolog
Topic: Maximized message window
Replies: 2
Views: 1286

Re: Maximized message window

In TaskWindow do something like this (with some extra manipulations): facts msgForm: messageForm := erroneous. predicates onShow : window::showListener. clauses onShow(_, _CreationData) :- This:setClientSize(1000, 700), % make the application client window a little smaller center(), % center on desk...
by Harrison Pratt
24 Nov 2019 20:25
Forum: Visual Prolog Tips & Samples
Topic: xyChartDemo - GDIPLUS XY graphing demonstration
Replies: 4
Views: 4364

Re: xyChartDemo - GDIPLUS XY graphing demonstration

Hi Choibakk! I'm glad you found the demo helpful. :D Lucida Sans is installed with Win10 -- I didn't think of setting up the demo for older versions of windows. I'm glad you could fix the problem. My code could be cleaned up and some day I may get around to that ... feel free to 'tune it up' and re-...
by Harrison Pratt
19 Nov 2019 22:39
Forum: Visual Prolog
Topic: Rename File
Replies: 4
Views: 2580

Re: Rename File

setName/2 only changes a string containing a fully qualified file name. It doesn't do anything to a file.

It belongs to the same family of functions as setPath/2and setExtension/2.
by Harrison Pratt
12 Nov 2019 12:54
Forum: Visual Prolog
Topic: Variables display in the debugger - drops leading string character
Replies: 3
Views: 1680

Re: Variables display in the debugger - drops leading string character

Good to know.
Has the "Go to usage" hot key (Shift-Ctrl-Alt-F) been fixed in Vip 9 as well?
by Harrison Pratt
11 Nov 2019 18:02
Forum: Visual Prolog
Topic: Variables display in the debugger - drops leading string character
Replies: 3
Views: 1680

Variables display in the debugger - drops leading string character

In VIP 8.02 when debugging a console application: Put the code below into main.pro. Note what happens to the display of string S1 in the Variables window when running the application in the debugger. String is handled OK but displayed is ablated in some circumstances. run() :- S1 = "A1", % Variables...
by Harrison Pratt
5 Nov 2019 23:38
Forum: Visual Prolog
Topic: ListViewControl Right Click quirk
Replies: 4
Views: 1879

Re: ListViewControl Right Click quirk

That's better! I assume that the updates will be in the next update of VP 9.x and I should patch VP 8.02 myself or shadow the predicate. "... hitTest will also fail for points that are to right of the right most column" is expected behavior, and it looks like hitTest/3 also will fail if the point is...