giovedì 20 luglio 2017

Little arrows in un datagrid

A grande richiesta vi illustro il codice da mettere nelle little arrows per modificare il valore di una cella. Per prima cosa modificate il datagrid come illustrato qui aggiungendo le little arrows: http://livecodeitalia.blogspot.it/2016/03/personalizzare-le-colonne-di-un-datagrid.html

Poi mettete come codice delle little arrows il seguente:

on scrollbarLineDec
   put the long id of the owner of me into temp
   add 1 to field 1 of temp
end scrollbarLineDec

on ScrollbarLineInc
   put the long id of the owner of me into temp
   add -1 to field 1 of temp
end ScrollbarLineInc

E tutto funzionerà perfettamente così:
postimage

Nessun commento:

Posta un commento