Search found 388 matches

by Paul Cerkez
26 Sep 2008 19:40
Forum: Visual Prolog
Topic: Regular expression for replacement
Replies: 2
Views: 2589

I also use TextPad when I have to make a global change to many/all files.

TextPad does it fast and easy.
by Paul Cerkez
19 Sep 2008 12:25
Forum: Visual Prolog
Topic: Bug report ro VipSupport
Replies: 9
Views: 4470

Thanks Elena, that eliminates the PE - CE incompatibily issue.

P.
by Paul Cerkez
19 Sep 2008 11:00
Forum: Visual Prolog
Topic: Bug report ro VipSupport
Replies: 9
Views: 4470

Thomas, When PDC moved from 7.0 to 7.1, didn't some things (PFC predciates) move from the personal to the CE only version? Could that be affecting this? Monic is running personal 7.1 and Carsten build the Sudoku example in 7.0. I compliled and ran the suduko example fine in 7.1 (7103) CE version. P.
by Paul Cerkez
1 Apr 2008 0:39
Forum: Visual Prolog
Topic: VPI Picture
Replies: 21
Views: 7082

from my code: what I do is create a class fact (single) to holds the handle of the pict canvas. class facts picWin : pictureCanvas := erroneous. then after each save, I simply re-run the predicate that does the drawing. drawGraphic(...):- ... controlRCT = rct(...), picWin := pictureCanvas::new(X,Y),...
by Paul Cerkez
31 Mar 2008 12:25
Forum: Visual Prolog
Topic: VPI Picture
Replies: 21
Views: 7082

unfortunately I am work right now and my code for this is at home but I have had my project tool create hundreds of pictures and save them with no problems. I haven't looked at that partiular code in months but I don't think I recreate the DC everytime, I think I use the existing one, clear the curr...
by Paul Cerkez
30 Mar 2008 21:27
Forum: Visual Prolog
Topic: VPI Picture
Replies: 21
Views: 7082

vjoer, when you invoked vpi::pictdestroy() there is nothing left to draw on. you have removed the handle to the device context. (note that htis also an obsolete predicate and now does nothing in VIP 7.1 and I am not sure how many releases back) you will either need to do your drawing BEFORE you dele...
by Paul Cerkez
24 Feb 2008 21:05
Forum: Visual Prolog
Topic: Linux (Wine) and Visual Prolog
Replies: 4
Views: 7072

Gildas, I looked into doing it a few years ago for a project I was doing for work but there were simply too many environmental variables that had to be set (some that I had no clue what they were for) that I abandoned the attempt. I have some co-workers who were using Wine for some real-time work bu...
by Paul Cerkez
3 May 2007 2:22
Forum: Visual Prolog Tips & Samples
Topic: Custom Buttons & custom Labels - updated 1.4
Replies: 16
Views: 29387

Gildas, very interesting. I was looking at doing something similar. Looks like you beat me to it. Back in he PDC 4.x days, I used a 3rd Party tool called WinWidgets to do the same thing. I got the idea to create a VIP version of the WinWidgets-like capabilities. one capability that I was really inte...
by Paul Cerkez
12 Nov 2006 2:20
Forum: Visual Prolog
Topic: touch sensitive screen
Replies: 9
Views: 3107

I'm not sure if this is what you are referring to, but I use a SmartBoard (r) on a regluar basis with my VIP application. It makes it easy to teach classes interactively and to work as a group doing certain projects. I use the SmartBoard as a touch screen and can run my entire application from end-t...
by Paul Cerkez
18 May 2006 15:45
Forum: Visual Prolog Tips & Samples
Topic: (Howto) Convert a vpi Picture to a GDI+ Image
Replies: 6
Views: 9678

going from Gdi+IMAGE to a gdi+BITMAP? gdiplus_native::gdipGetImageGraphicsContext/2-> gdipGetImageGraphicsContext : ( gdiplusImage Image, gpGraphics Graphics) -> gpStatus procedure (i,o) language apicall. See details in MSDN. then gdiplus_native::gdipCreateBitmapFromGraphics/4-> gdipCreateBitmapFrom...
by Paul Cerkez
18 May 2006 12:27
Forum: Visual Prolog Tips & Samples
Topic: (Howto) Convert a vpi Picture to a GDI+ Image
Replies: 6
Views: 9678

Is this what you need?

Code: Select all

gdiplus_native::gdipCreateBitmapFromGdiDib/3->   gdipCreateBitmapFromGdiDib : (     pointer GdiBitmapInfo,     pointer GdiBitmapData,     gdiplusBitmap Bitmap)     -> gpStatus     procedure (i,i,o)     language apicall. See details in MSDN.  
by Paul Cerkez
20 Apr 2006 13:21
Forum: Visual Prolog Tips & Samples
Topic: Opengl in Visual Prolog 6.3x (V0.7) and updated for VIP 7ce
Replies: 4
Views: 8368

great work Gildas, love it.