UseCustomOutput()

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
PureLust
Enthusiast
Enthusiast
Posts: 477
Joined: Mon Apr 16, 2007 3:57 am
Location: Germany, NRW

UseCustomOutput()

Post by PureLust »

Dear Fréd,

because the internal PB-Structures are unpublished, it's (nearly?) impossible to use the powerful 2DDrawing-Functions on DCs which are created via the API.
You will surely have good reasons to hide these informations and I truly can understand your decision with that.

But, to make it possible to use the 2DDrawing-Functions on own DCs, would it be possible for you, to implement an Output()-Command, which will generate the needed OutputChannel out of Data, passed by the user (e.g. a DC or whatever Data you need).

e.g. like:

StartDrawing( UseCustomOutput( *hDC ))


With this Method you could keep the secret of the internal PB-Structures, but give the Programmer the possibility to use own generated OutputChannels (e.g. DCs) for StartDrawing().
[Dynamic-Dialogs] - create complex GUIs the easy way
[DeFlicker] - easily deflicker your resizeable Windows
[WinFX] - Window Effects (incl. 'click-through' Window)