On Wednesday 24 October 2012 15:46:41 Alexandre Minoshi wrote:
> >
> > An example is here:
> > https://gitorious.org/mseuniverse/mseuniverse/trees/master/attic/msedocum
> >enting/mse/trunk/help/tutorials/widgets/grids/dragdropgrid
> >
> > Martin
>
> Ok. And if I need to move row in stringgrid?
>
Activate <tstringrid>.optionsgrid og_rowmoving and og_keyrowmoving. Rows of a 
grid can be moved by mouse click and drag in fixed column or by keys 
Ctrl+UpArrow, Ctrl+DownArrow, there is no need for additional drag and drop 
code.

> I try next variant :
> ==================================================

If you need special information in dragobject define and use a descendent of 
tdragobject:

type
 tmydragobject = class(tdragobject)
  public
   myintegerdata: integer;
   myrealdata: real;
   mystringdata: msestring;
 [...]
 end;

[...]

> =============================================
> This code is work fine, but it is correct?
> And what is different between "accept" and "processed" in
> on_beforedragover procedure?
>
"accept" = true means that the component would accept a drop of the drag 
object. "processed" means that following dragover code in MSEgui should not 
modify the decision or the dragobject.

Martin

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
mseide-msegui-talk mailing list
mseide-msegui-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to