Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CTRL-X ...in code window
Message
From
02/07/2015 09:50:19
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
02/07/2015 03:00:30
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01621662
Message ID:
01621690
Views:
71
>Sorry, bud it doesen't work...

Perhaps the menu should not instantiated before the form is visible? If you remove .visible=.t. from the with/endwith block?

(i.e. too busy to try myself)

>Here is some code to test:
>
>
>set step on
>set sysmenu to
>
>loForm = createobject('CodeEditForm')
>with loForm
>	.caption  = 'Test'
>	.width    = _screen.width  - 50
>	.height   = _screen.height - 50
>	.fontname = 'Courier New'
>	.fontsize = 10
>	.keypreview = .t.
>
>	.visible = .t.
>endwith
>
>
>define menu _Bearbeiten bar in (loForm.name) font 'arial', 10 color scheme 3
>define pad _EditP of _Bearbeiten prompt "Edit"  color scheme 3
>
>on pad _EditP of _Bearbeiten activate popup _Edit
>define popup _Edit margin relative shadow color scheme 4
>
>define bar _med_cut of _Edit prompt 'cut' key CTRL+X, "Ctrl+X" PICTRES _med_cut
>define bar _med_copy of _Edit prompt 'copy' key CTRL+C, "Ctrl+C" PICTRES _med_copy
>define bar _med_paste of _Edit prompt 'paste' key CTRL+V, "Ctrl+V" PICTRES _med_paste
>activate menu _Bearbeiten
>
>lcPath = getfile()
>
>modify command (lcPath) window (loForm.name)
>
>set sysmenu to default
>
>
>define class CodeEditForm as form
>enddefine
>
>
>
>Any suggestions?

back to same old

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

Click here to load this message in the networking platform