Search found 2367 matches

by Thomas Linder Puls
17 Feb 2019 21:07
Forum: Visual Prolog Tips & Samples
Topic: ~ CalmoSoft Fifteen Puzzle Game ~
Replies: 8
Views: 15639

Re: ~ CalmoSoft Fifteen Puzzle Game ~

Your program seems to work in Vip8 with very few changes, and the mentioned code does not need to be changed. So I assume that you are doing a more fundamental update to the newer gui structure. In that structure you don't have a thisWin fact, and your destroy handler will therefore not do anything ...
by Thomas Linder Puls
13 Feb 2019 9:55
Forum: Visual Prolog
Topic: Http Request
Replies: 5
Views: 142

Re: Http Request

Thanks for sharing. May I suggest that you use try-catch try instead of the trap/3 predicate: serveur = "your_server.com", Req = format("GET http://%/your_folder/your_php_file.php?x=%\n\n", serveur, Action), try SOCKET = msgSocketBlocking::msglay_Connect(serveur, 80, []) catch _ do stdio::write("msg...
by Thomas Linder Puls
10 Feb 2019 13:27
Forum: Visual Prolog
Topic: email sending...
Replies: 3
Views: 65

Re: email sending...

Oh yes. Furthermore there is the problem with authentication. There is a large number of auxiliary subprotocols available for this. The SMTP package in vip 8 implements none of these. We have recently implemented authentication with plain user name and password (this will be in vip 9), but I doubt t...
by Thomas Linder Puls
10 Feb 2019 13:16
Forum: Visual Prolog
Topic: email sending...
Replies: 3
Views: 65

Re: email sending...

I am answering purely from my memory, so... The HELO command uses the sender as argument, so you will have to set that property. However as I recall it google's mail service requires an encrypted connection. On an unencrypted connection the SMTP (simple mail transfer protocol) is relatively simple,a...
by Thomas Linder Puls
5 Feb 2019 15:32
Forum: Visual Prolog
Topic: Dialog vs Form interactions
Replies: 6
Views: 114

Re: Dialog vs Form interactions

OK, I think the problem is rather different than what you described :-). Anyways, I have examined in depth what you are doing, but it looked like a typical problem of drawing in a wrong place/size. If I give rugPainter a rectangle corresponding to the entire client area you are drawing in then every...
by Thomas Linder Puls
5 Feb 2019 9:26
Forum: Visual Prolog
Topic: Dialog vs Form interactions
Replies: 6
Views: 114

Re: Dialog vs Form interactions

I cannot reproduce it.

Can you attach a project with the problem (delete the exe, obj and deb directories before zipping the project).
by Thomas Linder Puls
4 Feb 2019 18:42
Forum: Visual Prolog
Topic: Dialog vs Form interactions
Replies: 6
Views: 114

Re: Dialog vs Form interactions

That behavior is not normal, which version are you using?
by Thomas Linder Puls
1 Feb 2019 10:11
Forum: Visual Prolog
Topic: Http Request
Replies: 5
Views: 142

Re: Http Request

Some of it is most likely usefull in Vip7.3, but other things you will have to do yourself. The essential part of the example is here: predicates httpPOST : (string Method, jsonObject Params). clauses httpPOST(Method, Params) :- RequestObject = jsonRpcRequest::newNextId(), RequestObject:method := Me...
by Thomas Linder Puls
31 Jan 2019 15:48
Forum: Visual Prolog
Topic: Http Request
Replies: 5
Views: 142

Re: Http Request

This is done in the Vip8 Commercial Edition examples in <examples>\vewService\jsonRpcClient.

See also Web_Services#Visual_Prolog_Client.
by Thomas Linder Puls
24 Jan 2019 21:52
Forum: Visual Prolog
Topic: Using a class level domain in the interface
Replies: 4
Views: 124

Re: Using a class level domain in the interface

It will/can happen if you define the interface in one package and the class in another. This is both possible and legal, but not something I can recommend. If you do so you will definitely confuse some mechanisms in the IDE, especially the automatic insertion of include directives. A reason that cou...
by Thomas Linder Puls
24 Jan 2019 15:20
Forum: Visual Prolog
Topic: Using a class level domain in the interface
Replies: 4
Views: 124

Re: Using a class level domain in the interface

It is intended. The reason is that your interface must be valid without "knowing about the class" (whereas the other way around is impossible, because it says class xxx : xxx ). If the interface was not independent of the class you can have strange behavior in places where only the interface is visi...
by Thomas Linder Puls
10 Jan 2019 9:11
Forum: Visual Prolog
Topic: Send to Background-Bring to Top
Replies: 17
Views: 434

Re: Send to Background-Bring to Top

The Creator is This, i.e. the a form you are in .
by Thomas Linder Puls
8 Jan 2019 12:02
Forum: Visual Prolog
Topic: Send to Background-Bring to Top
Replies: 17
Views: 434

Re: Send to Background-Bring to Top

bringToTop and setActive will both have that effect. The problem in your attempts (above) is that it is not A you are trying to bring to the top, it is the applicationWindow or B itself. Your dialogs should all have the applicationWindow as parent. So the question is how you will find the relevant ...
by Thomas Linder Puls
7 Jan 2019 11:17
Forum: Visual Prolog
Topic: Send to Background-Bring to Top
Replies: 17
Views: 434

Re: Send to Background-Bring to Top

It sounds strange to me to have Cancel button that does not cancel the dialog.

However, it seems that the mentioned dialogs should be forms, see Dialogs and Forms.

Furthermore, it seems strange to keep "uninteresting" windows alive but sending them "backwards".