Cancel Button On dialog will not show

I have an application which I am displaying images in a dialog box either by selecting individual ones from a list or by running it like a slide show (code below is the slideshow code).

In the slideshow I need to show the cancel button to stop it if necessary, but, however much I try, I cannot get the cancel button to show up.

I use dialog boxes a lot so, unless I am missing something obvious here , I can’t see anything wrong.

Please put me out of my misery!

Thanks in advance

Dim session As New notessession

Dim db As notesdatabase

Dim view As notesview

Dim doc As notesdocument

Dim ws As New NotesUIWorkspace

Dim uidoc As notesuidocument

Set view = db.GetView(“POS Pics”)

Set doc =view.GetFirstDocument

While Not (doc Is Nothing)

pictoshow=doc.picturename(0)

flag=ws.DialogBox(“POSPics”,True,True,False,True,True,True,pictoshow,doc,True,False,False)

If Not flag Then Exit Sub

Set doc = view.getnextdocument(doc)

Wend

Subject: Cancel Button On dialog will not show

flag=ws.DialogBox(“POSPics”,True,True,False,True,True,True,pictoshow,doc,True,False,False)

So on the above you have the following:

form$ = “POSPics”

autoHorzFit = True

autoVertFit = True

noCancel = False

noNewFields = True

noFieldUpdate = True

readOnly = True

title$ = pictoshow

notesDocument = doc

sizeToTable = True

noOkCancel = False

okCancelAtBottom = False

noCancel option is defined as follows


Boolean. Optional. Specify True to not display the Cancel button. Otherwise, the dialog box contains the Cancel button.

So all looks good.

I can only suggest that you resize the dialogbox. Sometimes it gets hidden by its own display window.

Subject: Cancel Button On dialog will not show

Hi Cath

looks as if you set the readonly parameter True - and the designer’s help says:

"…

readOnly

Boolean. Optional. Specify True to prohibit writing to the dialog box (for example, if you are using the dialog box to display a help screen). Otherwise, the dialog box is read-write. This option makes noCancel true."

HTH and…

Uwe

Subject: RE: Cancel Button On dialog will not show

Hi Uwe,

Thanks, that’s exactly what it was, I can’t believe I’ve never come across that before!