Page 1 of 1

[Done] Gadget Variable shows incorrectly

Posted: Tue Apr 02, 2013 12:54 pm
by SniffTheGlove
Hello,

I have found in some circumstances that if I create a Container on a Form and a place a button (or any other gadget) into that container the variable for that gadget shows as a combo_x (x being the next number in the list) in the Properties box.

If I click off the gadget and then click back onto it it then shows the correct variable of button_x

It is not really reproducible as it only happens occasionally.

Re: Gadget Variable shows incorrectly

Posted: Sun Apr 07, 2013 2:28 pm
by SniffTheGlove
I have now managed to reproduce it now.

Create a new form

Create a container

create a 4 button in the container

create a button outside the container in the form

create a new container

create 2 buttons in the new container

create a button outside the container on the form and then directly look at the properties and you will see button_7.

now create a button in the second container and look at the button properties on the righthand side of the IDE and it will show an GadgetID of Button_7 instead of button_8

Click an empty area of the form so the button loses focus and now click back onto the button it and it will now show button_8 correctly.

If you want to carry on create a new button on the form and button_9 will show and then create another button this time back into the second container and button_9 will show instead of Button_10

Hope this helps

Can anyone else confirm?

Re: Gadget Variable shows incorrectly

Posted: Thu Apr 11, 2013 4:29 pm
by Polo
Well spotted thanks! Fixed.