Search found 96 matches

by B.Hooijenga
1 May 2019 10:00
Forum: Visual Prolog
Topic: onKeyDown and window::defaultKeyDownHandling
Replies: 6
Views: 428

Re: onKeyDown and window::defaultKeyDownHandling

Hello Dave,

I had the same problem.
I found this solution: I made a customControl in an formwindow.
In this customControl you can make an KeyDownResponder.
The customControl must have focus.
And then the KeydownResponder will work perfectly.

Ben
by B.Hooijenga
30 May 2018 10:08
Forum: Visual Prolog
Topic: logging
Replies: 2
Views: 5157

Re: logging

Thank you Thomas,

I will study it further.

Kind regards

Ben
by B.Hooijenga
28 May 2018 12:38
Forum: Visual Prolog
Topic: logging
Replies: 2
Views: 5157

logging

Hello, I am trying to use the log/package. In the logdemo program there is the following xml file. <LogConfigurations> <LogConfig name="ConfigName0"> <Appenders> </Appenders> </LogConfig> <LogConfig name="ConfigNameMC"> <Appenders> <Appender name="AppenderName2"> <LogLevel>all</LogLevel> <Type>filea...
by B.Hooijenga
5 Sep 2016 11:55
Forum: Visual Prolog
Topic: closing the program after an unknown exception?
Replies: 11
Views: 3946

Thomas Because I am using a timerevent in my robotprogram I was a little bit confused about the delaycall. This is the solution I eventually use. The trick is to stop the timer in case of an systemerror. It seems to work well. I did not see the term unknownexception anymore by driving the robot. fac...
by B.Hooijenga
29 Aug 2016 13:19
Forum: Visual Prolog
Topic: closing the program after an unknown exception?
Replies: 11
Views: 3946

Thomas, I tried your suggestion, again with forcing an unknown exception with 400 milliseconds time duration instead of 700. But no result: it does not work: my program hangs, the robot goes wild and bluetooth is not happy either. No harm done. Then I tried this: predicates onShow : window::showList...
by B.Hooijenga
26 Aug 2016 15:50
Forum: Visual Prolog
Topic: closing the program after an unknown exception?
Replies: 11
Views: 3946

Thomas, ....but in our current version May I conclude that in the next VIP-version, the closing problem does not exist anymore? Still it doesn't have any thing to do with the unknown exception, the problem is that it happens on a timer event You are absolutely right, but it was the closing problem t...
by B.Hooijenga
25 Aug 2016 15:25
Forum: Visual Prolog
Topic: closing the program after an unknown exception?
Replies: 11
Views: 3946

Thomas, Thank you. If you run the program you will also notice that it does not terminate after you press copy. I regret to say, but I do not follow you here. Your suggestion terminates as well. I made the program and included the zip-file. If you would be so kind and have a look at it In taskwindow...
by B.Hooijenga
24 Aug 2016 15:15
Forum: Visual Prolog
Topic: closing the program after an unknown exception?
Replies: 11
Views: 3946

Thomas, I will try to be more specific. Let us suppose that there is an exception and VIP can handle it. Then I get an exception dialog. After I have pressed the copy-button I get a copy. Then the exception dialog is closed but not the application . That is important because I keep in control of the...
by B.Hooijenga
23 Aug 2016 13:51
Forum: Visual Prolog
Topic: closing the program after an unknown exception?
Replies: 11
Views: 3946

closing the program after an unknown exception?

Thomas, Between my robot and laptop I use a bluetooth connection. In general it is working very nicely. Sometimes during test-drives I get an unknown exception. Mostly because my program can not deal with a real world situation.. My problem is that VIP always closes the application. I can not see th...
by B.Hooijenga
9 Aug 2016 15:16
Forum: Visual Prolog
Topic: Changing text of groupBox in runtime
Replies: 3
Views: 2604

Thank you, Thomas, A small adaptation was needed to make the internal controls in the groupBox visible. But now it works fine. predicates onChangeTextButtonClick : button::clickResponder. clauses onChangeTextButtonClick(_Source) = button::defaultAction :- groupBox_ctl:setText("Changed"), _ = gui_nat...
by B.Hooijenga
8 Aug 2016 13:42
Forum: Visual Prolog
Topic: Changing text of groupBox in runtime
Replies: 3
Views: 2604

Changing text of groupBox in runtime

Hello, I have dialogControl with a groupBoxControl inside. I want to change the text of the groupBoxControl in runtime. It should be simple, was my idea. But no luck so far. predicates onChangeTextButtonClick : button::clickResponder. clauses onChangeTextButtonClick(_Source) = button::defaultAction ...
by B.Hooijenga
17 Mar 2016 16:07
Forum: Visual Prolog
Topic: prodoc.exe gives some trouble
Replies: 2
Views: 2379

Thomas,

That does the job. Thank you.

Kind regards,
Ben
by B.Hooijenga
16 Mar 2016 16:13
Forum: Visual Prolog
Topic: prodoc.exe gives some trouble
Replies: 2
Views: 2379

prodoc.exe gives some trouble

Hello, I want to use prodoc.exe. In that way I can present nicely formatted visual prolog code at my website, I hope I use the following resourcefile: (I am using the codebutton here, please, neglect the colors.) -2 -d "K:\backtracking" -c *.png -r -e K:\backtracking\prodoc-err.log -o "K:\backtracki...
by B.Hooijenga
9 Feb 2016 15:25
Forum: Visual Prolog
Topic: About Preventing two instances of a program to run simultaneously
Replies: 2
Views: 2322

Hello Tonton, I use this code for years without problems. I do not need a note but leaving out fail should do the job constants error_already_exists = 183. % From MSDN class facts okToRunMutex : mutex := erroneous. taskwindow : taskwindow := erroneous. class predicates okToRun : () determ. clauses o...
by B.Hooijenga
14 Jan 2016 11:06
Forum: Visual Prolog
Topic: Help a beginner in VIP!
Replies: 4
Views: 2913

Hello Jacques, The cut has to be there for the following reason. Without a cut predicate count()/1 has two possibilities: count(Number) and count(_) and is therefore multi. With a cut the predicate count()/1 is a procedure which means there is only one solution. If I may be so bold to make a remark:...