Rulers

We have an application similar to that of the DiagramBuilder. I added a menu item to show and hide the rulers. The application starts with the rulers visible. When the rulers are then hidden, the diagram view does not update/refresh and I have empty space where the rulers were until I manually scroll the diagram. I''ve tried updating and refreshing with no success. The easiest way for you to reproduce this is to add the following code to the DiagramBuilder example (I hooked it up to SnapToGrid button): Added the following code to DiagramForm_Load: this.Diagram.View.HorizontalRuler.Visible = true; this.Diagram.View.VerticalRuler.Visible = true; Add the following to barItemSnapToGrid_Click: this.Diagram.View.HorizontalRuler.Visible = !this.Diagram.View.HorizontalRuler.Visible; this.Diagram.View.VerticalRuler.Visible = !this.Diagram.View.VerticalRuler.Visible; Do you know of any way I can fix this? Thanks in advance for your help. Chris C

1 Reply

JA Jesus Arevalo April 27, 2006 07:24 AM UTC

We have experienced the same problem. jesus >We have an application similar to that of the DiagramBuilder. I added a menu item to show and hide the rulers. The application starts with the rulers visible. When the rulers are then hidden, the diagram view does not update/refresh and I have empty space where the rulers were until I manually scroll the diagram. I''ve tried updating and refreshing with no success. > >The easiest way for you to reproduce this is to add the following code to the DiagramBuilder example (I hooked it up to SnapToGrid button): > >Added the following code to DiagramForm_Load: >this.Diagram.View.HorizontalRuler.Visible = true; >this.Diagram.View.VerticalRuler.Visible = true; > >Add the following to barItemSnapToGrid_Click: >this.Diagram.View.HorizontalRuler.Visible = !this.Diagram.View.HorizontalRuler.Visible; > >this.Diagram.View.VerticalRuler.Visible = !this.Diagram.View.VerticalRuler.Visible; > >Do you know of any way I can fix this? > >Thanks in advance for your help. > >Chris C >

Loader.
Up arrow icon