Help with SizerLight issue

Posted by: dean.bashore on 3 January 2022, 4:43 pm EST

    • Post Options:
    • Link

    Posted 3 January 2022, 4:43 pm EST - Updated 3 October 2022, 10:45 pm EST

    Hello:

    I have 3 buttons all sized and configured identically (as far as I can tell)

    The buttons require the text to be displayed vertically (top to bottom)

    When I maximize the form two of the buttons (buttons 17&18) wrap the text to two rows of two characters

    The Third button retains it single column of text. 'C1Button18



    Me.C1Button18.Location = New System.Drawing.Point(1002, 211)

    Me.C1Button18.Name = “C1Button18”

    Me.C1Button18.Size = New System.Drawing.Size(21, 77)

    Me.C1Button18.TabIndex = 5

    Me.C1Button18.Text = “Info”

    Me.C1Button18.UseVisualStyleBackColor = True



    'C1Button17

        Me.C1Button17.Location = New System.Drawing.Point(1002, 128)
        Me.C1Button17.Name = "C1Button17"
        Me.C1Button17.Size = New System.Drawing.Size(21, 77)
        Me.C1Button17.TabIndex = 4
        Me.C1Button17.Text = "Test"
        Me.C1Button17.UseVisualStyleBackColor = True
    	 'C1Button19
        '
        Me.C1Button19.Location = New System.Drawing.Point(1002, 444)
        Me.C1Button19.Name = "C1Button19"
        Me.C1Button19.Size = New System.Drawing.Size(21, 77)
        Me.C1Button19.TabIndex = 8
        Me.C1Button19.Text = "Open"
        Me.C1Button19.UseVisualStyleBackColor = True
    

  • Posted 4 January 2022, 5:05 am EST

    HI,

    When the form is maximized, the C1SizerLight resizes all the buttons in the same proportion, now if there is space for more than two characters then the button will show them in the same line.

    If you want to show one character in each line then you can change the test to include a newLine after every character. Please refer to the sample attached.

    Regards,

    Avnish

    Sizer_BtnText_Test.zip

  • Posted 4 January 2022, 10:52 am EST

    Thanks Avnish.

    That works like a charm! I added it to my application tools .DLL

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels