Search found 25 matches

by Gildas Menier
30 Nov 2006 15:15
Forum: Visual Prolog Tips & Samples
Topic: Genetic Algorithm Toolkit 1.3 for 7.x
Replies: 0
Views: 7231

Genetic Algorithm Toolkit 1.3 for 7.x

(time to wake up this side of forum :wink: ) Here is a small toolkit to implement Genetic Algorithms. You can provide your own coding and operators thanks to object programming. It provides a dedicated display control to draw the fitness evolution. More details & doc : http://www.arsaniit.com/vp...
by Gildas Menier
9 Nov 2006 10:24
Forum: Visual Prolog
Topic: touch sensitive screen
Replies: 9
Views: 6098

Hi Audun, I am interested as well by the information. For most of tablet PCs, the OS maps the touch click to mouse click, so, for simple interactions, there is no need for dedicated API, I think. We used to use the wintab API with Wacom pads: http://www.wacomeng.com/devsupport/ibmpc/wacomwindevfaq.h...
by Gildas Menier
4 Aug 2006 12:44
Forum: Visual Prolog Tips & Samples
Topic: Control for IExplorer 6.3ce -> 1.1&2.01 and for 7ce -> 2.10 updated for 7002
Replies: 4
Views: 10479

Updated for VIP 7Ce This one (V2.x as some parts have been rewritten) is based on a wrapper provided by PDC to get access to sink events. The new main feature is the access to the values of the fields in forms. You can use this to build a form in HTML (with some more controls on color, font, animate...
by Gildas Menier
20 Jul 2006 15:17
Forum: Visual Prolog Tips & Samples
Topic: Control for IExplorer 6.3ce -> 1.1&2.01 and for 7ce -> 2.10 updated for 7002
Replies: 4
Views: 10479

Updated to 1.1 with some new features that use both OLE Command and MSHTML. Can be used in VP6. New features : Dialogs : print, print preview, page setup, saveas... Access : get access to the content of document loaded (HTML and Text), title, docsize, dates... HTML : use writeHTML to directly write ...
by Gildas Menier
28 May 2006 20:40
Forum: Visual Prolog Tips & Samples
Topic: (Howto) get an image from internet and display it (and more)
Replies: 2
Views: 13278

(Howto) get an image from internet and display it (and more)

This project shows how to download a web page, parse it to extract the <img> tags (thanks to a code made by Mr Yasuhisa Matsumura and available in the examples of visual prolog). Then how to download a picture (given its URL) and make a gdi image from it and display it. The project contains a very s...
by Gildas Menier
17 Apr 2006 14:42
Forum: Visual Prolog Tips & Samples
Topic: (how to) find an approximate match for a fact with strings (ok for VIP 7)
Replies: 0
Views: 6270

(how to) find an approximate match for a fact with strings (ok for VIP 7)

The package vp_string adds a predicate that computes an editing distance between two strings (editingdistance(string,string) -> integer). It returns the number of operations it takes to get from the first string to the second string. Allowed op are insert (add a character), delete (remove one) or re...
by Gildas Menier
10 Apr 2006 10:44
Forum: Visual Prolog Tips & Samples
Topic: Control for IExplorer 6.3ce -> 1.1&2.01 and for 7ce -> 2.10 updated for 7002
Replies: 4
Views: 10479

Control for IExplorer 6.3ce -> 1.1&2.01 and for 7ce -> 2.10 updated for 7002

I just included the webbrowser example in a custom control + added a readHTML to be able to send HTML code to IE.

best regards

Gildas

<<< get latest version here: http://www.arsaniit.com/vp_tools/customie.htm>>>
by Gildas Menier
4 Apr 2006 19:22
Forum: Visual Prolog Tips & Samples
Topic: (how to) deal with large amounts of (key,value) - updated for 7.0x
Replies: 3
Views: 10058

(how to) deal with large amounts of (key,value) - updated for 7.0x

For the management of key->values in Visual Prolog, you may use factsDB, chainDB or some sql based solution. Each solution has benefits and drawbacks. For some reasons, I had to find another solution. Mikio Hirabayashi has built a very nice API called 'QDBM'. http://qdbm.sourceforge.net/ see also ht...
by Gildas Menier
18 Mar 2006 10:53
Forum: Visual Prolog Tips & Samples
Topic: (Howto) define a color : Menu, RGB and HSV
Replies: 0
Views: 5918

(Howto) define a color : Menu, RGB and HSV

1. MENU : A very simple way to insert a color is the use of the VP menu item Insert->Insert RGB value : it opens a Color Dialog and let you insert the right color value. This is an easy way, since you see/choose the color to insert. 2. RGB : Second is the use of Res = vpi::composeRGB(R,G,B) : this p...
by Gildas Menier
16 Mar 2006 9:57
Forum: Visual Prolog Tips & Samples
Topic: Custom control + Zoom & Panning + DBuffering
Replies: 0
Views: 5608

Custom control + Zoom & Panning + DBuffering

A (fast and) tiny example of custom control for the viewing of a set of labels+texts.

Drag+Right button to pan, CTRL-Right button or middle button to zoom, space to reset a view.

Click on a frame to focus on it.

Best regards

Gildas