Page Index Toggle Pages: 1 2 [3] 4 5 ... 7 Send TopicPrint
Very Hot Topic (More than 25 Replies) PocketPlannerDesign for .NET 2.0 (Read 56936 times)
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: PocketPlannerDesign for .NET 2.0
Reply #30 - Apr 3rd, 2006 at 4:07pm
Print Post  
I don't know why such errors would happen Undecided I didn't have any problems adding more menu items and timetables

https://mindfusion.org/_samples/Copy%20of%20Demo.zip

Stoyan
  
Back to top
 
IP Logged
 
racer
Guest


Re: PocketPlannerDesign for .NET 2.0
Reply #31 - Apr 4th, 2006 at 6:22am
Print Post  
thx
i have tried the new demo and i see what i dit wrong 1 calendar can have just 1 timetable

but i have changed the code and when i run it everything goes good of _calendar
i mean the month vieuw ,week view,but when i click on timetable i get the timetable of _calendar so thats good but the timetable1 and 2 also have  a "V" in the view menu i have changed the view menu but he stil gives only the _calendar and not the other two

Private Sub _menuView_Popup(ByVal sender As Object, ByVal e As System.EventArgs) Handles _menuView.Popup

       _menuMonth.Checked = (_calendar.CurrentView = CalendarView.SingleMonth)
       _menuMonthRange.Checked = (_calendar.CurrentView = CalendarView.MonthRange)
       _menuWeekRange.Checked = (_calendar.CurrentView = CalendarView.WeekRange)
       _menuDayRange.Checked = (_calendar.CurrentView = CalendarView.DayRange)
       _menuTimetable.Checked = (_calendar.CurrentView = CalendarView.Timetable)
       MenuItem1.Checked = (Calendar1.CurrentView = CalendarView.Timetable)
       MenuItem2.Checked = (Calendar2.CurrentView = CalendarView.Timetable)
    End Sub
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: PocketPlannerDesign for .NET 2.0
Reply #32 - Apr 4th, 2006 at 8:58am
Print Post  
Do you mean you need to display 3 different timetables and schedules in the same Calendar instance? I'm afraid that's not possible, so either change the Schedule of the Calendar object from the timetable1/2 menu item handlers, or use several Calendar instances and show/hide them when needed.

Stoyan
  
Back to top
 
IP Logged
 
racer
Guest


Re: PocketPlannerDesign for .NET 2.0
Reply #33 - Apr 4th, 2006 at 9:49am
Print Post  
no the example that you gave me is good
i know that each calendar could have only one timetable so i did it whit visible true and false for hiding or schowing a calendar
but the problem is that even i put the code visible true / false to it he only want to show te first _calendar Shocked

Private Sub _menuMonth_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles _menuMonth.Click
       _calendar.Visible = True
       _calendar.CurrentView = CalendarView.SingleMonth
       Calendar1.Visible = False
       Calendar2.Visible = False
    End Sub

    Private Sub _menuMonthRange_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles _menuMonthRange.Click
       _calendar.Visible = True
       _calendar.CurrentView = CalendarView.MonthRange
       Calendar1.Visible = False
       Calendar2.Visible = False
    End Sub

    Private Sub _menuDayRange_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles _menuDayRange.Click
       _calendar.Visible = True
       _calendar.CurrentView = CalendarView.DayRange
       Calendar1.Visible = False
       Calendar2.Visible = False
    End Sub

    Private Sub _menuWeekRange_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles _menuWeekRange.Click
       _calendar.Visible = True
       _calendar.CurrentView = CalendarView.WeekRange
       Calendar1.Visible = False
       Calendar2.Visible = False
    End Sub

    Private Sub _menuTimetable_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles _menuTimetable.Click
       _calendar.Visible = True
       _calendar.CurrentView = CalendarView.Timetable
       Calendar1.Visible = False
       Calendar2.Visible = False

    End Sub
    Private Sub MenuItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles _menuTimetable.Click
       Calendar1.Visible = True
       Calendar1.CurrentView = CalendarView.Timetable
       Calendar2.Visible = False
       _calendar.Visible = False
    End Sub
    Private Sub MenuItem2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles _menuTimetable.Click
       Calendar2.Visible = True
       Calendar2.CurrentView = CalendarView.Timetable
       Calendar1.Visible = False
       _calendar.Visible = False
    End Sub

    Private Sub _menuLightBlue_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles _menuLightBlue.Click

       _calendar.ApplyTheme(Theme.LightBlue)
       Calendar1.ApplyTheme(Theme.LightBlue)
       Calendar2.ApplyTheme(Theme.LightBlue)
    End Sub

    Private Sub _menuLightBrown_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles _menuLightBrown.Click

       _calendar.ApplyTheme(Theme.LightBrown)
       Calendar1.ApplyTheme(Theme.LightBrown)
       Calendar2.ApplyTheme(Theme.LightBrown)
    End Sub

    Private Sub _menuStandard_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles _menuStandard.Click

       _calendar.ApplyTheme(Theme.Standard)
       Calendar1.ApplyTheme(Theme.Standard)
       Calendar2.ApplyTheme(Theme.Standard)
    End Sub

    Private Sub _menuView_Popup(ByVal sender As Object, ByVal e As System.EventArgs) Handles _menuView.Popup

       _menuMonth.Checked = (_calendar.CurrentView = CalendarView.SingleMonth)
       _menuMonthRange.Checked = (_calendar.CurrentView = CalendarView.MonthRange)
       _menuWeekRange.Checked = (_calendar.CurrentView = CalendarView.WeekRange)
       _menuDayRange.Checked = (_calendar.CurrentView = CalendarView.DayRange)
       _menuTimetable.Checked = (_calendar.CurrentView = CalendarView.Timetable)
       MenuItem1.Checked = (Calendar1.CurrentView = CalendarView.Timetable)
       MenuItem2.Checked = (Calendar2.CurrentView = CalendarView.Timetable)
    End Sub
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: PocketPlannerDesign for .NET 2.0
Reply #34 - Apr 4th, 2006 at 10:01am
Print Post  
Are you sure the calendars don't share the same Schedule object ? If they share it, you would not notice that a calendar is hidden or shown.
  
