Uniface User Forum

 View Only
  • 1.  $appltitle for a frm run by the ide

    Posted 02-10-2023 07:16

    Hi All

    I thought this would work.  Maybe, i am doing something wrong:

    Displaying $appltitle, set in the asn, does not appear to work when running an frm from the ide compile/test.

    Thanks



    ------------------------------
    Osman Shariff
    ------------------------------


  • 2.  RE: $appltitle for a frm run by the ide

    ROCKETEER
    Posted 02-10-2023 09:15

    Are you referring to the IDE logical IDETITLE? If so then this will only work within the IDE (application). Since the logical is assigned to $appltitle in ProcScript (of the IDE) this will not work with the IDE test mode (ide.exe /tst). But you could easily set the logical with $appltitle in your own code.

    I hope this helps.



    ------------------------------
    Daniel Iseli
    Principal Technical Support Engineer
    Uniface Services
    Rocket Software, Switzerland
    ------------------------------



  • 3.  RE: $appltitle for a frm run by the ide

    Posted 02-10-2023 09:20

    Yep, thanks Daniel.... I was a bit surprised that all..... A more realistic example is if you use additional menus that call frms... The title is lost.



    ------------------------------
    Osman Shariff
    ------------------------------



  • 4.  RE: $appltitle for a frm run by the ide

    ROCKETEER
    Posted 02-10-2023 09:41

    Sorry, I do not really understand what you mean. What exactly are you doing and what exactly is lost? Are we still talking about the logical IDETITLE?



    ------------------------------
    Daniel Iseli
    Principal Technical Support Engineer
    Uniface Services
    Rocket Software, Switzerland
    ------------------------------



  • 5.  RE: $appltitle for a frm run by the ide

    Posted 02-10-2023 09:56

    Yes the IDETITLE... So, for example, if I open the ide, i see the app title... 

    I then open an frm as a menu plug-in; for example, "system info" in the demo.

    The system info screen will show, but without the apptitle.



    ------------------------------
    Osman Shariff
    ------------------------------



  • 6.  RE: $appltitle for a frm run by the ide

    ROCKETEER
    Posted 02-10-2023 10:31

    Why do you expect that a plugin-in component would use the value of IDETITLE as form title? The apptitle is for the application shell and not a form.

    And I have just double checked and IDETITLE is actually used as form title for the main IDE component. The IDE is a Single Document Interface (SDI) application and not a Multiple Document Interface (MDI) application like (e.g.) the IDF of Uniface 9. You could say that $apptitle is not used by the IDE.

    I hope this helps.



    ------------------------------
    Daniel Iseli
    Principal Technical Support Engineer
    Uniface Services
    Rocket Software, Switzerland
    ------------------------------



  • 7.  RE: $appltitle for a frm run by the ide

    Posted 02-10-2023 11:08
    Edited by Osman Shariff 02-10-2023 11:08

    My comments are confusing $appltitle and IDETITLE....

    It is IDETITLE that I mean... which is the title displayed in the IDE.

    As the Menu plugin is opened within the IDE and used as an extension of the ide, I had expected that the IDETITLE would be accessible.   The purpose was to access which uniface environment I am using withing a Menu plugin...

    I guess I imagined that $appltitle would contain this.  But it seems $appltitle gets a default value of "Uniface 10 Development Environment" when used in the ide.

    As an alternative, I have found that I can use ldir() to access which uniface environment I am in.



    ------------------------------
    Osman Shariff
    ------------------------------