Command buttons stuck to top border of frame

ramsay18477ramsay18477 Member Posts: 52
Hi,

I have designed a form with a frame which contains some text boxes to display processed information.

Above this frame, I had 2 command buttons which contain codes.

While rearranging the command buttons, the bottom of the command buttons coincided with the top of the frame and got stuck to it due to which I cannot select or click them.

They move with the frame and if I delete the frame, even they are deleted.

Can anyone please resolve my predicament ?

Thanks a lot in advance!
Thanks & Best Regards,

Ram.

Answers

  • lvanvugtlvanvugt Member Posts: 774
    What you could do is export the object in .txt format and delete the ParentControl property of the command buttons in the .txt file. After that re-import the .txt into Object Designer, recompile and see the result.

    Probably you also need to clear the InFrame property.
    Luc van Vugt, fluxxus.nl
    Never stop learning
    Van Vugt's dynamiXs
    Dutch Dynamics Community
  • matttraxmatttrax Member Posts: 2,309
    Look at the properties of your two buttons. You'll see one called ParentControl. This contains the control number of the element to which the buttons are bound. If you clear it out they will no longer be bound to any control.
  • lvanvugtlvanvugt Member Posts: 774
    Are you sure, mattrax?

    Doing that will raise error:
    You cannot manually change or delete ParentControl of the CommandButton named 'Controlxxxxx'.
    If you want to change the container, drag 'Controlxxxxx' with the mouse instead.
    [with xxxxx being the control id.]

    That's why I suggested to delete that property in the .txt export of the object.
    Luc van Vugt, fluxxus.nl
    Never stop learning
    Van Vugt's dynamiXs
    Dutch Dynamics Community
  • ramsay18477ramsay18477 Member Posts: 52
    Dear Luc / Mattrax,

    Thanks a lot for your help.

    The solution suggested by Luc worked. I exported the form to txt, removed the 'Parent Control' & 'InFrame' lines and imported back to Navision and I could select / click them again.

    I could not see the Property palette of the buttons as I could not select them at all since they were attached to the top of the Frame and were not in the Frame.

    Earlier, I have also tried modifying the Parent Control Property on other objects, but I always got the error that Luc has mentioned.

    Anyway, thanks a lot for your valuable time & guidance in helping me get out of this mess.

    I believe all these intercations only help us become better Navision specialists.

    Thanks again!
    Thanks & Best Regards,

    Ram.
  • matttraxmatttrax Member Posts: 2,309
    Strange, maybe that was something that was fixed in a later version? I could swear I've done it my way before.
Sign In or Register to comment.