Files
Phoenix/wx/lib
Kevin Schlosser da89035e82 corrects moving of the text in the ctrl when resize occurs.
This was caused by the use of GetClientSize being used when the control is constructed and then event.GetSize() when a size event took place. These 2 methods eturn different values and causes the text to shift. After this issue was solved another issue existed. there is a border around the control. this border is not directly specified to be drawn when the widget is rendered. the dc defaults to a white pen with a width of 1. a pen is not set before drawing the box. so the white pen there for gets used. This white border is not taken into consideration when the text is drawn and causes the text to be offset slightly. this corrects the offset issue. There is also no calculation in place to determine the actual width and actual height of each character and without having that it is more like a guess to figure out exactly where to draw the characters to have them be centered correctly inside of the box. I kept the same mechanism in place and made an adjustment to fix this issue i believe. I do think that the current wat it is being done makes the code a tad more difficult to read and could be simplified. This is something I may take care of in a future PR.
2019-12-22 01:43:34 -07:00
..
2019-12-10 13:04:53 -08:00
2016-10-12 22:30:53 -05:00
2018-08-13 22:03:29 -07:00
2019-05-31 21:21:06 -07:00
2019-11-14 12:22:45 -08:00
2016-06-09 21:46:05 -07:00
2019-05-25 18:53:04 +02:00
2016-10-12 22:21:38 -05:00
2019-08-26 20:51:16 -07:00
2019-12-05 13:01:08 -08:00
2018-09-02 06:35:39 -04:00
2016-10-12 22:21:38 -05:00
2016-10-12 22:21:38 -05:00
2018-12-05 14:12:16 +01:00
2016-10-12 22:21:38 -05:00
2017-02-26 14:15:49 +11:00
2016-10-12 22:21:38 -05:00
2016-10-12 22:21:38 -05:00
2019-07-08 14:01:47 -07:00
2016-10-12 22:21:38 -05:00
2016-10-12 22:21:38 -05:00
2017-11-01 16:04:36 -07:00
2018-01-16 09:37:04 -06:00
2019-09-11 12:56:11 -07:00
2017-02-26 14:15:49 +11:00
2017-02-26 14:15:49 +11:00
2017-02-26 14:15:49 +11:00
2017-11-17 22:00:38 -08:00
2016-10-12 22:21:38 -05:00
2016-10-12 22:21:38 -05:00