[mono-vb] Re sizing Images

Easy_Rider9999 jhmgbl2 at t-online.de
Mon Sep 14 11:17:32 EDT 2009




Stifu wrote:
> 
> 
> 
> Easy_Rider9999 wrote:
>> 
>> 
>> 
>> Easy_Rider9999 wrote:
>>> 
>>> I have found out why resizing does not work! The dialogresult for
>>> frmResizePictures is "Cancel" instead of "OK" if you click on the resize
>>> button! This happens although I have set the dialogresult for the resize
>>> button to OK. I am working on a workaround now.
>>> 
>>> 
>>> Regards 
>>> 
>>> Hans
>>> 
>> The workaround worked only partially. The OK button is now interpreted as
>> OK, but the YES-Button of an msgbox gives the Result NO!!!!!!!! I really
>> get very unmotivated for Mono....
>> 
>> 
>> Regards Hans
>> 
> 
> If you want Mono to get better, then file bug reports.
> 
> 
I have made some more workarounds and my app runs fairly well in my own
Ubuntu 8.04 environment with my self-compiled Mono 2.4.2.3 (with libgdiplus)
but with the 2.4.2.3 Suse Virtual PC Image my app crashes when opening a
folder with pictures! Is libgdiplus missing in this image? Here is the error
message:

ucPictureListview.DrawLVItem SetImages to unsaved Items and checked Items
/home/rupert/Desktop/TestTest/DSC03690.JPG
System.ArgumentOutOfRangeException: Index is less than 0 or more than or
equal to the list count.
Parameter name: index
4
  at System.Collections.ArrayList.ThrowNewArgumentOutOfRangeException
(System.String name, System.Object actual, System.String message) [0x00000]
in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/corlib/System.Collections/ArrayList.cs:3258 
  at System.Collections.ArrayList.get_Item (Int32 index) [0x00013] in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/corlib/System.Collections/ArrayList.cs:2649 
  at System.Windows.Forms.ImageList+ImageCollection.GetImage (Int32 index)
[0x00024] in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ImageList.cs:678 
  at System.Windows.Forms.ImageList.Draw (System.Drawing.Graphics g, Int32
x, Int32 y, Int32 index) [0x00000] in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ImageList.cs:1128 
  at System.Windows.Forms.ImageList.Draw (System.Drawing.Graphics g, Point
pt, Int32 index) [0x00000] in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ImageList.cs:1123 
  at (wrapper remoting-invoke-with-check)
System.Windows.Forms.ImageList:Draw
(System.Drawing.Graphics,System.Drawing.Point,int)
  at System.Windows.Forms.ThemeWin32Classic.DrawListViewItem
(System.Drawing.Graphics dc, System.Windows.Forms.ListView control,
System.Windows.Forms.ListViewItem item) [0x0029f] in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs:2963 
  at System.Windows.Forms.ThemeWin32Classic.DrawListViewItems
(System.Drawing.Graphics dc, Rectangle clip, System.Windows.Forms.ListView
control) [0x00074] in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs:2655 
  at System.Windows.Forms.ListView+ItemControl.OnPaintInternal
(System.Windows.Forms.PaintEventArgs pe) [0x00000] in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs:3027 
  at System.Windows.Forms.Control.WmPaint (System.Windows.Forms.Message& m)
[0x00078] in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:5559 
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m)
[0x0016c] in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:5319 
  at System.Windows.Forms.ListView+ItemControl.WndProc
(System.Windows.Forms.Message& m) [0x0009a] in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListView.cs:3050 
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage
(System.Windows.Forms.Message& m) [0x00000] in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:234 
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc
(System.Windows.Forms.Message& m) [0x00000] in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:215 
  at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr
wParam, IntPtr lParam) [0x00085] in
/usr/src/packages/BUILD/mono-2.4.2.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NativeWindow.cs:242 
ucPictureListview.DrawLVItem Finished
ucPictureListview.OnScrollFinished Finished
frmMain.clsTV_FolderSelected addPathToFolders
frmMain AddPathToFolders Start
frmMain AddPathToFolders AddFolder: 1
frmMain AddPathToFolders Finished
clsFolderTreeview.clsTVAfterSelect Finished
frmMain.clsTVAfterSelect Start


Regards Hans




-- 
View this message in context: http://www.nabble.com/Resizing-Images-tp24991889p25437709.html
Sent from the Mono - VB mailing list archive at Nabble.com.



More information about the Mono-vb mailing list