Search found 1624 matches
- 6 Dec 2019 11:15
- Forum: Visual Prolog
- Topic: Increase buffer size
- Replies: 2
- Views: 44
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...
- 29 Nov 2019 23:31
- Forum: Visual Prolog
- Topic: Fault tolerant heap shim message
- Replies: 3
- Views: 474
Re: Fault tolerant heap shim message
It is a Windows thing. It seems to be controllable. See: Fault Tolerant Heap.
- 12 Nov 2019 14:21
- Forum: Visual Prolog
- Topic: Variables display in the debugger - drops leading string character
- Replies: 3
- Views: 374
Re: Variables display in the debugger - drops leading string character
No, unfortunately not.
- 12 Nov 2019 11:16
- Forum: Visual Prolog
- Topic: Variables display in the debugger - drops leading string character
- Replies: 3
- Views: 374
Re: Variables display in the debugger - drops leading string character
I can reproduce the problem.
But it does not exist in Vip 9.
But it does not exist in Vip 9.
- 8 Nov 2019 14:08
- Forum: Visual Prolog Tips & Samples
- Topic: ~ CalmoSoft Fifteen Puzzle Game ~
- Replies: 14
- Views: 17750
Re: ~ CalmoSoft Fifteen Puzzle Game ~
Notice that you already knew it (see a couple of mails above
).

- 8 Nov 2019 9:21
- Forum: Visual Prolog Tips & Samples
- Topic: ~ CalmoSoft Fifteen Puzzle Game ~
- Replies: 14
- Views: 17750
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.
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.
- 5 Nov 2019 15:07
- Forum: Visual Prolog
- Topic: ListViewControl Right Click quirk
- Replies: 4
- Views: 534
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...
- 5 Nov 2019 12:34
- Forum: Visual Prolog
- Topic: ListViewControl Right Click quirk
- Replies: 4
- Views: 534
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 ...
- 4 Nov 2019 10:25
- Forum: Visual Prolog
- Topic: Rotate a button
- Replies: 2
- Views: 463
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.
- 31 Oct 2019 9:27
- Forum: Visual Prolog
- Topic: Progress Bar status indicator
- Replies: 37
- Views: 2246
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
}),
- 30 Oct 2019 13:38
- Forum: Visual Prolog
- Topic: Looking for database + ListBox tutorial
- Replies: 2
- Views: 559
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...
- 30 Oct 2019 12:22
- Forum: Visual Prolog
- Topic: Progress Bar status indicator
- Replies: 37
- Views: 2246
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...
- 28 Oct 2019 10:52
- Forum: Visual Prolog
- Topic: Progress Bar status indicator
- Replies: 37
- Views: 2246
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.
- 28 Oct 2019 10:24
- Forum: Visual Prolog
- Topic: Compiling error
- Replies: 8
- Views: 678
Re: Compiling error
Please read about how to present code in Visual Prolog discussion forum.
- 24 Oct 2019 15:08
- Forum: Visual Prolog
- Topic: Reading hexadecimal from utf8 files
- Replies: 9
- Views: 717
Re: Reading hexadecimal from utf8 files
Well, you seem to have achieved thisThe format is not designed to be easy to read. It is designed to be difficult to read.

Anyways, if you open the file in binary mode then readBytes will read a binary like that.