RobotStudio event

How to locate a NumEditor NumPad

Hello,
I'm trying to use a NumEditor object from FlexPendant SDK, but when I click on NumEditor box, the NumPad window appears partialy hide, as I show in the picture attached.  In this way, I can't click on OK or Cancel buttons

Does anyone know how to locate the NumPad window on the screen?

Or has anyone an alternative solution?

 

image

 

Thanks,

BR/GuGa
======
GuGa

Comments

  • Hola Guga,
     

    The NumPad is taking the best position based on the control's parent. Is this a problem across all your application, or just in this screen?

     

    Saludos ...
    Carlos Martinez
    ABB
  • Hello Carlos,
    I'm only using NumEditor control in this screen, twice.  At the top of the screen, where the NumPad appears more or less OK (a little bit hide at the bottom) and the showed on the picture, where OK and Cancel buttons are hidden.

    I'm working with FlexPendant SDK 5.13 in a system with RW5.13.01
    ======
    GuGa
  • What container is the numpad included in? In one of the tab pages?

    this
    .tabPage2.Controls.Add(this.numPad1);
    Lennart H
  • Hello Lennart,
    The NumEditor control is in a GroupBox called "Mesa 2" that is on the second tab page (called "Lotes") of another TabControl with 6 tab pages (on tab page called "ProducciA3n").

    The NumPad control appears when NumEditor control is clicked.  It is included in NumEditor Control from FP SDK 5.13.

     

    Thinking about that, maybe the NumPad control is limited by the GroupBox, and this is the reason the NumPad is partially hidden. I'll try.

     

    I'm using VisualBasic.

    Best Regards
    ======
    GuGa
  • Hello,
    I've just tryed that, and there is no influence of the GroupBox in NumEditor-NumPad position on the screen.  It is showed in the same position as in picture above.

     

    Best Regards,
    ======
    GuGa
  • Hi Guga,
     

    The control which helps the NumEditor looks for the top parent (either a TpsForm or a GTPUMasterDialog).

     

    Did you create your UI by dragging and dropping controls, or are you "inserting" other UI's on the fly?

     

    BR/Carlos
    Carlos Martinez
    ABB
  • Hello Carlos,
    I dragged and dropped the NumEditor control from FlexPendant SDK5.13 Library to the screen I'm making.

    I tryed to just drag & drop the control and compile (Build), and it does the same.

     

    BR
    ======
    GuGa
  • I'm starting to suspect that it's not possible for the user to configure the location of the numpad. The numpad is displayed on fixed positions based on where the textbox is located relative the container.

    Lennart H
  • Is it possible to share your code either with Lennart or me?
     

    The pad should take care of this automatically (this is why it is not possible to affect where it appears)

     

    Thanks
    Carlos Martinez
    ABB
  • Hello,
    I'm sorry for the delay. I was out of office.

     

    I attach a sample project where the same error appears.

     


     


    Thanks.

    Best Regards
    ======
    GuGa
  • Hi Guga,
     

    Could you change the base class of your main view from TpsControl to TpsForm?

     

    The NumEditor looks for the top most parent (a TpsForm or GTPUMasterDialog) to "mount" the temporally NumPad. In your code, the top view inherits from TpsControl, therefore the NumEditor could not detect the top parent and uses the parent of the control.

     

    Please keep us posted if this helps.

     

    BR
    Carlos Martinez
    ABB
  • Hello Carlos,
    I tryed, and it works. Now when NumEditor is clicked, the NumPad appears completely.

    But, TpsForm creates a Title bar that we don't need because it takes a little space of the top of the screen.

    Any other solution?

    If not, I'll reorder the elements of the screen in order to get the NumPad in a right place.

    Thanks a lot for your help.

    Best Regards
    ======
    GuGa
  • Hi again,
     

    You can set the property TitleBarVisible  to FALSE in order to hide the Title ...

     

    BR
    Carlos Martinez
    ABB
  • Thank you very much Carlos,
    BR
    ======
    GuGa
  • I want to thank you guys, this helped me a lot. I am using RW6.01 and flexpendant SDK 5.15.261.0.

    BR
    just gelalo