@
Thorsten1867,
Thank you for the latest version of ListEX (#Version = 20022503)
First the good news! -- I notice that the (ListEx) ComboBox now works perfectly in OSX.
Second my program crashes when the code below is executed:
ListEx::AddItem(#WML_A_List,-1,"")
With the following error:
[20:12:51] Executable started.
[20:12:58] [ERROR] ListExModule.pbi (Line: 3626)
[20:12:58] [ERROR] DrawImage(): The specified 'ImageID' is null.
[20:13:04] The Program was killed.
I have attempted to make a small snippet of code that gives this error but have not yet succeeded, sorry.
What I can say is that if I use an earlier version of ListEx with my program it works ok.
My program also works if I comment out the following code in (#Version = 20022503):
Code: Select all
3590 If Flags & #Image
imgFlags = ListEx()\Rows()\Column(Key$)\Image\Flags
If imgFlags & #Center
imgX = (dpiX(ListEx()\Cols()\Width) - dpiX(ListEx()\Rows()\Column(Key$)\Image\Width)) / 2
ElseIf imgFlags & #Right
imgX = dpiX(ListEx()\Cols()\Width) - dpiX(ListEx()\Rows()\Column(Key$)\Image\Width) - dpiX(4)
Else
imgX = dpiX(4)
EndIf
imgWidth = dpiX(ListEx()\Rows()\Column(Key$)\Image\Width) ;+ dpiX(4)
imgHeight = dpiY(ListEx()\Rows()\Column(Key$)\Image\Height)
imgY = (dpiY(ListEx()\Rows()\Height) - dpiY(ListEx()\Rows()\Column(Key$)\Image\Height)) / 2 + dpiY(1)
DrawingMode(#PB_2DDrawing_AlphaBlend)
DrawImage(ListEx()\Rows()\Column(Key$)\Image\ID, colX + imgX, rowY + imgY, imgWidth, imgHeight)
ElseIf ListEx()\Cols()\Flags & #Image
imgFlags = ListEx()\Cols()\Image\Flags
If imgFlags & #Center
imgX = (dpiX(ListEx()\Cols()\Width) - dpiX(ListEx()\Cols()\Image\Width)) / 2
ElseIf imgFlags & #Right
imgX = dpiX(ListEx()\Cols()\Width) - dpiX(ListEx()\Cols()\Image\Width) - dpiX(4)
Else
imgX = dpiX(4)
EndIf
imgWidth = dpiX(ListEx()\Cols()\Image\Width) ; + dpiX(4)
imgHeight = dpiY(ListEx()\Cols()\Image\Height)
imgY = (dpiY(ListEx()\Rows()\Height) - dpiY(ListEx()\Cols()\Image\Height)) / 2 + dpiY(1)
DrawingMode(#PB_2DDrawing_AlphaBlend)
DrawImage(ListEx()\Cols()\Image\ID, colX + imgX, rowY + imgY, imgWidth, imgHeight)
EndIf