mcqueccu Expert Licensed User Longtime User Oct 8, 2017 #1 Hello, I included this library dilatingdotsprogressbar in my loading screen but couldnt make the dots to be in center of the page. Help please
Hello, I included this library dilatingdotsprogressbar in my loading screen but couldnt make the dots to be in center of the page. Help please
R ronell Well-Known Member Licensed User Longtime User Oct 9, 2017 #2 can you post the relevant code? without it we cannot help to solve the problem Upvote 0
mcqueccu Expert Licensed User Longtime User Oct 11, 2017 #3 Find Attached Sample Project. I needed the dotsprogress to be in center even if i stretch its width to 100% Attachments dots.zip dots.zip 11.2 KB · Views: 501 dots image.png 20.8 KB · Views: 553 Upvote 0
Find Attached Sample Project. I needed the dotsprogress to be in center even if i stretch its width to 100%
klaus Expert Licensed User Longtime User Oct 11, 2017 #4 You can calculate the Left property like this: Code: Copy Private Width As Int Width = (DotRadius * 2 + DotsSpacing) * NumberOfDots - DotsSpacing dots.Left = (100%x - Width) / 2 Unfortunately the Width property returned by the library is the width from the Designer and not the real width. And DotRadius, DotsSpacing and NumberOfDots are write only so you need to enter your values or define variables for them. You should use dip values for DotRadius and DotsSpacing and not pixel values! Last edited: Oct 11, 2017 Upvote 0
You can calculate the Left property like this: Code: Copy Private Width As Int Width = (DotRadius * 2 + DotsSpacing) * NumberOfDots - DotsSpacing dots.Left = (100%x - Width) / 2 Unfortunately the Width property returned by the library is the width from the Designer and not the real width. And DotRadius, DotsSpacing and NumberOfDots are write only so you need to enter your values or define variables for them. You should use dip values for DotRadius and DotsSpacing and not pixel values!
mcqueccu Expert Licensed User Longtime User Oct 11, 2017 #5 Works Great. Thanks Klaus.... You are mathematical Genius Upvote 0