Defline(style,pix) to 2DDrawing-Library

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Re: Defline(style,pix) to 2DDrawing-Library

Post by blueznl »

I wonder if this is still on Fred's 'to do' list :-)
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
User avatar
Falko
Enthusiast
Enthusiast
Posts: 271
Joined: Sat Oct 04, 2003 12:57 pm
Location: Germany
Contact:

Re: Defline(style,pix) to 2DDrawing-Library

Post by Falko »

blueznl wrote:I wonder if this is still on Fred's 'to do' list :-)
it's very still there.

Updatet to PB 4.51 finale :

Code: Select all

;Code from einander

Procedure Lin(x,y,x1,y1,Width,Color)
   hDC=GetDC_(WindowID(0))
   pen=CreatePen_(#PS_SOLID,Width,color) 
   hPenOld=SelectObject_(hDC,pen)
   MoveToEx_(hDC,x,y,0):LineTo_(hDC,x1,y1)
   DeleteObject_(pen)
   DeleteObject_(hPenOld)
EndProcedure


_X=GetSystemMetrics_(#SM_CXSCREEN)-8 : _Y=GetSystemMetrics_(#SM_CYSCREEN)-68
OpenWindow(0,0,0,_X,_Y,"",#WS_OVERLAPPEDWINDOW | #WS_MAXIMIZE)

lin(50,200,300,400,15,#Red)
MessageRequester("","DONE",0)
www.falko-pure.de
Win11 Pro 64-Bit, PB_6.11b1
User avatar
Falko
Enthusiast
Enthusiast
Posts: 271
Joined: Sat Oct 04, 2003 12:57 pm
Location: Germany
Contact:

Re: Defline(style,pix) to 2DDrawing-Library

Post by Falko »

Hello Fred, this thread is very old. It would be nice if you like box functions for 2ddraw, cirkel lines and line type another parameter for thickness etc. in the new PB version 5.x would install.

Such an extension is a problem for the current PB version?

Translated with Google
www.falko-pure.de
Win11 Pro 64-Bit, PB_6.11b1
User avatar
Falko
Enthusiast
Enthusiast
Posts: 271
Joined: Sat Oct 04, 2003 12:57 pm
Location: Germany
Contact:

Re:

Post by Falko »

Fred wrote:It's a GFA invasion ! :lol:

Ok for this command, I put it in the TODO list...
Hello Fred,
your todolist is very, very old an nothing is created for new Defline. :?

sorry my english, but i hope PB becomes a PB_Defline for linex, boxes,circles ....
www.falko-pure.de
Win11 Pro 64-Bit, PB_6.11b1
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: Defline(style,pix) to 2DDrawing-Library

Post by IdeasVacuum »

GDI + is still supported on Windows. OK, not cross-platform, but if you are coding for Windows, Danilo has a nice lib:
http://www.purebasic.fr/english/viewtop ... 12&t=46987
Essentially, this is what is required cross-platform as native PB.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
User avatar
Falko
Enthusiast
Enthusiast
Posts: 271
Joined: Sat Oct 04, 2003 12:57 pm
Location: Germany
Contact:

Re: Defline(style,pix) to 2DDrawing-Library

Post by Falko »

IdeasVacuum wrote:...OK, not cross-platform...
That is, what i mean.

But Fred has this set into his Todo-List.

Okay, i'm using Danilos GDI+ -Lib on Windows for me, but not on Linux.

Sorry my bad english.
Regards, Falko
www.falko-pure.de
Win11 Pro 64-Bit, PB_6.11b1
Post Reply