-
- VIP Member
- Posts: 1466
- Joined: 28 Feb 2000 0:01
-
- Active Member
- Posts: 29
- Joined: 3 Apr 2014 8:32
-
- VIP Member
- Posts: 1466
- Joined: 28 Feb 2000 0:01
-
- VIP Member
- Posts: 1466
- Joined: 28 Feb 2000 0:01
-
- Active Member
- Posts: 29
- Joined: 3 Apr 2014 8:32
i created a form called hicham
i created a control called imageControl in my form
i build the project
ihave this error : undeclared identifier 'setImageFile/1'
i created a control called imageControl in my form
Code: Select all
implement hicham
inherits formWindow
open core, vpiDomains
clauses
display(Parent) = Form :-
Form = new(Parent),
Form:show().
clauses
new(Parent):-
formWindow::new(Parent),
generatedInitialize(),
flipImage(true).
predicates
flipImage : (boolean Image).
clauses
flipImage(S) :-
if true=S then
imageControl_ctl:setImageFile(@"..\taskwindow\ProjectIcon.ico")
else
imageControl_ctl:setNoImage()
end if,
delayCall(300, { :- flipImage(boolean::logicalNot(S)) }).
ihave this error : undeclared identifier 'setImageFile/1'
ok
-
- VIP Member
- Posts: 1466
- Joined: 28 Feb 2000 0:01
-
- Active Member
- Posts: 29
- Joined: 3 Apr 2014 8:32
-
- VIP Member
- Posts: 1466
- Joined: 28 Feb 2000 0:01
The declaration of my imageControl_ctl looks like this (last line):
Code: Select all
% This code is maintained automatically, do not update it manually. 11:50:14-24.4.2014
facts
ok_ctl : button.
cancel_ctl : button.
help_ctl : button.
imageControl_ctl : imagecontrol.
Regards Thomas Linder Puls
PDC
PDC
-
- VIP Member
- Posts: 1466
- Joined: 28 Feb 2000 0:01
Strange.
My imageControl.i looks like this:
setImageFile is almost at the top. Does your file look the same?
My imageControl.i looks like this:
Code: Select all
/*****************************************************************************
Copyright (c) Prolog Development Center A/S
@short Image control is the control to draw images of various graphic formats.
@detail The set of supported graphic formats corresponds to the set of formats, supported
by GDI+.
@end
@control
******************************************************************************/
interface imageControl
supports control
open core
predicates from drawControlSupport
getBorder, setBorder
predicates
setImageFile : (string FileName).
% @short Loads the control image from the specified file.
% @detail Note that the specified file is loaded only when the control is show.
% @end
predicates
getImageFile : () -> string FileName.
% @short Returns the #FileName previously set by setImageFile predicate.
% @exception imageControl_exception::imageFileNotSet_exception is raised if no image file is set.
% @end
...
Regards Thomas Linder Puls
PDC
PDC
-
- Active Member
- Posts: 29
- Joined: 3 Apr 2014 8:32
-
- VIP Member
- Posts: 1466
- Joined: 28 Feb 2000 0:01
-
- Active Member
- Posts: 29
- Joined: 3 Apr 2014 8:32
-
- VIP Member
- Posts: 1466
- Joined: 28 Feb 2000 0:01
You would need to add not only such predicates, but also everything else needed to impelment an imageControl.
There are differences between the Commercial and Personal Editions, you have now discovered one of them.
There are differences between the Commercial and Personal Editions, you have now discovered one of them.
Regards Thomas Linder Puls
PDC
PDC