Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Viewing contents of Memo field in editbox control in a g
Message
De
10/12/1999 03:43:13
 
 
À
08/12/1999 16:26:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00300576
Message ID:
00301562
Vues:
47
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform