Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - calendar buildin dialog
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

calendar buildin dialog

 Post Reply Post Reply
Author
Message
Ditte View Drop Down
Groupie
Groupie


Joined: 28 October 2007
Status: Offline
Points: 94
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ditte Quote  Post ReplyReply Direct Link To This Post Topic: calendar buildin dialog
    Posted: 11 December 2009 at 10:08am
Hi,

I would like to fill some fields by opening the calendar buildin dialog.

Iīve found no way do to it.


Regards



Dittmar



Product: Xtreme SuitePro (ActiveX) 13.4.2

Platform: Win XP

Language: Visual Dataflex 16.1
Back to Top
Ian Smith View Drop Down
Newbie
Newbie


Joined: 16 February 2009
Location: United Kingdom
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ian Smith Quote  Post ReplyReply Direct Link To This Post Posted: 14 December 2009 at 6:28am
Dittmar
 
Have a look at OnComDblClick and Show_Built_In_Dialog.
 
Ian
Back to Top
Ditte View Drop Down
Groupie
Groupie


Joined: 28 October 2007
Status: Offline
Points: 94
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ditte Quote  Post ReplyReply Direct Link To This Post Posted: 17 December 2009 at 7:13pm
Hi Ian,

thatīs the place where I looking to. I thought I can full the struct prior creating it. But Iīm not found the right place.
A other place would be to write something in the event after creating it. There is a refresh of that event needed.
I found not the right command for that. After creating a new event (buildin dialog) I donīt get the variant of the event back?
I think it should not be to difficult, but I donīt found a solution at time.
Regards



Dittmar



Product: Xtreme SuitePro (ActiveX) 13.4.2

Platform: Win XP

Language: Visual Dataflex 16.1
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 18 December 2009 at 1:08pm
try smth like this:
    If g_bUseBuiltInCalendarDialogs Then
        Dim dlgCalendar As New CalendarDialogs
        dlgCalendar.ParentHWND = Me.hwnd
        dlgCalendar.Calendar = CalendarControl
       
        'dlgCalendar.ShowNewEvent
       
        Dim ModEvent As CalendarEvent
        Set ModEvent = CalendarControl.DataProvider.CreateEvent
       
        ModEvent.Subject = "MyInitialSubject"
........................................................................... all your predefined values
        ModEvent.StartTime = Now
        ModEvent.EndTime = Now
       
        CalendarControl.DataProvider.AddEvent ModEvent
       
        If Not dlgCalendar.ShowEditEvent(ModEvent) Then
           CalendarControl.DataProvider.DeleteEvent ModEvent
        End If
        Exit Sub
    End If
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.234 seconds.