Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » ganttchart event resize
ganttchart event resize [message #535724] Tue, 25 May 2010 12:03 Go to next message
Mauro Condarelli is currently offline Mauro CondarelliFriend
Messages: 428
Registered: September 2009
Senior Member
Is it currently implemented?
I couldn't find out how to resize an event using the mouse.
I never get the resize cursor.
Any pointers?

TiA
Mauro
Re: ganttchart event resize [message #535728 is a reply to message #535724] Tue, 25 May 2010 12:26 Go to previous message
Mauro Condarelli is currently offline Mauro CondarelliFriend
Messages: 428
Registered: September 2009
Senior Member
On 25/05/2010 14.03, Mauro Condarelli wrote:
> Is it currently implemented?
> I couldn't find out how to resize an event using the mouse.
> I never get the resize cursor.
> Any pointers?
>
> TiA
> Mauro

Ok.
I made a fool of myself.
I still do not understand though.

Why the following code works:

Calendar cs = Calendar.getInstance();
Calendar ce = Calendar.getInstance();
cs.setTime(te.getDate());
ce.setTime(new Date(te.getMillis() + te.getDuration()));
ge = new GanttEvent(ganttChart, te, te.getCaption(), cs, ce, 0);
ge.setTextDisplayFormat("#name#");

.... while this does not?

Calendar c = Calendar.getInstance();
c.setTime(te.getDate());
ge = new GanttEvent(ganttChart, b.getTitle(), c);
c.setTime(new Date(te.getMillis() + te.getDuration()));
ge.setEndDate(c);
ge.setTextDisplayFormat("#name#");

What am I missing?

TiA
Mauro
Re: ganttchart event resize [message #599689 is a reply to message #535724] Tue, 25 May 2010 12:26 Go to previous message
Mauro Condarelli is currently offline Mauro CondarelliFriend
Messages: 428
Registered: September 2009
Senior Member
On 25/05/2010 14.03, Mauro Condarelli wrote:
> Is it currently implemented?
> I couldn't find out how to resize an event using the mouse.
> I never get the resize cursor.
> Any pointers?
>
> TiA
> Mauro

Ok.
I made a fool of myself.
I still do not understand though.

Why the following code works:

Calendar cs = Calendar.getInstance();
Calendar ce = Calendar.getInstance();
cs.setTime(te.getDate());
ce.setTime(new Date(te.getMillis() + te.getDuration()));
ge = new GanttEvent(ganttChart, te, te.getCaption(), cs, ce, 0);
ge.setTextDisplayFormat("#name#");

.... while this does not?

Calendar c = Calendar.getInstance();
c.setTime(te.getDate());
ge = new GanttEvent(ganttChart, b.getTitle(), c);
c.setTime(new Date(te.getMillis() + te.getDuration()));
ge.setEndDate(c);
ge.setTextDisplayFormat("#name#");

What am I missing?

TiA
Mauro
Previous Topic:ganttchart event resize
Next Topic:gantt and databinding
Goto Forum:
  


Current Time: Thu Apr 18 05:32:05 GMT 2024

Powered by FUDForum. Page generated in 0.03061 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top