SOLVED Keeping text and edit UI component horizontally

Hi,

I have difficulty keeping the label for a edit UI component on the same line with the following code. I want the FRAME_CHUNK_EDIT to the right of FRAME_CHUNK_LABEL

    def CreateLayout(self) :
        '''
        Frame Chunk size,
        Render folder prefix
        Frame range (start, end)
        '''
        self.GroupBegin(id=1013, flags=c4d.BFH_SCALEFIT, cols=1)
        #
        self.GroupBegin(id=1014, flags=c4d.BFH_SCALEFIT|c4d.BFV_SCALEFIT, cols=1)
        self.AddStaticText(FRAME_CHUNK_LABEL, c4d.BFV_MASK, name="Frame Chunk size")
        self.AddEditNumberArrows(FRAME_CHUNK_EDIT, c4d.BFV_MASK, initw=100)
        self.GroupEnd()
        #
        self.AddButton(SUBMIT_BUTTON, c4d.BFV_MASK, initw=100, name="Submit")
        self.GroupEnd()
        return True

Cheers

Hi,

unless I am misunderstanding your intentions, you will simply need a two column layout in the respective layout group, i.e. change

self.GroupBegin(id=1014, flags=c4d.BFH_SCALEFIT|c4d.BFV_SCALEFIT, cols=1)

to

self.GroupBegin(id=1014, flags=c4d.BFH_SCALEFIT|c4d.BFV_SCALEFIT, cols=2)

Cheers,
zipit

Hi @nicholas_yue I confirm the correct way is to define the number of columns you want in a group.

Please next time, post on the correct forum see How to post a Question, to set up tags and be sure to set up your topic as q question(QA Functionality.

Cheers,
Maxime.