Search found 56 matches

by daveplummermd
3 Aug 2020 20:44
Forum: Visual Prolog
Topic: Custom Control Help
Replies: 2
Views: 1477

Re: Custom Control Help

Thomas
Thanks so much. This is an extremely helpful response and works as advertised. Now, I just have to understand how and why, but that's on me.

Thanks Again

dave
by daveplummermd
27 Jul 2020 22:02
Forum: Visual Prolog
Topic: Custom Control Help
Replies: 2
Views: 1477

Custom Control Help

Guys I need help with custom controls and "reusable code". Example: 1) I have made a custom control "lb" that only contains a listbox. 2) I then make a diaglog box "dlg" and insert my new custom control "lb" 3) Now I want to take action in dlg.pro on any selectionChange made in the custom control "l...
by daveplummermd
29 Mar 2020 12:58
Forum: Visual Prolog
Topic: pictDraw problem and question
Replies: 10
Views: 4556

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: 3207

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: 3757

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: 7329

Re: sciLexer selcted text

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

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: 3436

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: 3436

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: 2464

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: 2464

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: 6904

Re: email sending...

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

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: 4452

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...