Search found 14 matches
- 8 Apr 2014 11:51
- Forum: Visual Prolog
- Topic: Create User Control
- Replies: 16
- Views: 8109
Dear Thomas i have made a very nice program with your help. At clause new(Parent) i have placed the for each loop to create buttons at rows and columns. I have added to my window form 2 textboxes (for rows and col) and 1 button. 1) i want when i press the button to clear the form from the existing b...
- 8 Apr 2014 8:53
- Forum: Visual Prolog
- Topic: Increase integer variable
- Replies: 7
- Views: 3223
- 7 Apr 2014 13:17
- Forum: Visual Prolog
- Topic: Increase integer variable
- Replies: 7
- Views: 3223
Increase integer variable
Hello, if i have an integer variable Counter = 100 and i want this variable to make it + 1 so the new one will be 101. How can i do this? In java we can write Counter = Counter + 1; To be more specific i have made something like this for each Counter = std::downTo(20, 1) do if Button:getLabel <> &qu...
- 6 Apr 2014 7:57
- Forum: Visual Prolog
- Topic: Create User Control
- Replies: 16
- Views: 8109
- 5 Apr 2014 16:02
- Forum: Visual Prolog
- Topic: Create User Control
- Replies: 16
- Views: 8109
ignore
'
l
l
- 5 Apr 2014 8:33
- Forum: Visual Prolog
- Topic: Create User Control
- Replies: 16
- Views: 8109
Hello again, I have tried this with the followin way but seems that i miss something. 1) I have created a new project. I have added a new in package -> Form 2) then task menu -> unchecked F7 disabled 3) then id_file_new -> onFileNew add 4) clauses onFileNew(_Source, _MenuTag):- _= mines::display(Thi...
- 3 Apr 2014 14:34
- Forum: Visual Prolog
- Topic: Create User Control
- Replies: 16
- Views: 8109
- 3 Apr 2014 0:48
- Forum: Visual Prolog
- Topic: Create User Control
- Replies: 16
- Views: 8109
Hello, thank you for the response. Actually i'm working on it in other way, what i want to make is a form with 81 buttons in a form (9 rows and 9 columns). What i want to do is: 1) To give to each button coordinates, for example 1.1, 1.2, 1.3 ... 2.1, 2.2, 2.3 so when i want to get the value of butt...
- 31 Mar 2014 15:18
- Forum: Visual Prolog
- Topic: Create User Control
- Replies: 16
- Views: 8109
Create User Control
Hello,
I'm trying to make a minesweeper and i would like to ask you if I can create a new user control (Button in my case) with specific properties.
So on load form i'll be able to use a recursive function to print 81 buttons instead of add 81 buttons.
Is there a way to make this ??
Kind regards
I'm trying to make a minesweeper and i would like to ask you if I can create a new user control (Button in my case) with specific properties.
So on load form i'll be able to use a recursive function to print 81 buttons instead of add 81 buttons.
Is there a way to make this ??
Kind regards
- 22 Feb 2014 19:29
- Forum: Visual Prolog
- Topic: Try catch
- Replies: 1
- Views: 1602
Try catch
Hello, I'm trying something like this but i get errors. domains errorResponder = (applicationWindow Source, exception::traceId TraceId). predicates onPushButtonClick : button::clickResponder. getTraceInfo : (traceId TraceId) -> traceInfo TraceInfo. clauses onPushButtonClick(_Source) = button::defaul...
- 21 Feb 2014 8:44
- Forum: Visual Prolog
- Topic: While Loop and for
- Replies: 3
- Views: 3032
- 20 Feb 2014 20:19
- Forum: Visual Prolog
- Topic: While Loop and for
- Replies: 3
- Views: 3032
While Loop and for
Hello,
I try to write in Prolog a while loop like the following:
while (count != 0){
count = count - 1;
}
or how can i make a for loop with pace i = i + 1 ????
I'm looking forward to receiving your reply
Thank you in advance
I try to write in Prolog a while loop like the following:
while (count != 0){
count = count - 1;
}
or how can i make a for loop with pace i = i + 1 ????
I'm looking forward to receiving your reply
Thank you in advance
- 20 Feb 2014 13:50
- Forum: Visual Prolog
- Topic: Covert String to Integer
- Replies: 2
- Views: 2018
- 20 Feb 2014 11:02
- Forum: Visual Prolog
- Topic: Covert String to Integer
- Replies: 2
- Views: 2018
Covert String to Integer
Hello, I have made a Form that has Textbox1, Textbox2, Textbox3 and 1 button. I want to take the numbers of textbox1 and 2 to perform some calculations when i press the button. On buttonclick i have written the following code: edit1_AnnualPension := integercontrol::new(This), edit1_AnnualPension:set...