Appeon Comunidad

Preguntas y Respuestas Comunidad de Appeon
Appeon Community
  1. Hi Team,

    Need help on scrolling user object based on row selection.

    In a window, I have a datawindow on the left side. On the right side, I have a user object(container for user object) inherited from u_base. I have opened several user objects one by one(using x, y position) on inside the user object which is placed on the right side. The no. of user objects opened on the right side is based on the row clicked on the left side dw. 

    Opening the user object and scrolling through scroll bar on the right side was good. The only issue is, I am not able to scroll to a specific position inside the user object. I have the Y position and height of each user object opened inside the container.

    I tried the following steps to manually scroll the user object.

    • I created an event in the user object container with event id pbm_vscroll, and executed it using scrollcode(2 or 3)  and with scrollpos
    • Created an local external function for SetScrollPos from USER32.DLL
      • SetScrollPos(Handle(uo_container_emr_scroll), -2, ll_temp_scroll_pos, true
    • Tried scrolling using send function
      • Send(Handle(this), 277, 1, 0) - using this I was able to scroll SB_LINEDOWN, SB_LINEUP, SB_TOP, SB_BOTTOM,... but not to the exact position where I was scroll. 

    My questions are,

    1. How can i get the exact scroll position of the start of the user object opened inside a container, can i refer the Y position or Y + height of previous opened user obejct ?
    2. Even If i got the exact scroll position, how should I have to use it.? using send or any windows API. ?

    Thanks,

    Subbiya

     

  2. We are using Powerbuilder 2022 R3  windows 10  on sqlserver.

    I am looking into implementing SMTPCLIENT,  Most of the examples make sense but there is no example of how to add a reply to email address to the message.  Can this be done? Example?

     

     

  3. Hi,

    We have embedded the webview2 controller in a PB2022R3 application to show an angular website.

    We'd like to implement drag&drop from powerbuilder to webview2.

    The idea is to show the dragging in the website and ondrop fires an event in pb so we can handle the drop in pb

     

    However, we're not receiving the dragenter event in the website

    We do receive a mouseenter event in the website, but not while dragging...

     

    I found this in the documentation:

    https://docs.appeon.com/pb2022/pbug/ch04s05s01.html --> (Webbrowser) Does not support drag & drop in the web page

    However, the webview2 control has properties AllowDrop & AllowExternalDrop

    Does pb set these to false? I don't see a way to toggle these?

    Is this something that might be foreseen in the future?

     

     

  4. Hello,
    I have 2 monitors and for example, pressing a button on the response window should resize this window to the width and height of the extended desktop of the 2 monitors.

    Does anyone have the code to perform this functionality?

    Thanks

  5. Comming from PB 2019 R3 Build 2797 just transfered to build 2803
    Sybase central DB 17

     

    After deploying the applicatieon we got a whole bunch of errors that we dont understand. Anyone know what the problem might be