>Do you mean Formset Class? I have tried to create my own Formset class (form+toolbar) and it's working,thanks a lot. Besides, is there any way to "stick" a toolbar in a form? The toolbar is always at the top of the form regardless the size of the form or the ShowWindow property.
Hi,
Similar to Boban's code, I have been able to add a toolbar to an existing scx-based Form with the following code in the Activate event:
WITH Thisform
IF TYPE("Thisform.oRSBToolbar.Name") <> "C"
.Addproperty('oRSBToolBar',.NULL.)
.oRSBtoolbar = CREATEOBJECT("Rsbtoolbar")
.oRSBtoolbar.dock(0)
.oRSBtoolbar.Show()
ELSE
.oRSBtoolbar.Refresh()
ENDIF
ENDWITH
The toolbar appears at the top but you can move it anywhere (even off the form)
HTH,