[mapguide-trac] #1811: Maestro UI Does Not Respect Field/Property Use for Colours

MapGuide Open Source trac_mapguide at osgeo.org
Wed Sep 21 05:46:33 EDT 2011


#1811: Maestro UI Does Not Respect Field/Property Use for Colours
--------------------------+-------------------------------------------------
 Reporter:  crispinatime  |         Owner:  jng        
     Type:  defect        |        Status:  reopened   
 Priority:  low           |     Milestone:  Maestro-4.0
Component:  Maestro       |       Version:             
 Severity:  minor         |    Resolution:             
 Keywords:                |   External_id:             
--------------------------+-------------------------------------------------
Changes (by crispinatime):

  * status:  closed => reopened
  * resolution:  fixed =>


Comment:

 I am now getting a different exception (see below).
 But, I think the new colour control is really great and exposes some non-
 obvious functionality.

 Is there a way to find out which layer elements support expressions?  I am
 having to use thematic filters to display different linestyles and fills
 because of they way they are enumerated.  Same for text background style,
 italic and bold.  Would learning composite symbols help me here?

 In addition:
 Obviously if you just save the XML above without the referenced
 .FeatureSource you will not be able to load the .LayerDefinition... but I
 think it would be nice to catch the exception
 "MgResourceNotFoundException" separately and give a nice message like "The
 underlying data featuresource {0} is missing - please ensure you blah,
 blah" rather than having a scary stack trace.


 {{{
 System.ArgumentNullException: Value cannot be null.
 Parameter name: image
    at System.Drawing.TextureBrush..ctor(Image image, WrapMode wrapMode)
    at System.Drawing.TextureBrush..ctor(Image bitmap)
    at
 Maestro.Editors.LayerDefinition.Vector.FeaturePreviewRender.RenderPreviewArea(Graphics
 g, Rectangle size, IAreaSymbolizationFill item) in
 e:\Projects\Maestro\Maestro.Editors\LayerDefinition\Vector\FeaturePreviewRender.cs:line
 116
    at
 Maestro.Editors.LayerDefinition.Vector.Scales.ItemStyle.previewPicture_Paint(Object
 sender, PaintEventArgs e) in
 e:\Projects\Maestro\Maestro.Editors\LayerDefinition\Vector\Scales\ItemStyle.cs:line
 152
    at System.Windows.Forms.Control.OnPaint(PaintEventArgs e)
    at System.Windows.Forms.PictureBox.OnPaint(PaintEventArgs pe)
    at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs
 e, Int16 layer, Boolean disposeEventArgs)
    at System.Windows.Forms.Control.WmPaint(Message& m)
    at System.Windows.Forms.Control.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)
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/1811#comment:3>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list