Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to show Navigation Toolbar?
Message
From
06/06/2006 15:48:52
Irv Adams
MSC Managed Care, Inc.
Florida, United States
 
 
To
06/06/2006 05:28:41
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01127263
Message ID:
01127468
Views:
16
This message has been marked as a message which has helped to the initial question of the thread.
>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"					&& if property non-existant, toolbar is not instantiated
		.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,
Previous
Reply
Map
View

Click here to load this message in the networking platform