Winblitz3d copy & paste

Blitz3D Forums/Blitz3D Userlibs/Winblitz3d copy & paste

Billp(Posted 2008) [#1]
The winblitz3d site is down, does anybody know if it is possible to copy & paste text in a winblitz3d text area via the right mouse button ?


Kev(Posted 2008) [#2]
winblitz3d is no longer supported, website wont be back!

clipboard copy&paste is not supported, theres code in the archives that access the clipboard it could be done that way.

kev


John Blackledge(Posted 2008) [#3]
Kev, what happened to the site and the project?


Kev(Posted 2008) [#4]
john, i simply did not have time to support it. with the freelance work i have been doing it leaves very little time for anything. though theres a whitegatesoftware.com update coming soon!

kev


Billp(Posted 2008) [#5]
Hey kev, I knew you were no longer supporting winblitz3d but would you be willing to allow us to host the old forum pages on our server, there was some good info there and would be useful to winblitz3d users even if presented as a collection of html pages rather than an active forum ?


John Blackledge(Posted 2008) [#6]
Billp - good idea.
Kev?
If my next project happens then I'll finally be needing WinBlitz3D with a vengeance, and I know those forums contain all the howto's...


Billp(Posted 2008) [#7]
Have found win api calls to copy/cut/paste from any control bu my implimentation is causing a mav, anbody have any ideas as to why


;WB3DStyles.bb added -

Const WM_CUT = $300
Const WM_COPY = $301
Const WM_PASTE = $302
Const WM_CLEAR = $303
Const HWND_BROADCAST = $FFFFFFFF

;Copy the contents of a control into the Clipboard
Function WB3D_Copy( hWnd )
    API_SendMessage hWnd, WM_COPY, 0, 0
End Function

; Cut the contents of a control into the Clipboard
Function WB3D_Cut( hWnd )
    API_SendMessage hWnd, WM_CUT, 0, 0
End Function

; Paste the contents of the Clipboard into a control
Function WB3D_Paste( hWnd )
    API_SendMessage hWnd, WM_PASTE, 0, 0
End Function

; Delete the selected contents of a control
Function WB3D_Delete( hWnd )
    API_SendMessage hWnd, WM_CLEAR, 0, 0
End Function

;Blitz3D_GUI_DLL.decls added -

.lib "user32.dll"
API_FindWindow%(class%,title$):"FindWindowA"
API_SendMessage% (hwnd%, wMsg%, wParam%, lParam*) : "SendMessageA"

;My test code

Case WB3D_KEY_F1
	WB3D_Copy( HWND_BROADCAST )
				
Case WB3D_KEY_F2
	WB3D_Paste( HWND_BROADCAST )


;have tried using the window handle from winblitz3d as well as HWND_BROADCAST with the same results

found the function calls here :
http://www.devx.com/vb2themax/Tip/18632


Kev(Posted 2008) [#8]
i will look into the database backup from winblitz3d.

@Billp
in the 'API_SendMessage% (hwnd%, wMsg%, wParam%, lParam*) : "SendMessageA"' the last param is specifyed as a bank your passing zero. hence why you get a mav. change the last param from 'lParam*' to 'lParam%'


John Blackledge(Posted 2008) [#9]
Nice one, Kev.
This is a fairly typical example of why we need you around :)