Hi,
I draw some numbers on a picture. Therefor i have a Panel and i set the B4xbitmap to the Panel.
pnlPic.SetBitmap(PicBitmap)
With b4a it works perfect, and with b4i i get the following error.
Thanks for your help
Error occurred on line: 12 (B4XPPic)
Type does not match (B4IPanelView)
Stack Trace: (
CoreFoundation <redacted> + 252
libobjc.A.dylib objc_exception_throw + 56
CoreFoundation <redacted> + 0
TC-Transfer All -[B4XViewWrapper throwTypeDoesNotMatch] + 96
TC-Transfer All -[B4XViewWrapper SetBitmap:] + 212
TC-Transfer All -[b4i_b4xppic _b4xpage_appear:] + 836
CoreFoundation <redacted> + 144
CoreFoundation <redacted> + 292
TC-Transfer All +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1608
TC-Transfer All -[B4IShell runMethod:] + 448
TC-Transfer All -[B4IShell raiseEventImpl:method:args::] + 2172
TC-Transfer All -[B4IShellBI raiseEvent:eventarams:] + 1580
TC-Transfer All __33-[B4I raiseUIEvent:eventarams:]_block_invoke + 60
libdispatch.dylib <redacted> + 24
libdispatch.dylib <redacted> + 16
libdispatch.dylib <redacted> + 1068
CoreFoundation <redacted> + 12
CoreFoundation <redacted> + 1924
CoreFoundation CFRunLoopRunSpecific + 436
GraphicsServices GSEventRunModal + 104
UIKitCore UIApplicationMain + 212
TC-Transfer All main + 120
libdyld.dylib <redacted> + 4
)
I found out to use an Image View instead a Panel in B4i , but i have to use the
routine Private Sub pnlPic_Touch (Action As Int, X As Float, Y As Float).
and with an ImageView there is no Touch Routine... ???
I draw some numbers on a picture. Therefor i have a Panel and i set the B4xbitmap to the Panel.
pnlPic.SetBitmap(PicBitmap)
With b4a it works perfect, and with b4i i get the following error.
Thanks for your help
B4X:
Dim cvs As B4XCanvas
Private Pic As B4XImageView
Public PicBitmap As B4XBitmap
Public pnlPic As B4XView
Dim sc As B4XRect
Private Sub B4XPage_Appear
If Var.ProjektPic.IsInitialized Then
Pic.Bitmap = Var.ProjektPic
End If
PicBitmap = Var.ProjektPic
Pic.SetBitmap(PicBitmap)
pnlPic.SetBitmap(PicBitmap)
cvs.Initialize(pnlPic)
sc.Initialize(0%x,0%y,pnlPic.Width,pnlPic.Height)
cvs.DrawBitmap(PicBitmap,sc)
Error occurred on line: 12 (B4XPPic)
Type does not match (B4IPanelView)
Stack Trace: (
CoreFoundation <redacted> + 252
libobjc.A.dylib objc_exception_throw + 56
CoreFoundation <redacted> + 0
TC-Transfer All -[B4XViewWrapper throwTypeDoesNotMatch] + 96
TC-Transfer All -[B4XViewWrapper SetBitmap:] + 212
TC-Transfer All -[b4i_b4xppic _b4xpage_appear:] + 836
CoreFoundation <redacted> + 144
CoreFoundation <redacted> + 292
TC-Transfer All +[B4I runDynamicMethod:method:throwErrorIfMissing:args:] + 1608
TC-Transfer All -[B4IShell runMethod:] + 448
TC-Transfer All -[B4IShell raiseEventImpl:method:args::] + 2172
TC-Transfer All -[B4IShellBI raiseEvent:eventarams:] + 1580
TC-Transfer All __33-[B4I raiseUIEvent:eventarams:]_block_invoke + 60
libdispatch.dylib <redacted> + 24
libdispatch.dylib <redacted> + 16
libdispatch.dylib <redacted> + 1068
CoreFoundation <redacted> + 12
CoreFoundation <redacted> + 1924
CoreFoundation CFRunLoopRunSpecific + 436
GraphicsServices GSEventRunModal + 104
UIKitCore UIApplicationMain + 212
TC-Transfer All main + 120
libdyld.dylib <redacted> + 4
)
I found out to use an Image View instead a Panel in B4i , but i have to use the
routine Private Sub pnlPic_Touch (Action As Int, X As Float, Y As Float).
and with an ImageView there is no Touch Routine... ???
Last edited: