Search found 1625 matches

by Thomas Linder Puls
9 Dec 2019 14:35
Forum: Visual Prolog
Topic: Default for a boolean component
Replies: 1
Views: 57

Re: Default for a boolean component

Thank you. We have already solved this problem (internally).
by Thomas Linder Puls
6 Dec 2019 11:15
Forum: Visual Prolog
Topic: Increase buffer size
Replies: 2
Views: 82

Re: Increase buffer size

The default buffer size for both reading and writing to files is 8KB: class inputStream_file : inputStream open core constants defaultBufferSize = 0x2000. If your read in 8 bit text mode (e.g. utf8), the actual buffer size is only half, because we there is an approximate doubling when converting fro...
by Thomas Linder Puls
29 Nov 2019 23:31
Forum: Visual Prolog
Topic: Fault tolerant heap shim message
Replies: 3
Views: 521

Re: Fault tolerant heap shim message

It is a Windows thing. It seems to be controllable. See: Fault Tolerant Heap.
by Thomas Linder Puls
12 Nov 2019 11:16
Forum: Visual Prolog
Topic: Variables display in the debugger - drops leading string character
Replies: 3
Views: 411

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

I can reproduce the problem.
But it does not exist in Vip 9.
by Thomas Linder Puls
8 Nov 2019 14:08
Forum: Visual Prolog Tips & Samples
Topic: ~ CalmoSoft Fifteen Puzzle Game ~
Replies: 14
Views: 17792

Re: ~ CalmoSoft Fifteen Puzzle Game ~

Notice that you already knew it (see a couple of mails above :-)).
by Thomas Linder Puls
8 Nov 2019 9:21
Forum: Visual Prolog Tips & Samples
Topic: ~ CalmoSoft Fifteen Puzzle Game ~
Replies: 14
Views: 17792

Re: ~ CalmoSoft Fifteen Puzzle Game ~

The Personal Edition doesn't contain vpiOldDomains.

When I compile the project with the Commercial Edition I don't get any errors.

Notice that when upgrading to the newer gui structure you will not need vpiOldDomains.
by Thomas Linder Puls
5 Nov 2019 15:07
Forum: Visual Prolog
Topic: ListViewControl Right Click quirk
Replies: 4
Views: 569

Re: ListViewControl Right Click quirk

I have updated hitTest like this (i.e. the lines after the cut):: clauses hitTest(PNT, ItemId, SubItem) :- LVHITTESTINFO = gui_native::lvhittestinfo(PNT, 0, 0, 0, 0), _ = gui_native::sendMessage(nativeWindow, lvm_subItemHitTest, gui_api::wNull, uncheckedConvert(gui_native::lParam, LVHITTESTINFO)), g...
by Thomas Linder Puls
5 Nov 2019 12:34
Forum: Visual Prolog
Topic: ListViewControl Right Click quirk
Replies: 4
Views: 569

Re: ListViewControl Right Click quirk

The listView control is a standard Windows control. The hitTest predicates uses the LVM_SUBITEMHITTEST to determine where the point is. For reasons unknown to me this message think that most of the header row belongs to the first data line. The difference in the left and right click happens because ...
by Thomas Linder Puls
4 Nov 2019 10:25
Forum: Visual Prolog
Topic: Rotate a button
Replies: 2
Views: 490

Re: Rotate a button

You cannot rotate controls (yo my knowledge). You could create one that is high and narrow, but the text on the button would still be horizontal.
by Thomas Linder Puls
31 Oct 2019 9:27
Forum: Visual Prolog
Topic: Progress Bar status indicator
Replies: 37
Views: 2325

Re: Progress Bar status indicator

It is sufficient with one postAction:

Code: Select all

        dealerForm:postAction(             {  :-                 dealerForm:state_ctl:setText(StateStr),                 dealerForm:deck_ctl:setText(DeckStr),                 dealerForm:progress_ctl:progress := DonePct             }),
by Thomas Linder Puls
30 Oct 2019 13:38
Forum: Visual Prolog
Topic: Looking for database + ListBox tutorial
Replies: 2
Views: 584

Re: Looking for database + ListBox tutorial

There are individual examples concerning listBox and database among the examples that are distributed with the system. The database demos (assuming that you mean SQL/ODBC databases) is only in the Commercial Edition (because the Personal Edition does not support ODBC). We do not have any tutorials a...
by Thomas Linder Puls
30 Oct 2019 12:22
Forum: Visual Prolog
Topic: Progress Bar status indicator
Replies: 37
Views: 2325

Re: Progress Bar status indicator

Working with multiple threads has that kind of synchronization problems that you mention and that is why it is not simple to shift work into separate threads. To enable premature termination of a background task, it is of course necessary to ensure that the termination is carried out is a safe order...
by Thomas Linder Puls
28 Oct 2019 10:52
Forum: Visual Prolog
Topic: Progress Bar status indicator
Replies: 37
Views: 2325

Re: Progress Bar status indicator

I think it looks fine. You should notice that it is not necessary to guard random with a critical section, it is already guarded internally.
by Thomas Linder Puls
28 Oct 2019 10:24
Forum: Visual Prolog
Topic: Compiling error
Replies: 8
Views: 709

Re: Compiling error

Please read about how to present code in Visual Prolog discussion forum.