Print Page | Close Window

AttachToCalendar

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=6747
Printed Date: 06 October 2024 at 1:39pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: AttachToCalendar
Posted By: tejsingh
Subject: AttachToCalendar
Date Posted: 28 March 2007 at 5:26am
Hi

I have currently started using CodeJock software. I use it to interact with Progress 4gl programs.

I am currently creating a calendar which will be used in my Progress program as an ocx. I am using VB 6 to create the ocx's.

But i have come across a problem.

I have 2 programs one with the date picker and one with the calendar view only. These will be added in my Progress 4gl program and then attached in there when i make a call to Attachcalendar in the datepicker program by passing in the com-handle of the calendar to which it will attach to.

In my datepicker i have the procedure:

Public Sub AttachToCalendar(ByVal Calendar As Variant)
    DateSelection.AttachToCalendar Calendar
  
End Sub

I have to use a variant as the input parameter which is causing me problems as the i pass the com-handle into this variable.

When i create the controls is it better to have the controls in the same OCX?

any suggestions would be great

cheers

TJ



Replies:
Posted By: mbrogdon
Date Posted: 28 March 2007 at 11:11am

Hi tejsign,

 
I am doing exactly the same thing right now.  I am building a calendar app ocx with VB6 to be used in Openroad 4gl.  I think it will be much easier if you put the controls into the same ocx.  I do not think you can pass an externalobjectfield in 4gl to another frame.  I have include the calendar and a datepicker on the same usercontrol in VB6 as one usercontrol and only a datepicker on another usercontrol for standalone use in 4gl.
 
 


Posted By: tejsingh
Date Posted: 28 March 2007 at 11:22am
Hi

Thanks for the reply. Have you attached the datepicker and calendar in your Progress 4gl program?

Did you use a variant in the module defined within VB? (like i have showed in my post above

regards

Tj


Posted By: mbrogdon
Date Posted: 28 March 2007 at 11:32am


Posted By: tejsingh
Date Posted: 28 March 2007 at 11:56am
Hi

Is the datepicker and calendar attached with progress or within the vb code.

tj


Posted By: mbrogdon
Date Posted: 28 March 2007 at 12:00pm
Hi tj,
 
Here is a link to download my project.  I hope it helps.
 
Matt
http://www.brogdon.de/vbgermany/files/cdcal_ocx.zip - http://www.brogdon.de/vbgermany/files/cdcal_ocx.zip



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net