Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OLE Question -- URGENT -- HELP !!!

Status
Not open for further replies.

netmadcap

Programmer
Jul 1, 2003
10
US
I am using PB 7.0 Desktop.

I want to use the OLE control, MSCOMCT2.OCX, which has DatePicker but I do not see this in the list of OLE controls. How do I get it to show there ?

Also, I tried using the "Create from file" but does not work.

I am new to PB so can somebody tell me the steps to use the control ?

Thanks !!!
 
To make a datetime picker is easy, i made one for my applications. I think, in PFC there's a control to do this.
If you need help, i could tell you how i did it.

regards.
 
Sure, can you tell me please ? I really appreciate it.

I am using PB7 Desktop version and dont have PFCs. So I need something 3rd party.
 
there are several examples about it... mbalent wrote some examples.

if it's possible, i like my own controls. I wrote some source in PB to use my own calendar.

the idea it's the following:

you must create a datawindow with 35 ( 7 days * 5 rows ) cols, called them c1, c2, c3...c31, and paint your calendar.
Create a window and set it your dw...the window must be Popup.
When the window start, you select a date ( a parameter ) and set all the days of the month, BUT, you must capture the first day to know the correct form to complete it.

You should get a ancestor datawindow, and u could write a few lines in the doble click event, opening your calendar when the datawindow field is date or datetime.

You will send your dw and date to the control, and the control will know in which dw set the new date.

I hope that you got the idea,

Regards///
















 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top