Search found 78 matches

by Gildas Menier
11 May 2007 9:00
Forum: Visual Prolog Tips & Samples
Topic: Custom Buttons & custom Labels - updated 1.4
Replies: 16
Views: 28663

Updated custom Buttons : - Click timeout : If you press a button, keep it pressed and leave the button area, no mouseUp event is generated. So I added a timer to provide a mouseUp event triggered if necessary. - Effect callback : ebutton_effect1_ctl:setEffectCallBack(1000, effectTime), you can now a...
by Gildas Menier
3 May 2007 6:12
Forum: Visual Prolog Tips & Samples
Topic: Custom Buttons & custom Labels - updated 1.4
Replies: 16
Views: 28663

Hi Thomas, The setBorder is a good idea, but as soon as you've decided you need a border at the object creation, you can't change it later. Since it can be interesting to have this choice (for the toggle button for instance), I had the feeling I should let the user decide. I do agree with the suppor...
by Gildas Menier
2 May 2007 21:19
Forum: Visual Prolog Tips & Samples
Topic: Custom Buttons & custom Labels - updated 1.4
Replies: 16
Views: 28663

Custom Buttons & custom Labels - updated 1.4

Hi ! Here is an example of custom control for custom buttons. Font, Size, Color, Background Color, pictures are supported, as well as a toggle button type (see the included picture for samples). Best Regards Gildas ps : As always (! :roll:), this lacks real documentation, but the name of the predica...
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: 6610

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_too...
by Gildas Menier
9 Nov 2006 10:24
Forum: Visual Prolog
Topic: touch sensitive screen
Replies: 9
Views: 2930

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: 9072

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: 9072

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
18 Jul 2006 9:37
Forum: Visual Prolog
Topic: WebBrowser sample
Replies: 16
Views: 6784

(Just my 2 cents) It depends on what you are trying to acheive : you already can use the (great) lib provided by Jan de Lint, or mine (vp_web) that both provide a way to get a web page source given its URL. If you want to use the IE control, you may use the same lib with the URL you retrieve from yo...
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: 9204

(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
4 May 2006 21:02
Forum: Visual Prolog Tips & Samples
Topic: Opengl in Visual Prolog 6.3x (V0.7) and updated for VIP 7ce
Replies: 4
Views: 8195

OpenGl for Visual Prolog 6.3 + Vp_scene. Version 0.7. Updated for VIP7 on the site. 0.7 added fog support + some light support + some minor bugs fixed improved vp_scene : for simple scene if you do not want to learn OpenGL, this should make the use of 3D simplier. added 2 new demos (cow and animated...
by Gildas Menier
20 Apr 2006 10:58
Forum: Visual Prolog Tips & Samples
Topic: Opengl in Visual Prolog 6.3x (V0.7) and updated for VIP 7ce
Replies: 4
Views: 8195

Opengl for visual prolog updated to 0.4.

Best regards

Gildas
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: 5649

(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: 9072

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: 8956

(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...