Back to top
 
IP Logged
 
racer
Guest


Re: PocketPlannerDesign for .NET 2.0
Reply #35 - Apr 4th, 2006 at 3:50pm
Print Post  
"Are you sure the calendars don't share the same Schedule object ? "

wel i workt  on the sample that you gave me so you created 3 different calendars

_calendar-> the originaly
   
   Calendar1 -> new one
   Calendar2 -> new one

but if

"either change the Schedule of the Calendar object from the timetable1/2 menu item handlers, or use several Calendar instances and show/hide them when needed. "

then i must write a appart method just for showing hiding

  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: PocketPlannerDesign for .NET 2.0
Reply #36 - Apr 4th, 2006 at 4:36pm
Print Post  
Ok, if you need to have three timetables visible at the same time on the screen, then you will have to draw three calendar controls on the form. But if only one timetable will be visible at a time, you can create two additional Schedule instances and assign them to the Calendar.Schedule when another timetable should be made visible.
  
Back to top
 
IP Logged
 
racer
Guest


Re: PocketPlannerDesign for .NET 2.0
Reply #37 - Apr 5th, 2006 at 5:26am
Print Post  
they musnt be visible at the same time just when you klik on timetable 1 it must show calendar1 and when you click on timetable 2 calendar 2 must be visible
so i must create two additional Schedule instances and assign them to the Calendar.Schedule when another timetable should be made visible.

but i have still that problem whit when i select timetable that the two others are also selected
i thaugth if you set the two menuitems by menuView popup that they checked it and select just one timetable at the time
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: PocketPlannerDesign for .NET 2.0
Reply #38 - Apr 5th, 2006 at 7:33am
Print Post  
What do you mean by the "two other timetables are selected"? If you will use the same calendar and just change the Schedule, you can remove the two new Calendar instances anyway.
  
Back to top
 
IP Logged
 
racer
Guest


Re: PocketPlannerDesign for .NET 2.0
Reply #39 - Apr 5th, 2006 at 10:41am
Print Post  
i know but i need a view of 3 timetables and in one calendar can be only one timetable or could you add there the 2 timetables whitout making the other 2 calendars Embarrassed
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: PocketPlannerDesign for .NET 2.0
Reply #40 - Apr 5th, 2006 at 11:13am
Print Post  
You mean you want to split the form into three parts, where each part displays a distinct timetable/calendar there ?
  
Back to top
 
IP Logged
 
racer
Guest


Re: PocketPlannerDesign for .NET 2.0
Reply #41 - Apr 5th, 2006 at 11:16am
Print Post  
no the form is to small to split
so i will make each timetable visible true/false

so one timetable in the form
  
Back to top
 
IP Logged
 
racer
Guest


Re: PocketPlannerDesign for .NET 2.0
Reply #42 - Apr 5th, 2006 at 11:40am
Print Post  
i forgot ta ask sumpthing
when you look at the timetable
you see at the top of the timetable "APR 05 ,2006"
but i want to know if you can change that in
"timetable wed APR 05,2006"
so then i can see in what for timetable i am and also what day we are
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: PocketPlannerDesign for .NET 2.0
Reply #43 - Apr 5th, 2006 at 12:47pm
Print Post  
That should do it:

calendar.TimetableSettings.HeaderDateFormat = "'timetable' ddd MMM dd, yyyy";
  
Back to top
 
IP Logged
 
racer
Guest


Re: PocketPlannerDesign for .NET 2.0
Reply #44 - Apr 10th, 2006 at 5:02am
Print Post  
i have a question when you run the demo and you are in weekrange is it possible when you dubble click on a day that you direct jump to the timetable?

and can you add in weekrange a vertical scrollbar? Tongue
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 2 [3] 4 5 ... 7
Send TopicPrint