Forum > Designer
how change index of component in a groupBox?
KodeZwerg:
--- Quote from: Weiss on January 23, 2024, 03:11:54 am ---looking in .lfm file was a good suggestion.
--- End quote ---
From my side, it was not a suggestion, it is the "uncool" answer to your question.
I agree, elements and their order inside .lfm <-> object inspector should be handled via drag and drop.
Well, actually it is able to do all within Lazarus, you can reorder them by pulling items out and back in, it needs longer than simply start any text editor and move block(s) to the position(s) you want them to be.
Weiss:
--- Quote from: KodeZwerg on January 23, 2024, 03:44:50 am ---
--- Quote from: Weiss on January 23, 2024, 03:11:54 am ---looking in .lfm file was a good suggestion.
--- End quote ---
...
Well, actually it is able to do all within Lazarus, you can reorder them by pulling items out and back in...
--- End quote ---
not if components are already anchored or aligned. If they are, I have walk all the way to anchor tab and pull the anchor out of the water, and THEN move the component out and back in. Easier to delete and place new.
lets be fair. This is uncool.
Same as text copy/paste keeping in mind which one is which, by their name of course, written down in correct sequence prior to moving them. Trying not accidentally disturb a single character out of bounds by placing mouse pointer carefully.
KodeZwerg, please admit you are not cool. Just ordinary.
KodeZwerg:
Thanks for your kind words, good to know how you treat someone that try to help.
Be happy, "mr-ordinary-uncool" will be in your future topics stay absent.
No more conversation, end of transmission.
Adios amigo
Thaddy:
You can change the order with Tcomponent.ComponentIndex [rw] property.This changes the order in the components. E.g. for iterating the components. This does not change the taborder, though.
You can change the taborder with the taborder property of the component.
TabOrder is a range of -1..32767.
CCRDude:
ComponentIndex seems to be RunTime only though, not a published property?
From what I've seen in the code of SetZOrder with a quick peek, it seems that the "Z-Order" context menu in the form designer will actually change the order (your index "i") of items (it calls Move on the parents TFPList containing the controls).
Navigation
[0] Message Index
[#] Next page
[*] Previous page