Search found 15 matches

by Gildas Menier
24 Jul 2013 20:01
Forum: Visual Prolog
Topic: Access to arsaniit.com
Replies: 2
Views: 1583

Hi, I am sorry for the problems with Arsaniit. This site is now mainly a crash test site for some web tests and not a personal Visual Prolog code repository anymore. I have not been using Visual Prolog for month (years ?) for some reasons that are of no interest here - I think the last version I hav...
by Gildas Menier
13 Aug 2012 16:14
Forum: Visual Prolog Tips & Samples
Topic: Custom Buttons & custom Labels - updated 1.4
Replies: 16
Views: 29745

Hi, Sorry David for the problem. You may download (for a limited time) the archive there : http://www.arsaniit.com/vp_tools/download/ebutton14_72.zip PM me if you are looking for a specific code, I will try to digg in my archives. I won't update the code I published since I don't use VP anymore (eve...
by Gildas Menier
9 Feb 2012 21:41
Forum: Visual Prolog
Topic: service_api
Replies: 3
Views: 2219

Arsaniit is down for the moment but his may help you (sorry for the format it is a copy/past of the arsaniit page) : (beware, DO NOT try to run a service 32 bit on an OS 64 bits - VP is 32 bits, so it can only be used to build 32 bits exe) Regards Gildas A Service is a program launched at machine's ...
by Gildas Menier
3 Mar 2009 22:13
Forum: Visual Prolog
Topic: string::last
Replies: 3
Views: 6506

string::last

Last (...) Returns the last Count characters of Source (according to help).

It seems that it rather returns the end of the string starting at the given position :

last("hello",1) returns "ello"

should return "o" ?

last("hello",string::length("hello")-1) ?

Regards

Gildas
by Gildas Menier
28 May 2008 18:44
Forum: Visual Prolog
Topic: eLabel and multiline
Replies: 5
Views: 2192

Hi Juneau !

You can use a resourceID of course (but outside the GUI builder). Have a look at setBackgroundPictureFromRes for instance (see the predicates ending with 'FromRes')
As for the multiline feature, I doubt it is possible using the published code.

regards

Gildas
by Gildas Menier
15 Jun 2007 13:53
Forum: Visual Prolog Tips & Samples
Topic: Custom Buttons & custom Labels - updated 1.4
Replies: 16
Views: 29745

V1.4 : Fixed some bugs (and cleaned the code. This version should be ready if PDC decide to include the management of color attributes in the GUI wizard). The new feature is that you can decide which part of the picture has to be resized (see the picture). Practically, you can now resize 'theme' but...
by Gildas Menier
10 Jun 2007 17:58
Forum: Visual Prolog Tips & Samples
Topic: Custom Buttons & custom Labels - updated 1.4
Replies: 16
Views: 29745

V1.3. Thanks to the 'require' tip (thank you Thomas), you can now easily use this package in your project (just add the ui_ext.pack to your project and answer 'add all' for the ressources) This version features a mask support : you can define buttons with different shapes - not only squares (see the...
by Gildas Menier
3 Jun 2007 10:56
Forum: Visual Prolog Tips & Samples
Topic: Custom Buttons & custom Labels - updated 1.4
Replies: 16
Views: 29745

V1.2. Now supports a different image/color when the mouse button is pressed (see the switch). More support for the property editor (for instance, some style preset can be set from within the UI editor). Added eLabel that provides the same for the labels. You can now include the pictures as ressource...
by Gildas Menier
20 May 2007 22:01
Forum: Visual Prolog Tips & Samples
Topic: Custom Buttons & custom Labels - updated 1.4
Replies: 16
Views: 29745

Updated - starting V1.0 - The main button interface is now supported (Not really 'validate' yet, but next release will include it). At least the clickresponder is fully supported. - The predicates names have been changed. - The property IDE is now used for most of the properties (see the screenshot)...
by Gildas Menier
11 May 2007 9:00
Forum: Visual Prolog Tips & Samples
Topic: Custom Buttons & custom Labels - updated 1.4
Replies: 16
Views: 29745

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

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

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
9 Nov 2006 10:24
Forum: Visual Prolog
Topic: touch sensitive screen
Replies: 9
Views: 3165

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

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

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