Set size for @PickList?

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.

Who is Participating?
Sjef BosmanConnect With a Mentor Groupware ConsultantCommented:
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
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.
jforget1Author Commented:
OK I will give this a try, thanks for the help.
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

jforget1Author Commented:
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
jforget1Author Commented:
Posted to a new question
Sjef BosmanGroupware ConsultantCommented:
Posted also in the new question ;)
Sjef BosmanGroupware ConsultantCommented:
Just curious: does it work, can you set the size of the @Picklist this way??
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.