❔ A problem about sizing
Even though I write most of the code, a problem is preventing it from working properly.
I will write the description after I open the channel
7 Replies
Sizing algorithm
blue line is distance
and distance value showing in top
Sizing should be proportional to the form so distance shouldn't change but it does
I can give you the information you want
Form's code
to get double value CurrentWidth/FirstWidth as px
double px = (double)((Control)sender).Width / (double)initWidth;to size FirstWidth*px
int newWidth = (int)(sizeInits[cntl].Width * px);
I don’t know what your problem is? The buttons appear to resize fine
Actually, I wanted the button to grow in line with the form, so the distance (blue line) between the button and the form should not change.
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.