none
How to move a checkbox in small basic. RRS feed

  • Question

  • Hello,

    I'm having trouble on figuring out how to move a checkbox I created with text to a specific x,y location.

    This is how my code for the checkbox looks, FCControls.AddCheckBox("Platinum Savings - 2% interest rate"), what would i have to add to move it's location? I can't use fccontrols.move since the checkbox doesn't have a shape assigned to it that I can call for so what else can I do?

    Tuesday, October 24, 2017 11:21 PM

Answers

  • Hi,

    Assign the check box with a variable like

    checkbox = FCControls.AddCheckBox("Platinum Savings - 2% interest rate")

    and move the check box using Shapes.Move()

    checkBox = FCControls.AddCheckBox("Platinum Savings - 2% interest rate")
    x = 100 '<----- Change x here
    y = 100 '<----- Change y here
    Shapes.Move(checkBox,x,y)

    Thanks,


    Roshan - 7th Grade Student (Age 11) - Learning Small Basic


    Wednesday, October 25, 2017 1:37 AM