Link to home
Start Free TrialLog in
Avatar of phuongnguyen
phuongnguyen

asked on

scrollbar in Notes form

I have created a form in Notes database. When I preview the form, it only has vertical scrollbar, not horizontal one. Please show me how to activate horizontal scrollbar. Thanks.
Avatar of madheeswar
madheeswar
Flag of Singapore image

Use @Command([ViewHorizScrollbar]) to a button.
or
The user can go up to View --> Show --> Horizontal Scroll Bar and click on it
or keep the below code in PostOPen event of Form:
Sub Postopen(Source As Notesuidocument)
If (source.InPreviewPane) Then Exit Sub
strLocation = Source.Document.GetItemValue("Location")(0)

Call uicsdoc.PostOpen()


End Sub


or formula:

@Command([ViewHorizScrollbar])
ASKER CERTIFIED SOLUTION
Avatar of madheeswar
madheeswar
Flag of Singapore image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of qwaletee
qwaletee

Horizontal scroll bar should appear as needed; why do you want to force it on?  Madgeeswar's solutions will all help of you must do this; the last one is the only way to automate this, with no user intervention.  A simpler version is:
Sub Postopen(Source As Notesuidocument)
  If Not (source.InPreviewPane) Then
    Dim workspace As New NotesUIWorkspace
    Source.HorzScrollBar = True
  End If
End Sub
Qwaletee,
Still awake? Won't you sleep?
Huh?