Search found 343 matches

by Ferenc Nagy
23 Aug 2016 10:56
Forum: Visual Prolog
Topic: Parsing of HTML MAP sections
Replies: 1
Views: 2071

Parsing of HTML MAP sections

Hi, My next problem is the parsing of HTML MAP sections. These maps look like this. (Shape may be RECT, POLYGON or CIRCLE. Target may be "_parent","_blank","_self","_top" or any user-defined frame. The coords may consist 3, 4, 6 or more integers for CIRCLE-s, RECTANGLE-s and POLYGON respectively. I ...
by Ferenc Nagy
23 Aug 2016 10:36
Forum: Visual Prolog
Topic: Autocompletion fails when names contain national characters
Replies: 7
Views: 2740

Thomas,
Thanky you for the mentioning of string_native library.
There are so many classes in the PFC which I have overlooked.
by Ferenc Nagy
21 Aug 2016 6:58
Forum: Visual Prolog
Topic: Autocompletion fails when names contain national characters
Replies: 7
Views: 2740

Re:

Thomas, Thank you. But actually I think we can handle this :-): it should work in the same way as the compiler. Indeed. I do not know how the complier collects the variable names but it collects them correctly. I attach the autocompletion of control names of a form defined during the automatic code ...
by Ferenc Nagy
19 Aug 2016 4:25
Forum: Visual Prolog
Topic: Autocompletion fails when names contain national characters
Replies: 7
Views: 2740

Thomas, The distributed version of the autocompletion collects the variable names in the clauses using a negative decision. If the character is not in the {A..Z,a..z,0..9 underscore} set then the variable name has ended. The patching of this set is tiresome. The list would be toooooooooooo looooooon...
by Ferenc Nagy
18 Aug 2016 6:51
Forum: Visual Prolog
Topic: Autocompletion fails when names contain national characters
Replies: 7
Views: 2740

Autocompletion fails when names contain national characters

The compiler allows the usage of national characters in variable, constant and function names.
I have discovered a contradiction of the autocompletion with this feature.

The Hungarian alphabet uses accented vowels:
If I define names like
Verb (sparrow)
V
by Ferenc Nagy
30 Jul 2016 3:34
Forum: Visual Prolog
Topic: Using of the help button of the titlebar
Replies: 10
Views: 4206

The contradicting arguments, display and working of the frame decoration

The setDecoration(buttons) procedure allows four buttons in the list of decoration buttons. In spite of it, not all 2^4 combinations are possible. 1) Both minimize button and maximize button must be present, xor misising. 2) They must be accompanied by the close button. 3) They inactivate the helpBu...
by Ferenc Nagy
29 Jul 2016 17:44
Forum: Visual Prolog
Topic: Using of the help button of the titlebar
Replies: 10
Views: 4206

Minimize and maximize buttons do not allow to appear the help button

Hi Gukalov,
Try to add to the setDecoration call these Buttons.

Code: Select all

 setDecoration(titlebar([helpButton, closeButton,  maximizeButton,minimizeButton])),        
:-) The Help button will disappear.

This exclusion is not the single strange behavior of the setDecoration procedure or the Windows itslef.
by Ferenc Nagy
28 Jul 2016 11:15
Forum: Visual Prolog
Topic: Using of the help button of the titlebar
Replies: 10
Views: 4206

F1 and focus

Hi, If I understand your second answer well, key F1 invokes automatically the help topic assigned to the help request but does not move the focus from the current control to the help button of the titlebar. This makes easier to define separate help topics for certain controls within the dialog, by c...
by Ferenc Nagy
28 Jul 2016 8:13
Forum: Visual Prolog
Topic: Using of the help button of the titlebar
Replies: 10
Views: 4206

Help coding alternatives

helpResponder := { (_, _) = true :- _ = shell_native::shellExecute(nullHandle, "open", "http://wiki.visual-prolog.com/", "", "", windowsAPI::sw_show) }, Thank you, Gukalov. Is the above fragment equivalent with the lines below? helpResponder(Source,ContextHelp) = true:- _ = shell_native::shellExecu...
by Ferenc Nagy
27 Jul 2016 11:40
Forum: Visual Prolog
Topic: Using of the help button of the titlebar
Replies: 10
Views: 4206

Using of the help button of the titlebar

The GUI provides two possibilities to provide help to a dialog: 1) Using the event handler of an ordinary button, 2) Using the Help button on the titlebar. The first case is clear: The onHelpClick event handler belonging to the help button has to display a help topic. help_ctl:setClickResponder(onHe...
by Ferenc Nagy
3 Jul 2016 17:49
Forum: Visual Prolog
Topic: Reading and using various image files
Replies: 1
Views: 2476

Reading and using various image files

Kari, You have sent me an answer how can I save screen pictures image files in small formats like JPG, PNG. How can I read such files for the simple windowGDI instead of complicated gdiPlus? I'd like to display them add some more rectangles, polygons and circles to them then save the result. In gene...
by Ferenc Nagy
16 May 2016 4:15
Forum: Visual Prolog Tips & Samples
Topic: Correction of stiff dialog box of vpiCommonDialogs::ask predicate
Replies: 20
Views: 8287

Harrison,
Please think about the topic of a longer term cooperation than minute changes in utiitily dialogs. Visit
http://users.atw.hu/franknagy/home.php?eng
where you can find my former activity and addresses.
by Ferenc Nagy
15 May 2016 7:36
Forum: Visual Prolog Tips & Samples
Topic: Correction of stiff dialog box of vpiCommonDialogs::ask predicate
Replies: 20
Views: 8287

Harrison, My web hosting firm adds a banner over the users' webpages using a frameset link to bannner --------- link to user's web page I suppose that you have get something like I have got. See attached screenshoot. There is a dialog about the handling of the *.pro file because ints extension is un...
by Ferenc Nagy
13 May 2016 12:45
Forum: Visual Prolog
Topic: Edit Control Insert Text, Clear Text, Get Text
Replies: 2
Views: 3272

PYB, You have solved the clearing of the text correctly. The insertion needs an insertion point. The insertion needs a selection within the edited text. You can set it by selectText : (charCount First, charCount Last). and get it using getTextSelection : (charCount First [out], charCount Last [out])...
by Ferenc Nagy
13 May 2016 12:23
Forum: Visual Prolog
Topic: Is there any example of timer Control?
Replies: 2
Views: 3186

Thank you Gukalov,
Your example works.
It uses the tickAction/2 predicate within the showListener of the window. That is the timer control is not needed.