Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFPDatepickx on a modal form
Message
From
16/12/2002 08:14:09
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00732322
Message ID:
00733260
Views:
21
Ok, thanks for the info. Sorry you're having this problem. I have not tried the control in any commercial frameworks since I have been using my own. And yes, the control uses a top level form for the dropdown. It's the only way I could get reasonable functionality out of it. I guess frameworks have various kinds of limitations too. (sigh) That's why I generally try to keep things as simple as possible, but sometimes it just not possible.

Bill

>Well, I did a little digging and determined it is definitely something with the VMP framework interaction. The control doesn't appear to work on a modeless form, either. I have seen a little chatter about your calendar control on the VMP chat site, so I'm going to post a question there to see if anyone has had any luck. From what I read, however, no one has really tried it on the framework, so it may take some debugging.
>From what I can see, it's the fact that the control utilizes another form. VMP tries to manage all interactions between forms and somewhere the control gets set to only part of the text box. I can only get access to the month portion of the textbox after the calendar has been instantiated. However, the date that is chosen by the drop-down calendar appears in the text box. Very strange behavior.
>
>I don't have a lot of time to debug, but if I come up with anything else at 2AM, I'll let you know!
>
>
>>Sorry I couldn't help you more here. It's hard to troubleshoot from the other end when what you're describing seems to work ok on this end. I would appreciate any feedback on what you find out, especially since you're using WinXP and a commercial framework. Maybe others are using the control ( or similar controls ) in similar environments and will chime in if they have seen anything on this.
>>
>>Bill
>>
>>>I'll have to try the debugging...I just wanted to check your thoughts as I noticed in the documentation something about subclassing the calendar form for modal and top level.
>>>
>>>My apologies for not being complete on the environment. I am in a WinXP environment on VFP 7. The final caveat is that I'm using the Visual Maxframe Professional framework and there may be some hostile interaction there as well. I'll let you know what I come up with, if anything.
>>>
>>>Thanks for your feedback!
>>>
>>>
>>>>I don't know what you could be missing. I have not seen this behavior at all. I am using the control in several modal forms in a production application and it works fine. I set the sample form that comes with the control ( datepickx.scx ) to be modal, ran datepickx.prg and the form runs fine. I have only used the control under Win98 and Win2K so I can't speak for WinXP. Don't know if you are using WinXP or not, but I assume it should work the same there.
>>>>
>>>>You can try SETting STEP ON in the Click event of the caldatelabel class in vfpcal.vcx, run the form and click a date using the mouse to try to trace thru the code to see if it is hanging and where. I really don't know what to recommend beyond this since I have not seen this behavior.
>>>>
>>>>Bill
>>>>
>>>>>I tried placing the control on a modal form. The control will popup the calendar when you click on the dnarrow. However, when the calendar disappears, the whole form freezes, similar to when a modal form accidentally loses focus.
>>>>>
>>>>>I saw a property for intoplevelform, but nothing for modal. Am I missing something obvious?
>>>>>
>>>>>
>>>>>
>>>>>>Hi Steve,
>>>>>>
>>>>>>As far as I know it should work fine on modal forms by just placin it on the form and setting the desired properties. I use it on everal modal forms w/o problems.
>>>>>>
>>>>>>Bill
>>>>>>
>>>>>>>Bill,
>>>>>>> I really like your calendar control. However, I haven't seen any documentation (nor figured out) on how to implement on a modal form. Do you have any documentation or suggestions for this?
>>>>>>>
>>>>>>>Thanks
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Previous
Reply
Map
View

Click here to load this message in the networking platform