NikunjParticipantJune 1, 2016 at 11:49 pmPost count: 2
I have a WinForm application that used Xceed.Grid. I am trying to run that application in Mac OS X El Capitan using Wineskin, Everything is working fine but whenever I try to check a grid checkbox I am getting following exception.
See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.InvalidOperationException: SetPixel is not supported for images with indexed pixel formats. at System.Drawing.Bitmap.SetPixel(Int32 x, Int32 y, Color color) at Xceed.UI.Classic.ClassicTheme.CreateBitmapMask(Color maskColor, Bitmap originalBitmap) at Xceed.UI.Classic.ClassicTheme.PaintCheckBox(Graphics graphics, Rectangle rectangle, CheckBoxUIState uiState, Color foreColor, Color backColor, Image backgroundImage, ContentAlignment backgroundImageAlignment, ImageStyle backgroundImageStyle, Double opacity) at Xceed.UI.Adaptive.AdaptiveTheme.PaintCheckBox(Graphics graphics, Rectangle rectangle, CheckBoxUIState uiState, Color foreColor, Color backColor, Image backgroundImage, ContentAlignment backgroundImageAlignment, ImageStyle backgroundImageStyle, Double opacity) at Xceed.Grid.Controls.ThemedCheckBox.PaintCheckBox(Graphics graphics, Boolean paintBackColor, Theme theme) at Xceed.Grid.Controls.ThemedCheckBox.OnPaint(PaintEventArgs e) at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer) at System.Windows.Forms.Control.WmPaint(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Also for existing data, grid shows text ‘True’ as checked instead of check arrow, and blank checkbox as unchecked. Please see following images for better idea.
ThanksNikunjParticipantJune 2, 2016 at 12:12 amPost count: 2
Here is the screenshot of what I am getting:Fawzi [Xceed]MemberJune 2, 2016 at 4:35 pmPost count: 722
The Xceed Grid for .net has been developed to be used with Windows OS, not with Mac. Therefore, this kind of usage has not been tested and is not currently supported. We apologize for any inconvenience this might cause and appreciate your interest in our products.
You must be logged in to reply to this topic.