Search found 319 matches

by Harrison Pratt
10 Sep 2020 16:46
Forum: Visual Prolog
Topic: Find in Files (Replace All) is mangling text
Replies: 2
Views: 233

Re: Find in Files (Replace All) is mangling text

Ahhh ... auto-format doesn't trigger on changes made by an external editor (Notepad++). I needed to change the Tab Replace by space setting in NPP so I don't need to remember to run the little macro I created to to that before closing the file.

Thanks!
Screenshot 2020-09-10 111434.jpg
Screenshot 2020-09-10 111434.jpg (91.01 KiB) Viewed 195 times
by Harrison Pratt
9 Sep 2020 14:05
Forum: Visual Prolog
Topic: Find in Files (Replace All) is mangling text
Replies: 2
Views: 233

Find in Files (Replace All) is mangling text

Find in Files/ Replace All seems to be having a problem with overwriting '(' and adjacent characters in the target text. If use, for example, the parameters below: Find in Files dialog.jpg The IDE changes the line below activityCombined_Updater::updateCombinedActivity(activityCombined_Updater::updat...
by Harrison Pratt
19 Aug 2020 10:53
Forum: Visual Prolog
Topic: VIP 802 Find in Files stopped working
Replies: 6
Views: 3524

Re: VIP 802 Find in Files stopped working

Solved: For some unknown reason, the FIF dialog was opening almost completely off the top of the desktop screen and only a tiny sliver of the grey bottom of the dialog was visible. I couldn't use the mouse to "grab" the title bar of the dialog because it was far off the screen, so I was able to relo...
by Harrison Pratt
14 Aug 2020 13:06
Forum: Visual Prolog
Topic: IDE Tools cannot launch one specific application
Replies: 4
Views: 709

Re: IDE Tools cannot launch one specific application

C:\Program Files\zabkat\xplorer2\xplorer2_64.exe %* in the CMD file works if unquoted.

If it is quoted then xplorer2_64.exe does not handle the command line parameters.
Other applications may interact differently with CMD files with respect to quoting.
by Harrison Pratt
13 Aug 2020 17:59
Forum: Visual Prolog
Topic: IDE Tools cannot launch one specific application
Replies: 4
Views: 709

Re: IDE Tools cannot launch one specific application

Surrounding the command C:\Program Files\zabkat\xplorer2\xplorer2_64.exe eliminates the error with Notepad++ but doesn't help with the VIP IDE. I notice that the Tool commands that are working point to C:\Program Files (x86)\... and the one for Xplorer2_64 is in C:\Program Files\... Could there be a...
by Harrison Pratt
13 Aug 2020 16:51
Forum: Visual Prolog
Topic: IDE Tools cannot launch one specific application
Replies: 4
Views: 709

Re: IDE Tools cannot launch one specific application

Thanks, Thomas! I looked for hidden characters in the file name and found none. I tried running Xplorer2 from the Notepad++ command line and got this error message: Ashampoo_Snap_Thursday, August 13, 2020_11h13m51s_001_.jpg It will run from the command line (Win-R) and from the Xplorer2 command line...
by Harrison Pratt
10 Aug 2020 20:44
Forum: Visual Prolog
Topic: How to delete a source file
Replies: 3
Views: 696

Re: How to delete a source file

There is no way in the Vip9x or 8x IDE. The right-click context menu option to Remove from Project also is limited to Packages, text files and resources, which makes sense since deleting just one of a class's files is illogical (although it might be logical to delete an interface whose name does not...
by Harrison Pratt
8 Aug 2020 21:32
Forum: Visual Prolog
Topic: IDE Tools cannot launch one specific application
Replies: 4
Views: 709

IDE Tools cannot launch one specific application

When I try to set up one particular application ( xplorer2_64.exe ) to launch from the IDE tools the application window (I think) flashes briefly and closes. It behaves the same whether the Wait status on the Configure Tools dialog is set to Wait , NoWait or Auto . The application folder and file na...
by Harrison Pratt
14 Jul 2020 12:03
Forum: Visual Prolog
Topic: Draw vertical text using GDI+ stringFormat
Replies: 4
Views: 1079

Re: Draw vertical text using GDI+ stringFormat

I use the very handy Ctrl-Shift-S approach often. What happened when I was trying to find the constant (stringFormatFlagsDirectionVertical) was that I wrongly assumed I would find it in the pfc\gui directory tree and searched files there for the substring "vertical" using Ctrl-Shift-F. The constant ...
by Harrison Pratt
13 Jul 2020 1:57
Forum: Visual Prolog
Topic: Draw vertical text using GDI+ stringFormat
Replies: 4
Views: 1079

Re: Draw vertical text using GDI+ stringFormat

Ahhh ... thank you.

I searched high and low for that constant in all the wrong places! :D
by Harrison Pratt
12 Jul 2020 21:43
Forum: Visual Prolog
Topic: Draw vertical text using GDI+ stringFormat
Replies: 4
Views: 1079

Draw vertical text using GDI+ stringFormat

Is vertical text output supported in the graphics class? I cannot find ViP documentation on this feature, but it is defined in MSDN: https://docs.microsoft.com/en-us/windows/win32/gdiplus/-gdiplus-formatting-text-use ... Formatter = stringFormat::create(), % ??? How to set a format flag in Formatter...
by Harrison Pratt
10 Jul 2020 19:37
Forum: Visual Prolog
Topic: Loading a bmp and jpg to a dialog
Replies: 12
Views: 1542

Re: Loading a bmp and jpg to a dialog

It works the same way in VIP 9x.
by Harrison Pratt
10 Jul 2020 17:22
Forum: Visual Prolog
Topic: Loading a bmp and jpg to a dialog
Replies: 12
Views: 1542

Re: Loading a bmp and jpg to a dialog

I think you need to add the imageControl package to your project. In my system it is here:

"C:\Program Files (x86)\Visual Prolog 9\pfc\gui\controls\imageControl\imageControl.pack"

It does not show up in the project browser until you add it, unlike most of the packages in the PFC.
by Harrison Pratt
3 Jun 2020 2:35
Forum: Visual Prolog
Topic: Visual Prolog Speed
Replies: 11
Views: 2150

Re: Visual Prolog Speed

You are infinitely more expert in Ring than I am.
by Harrison Pratt
2 Jun 2020 14:10
Forum: Visual Prolog
Topic: Visual Prolog Speed
Replies: 11
Views: 2150

Re: Visual Prolog Speed

class predicates demo : (). clauses demo() :- % create matrix Rows = 100, Cols = 100, Matrix2D = array2M::newInitialize(Rows, Cols, 0), % insert some values Matrix2D:set(0, 0, 11), Matrix2D:set(0, 1, 22), % retrieve some values ValueA = Matrix2D:get(0, 0), ValueB = Matrix2D:get(0, 1), % how big? Si...