Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Edit in Brow field
Message
From
18/11/2001 11:44:13
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
17/11/2001 16:49:15
Gerald Blake
Blake Bookkeeping, Inc.
Honolulu, Hawaii, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00582526
Message ID:
00583224
Views:
33
>>>When I enter a field in a browse the entire text is selected. What controls this and how can I edit individual characters of the field without using the mouse.
>>
>>That's been changed from the default behavior in DOS versions. You need to press Home, End, ctrl+right or ctrl+left arrow to get in.
>
>Thanks Dragan,
>How do I turn that feature off all together so the entire contents of the field are not selected when I enter the field?

Probably can't be done with the browse itself... not that I know. You may write a simple routine to create a default grid on _screen, though, with the current alias, and then it wouldn't have this select-on-entry, or you could just have a grid.setall('selectonentry',.f.) or something like that. I don't use browse to do much editing, so I've just accepted this nuissance.

After playing a little, I came up with this little browse.prg:
oForm=CREATEOBJECT("browform")
oForm.show(1)

DEFINE CLASS browform AS form
	ADD OBJECT oGrid as grid WITH recordsource=ALIAS()

PROCEDURE activate
	this.Resize
ENDPROC

PROCEDURE resize
	WITH this.oGrid
		.top=0
		.left=0
		.width=this.Width
		.height=this.Height
		.setall("selectonentry",.f.)
	endwith	
ENDPROC

ENDDEFINE
Now I have no idea why it has to be modal... if I run it without the parameter in oForm.show, it just flashes across the screen.

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