Search found 29 matches

by vjoer
28 Feb 2012 10:05
Forum: Visual Prolog
Topic: Predicates consulted from files
Replies: 2
Views: 1231

Predicates consulted from files

Hello

Can Visual Prolog read predicates definition from external files with consult for example?

I am thinking of a software that can create predicates at run time, save them to external files, and then load them from the files later on.

Thanks
by vjoer
7 Feb 2012 12:30
Forum: Visual Prolog
Topic: Form onActivate event
Replies: 4
Views: 1636

Hi Steve The focus event is not exactly what I was looking for. GetFocus executes each time the form gets the focus when it is visible. I need to insert some code on the event of activating the form after it was hidden, in order to refresh the content of some controls. The OnShow executes only once....
by vjoer
7 Feb 2012 9:34
Forum: Visual Prolog
Topic: Form onActivate event
Replies: 4
Views: 1636

Form onActivate event

Hello

I try to use the onActivate event in order to capture the events of forms getting active. However this event is not reached.
How can i intercept the event when a form gets visible from a hidden state?

Regards
Viorel
by vjoer
2 Feb 2012 21:07
Forum: Visual Prolog
Topic: Add menu items dynamically
Replies: 2
Views: 1148

Great. Thanks

Viorel
by vjoer
2 Feb 2012 20:52
Forum: Visual Prolog
Topic: Add menu items dynamically
Replies: 2
Views: 1148

Add menu items dynamically

Hello

I am trying to update an existing menu by adding some items.
However it s not clear to me the usage of dynmenu and menu functions in order to insert some entries into an existing menu.
Please clarify if anybody knows.

Regards
Viorel
by vjoer
31 Jan 2012 21:13
Forum: Visual Prolog
Topic: Resize eButton
Replies: 2
Views: 1150

Hello

I tried setWidth or setSize which work ok for normal buttons.
I tried various locations. The normal button can be resized anytime while the ebutton not. Or it needs some extra invalidations/setRect to work.

Regards
Viorel
by vjoer
31 Jan 2012 16:46
Forum: Visual Prolog
Topic: Resize eButton
Replies: 2
Views: 1150

Resize eButton

Hello

I am trying to resize an eButton at run-time and I dont succeed.
Has anybody done that?

Regards
Viorel
by vjoer
26 Jan 2012 22:25
Forum: Visual Prolog
Topic: eLabel and multiline
Replies: 5
Views: 2377

Hi Multiline can be obtained for an ebutton (elabel) using drawTextInRect instead of drawText. Basically replace the line GDI:drawText(pnt(PositionX+TextOffsetX,PositionY+TextOffsetY+2), Txt) with: This:getSize(W, H), GDI:drawTextInRect( rct(2,2,W-2,H-2), Txt, [dtext_Wordbreak]) regards
by vjoer
26 Aug 2009 18:53
Forum: Visual Prolog
Topic: Keydown event for arrows keys
Replies: 12
Views: 5683

Hi Steve

Could you explain more?

Regards
by vjoer
25 Aug 2009 10:33
Forum: Visual Prolog
Topic: Keydown event for arrows keys
Replies: 12
Views: 5683

Hello

Thanks but it did not help much.

Should i understand that keyupresponder is better than keydownresponder ? I already tried the second one without succes.

Regards
by vjoer
24 Aug 2009 20:03
Forum: Visual Prolog
Topic: Keydown event for arrows keys
Replies: 12
Views: 5683

Keydown event for arrows keys

Hello

I need to intercept the left/right arrows keypressed events on a form. I have tried to do that using
addHandler.
It doesnt work.

Any help is appreciated

Regards
by vjoer
1 Apr 2008 6:51
Forum: Visual Prolog
Topic: VPI Picture
Replies: 21
Views: 8113

Thank you
by vjoer
31 Mar 2008 6:54
Forum: Visual Prolog
Topic: VPI Picture
Replies: 21
Views: 8113

Hello Paul

I had tried also this approach but it failed with error "Too many open pictures".

What am i missing here?

Regards
by vjoer
30 Mar 2008 20:26
Forum: Visual Prolog
Topic: VPI Picture
Replies: 21
Views: 8113

VPI Picture

Hello I use the VPI picture handling to draw some basic geometries onto a picture canvas. I extract the picture using Picture = drawingCanvas:getPicture(). Afterwards I save the picture to a file using: vpi::pictSave(Picture, FullFilename), vpi::pictDestroy(Picture). ..and i want to be able to draw ...