Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Viewing contents of Memo field in editbox control in a g
Message
From
10/12/1999 03:43:13
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00300576
Message ID:
00301562
Views:
48
Hi Fred.

Just in case you need an edit boc that will expand and let the user see more info (for really long memos), this code in the dlbclick() method of the editbox will give you some addition functionality.
LOCAL lnRow,lnColumn
WITH This
  IF !.lMaximized
    .lMaximized = .T.
    .ZOrder(0)
    .nOldLeft   = .Left
    .nOldTop    = .Top
    .nOldWidth  = .Width
    .nOldHeight = .Height
    IF UPPER(ALLTRIM(.Parent.baseclass)) == 'COLUMN' 
       .nOldRowHeight = .Parent.Parent.RowHeight
       lnRow = .Parent.Parent.ActiveRow 
       lnColumn = .Parent.Parent.ActiveColumn
       .Parent.Parent.RowHeight = .Parent.Parent.Height
    ENDIF   
    IF UPPER(ALLTRIM(.Parent.baseclass)) == 'COLUMN' OR ;
       UPPER(ALLTRIM(.Parent.baseclass)) == 'PAGE'
       .Top    = .Parent.Parent.Top
       .Left   = .Parent.Parent.Left            
       .Width  = .Parent.Parent.Width
       .Height = .Parent.Parent.Height
    ELSE                   
       .Top    = .Parent.Top
       .Left   = .Parent.Left            
       .Width  = .Parent.Width
       .Height = .Parent.Height
    ENDIF
    IF UPPER(ALLTRIM(.Parent.baseclass)) == 'COLUMN' 
       .Parent.Parent.ActivateCell(lnRow, lnColumn)
       	DO WHILE .Parent.Parent.RelativeRow <> 1
       	   .Parent.Parent.DoScroll(1)		&&scoll down
       	ENDDO 
    ENDIF
  ELSE
    .lMaximized = .F.       
    .Left   = .nOldLeft
    .Top    = .nOldTop
    .Width  = .nOldWidth
    .Height = .nOldHeight
    IF UPPER(ALLTRIM(.Parent.baseclass)) == 'COLUMN' 
       .Parent.Parent.RowHeight = .nOldRowHeight
    ENDIF   
  ENDIF
ENDWITH
Marcia
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform