
Defline(style,pix) to 2DDrawing-Library
Re: Defline(style,pix) to 2DDrawing-Library
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... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
Re: Defline(style,pix) to 2DDrawing-Library
it's very still there.blueznl wrote:I wonder if this is still on Fred's 'to do' list
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)
Re: Defline(style,pix) to 2DDrawing-Library
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
Such an extension is a problem for the current PB version?
Translated with Google
Re:
Hello Fred,Fred wrote:It's a GFA invasion !![]()
Ok for this command, I put it in the TODO list...
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 ....
-
- Always Here
- Posts: 6426
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
Re: Defline(style,pix) to 2DDrawing-Library
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.
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.
If it sounds simple, you have not grasped the complexity.
Re: Defline(style,pix) to 2DDrawing-Library
That is, what i mean.IdeasVacuum wrote:...OK, not cross-platform...
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