Search found 215 matches

by Ferenc Nagy
24 Apr 2016 7:01
Forum: Visual Prolog
Topic: Difference of toString(...) and tryConvert(string,...)
Replies: 2
Views: 4729

Difference of toString(...) and tryConvert(string,...)

I have defined a domain species = string. When I wanted to pass a variable from this domain to a procedure having string arguments Species="cat", V_String=toString(Species) resulted result surrounded by double quotes . V_String=""cat"". The conversion Species="cat&...
by Ferenc Nagy
1 Apr 2016 7:31
Forum: Visual Prolog
Topic: Correction of stiff dialog box of vpiCommonDialogs::ask predicate
Replies: 20
Views: 17896

Correction of stiff dialog box of vpiCommonDialogs::ask predicate

Symptom №1: The original dialog shows only three buttons. The others are beyond the client area of the window. Symptom №2: The sizes of push buttons are fixed. Long words appear truncated. The essence of my correction is: class facts ask_result:integer := 0. default: positive :=...
by Ferenc Nagy
1 Apr 2016 7:09
Forum: Visual Prolog Tips & Samples
Topic: Mixed language error validation messages of integer and real controls
Replies: 0
Views: 6732

Mixed language error validation messages of integer and real controls

Mixed language error validation messages of integer and real controls In my thread on the Visual Prolog branch http://discuss.visual-prolog.com/viewtopic.php?t=15509 I asked about the creation native language messages issued by the validation of integer controls. I have attached the result of the di...
by Ferenc Nagy
24 Mar 2016 14:06
Forum: Visual Prolog
Topic: Mixed language error validation messages of integer and real controls
Replies: 5
Views: 6985

Thank you, Thomas. Now I understand how setIllegalValueMandatoryMessage and the other procedures work. They give new values to the facts initiated by standard mesage format strings. constants errorMessage_illegalValueMandatory = "% must be specified". class facts errMsg_illegalValueMandato...
by Ferenc Nagy
24 Mar 2016 7:09
Forum: Visual Prolog
Topic: Mixed language error validation messages of integer and real controls
Replies: 5
Views: 6985

Which is safest way of overriding built in classes?

Thomas, Thank you for the sent home-made counterpart of the class integerControl. I do not want to modify the factory-made integerControl in Prolog Foundation Classes. What is the safest and recommended way of making home-made versions and retaining the delivered version? Where should I save my vers...
by Ferenc Nagy
23 Mar 2016 12:47
Forum: Visual Prolog
Topic: Mixed language error validation messages of integer and real controls
Replies: 5
Views: 6985

Mixed language error validation messages of integer and real controls

Thomas, Did you notice in our recently closed dialog that I used edit controls for entering positive integer values? I did so because the standard minimum, maximum and digit check of integer and real control return note boxes where the labels written in native language are embedded in the prefixed E...
by Ferenc Nagy
22 Mar 2016 6:38
Forum: Visual Prolog
Topic: Two alike controls are filled in oposite order
Replies: 5
Views: 5851

Thank you Thomas, for your attention. I could solve the problem by brute force. 1) I have duplicated the control having normal left to right filling. 2) I have given a new name to the generated duplication. 3) I have added to the new control the event handler for validation and click of the abnormal...
by Ferenc Nagy
20 Mar 2016 8:14
Forum: Visual Prolog
Topic: Two alike controls are filled in oposite order
Replies: 5
Views: 5851

One of the controls is filled from left to right the other from right to left. I typed in devil="чёрт" but I saw "ёрт" and "трё", respectively. When I typed in "&...
by Ferenc Nagy
19 Mar 2016 9:03
Forum: Visual Prolog
Topic: Two alike controls are filled in oposite order
Replies: 5
Views: 5851

Two alike controls are filled in oposite order

Hi, I do not see the difference in the genrated intilialization lines of the grid_count_int and the cell_size_int controls. But if I hit the keys [1] and [5] then one of the shows "51" the other shows "15". The cursor in the first case jumps abnormally to the left side of the ent...
by Ferenc Nagy
8 Mar 2016 13:31
Forum: Visual Prolog
Topic: Why leads AlignBaseline=true to execution error?
Replies: 3
Views: 4497

Thank you, Thomas. I have set the AlignBaseLine properties to "False" for all controls owing it. It is interesting that now I do not see the setting in the automatically generated code, and the debugging is not interrupted. It looks like the default state of this property is "False&qu...
by Ferenc Nagy
7 Mar 2016 10:58
Forum: Visual Prolog
Topic: Why leads AlignBaseline=true to execution error?
Replies: 3
Views: 4497

Why leads AlignBaseline=true to execution error?

Hi, I am debugging a form in a program without task window (directly displayed from the main module). I set the dialog font to "Andale Mono". The debugger shows execution error for each controls where I selected AlignBaseline=true in the property sheet of the form. The execution without de...
by Ferenc Nagy
11 Feb 2016 8:13
Forum: Visual Prolog
Topic: Anchored vs. docked controls
Replies: 1
Views: 3607

Anchored vs. docked controls

Hi,
I know that anchors and docking of controls exclude each other.
Is there any tutorial explaining and comparing the two ways of sizing and positioning of the controls within a form?
by Ferenc Nagy
6 Feb 2016 11:16
Forum: Visual Prolog
Topic: Scilex paints only the start of words
Replies: 3
Views: 4841

EndPos-StartPos is a good advice

Thank you, Thomas: You suggestion EndPos-StartPos instead of string::length solved the problem. The words are fully painted as shown below. The extra painted spaces are not important. The winning code is % Append styled line to the end of the contents of the control. appendStyledLine(TextWithoutNewL...
by Ferenc Nagy
5 Feb 2016 19:14
Forum: Visual Prolog
Topic: Scilex paints only the start of words
Replies: 3
Views: 4841

Scilex paints only the start of words

Hi, I want to use sciLex to format a legend. My code is def_style:appendStyledLine("ЗАДАННЫЕ ЦВЕТЫ",sciLexer_native::style_default), _= [ SciStyle || list::memb...