Search found 90 matches

by daveplummermd
6 Mar 2018 2:46
Forum: Visual Prolog
Topic: Fill a listbox
Replies: 6
Views: 3389

Fill a listbox

How do I fill a list box with a string list, or even a single item? I have many successful projects in visual prologue 5.2. I'm trying to take on 8.1 without any experience with intervening versions. This is quite the learning curve. I have created a list box, I have its name, ID, property value she...
by daveplummermd
5 Jan 2015 23:30
Forum: Visual Prolog
Topic: Install under Dropbox...or not
Replies: 2
Views: 1786

Install under Dropbox...or not

Guys I am installing VP 7.5 commercial edition. I want to work on projects from two machines and have that work synchronized. I use dropbox for synchronizing. Here's my question: Should I install VP on both machines, allowing all the default locations, keeping only my project files within the dropbo...
by daveplummermd
13 Jan 2014 18:22
Forum: Visual Prolog
Topic: STOPIT! Exception in VPI user error hander (vpi::setErrorHandler)
Replies: 1
Views: 1288

STOPIT! Exception in VPI user error hander (vpi::setErrorHandler)

Guys I hav ea project that routinly terminates with a dialog: Title: Exception in VPI user error hander (vpi::setErrorHandler) Internal : "Dump could not be formatted besides finally finding the bug, can I get this message to stop appearing? I know it sounds messy, but I want it to stop even before ...
by daveplummermd
11 Oct 2013 15:00
Forum: Visual Prolog
Topic: seCursor() ?
Replies: 1
Views: 1021

seCursor() ?

Guys

Can you advise me on how to change the cursor, say from the standard arrow to a anything else?

Thanks in advance

dave
by daveplummermd
11 Oct 2013 14:40
Forum: Visual Prolog
Topic: "onPushButtonMouseEnter" event not detected
Replies: 5
Views: 1757

Guys

Thanks for these very helpful replies. I always learn stuff beyond the scope of the initial question.

BTW...what is with all the "term paper" crap on the board.....can this be removed or otherwise cleaned up?

Thanks again

Dave P
by daveplummermd
6 Oct 2013 2:51
Forum: Visual Prolog
Topic: "onPushButtonMouseEnter" event not detected
Replies: 5
Views: 1757

Tonton Thanks so much. When code entered exactly as you outlined, the compiler complains that the return value for the eventhandler "subEH" is not fully bound. clauses new(Parent) :- dialog::new(Parent), generatedInitialize(), pushButton_ctl:setSubClassHandler(subEH,false) . predicates subEH : eHand...
by daveplummermd
30 Sep 2013 15:00
Forum: Visual Prolog
Topic: "onPushButtonMouseEnter" event not detected
Replies: 5
Views: 1757

"onPushButtonMouseEnter" event not detected

Guys I am trying to detect a mouse over a dialog push button. I use the following: predicates onPushButtonMouseEnter : window::mouseEnterListener. clauses onPushButtonMouseEnter(_, _, _Flags):- vpiCommonDialogs::note("entered"), !. Should this detect a mouse-over-button and fire the clause? Thanks i...
by daveplummermd
4 Aug 2013 18:51
Forum: Visual Prolog
Topic: General Window Constructions
Replies: 1
Views: 1192

General Window Constructions

Folks I am trying to simply open a window that does nothing! These attempts fail. onFileNewWindow(_Source, _MenuTag):- TaskWindow=vpi::getTaskWindow(), Win=vpi::winCreate(w_TopLevel,vpiDomains::rct(0,0,100,100),"Yep",vpiDomains::noMenu,TaskWindow,[],handler_eh,0), !. and... onFileNewWindow(_Source, ...
by daveplummermd
4 Aug 2013 18:39
Forum: Visual Prolog
Topic: how to popup menu?
Replies: 6
Views: 1910

Ben
Perfect!

I have studied your code, understand it now, and it works.

Thank you.

Dave
by daveplummermd
1 Aug 2013 15:20
Forum: Visual Prolog
Topic: how to popup menu?
Replies: 6
Views: 1910

Ben I am so close. Now I can not see how your "get_meu" would work. I have a menu for the Taskwindow. Its attributes include "id_TaskMenu" But the code will not comiple onMouseDown(Source, Point, _ShiftControlAlt, _Button):- Menu=resid(vpiDomains::id_TaskMenu), This:menupopup(Menu,Point,vpiDomains::...
by daveplummermd
1 Aug 2013 13:11
Forum: Visual Prolog
Topic: how to popup menu?
Replies: 6
Views: 1910

Thanks

That post speaks to how to listen for the menu response, but I need help to "popup" the menu. I can not seem to display it.

dave
by daveplummermd
31 Jul 2013 13:58
Forum: Visual Prolog
Topic: how to popup menu?
Replies: 6
Views: 1910

how to popup menu?

Guys

How do I get a Menu, sat the the task window menu, as a popup. I have scourd the examples without discovering the answer.

Code: Select all

Menu=vpiDomains::resMenu(9011),  % 9011 is taskwindow menu
what code comes next, just to pop it up, not to handle the menu choice?

thanks

dave
by daveplummermd
29 Jul 2013 13:04
Forum: Visual Prolog
Topic: Working with Grid Example ...unable to replicate
Replies: 4
Views: 2274

Thanks so much.

Wen you initially inserted the windowsWithDialog into the project tree, was it declared as a "package in a new package" ?

Dave Plummer
by daveplummermd
28 Jul 2013 23:31
Forum: Visual Prolog
Topic: Working with Grid Example ...unable to replicate
Replies: 4
Views: 2274

In which file (*.pack or *.ph" or both or others) should the include statement appear?
I will insert manually to see if that works.

btw..I have done "reBuild all" both before and after removal, and re adding the childDialog class, no no avail.

thanks for reply

Dave
by daveplummermd
28 Jul 2013 19:11
Forum: Visual Prolog
Topic: Working with Grid Example ...unable to replicate
Replies: 4
Views: 2274

Working with Grid Example ...unable to replicate

Guys I am attempting to learn the nuances of the vpiGrid by replicating the code found in "Examples" distributed with VIP7.4 PE I have started a new project, mad, an identical "module" to customControls. "1.jg" represents my project tree. Then I am confused. In your example there is a new package, "...