[futurebasic] Re: [FB] SetSelect

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : January 2006 : Group Archive : Group : All Groups

From: Stu Cram <stu@...>
Date: Tue, 3 Jan 2006 06:05:32 -0600
Just a small correction to this part to make a
divider line after the "Clear' item in the EDIT menu.
	MENU 2,6,0, "-"
should have been
	MENU 2,7,0, "-"
---------------------------------------------

On Jan 2, 2006, at 8:47 PM, Stu Cram wrote:
> a) Adding 'Select All' to your program.
> - EDIT MENU 2 makes a standard edit  menu in position 2.
>   It has the usual 6 items: Undo, --, Cut, Copy, Paste, and Clear.
>   FB adds code automatically to deal with these when an edit field is 
> active.
> - When defining your menus initially, do this...
> 	EDIT MENU 2
> 	MENU 2,6,0, "-"
> 	MENU 2,8,1, "Select All"
> - In your routine to handle menu events, do this...
>     CASE 2  // EDIT MENU
>       SELECT ItemId
>         CASE 8 :  SetSelect 0, _maxInt  // Select all text
>       END SELECT
> That's all you need.