Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to persist a toolbar
Message
From
27/10/2002 16:22:22
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00715677
Message ID:
00715903
Views:
11
>Hi Dragan,
>
>I think your code could make a nice FAQ. Anyway, I'm glad that I could help.

Later - I'm still refining and streamlining this. Here's the simplified version, no prg files:
If This.lallowclose
	_Screen.otestbar=.Null.
Else
	Local lcSetSafety
	If _Screen.ReleaseType != 2 Then
		If Type("_screen.cRestoreToolbarScript")#"C"
			_Screen.AddProperty("cRestoreToolbarScript")
		Endif
TEXT TEXTMERGE to _screen.cRestoreToolbarScript noshow
	_SCREEN.AddProperty('<<This.Name>>', NEWOBJECT('<<This.Class>>', '<<This.ClassLibrary>>'))
	ON KEY LABEL RIGHTMOUSE
ENDTEXT
		On Key Label RIGHTMOUSE Execscript(_Screen.cRestoreToolbarScript)
		Activate Window Command
		Keyboard '{CTRL+F2}{RIGHTMOUSE}' Clear
	Endif
	Return .F.
Endif

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform