Home » Community » Coffee corner » Quiz #5
Re: Quiz #5 [message #57910 is a reply to message #57907] |
Mon, 27 December 2021 23:50   |
 |
mirek
Messages: 14267 Registered: November 2005
|
Ultimate Member |
|
|
Lance wrote on Mon, 27 December 2021 21:04mirek:
Yeah, it's a very handy facility. I tried and learned something new.
When designing layout, we turn to add new Ctrl, copy& paste, and moving things around, resulting in Ctrls not in sensible tab-order. By selecting a group of Ctrls and apply the button, the layout designer will order the Ctrls in a left-to-right-top-to-bottom order so navigate by tabbing will not seem to be random.
Note the selected Ctrls will be removed from the layout and then insert to the very front of the layout after sorting by their position.
Great to know. I used to do it manually with a lot of effort and many rounds of try-and-error.
BTW, it is a rare example of bubblesort usecase 
The one and only advantage of pure bubblesort is that it can work well when the sorting predicate has "fuzzy" state (the ordering of two elements is not known), which is sometimes the case when deciding order here...
|
|
|
Goto Forum:
Current Time: Sun Aug 24 18:35:50 CEST 2025
Total time taken to generate the page: 0.07414 seconds
|