Set size for @PickList?

Posted on 2006-05-15
Last Modified: 2013-12-18
I have a field which uses a 2 column @Picklist dialog, the second column is only showing the first couple characters when first opened by the user, they can resize, but I am wondering if there is a way to resize the dialog so it opens wide enough to fit the second column when first openend.

Question by:jforget1
    LVL 46

    Accepted Solution

    AFAIK this is not possible.

    On the other hand, but I'm not sure of this, you might try what happens if you modify the values of the notes.ini variable WindowSizePickKeywords. It is not certain that they are used for the size of the Picklist, it's just a guess. Mine are set as
        WindowSizePickKeywords=171 142 736 553

    You can change those values from LotusScript, using
        Dim ns As New NotesSession
        Call ns.SetEnvironmentVar("WindowSizePickKeywords", "171 142 736 553", True)

    Dirty.... :P
    LVL 15

    Expert Comment

    I hadn't thought of that.  Well done.  Of course now you will need to chnage from using Formula to using Lotusscript for this action.  The NotesUIWorkspace.PicklistStrings method will create the picklist for you.

    Author Comment

    OK I will give this a try, thanks for the help.

    Author Comment

    Was able to get your suggestions to work, just have one issue, am getting an "Variant does not contain a container" error. How do I give my new code a container, just want to help it out. :>)

    Sub Click(Source As Button)
          Dim s As New notessession
          Dim db As notesdatabase
          Set db = s.currentdatabase
          Dim ws As New notesuiworkspace
          Dim uiDoc As notesuiDocument
          Set uiDoc = ws.currentdocument
          Dim tmpArr As Variant
          Call s.SetEnvironmentVar("WindowSizePickKeywords", "171 142 736 553", True)
          tmpArr = ws.PickListstrings( 3, False, db.server , db.fileName , "PayrollTitles" , "Payroll Titles" , "Please choose a payroll title for this user.", 1, "")
          Call uiDoc.fieldsettext("payroll_title", tmpArr(0))
    End Sub

    Author Comment

    Posted to a new question
    LVL 46

    Expert Comment

    by:Sjef Bosman
    Posted also in the new question ;)
    LVL 46

    Expert Comment

    by:Sjef Bosman
    Just curious: does it work, can you set the size of the @Picklist this way??

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

      In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
    This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    25 Experts available now in Live!

    Get 1:1 Help Now