Jump to content

IndirectUI: PanAndSlider


midora

Recommended Posts

One issue which disturbs me using the PanAndSlider property is that if you are panning then it is not possible to drag back to the 0/0 center. You are getting values like 0.02 or -0.01 always.

 

Second: I'm using the following code to setup the background of PanAndSlider:

Bitmap bitmap = new Bitmap(100, 100); // Creates a transparent bitmap
configUI.SetPropertyControlValue(PropertyNames.RotateXYDeg, ControlInfoPropertyNames.StaticImageUnderlay, ImageResource.FromImage(bitmap));

This shows a nice checkerboard background which makes more sense for the plugin than the

standard:

 

Bitmap bitmap = this.EnvironmentParameters.SourceSurface.CreateAliasedBitmap();

Is there a better way than to use these constant values 100,100?

 

midoras signature.gif

Link to comment
Share on other sites

  • 1 month later...

One issue which disturbs me using the PanAndSlider property is that if you are panning then it is not possible to drag back to the 0/0 center. You are getting values like 0.02 or -0.01 always.

 

The reason for this is that the calculation of the rectangle for the embedded pan control always sets the value to odd (using  |= 1).

Because of this it is not possible to pan to a center value of 0/0 with the mouse.

midoras signature.gif

Link to comment
Share on other sites

I'm no programmer, but from a user's point of view, I find it much more convenient to just click the reset buttons if I want to get to zero, anyways.

No, Paint.NET is not spyware...but, installing it is an IQ test. ~BoltBait

Blend modes are like the filling in your sandwich. It's the filling that can change your experience of the sandwich. ~Ego Eram Reputo

Link to comment
Share on other sites

I'm no programmer, but from a user's point of view, I find it much more convenient to just click the reset buttons if I want to get to zero, anyways.

 

That's how a good user interface should work. Every user should be able to use his preferred way to do things. Or?

 

And the zero value is just an example of the issue.

midoras signature.gif

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...