Search found 329 matches

by Harrison Pratt
6 Apr 2020 14:30
Forum: Visual Prolog
Topic: Are there any issues with 903 CE?
Replies: 5
Views: 1800

Re: Are there any issues with 903 CE?

Aside from the issues I noted recently, I like 903 CE. It seems to compile faster and cleans up extraneous "open" statements. In general, conversion of 8x to 903 projects has been painless -- as Thomas suggested, just keep rebuilding until the IDE compiles smoothly.

Go forward with confidence!
by Harrison Pratt
5 Apr 2020 13:46
Forum: Visual Prolog
Topic: VIP 8 & 9 differences - bitmap creation and resource identifier
Replies: 1
Views: 1545

VIP 8 & 9 differences - bitmap creation and resource identifier

Scenario: Create a bitmap named "myTestBitmap" Vip8 opens a dialog allowing one to specify the size and color depth and then creates a resource identifier idb_mytestbitmap . The default bitmap size is 32x32, but other sizes can be created, such as the 20x19 standard toolbar bitmaps. Vip9 the attribu...
by Harrison Pratt
4 Apr 2020 16:18
Forum: Visual Prolog
Topic: VIP 9.03 Optimal Includes Exception
Replies: 1
Views: 1548

VIP 9.03 Optimal Includes Exception

VIP 903 raises an exception when running Optimal Set of Include Directives (OSID) , even on an empty package. VPI 8x optimizes the original copy of the same project without complaint. This happens on some projects, including virgin GUI or CONSOLE projects as generated by the IDE, but strangely not o...
by Harrison Pratt
1 Apr 2020 21:40
Forum: Visual Prolog Tips & Samples
Topic: TicTacToe - new VIP user hints (GDI+, 2-D array, etc.)
Replies: 0
Views: 1546

TicTacToe - new VIP user hints (GDI+, 2-D array, etc.)

I was testing the new VIP 9x installation and decided put together a tiny TicTacToe as a test project. Since it uses a number of common VIP constructs I decided to annotate it for new user users to browse to see how to do a few simple common tasks: How to handle getting a return value from dialog. G...
by Harrison Pratt
14 Mar 2020 12:54
Forum: Visual Prolog
Topic: What is this: ideStorage.DLL in Exe folder
Replies: 1
Views: 2018

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: 1983

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: 2847

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: 2847

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: 2847

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: 2847

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: 2847

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: 3265

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: 2884

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: 5656

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-...