Search found 394 matches

by Harrison Pratt
26 Nov 2022 14:27
Forum: Visual Prolog Tips & Samples
Topic: PropertyDepot - property code generator and repository
Replies: 0
Views: 71

PropertyDepot - property code generator and repository

Ever get annoyed by all the code you have to type to support properties ... and then you need to make a few changes and have to reorganize it all? Yeah, me too! PropertyDepot is will let you maintain a database of your own sets of properties and generate property or single fact code that you can pas...
by Harrison Pratt
24 Nov 2022 13:02
Forum: Visual Prolog
Topic: Tiny feature suggestion for next VP version
Replies: 3
Views: 185

Re: Tiny feature suggestion for next VP version

The predicate inc() would be useful when calculating running means, so I guess it does make sense to keep the interface for varM_real the same as that of varM_integer.
by Harrison Pratt
23 Nov 2022 21:44
Forum: Visual Prolog
Topic: Tiny feature suggestion for next VP version
Replies: 3
Views: 185

Tiny feature suggestion for next VP version

varM_real (as a variant of varM_integer) seems like something that would be commonly used and would be trivial to implement. I use a construct like that frequently in reports for totally & subtotalling.

Of course, both inc() and dec() make little sense for reals.
by Harrison Pratt
21 Nov 2022 21:31
Forum: Visual Prolog
Topic: SciLexer tab key - line indent vs. tab insert
Replies: 16
Views: 954

Re: SciLexer tab key - line indent vs. tab insert

Boom! That's the sound of my brain exploding after seeing a new (to me) way of doing things. :shock:

Thanks, Gukalov!
by Harrison Pratt
16 Nov 2022 22:32
Forum: Visual Prolog
Topic: SciLexer tab key - line indent vs. tab insert
Replies: 16
Views: 954

Re: SciLexer tab key - line indent vs. tab insert

Thanks for the suggestions, Gukalov! :D
by Harrison Pratt
16 Nov 2022 15:02
Forum: Visual Prolog
Topic: SciLexer tab key - line indent vs. tab insert
Replies: 16
Views: 954

Re: SciLexer tab key - line indent vs. tab insert

I can get the Tab key to insert normally, but It looks like the line-indent function is hard-coded in sclLexer.pro staring at line 225. Screenshot 2022-11-16 084716.png Note tab_vip and backTab_vip in the code fragment below. % sciLexer.pro, line 225 predicates tryGetKeydownAction : (vpiDomains::key...
by Harrison Pratt
14 Nov 2022 18:20
Forum: Visual Prolog
Topic: SciLexer tab key - line indent vs. tab insert
Replies: 16
Views: 954

Re: SciLexer tab key - line indent vs. tab insert

The IDE flags it as Undeclared identifier and prompts me to prefix it with sciLexerBase::

It doesn't need qualification in the sciLexer.pro code, of course.
by Harrison Pratt
14 Nov 2022 16:25
Forum: Visual Prolog
Topic: SciLexer tab key - line indent vs. tab insert
Replies: 16
Views: 954

Re: SciLexer tab key - line indent vs. tab insert

That doesn't seem to make any difference. new(Parent) :- dialog::new(Parent), generatedInitialize(), sciLexer_ctl:addShowListener( { :- sciLexer_ctl:tabWidth := 8, sciLexer_ctl:tabIndents := false, sciLexer_ctl:backSpaceUnIndents := false, sciLexer_ctl:useTabs := true, sciLexer_ctl:text := "Hel...
by Harrison Pratt
14 Nov 2022 14:30
Forum: Visual Prolog
Topic: SciLexer tab key - line indent vs. tab insert
Replies: 16
Views: 954

Re: SciLexer tab key - line indent vs. tab insert

The listener works (confirmed by display of Hello in sciLexer_ctl) but the tab parameters do not seem to be changed in the control. new(Parent) :- dialog::new(Parent), generatedInitialize(), sciLexer_ctl:addShowListener( { :- sciLexer_ctl:tabWidth := 8, sciLexer_ctl:tabIndents := false, sciLexer_ctl...
by Harrison Pratt
14 Nov 2022 13:55
Forum: Visual Prolog
Topic: SciLexer tab key - line indent vs. tab insert
Replies: 16
Views: 954

Re: SciLexer tab key - line indent vs. tab insert

Ahhh ... thank you, Thomas.
by Harrison Pratt
13 Nov 2022 15:23
Forum: Visual Prolog
Topic: SciLexer tab key - line indent vs. tab insert
Replies: 16
Views: 954

SciLexer tab key - line indent vs. tab insert

How can I change the editor's response to a tab key press from line indent to tab insert ?
by Harrison Pratt
2 Nov 2022 17:22
Forum: Visual Prolog Tips & Samples
Topic: MultiEdit - edit variable numbers of strings with ONE dialog
Replies: 0
Views: 246

MultiEdit - edit variable numbers of strings with ONE dialog

multiEditDemo - A simple solution to a common annoyance for application developers Problem : You have an application in which you need to edit a variable number of data fields from a record of string values but you don't want to create a several different editing dialogs for each different set of v...
by Harrison Pratt
5 Oct 2022 11:36
Forum: Visual Prolog
Topic: Problem copying a project using the IDE
Replies: 1
Views: 423

Problem copying a project using the IDE

When I try to copy a project to a new folder by right-clicking from the main project Open screen a few of the folders are copied and then the following Error dialog appears with message "Access to the cloud file is denied." I am trying to copy treeControlDemo project -- I have not tested o...
by Harrison Pratt
27 Sep 2022 15:03
Forum: Visual Prolog
Topic: Overview documentation and listBox index problem
Replies: 3
Views: 582

Re: Overview documentation and listBox index problem

Listbox, listbutton and listEdit all inherit from listControl so you can collect the selected strings from a mixed group of these type controls like this: predicates % FAIL if any control does not have a selected string tryGetSelectedStrings : (listControl* CtrlList) -> string* SS determ. clauses tr...
by Harrison Pratt
27 Sep 2022 14:20
Forum: Visual Prolog
Topic: Overview documentation and listBox index problem
Replies: 3
Views: 582

Re: Overview documentation and listBox index problem

Take a look at my guiControlSupport class to see some ways to access and manipulation listBox, listButton and listEdit controls. You can simply add the class files ( .cl, .i & .pro ) files to an appropriate package and inherit it into the implementation of your form or dialog like this extract f...