Search found 92 matches

by daveplummermd
29 Mar 2020 12:58
Forum: Visual Prolog
Topic: pictDraw problem and question
Replies: 10
Views: 2682

pictDraw problem and question

Hello I am trying to understand and eliminate an unexpected behavior with the pictDraw predicate. I have a custom control that is used in standard dialogue. The control has this code: onPaint(_Source, _, Gdiobject) :- vpi::pictGetSize(pictPlus, XWidth, YHeight, _ImageSize), This:getClientRect() = rc...
by daveplummermd
11 Mar 2020 1:04
Forum: Visual Prolog
Topic: Dialog and Window Expert(Problem)
Replies: 1
Views: 2494

Dialog and Window Expert(Problem)

Guys After adding a new menu item using the dlg presenting by double-clicking "taskwindow.mnu" in the project tree, the behaviour of the "dialogue and Window Expert" preseting after double click of "taskwindow.win" is changed/lost. For example, double clicking on the unhandled event (see image below...
by daveplummermd
4 Jan 2020 14:51
Forum: Visual Prolog
Topic: Declaring predicates containing elipse
Replies: 2
Views: 3239

Declaring predicates containing elipse

How do I declare the predicates supporting the following? clauses ppp(...) :- W = { () :- stdio::write(...) }, qqq(W). I am working through the examples included in the document "Language Reference/Terms", under the heading "Capturing ellipsis (...)". The above code is included to illustrate, and I ...
by daveplummermd
18 Jun 2019 13:13
Forum: Visual Prolog
Topic: sciLexer selcted text
Replies: 2
Views: 6854

Re: sciLexer selcted text

Thanks
by daveplummermd
1 May 2019 13:40
Forum: Visual Prolog
Topic: onKeyDown and window::defaultKeyDownHandling
Replies: 6
Views: 2694

Re: onKeyDown and window::defaultKeyDownHandling

Thanks Guys
I am going to experiment/play with both ideas

dave
by daveplummermd
1 May 2019 1:43
Forum: Visual Prolog
Topic: onKeyDown and window::defaultKeyDownHandling
Replies: 6
Views: 2694

Re: onKeyDown and window::defaultKeyDownHandling

I understand that I can introduce a "addNativeMessageHandler(onNative)" and then detect and act on key presses that way...such as this code to detect a keydown and keyup events for the left shift key: implement keyDown inherits formWindow open core, vpiDomains clauses display(Parent) = Form :- Form ...
by daveplummermd
30 Apr 2019 17:02
Forum: Visual Prolog
Topic: onKeyDown and window::defaultKeyDownHandling
Replies: 6
Views: 2694

onKeyDown and window::defaultKeyDownHandling

I cant seem to capture a "onKeyDown" event. I contstruct a simle form called "keyDown", that has both a "setKeyDownResponder" and a "setCharResponder" implement keyDown inherits formWindow open core, vpiDomains clauses display(Parent) = Form :- Form = new(Parent), Form:show(). clauses new(Parent) :-...
by daveplummermd
26 Apr 2019 14:25
Forum: Visual Prolog
Topic: Color background of standard control
Replies: 3
Views: 1922

Re: Color background of standard control

Perfect, thanks!
by daveplummermd
24 Apr 2019 20:47
Forum: Visual Prolog
Topic: Color background of standard control
Replies: 3
Views: 1922

Color background of standard control

Guys Can the color background of a standard control, specificlly static text control, be modified? I am reading the disscussions, many answers that refer to "next versions" that have probably been implemented in my 9.01 CE. After standard creation here: generatedInitialize() :- setText("eventDispCtr...
by daveplummermd
11 Feb 2019 1:58
Forum: Visual Prolog
Topic: email sending...
Replies: 5
Views: 6177

Re: email sending...

vip 9?
cant wait.
dp
by daveplummermd
10 Feb 2019 0:33
Forum: Visual Prolog
Topic: email sending...
Replies: 5
Views: 6177

email sending...

Guys Can you advise on how to send email from within VIP8CE program? I have included the "sendMail_smtp" class in my project. I have placed the code: predicates onHelpTestemail : window::menuItemListener. clauses onHelpTestemail(_Source, _MenuTag) :- MailServer = sendMail_smtp::new("smtp.googlemail....
by daveplummermd
2 Jan 2019 6:25
Forum: Visual Prolog
Topic: Identify and call back to "parent" object.
Replies: 1
Views: 4072

Identify and call back to "parent" object.

Guys Is it possible to identify the calling object and callback back to it from a created object? Example: 1) From within Taskwindow create object O1 that belongs to class C1. 2) From within Taskwindow create object O2 that belongs to different class C2 now... 3) Both O1 and O2 each create objects O...
by daveplummermd
17 Dec 2018 19:40
Forum: Visual Prolog
Topic: Wheel Scrolling in Grid Example
Replies: 4
Views: 4701

Re: Wheel Scrolling in Grid Example

Guys No changes to generatedInitialize . Let me restate the steps: 1) move the declaration of " grid_vmove_cells_area " to vpiGrid.cl 2) Add listener " addVScrollListener(onVScroll)] " to the constructor new(Parent) in childDialog.pro new(Parent) :- dialog::new(Parent), generatedInitialize(), This:a...
by daveplummermd
6 Dec 2018 17:48
Forum: Visual Prolog
Topic: Wheel Scrolling in Grid Example
Replies: 4
Views: 4701

Re: Wheel Scrolling in Grid Example

OK, if interested, I got it. 1) move the declaration of "grid_vmove_cells_area" to vpiGrid.cl 2) Add listener " addVScrollListener(onVScroll)" to the clause " generatedInitialize()" in childDialog.pro 3) add the clause "onVScroll" to handle the scroll event onVScroll(Source, ScrollCode, ThumbPositio...