Search found 56 matches

by Steve Lympany
31 May 2006 16:46
Forum: Visual Prolog Tips & Samples
Topic: drawHTMLinRect
Replies: 5
Views: 13862

drawHTMLinRect

I couldn't find an "HTML renderer" anywhere. CustomIE provided by Gildas is excellent, but I wanted to have several text boxes in a form, and to print them in their correct position, which has entirely different requirements. So, here is a class that renders basic HTML, and draws it in a rectangle. ...
by Steve Lympany
13 May 2006 13:11
Forum: Visual Prolog
Topic: Font Style of Button Control
Replies: 3
Views: 2998

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
by Steve Lympany
7 May 2006 17:28
Forum: Visual Prolog Tips & Samples
Topic: Drag and drop pictures in a form
Replies: 0
Views: 5249

Drag and drop pictures in a form

Here is a project that lets you load multiple bitmaps into a form. You can drag and drop them.
by Steve Lympany
8 Mar 2006 10:46
Forum: Visual Prolog Tips & Samples
Topic: File Management – Skeleton Startup Project
Replies: 0
Views: 6365

File Management – Skeleton Startup Project

Class Descriptions 1) taskwindow_support:: Here are some of the object predicates in this class: onfilenew :() determ (). onfilenew :(remember_files::a_file File) determ (i). onfilesave :()->adl_db::saved_result procedure (). onfilesaveas:()->adl_db::saved_result procedure (). onfileOpen :() determ...
by Steve Lympany
2 Mar 2006 11:14
Forum: Visual Prolog Tips & Samples
Topic: Drawing transparent boxes
Replies: 2
Views: 6545

Hi Yuri,
Yes, my method generates lots of pictures (vpi::pictGetFromWin), which might make the gc sweat a bit on slow computers - maybe?. It was the transparent "drag" across a complex background that I was initially trying to achieve.
cheers
Steve
by Steve Lympany
1 Mar 2006 19:35
Forum: Visual Prolog Tips & Samples
Topic: Drawing transparent boxes
Replies: 2
Views: 6545

Drawing transparent boxes

The attached project shows a method for
a) drawing 'transparent' boxes
b) drag and drop rectangles
by Steve Lympany
27 Feb 2006 11:26
Forum: Visual Prolog Tips & Samples
Topic: Selecting a toolbar in taskwindow
Replies: 0
Views: 5144

Selecting a toolbar in taskwindow

If you have several toolbar designs and you want to display a particular one at runtime, here is the method (the code is placed in taskwindow.pro) domains tb_design=full;partial. facts xtoolbar_showing:tb_design:=partial. predicates set_correct_toolbar:() procedure (). set_correct_toolbar:(tb_design...
by Steve Lympany
18 Feb 2006 17:37
Forum: Visual Prolog Tips & Samples
Topic: PDF custom control example
Replies: 8
Views: 13815

Hi Kari,
Just a brief note, runcom should be used and not run in pdfControl.pro.
Nice.
cheers
Steve
by Steve Lympany
24 Jun 2005 11:36
Forum: Visual Prolog Tips & Samples
Topic: TreeViewControl Example (new GUI)
Replies: 6
Views: 10553

Hi, Here is another update. This project has a dialog with 2 adjacent custom controls. The left one has the normal treeViewControl, the right one is a simple control which just lists the tree node texts, vertically positioned to be in line with the tree nodes. This could be of use (as a starting poi...
by Steve Lympany
21 Jun 2005 15:55
Forum: Visual Prolog Tips & Samples
Topic: TreeViewControl Example (new GUI)
Replies: 6
Views: 10553

Hi,
Here is an update for the treeViewControl example (not the control itself). It fixes a couple of bugs.

1) multiple copy bug
2) makes all items unselected when the tree file is saved.

Steve

<<Thomas Linder Puls: Attachment deleted (see below)>>
by Steve Lympany
6 Jun 2005 12:58
Forum: Visual Prolog Tips & Samples
Topic: TreeViewControl Example (new GUI)
Replies: 6
Views: 10553

TreeViewControl Example (new GUI)

Hello, Here is an example project using gui\treeViewControl. It's a reasonable starting point for anyone wishing to use treeViewControl. Most (if not all) the tree operations have been implemented - moving items around with both keyboard actions as well as drag and drop with the mouse, inserting bro...