Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Secret : Click on first row on a grid ?
Message
De
14/08/1998 11:03:50
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
14/08/1998 10:57:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00126926
Message ID:
00126932
Vues:
22
>>I have an editbox class that in gotfocus expands limited to its parent.container and shrinks to one line height in lostfocus. Here is the gotfocus code :
>>
WITH this
>>  thisform.lockscreen = .t.
>>  IF !.readonly or ;
>>     ( !isnull(evaluate(.controlsource)) and ;
>>	!empty(evaluate(.controlsource)) )
>>	if .parent.baseclass="Column"		&& We are in a grid
>>		.parent.parent.scrollbars = 0  && Turn of scrollbars
>>		.parent.parent.rowheight	= .ExpandedHeight
>>		.parent.width			= .ExpandedWidth
>>	else
>>		.height	= .ExpandedHeight
>>		.width	= .ExpandedWidth
>>		.zorder(0)
>>	endif
>>  ENDIF
>>  thisform.lockscreen = .f.
>>ENDWITH
Expanded* props are set in init. When dropped to grid and sparse=.f., works good (err nearly, otherwise no problem).
>>
>>If tab is used to move to field or relativerow#1 and clicked no problem, it works as intended :)
>>
>>The problem is :
>>When user (me now) clicks on memofield and grid.relativerow=1, grid.rowheight changes but not column width :(
>>
>>Any ideas what's happening when relativerow=1 and clicked (I want to drop extra workaround code in click). MTIA.
>>Cetin
>
>Did you try to push Column.Visible=.f. Column.Visible=.t. ?

Just now tried but didn't help. Also I tried every version of lockscreen + turning sparse on/off there. Thanks.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform