Search found 23 matches

by Richard Clarke
18 Feb 2016 4:52
Forum: Visual Prolog
Topic: Form Menu Action
Replies: 1
Views: 2655

Form Menu Action

My form formA has got a menu and a poush button. The push button does what I want but not the menu action.
by Richard Clarke
13 Feb 2016 3:10
Forum: Visual Prolog
Topic: Activate window
Replies: 3
Views: 3272

Thanks, that works. Believe it or not, setting focus was the first thing that occured to me. Sadly I used vpi::winSetFocus instead of setfocus() , as in:- Window=FormA, WindowHandle = Window:getVPIWindow(), vpi::winSetFocus (WindowHandle) , This, for some reason, does not have the desired effect (wh...
by Richard Clarke
12 Feb 2016 21:49
Forum: Visual Prolog
Topic: Form Menu Code Expert
Replies: 14
Views: 7628

It's the lack of symmetry, if that's the right word, that is disconcerting. There is admirable assistance from the code expert when using the taskmenu, but not for other menus of user creation. This is not logical., or should I say not orthogonal. . Both are menus so user would expect their behaviou...
by Richard Clarke
12 Feb 2016 21:40
Forum: Visual Prolog
Topic: Activate window
Replies: 3
Views: 3272

Activate window

If you have more than one window showing, say FormA and Form B, how can you make one rather than the other active under program control (as you can manually with mouse clicks)? If you mouse click on such a window, say FormA the previously active window (say FormB) receives the deactive event and the...
by Richard Clarke
11 Feb 2016 1:17
Forum: Visual Prolog
Topic: Form Menu Code Expert
Replies: 14
Views: 7628

Form Menu Code Expert

A while ago it was said "I guess, we should add one more tab on the Properties editor for dealing with the individual menu entities." I can see under Properties, Menu: you get to choose the menu you have created but this is not exactly "dealing with the individual menu entities" I'd like to be able ...
by Richard Clarke
21 Jan 2016 13:09
Forum: Visual Prolog
Topic: Messages window - update
Replies: 3
Views: 3238

Thanks for getting back to me. Not quite EVERYTHING is delayed: some things slip through others do not. Here's the set up. There are two forms formA and formB plus the messages window on display. formB has an edit_ctl In code behind formA there is a looping routine Within the loop we send text Rem1 ...
by Richard Clarke
21 Jan 2016 1:15
Forum: Visual Prolog
Topic: Messages window - update
Replies: 3
Views: 3238

Messages window - update

Is it possible to update the messages window using :update() ? Reason for asking is: Output to the messages window is delayed while looping code loops in a form "formA" Output to an edit_ctl of another form, "fomB" is similarly delayed but can be forced OK with FomB:update(). I gather the explanatio...
by Richard Clarke
21 Apr 2012 23:52
Forum: Visual Prolog
Topic: Form Menu Code Expert
Replies: 14
Views: 7628

The help file says re Dialog and Window Expert Dialog and Window Expert The Dialog and Window Expert is a tool that connects Visual Prolog code to layouts of windows, dialogs , forms, and IDE controls. After a dialog or a window is designed, the Dialog and Window Expert can be used to generate the n...
by Richard Clarke
19 Apr 2012 17:32
Forum: Visual Prolog
Topic: Open Form
Replies: 5
Views: 2922

The following works, but why is the situation different if opening a dialog? Or opening a form from a window (i.e Task.win)? predicates onMenuItem : window::menuItemListener. clauses onMenuItem(_Source, _MenuTAG):- %_Test1= test1::display(Source). %runtime error 6001 %_Test1= test1::display(This). %...
by Richard Clarke
19 Apr 2012 15:42
Forum: Visual Prolog
Topic: Open Form
Replies: 5
Views: 2922

An explanation previously given was Source is the button and a button cannot be the parent of a form. You can use This (which is the first form) instead, or you can use the application window (i.e. applicationWindow::get()), or the screen (i.e. window::getScreenWindow()). By experiment I have found ...
by Richard Clarke
19 Apr 2012 15:20
Forum: Visual Prolog
Topic: Open Form
Replies: 5
Views: 2922

Open Form

By experiment (a) From a window (i.e. Task.win) I can open a form (eg Test.frm, or Test1.frm) (b) From a form (say Test.frm) I can open a dialog (e.g. dlgTest.dlg) BUT (c) From a form (say Test.frm) I CANNOT open another from (e.g. Test1.frm). (eg by on Test.frm have pushbuttion name:"Open Test1", t...
by Richard Clarke
14 Apr 2012 16:12
Forum: Visual Prolog
Topic: Form Menu Code Expert
Replies: 14
Views: 7628

Sounds worthy. If you look at the help on creating a form, at Creating a Form you will see that the illustration shows what you now get, i.e the Form Properties Dialog but the description below matches not that but the Window Attributes Dialog (which is what you used to get under 6.3 but now only ge...
by Richard Clarke
14 Apr 2012 3:05
Forum: Visual Prolog
Topic: Interfacing Visual Prolog with real world digital inputs and outputs
Replies: 1
Views: 2543

That sounds interesting. :-) I cannot help with suitable card. What did you use last time? If you have found one please post what it was here. You say you have done this many times before using languages such as C and Visual Basic. Can you provide some short examples in one of these two languages (p...
by Richard Clarke
12 Apr 2012 23:37
Forum: Visual Prolog
Topic: Form Menu Code Expert
Replies: 14
Views: 7628

I know the property editor is all that is there: that is exactly whay have pointed out. :-( The question remains why is the Dialogs and Windows Expert no longer available for forms and dialogs? It was available in version 6.3 for windows forms and dialogs, and worked just fine. Under 7.3 it is only ...
by Richard Clarke
12 Apr 2012 13:42
Forum: Visual Prolog
Topic: Form Menu Code Expert
Replies: 14
Views: 7628

The Dialog and Windows expert is not available for forms (or dialogs) via menu View (or CTRL+Shift+W). - a note pops up saying <form name>|<dialog name> is not associated with a dialog or window The property editor does not provide for code generation for menu items (as it does for windows). The fun...