Search found 119 matches

by Steve Lympany
15 Mar 2011 22:32
Forum: Visual Prolog
Topic: how to insert images on a form?
Replies: 32
Views: 9141

Hi,
use
GDI:pictdraw()
cheers
Steve
by Steve Lympany
19 Feb 2011 10:22
Forum: Visual Prolog
Topic: Code Expert
Replies: 5
Views: 2141

Hi, In the IDE project tree, if you double-click on a frm or dlg, the properties dialog opens. In that dialog, you can add events and properties. Is that what you mean? You can add menus and dialogs through that interface. You can't do that for the taskwindow. You only get the "window expert" for th...
by Steve Lympany
12 Dec 2009 10:30
Forum: Visual Prolog
Topic: Speech recognition
Replies: 11
Views: 10622

Hi Thomas, I have a problem which is tricky to locate. Heap is sometimes not being released, but I cannot find out the circumstances. There is a trigger point of events, after which heap always goes up. There is no recovery. I can say the same phrases in different orders, and suddenly (there is no p...
by Steve Lympany
2 Dec 2009 11:57
Forum: Visual Prolog
Topic: Speech recognition
Replies: 11
Views: 10622

Hi Thomas,
Many thanks for that. My program's doing what I want now, but COM workings seem to be a black art!
cheers
Steve
by Steve Lympany
24 Nov 2009 16:47
Forum: Visual Prolog
Topic: Speech recognition
Replies: 11
Views: 10622

Hi Thomas, Sorry to be a pain, but.. I now have an executable, following Will's procedure: http://discuss.visual-prolog.com/viewtopic.php?t=7360 but I am not sure on how to set up the callback, because of the COM changes since then (May 07). ... P1=ppointer(uncheckedConvert(pointer, speechEventNotif...
by Steve Lympany
24 Nov 2009 12:06
Forum: Visual Prolog
Topic: Speech recognition
Replies: 11
Views: 10622

Hi Thomas,
Thank you - much appreciated.
cheers
Steve
by Steve Lympany
23 Nov 2009 16:08
Forum: Visual Prolog
Topic: Speech recognition
Replies: 11
Views: 10622

Hi Thomas, Thanks. I didn't have a copy of SAPI.DLL on my machine (XP) at all, so I copied 2 versions (different dates) from my wife's (Vista). So, a big step forward, but the generated code has faults - the are faults with predicates that are called with the wrong number of arguments. Some, like: e...
by Steve Lympany
22 Nov 2009 23:42
Forum: Visual Prolog
Topic: Speech recognition
Replies: 11
Views: 10622

Speech recognition

Hi, I have been playing around with MS's Speech SDK SAPI 5.1, but I can't see any COM objects in my project. I have looked at: http://discuss.visual-prolog.com/viewtopic.php?t=7360 but haven't managed to get that far :oops: In my VIP project, I have added "sapi.lib" (from the SDK) and "SREng.dll" as...
by Steve Lympany
26 Aug 2009 21:37
Forum: Visual Prolog
Topic: Keydown event for arrows keys
Replies: 12
Views: 5612

Hi,
Create a new Draw Control "joe" using the IDE (in the same place you'd create a new form). Go to your form and add "joe" to the form. Back in "joe"s expert (rather than the form's), add the events you need to capture (ie onChar).
regards
Steve
by Steve Lympany
26 Aug 2009 11:11
Forum: Visual Prolog
Topic: Keydown event for arrows keys
Replies: 12
Views: 5612

Hi,
Add a Draw Control to the form, and catch the events in that.
cheers
Steve
by Steve Lympany
5 Dec 2008 10:01
Forum: Visual Prolog
Topic: Rotated text?
Replies: 7
Views: 3378

Hi,
Very good, thanks.
I think it would be good to put this in the wiki...
cheers
Steve
by Steve Lympany
3 Dec 2008 17:39
Forum: Visual Prolog
Topic: Rotated text?
Replies: 7
Views: 3378

Rotated text?

Hello,
How can text be drawn at any particular angle?
Steve
by Steve Lympany
12 Sep 2007 16:36
Forum: Visual Prolog
Topic: hi. Howto check Radio button state ?!
Replies: 6
Views: 5329

Hi, You do not show quite enough code. Guessing - first try explicitly entering the class state - it is ambiguous at the moment (radiobuttonstate::checked()). Or... You have: 1) radiobutton::state 2) queryda::state e.g. try defining your queryda one to state=checkedX();.... to make it unique, and yo...
by Steve Lympany
13 May 2006 13:11
Forum: Visual Prolog
Topic: Font Style of Button Control
Replies: 3
Views: 2463

Hi,
I'm not sure - it may be limited, but this works:

Code: Select all

        Font = vpi::fontCreate(ff_helvetica,[fs_italic,fs_bold],12),         push_button:setfont(Font),
cheers
Steve