Hi,
Maybe this helps:
https://www.codeproject.com/Articles/52 ... ainNetwork
#include "FiveWin.ch"
STATIC myRecognizers
STATIC myInkCollector
static oWnd
PROCEDURE MAIN
DEFINE WINDOW oWnd MENU BuildMenu()
myRecognizers := CreateObject( "msinkaut.InkRecognizers" )
myInkCollector := CreateObject( "msinkaut.InkCollector" )
myInkCollector:hWnd := oWnd:hWnd
myInkCollector:Enabled = .T.
ACTIVATE WINDOW oWnd
RETURN
function BuildMenu()
local oMenu
MENU oMenu
MENUITEM "Text" ACTION MsgInfo( myInkCollector:Ink:Strokes:ToString() )
MENUITEM "Clean" ACTION ( myInkCollector:Ink:DeleteStrokes( myInkCollector:Ink:Strokes ), oWnd:Refresh() )
ENDMENU
return oMenu
„Get-AppxPackage -allusers Microsoft.549981C3F5F10 | Remove-AppxPackage“
PROCEDURE cmdLoad.Click
lsInk = CREATEBINARY(FILETOSTR(GETFILE("isf")))
thisform.inkoverlay.Enabled = 0
thisform.inkoverlay.ink.Load(lsInk)
thisform.inkoverlay.Enabled = 1
*--Tell control to redraw, or changes will not be made visible.
*-- Use the InkRectangle object we
*-- created during form Init.
ThisForm.inkoverlay.Draw(ThisForm.InkRectangle)
ENDPROC
MENUITEM "Copy" ACTION myInkCollector:Ink:ClipBoardCopy()
MENUITEM "Paste" ACTION (myInkCollector:Enabled := .f.,myInkCollector:Ink:ClipBoardPaste(),myInkCollector:Enabled := .T.)
Microsoft InkEdit Control
{E5CA59F5-57C4-4DD8-9BD6-1DEEEDD27AF4}
ProgID "InkEd.InkEdit.1"
Microsoft InkPicture Control
{04a1e553-fe36-4fde-865e-344194e69424}
ProgID "msinkaut.InkPicture.1"
InkDisp
InkOverlay
InkPicture
InkCollector
InkDrawingAttributes
InkRectangle
InkRenderer
InkTransform
InkRecognizers
InkRecognizerContext
InkRecognizerGuide
InkTablets
InkWordList
InkStrokes
Ink
SketchInk
Ink is persisted by using a Graphics Interchange Format (GIF) file that contains ISF as metadata that is embedded within the file.
The Save method allows you to persist the ink in an InkDisp object in Graphics Interchange Format (GIF) format, which consists of an array of byte data (the tla_gif persistence format is specified in the InkPersistenceFormat enumeration type). After you have the array of byte data, you can load the array of byte data into another InkDisp object. This means that you can load GIF-compatible byte array data into another InkDisp object in the same way as if you had called the Save method and received a byte array that was not in GIF format.
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 46 guests