Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

CodeJock ActiveX Calendar Control...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #31
    Re: CodeJock ActiveX Calendar Control...

    With the help from others I've made a tiny bit of progress. I am stuck on trying to create a custom EventId for CodeJock instead of the one they automatically create. I also haven't figured out how to populate the calendar with events that are on days other than today's date. Play around with it and let me know if you have any ideas. Thank you.

    Don

    Comment


      #32
      Re: CodeJock ActiveX Calendar Control...

      Code:
      ''the commented parts are just for example purposes that might be different for xdialog or just to show you the exact values of things
      'm_pEditingEvent = ole.create("codejock.calendarcontrol.13.1.0::calendarevents")
      m_pEditingEvent = :Main_Menu:GCalendarControl.activex.DataProvider.CreateEvent()
              m_pEditingEvent.Subject = txtSubject.value
              m_pEditingEvent.Location = txtLocation.value
              m_pEditingEvent.Body = txtBody.value
              m_pEditingEvent.ReminderSoundFile = ".."
              
              m_pEditingEvent.StartTime = CTODT(txtSDate.value + " " + cmbSTime.value)
              m_pEditingEvent.EndTime = CTODT(txtEDate.value + " " + cmbETime.value)
              
              :Main_Menu:gCalendarControl.activex.DataProvider.AddEvent (m_pEditingEvent)
      '        m_pEditingEvent.StartTime = CTODT("08/07/2009 1:00:00 PM")
      '        m_pEditingEvent.EndTime = CTODT("08/07/2009 2:00:00 PM")
      Hope this helps some. And maybe to change the event id, though I don't know why you'd want to because it resets them everytime I open the calendar, try something this.

      Code:
      m_pEditingEvent.id = "245"

      Comment


        #33
        Re: CodeJock ActiveX Calendar Control...

        Adam,
        Does the calender work on a form in A5V9?
        Thanks,
        Garry

        Comment


          #34
          Re: CodeJock ActiveX Calendar Control...

          Did anybody get this working with a custom data provider and doretrievedayevents function?
          Regards
          Mark

          Comment


            #35
            Re: CodeJock ActiveX Calendar Control...

            Mark,
            Did you bother to download any of the examples in this thread? The most recent file that I posted should answer both of your questions.

            Garry,
            Yes, works the same on a form as it does in xdialog. The advantage of using a form is that it can be minimized/maximized. Though, I feel there are more benefits to using xdialog (such as resizing -in xdialog resizing the control works beautifully). I guess more of a preference than anything else.
            p.s.- yes, it works in v9 too!
            Don
            Last edited by djldc; 02-25-2010, 10:03 PM. Reason: and it works it v9 too!

            Comment


              #36
              Re: CodeJock ActiveX Calendar Control...

              Hi Adam,

              Thanks for your quick response, yes I have downloaded and tried your code, I have been using the activex component with Windev and the initialisation of the dataprovider fires the doretreivedayevents function, that doesn't seem to happen with your code. Also I'm not quite sure how you implemented this into a form.
              I have created my own form and I have got the calendar to work as far as dbl clicks and so forth but the custom data provider doesn't want to fire. So I would be very interested in your solution. That you very much for your code. I haven't used xbasic for a long time so I am a babe in the woods at moment.
              Regards
              Mark

              Comment


                #37
                Re: CodeJock ActiveX Calendar Control...

                Hi Don,
                I meant my previous response for you. Sorry about that
                Regards
                Mark

                Comment


                  #38
                  Re: CodeJock ActiveX Calendar Control...

                  Hi Mark,
                  This is a project me and another person have devoted a large amount of time to. It is not complete and I am not sure what we intend to do when it is complete (over the next several months). I can say that it is not (only) mine to share so at this point what I have already provided is all I can give. I can help if you have specific questions.

                  To help answer your last post... I did not use the doretrievedayevents function to populate the calendar. In the example I provided I believe I use the function populateFromTable. A function I created with help from others. Like pretty much everything you program there are many ways to write the code so I am certain we've modified the way we retrieve events from a particular dataprovider since we started and will likely modify it more as we continue to work on the calendar. I used xdialog because of it's flexibilty and it can never get corrupted. On the other hand, I have had forms that had to be redone because for whatever reason they became corrupt. I didn't want to take the chance with such an important part of my program.

                  btw, how do you like WinDev compared to Alpha?

                  Don

                  Comment


                    #39
                    Re: CodeJock ActiveX Calendar Control...

                    Hi Don,

                    I understand completely, I myself have spent a lot of time integrating the calendar into a large windev project. The code you provided was enough for me to evaluate it in Alpha and at this stage I don't see any advantage in moving back to Alpha for this project.
                    I don't want go into details about the two I mainly moved to Windev because at the time the version of Alpha5 V5 I was using was not very activex friendly also the runtime pricing model was not very competitive. That has changed with the runtimes at least so I am looking at Alpha for some projects. I am just hesitant to jump right back into an xbasic learning curve.
                    Both programs have there pro and cons it is what you can produce and the time it takes that makes the difference.
                    Thanks for you help
                    Regards
                    Mark

                    Comment


                      #40
                      Re: CodeJock ActiveX Calendar Control...

                      Where can I download the activex control needed to run this demo?

                      I dont want their whole suite of controls
                      i dont want a bunch of stuff installed on the computer if I dont need it.

                      Only the calendar active x

                      Charlie Crimmel
                      Last edited by crimmelcp; 02-26-2010, 07:45 PM.

                      Comment


                        #41
                        Re: CodeJock ActiveX Calendar Control...

                        Hi Charlie,
                        you can get a fully functioning demo from www.codejock.com

                        Don,
                        I am not sure if you have got the doretreivedayevents to fire, but it is related to the custom data provider. When you open or create the custom data provider it fires the doretreivedayevent and retreives events for each date showing in the datepicker. So if you have one month showing it fires 42 times. Of course if there are a lot of appointments this adds latency to drawing in the calendar as it loads into memory. But once it is populated it is quite fast.
                        I haven't been to get it to fire with your example or with my own form, but I can fire it quite easily in Windev.

                        regards
                        Mark

                        Comment


                          #42
                          Re: CodeJock ActiveX Calendar Control...

                          Hi Charlie,
                          you can get a fully functioning demo from www.codejock.com

                          Don,
                          I am not sure if you have got the doretreivedayevents to fire, but it is related to the custom data provider. When you open or create the custom data provider it fires the doretreivedayevent and retreives events for each date showing in the datepicker. So if you have one month showing it fires 42 times. Of course if there are a lot of appointments this adds latency to drawing in the calendar as it loads into memory. But once it is populated it is quite fast.
                          I haven't been to get it to fire with your example or with my own form, but I can fire it quite easily in Windev. You probably can get it to fire in Alpha but I just don't have the time to work it out.

                          regards
                          Mark

                          Comment


                            #43
                            Re: CodeJock ActiveX Calendar Control...

                            As I looked the Alpha Five folder, some of the CodeJock ActiveX controls have been used in Alpha Five itself (at least both Version 9 and 10). eg.

                            Codejock.PropertyGrid.v11.1.3.ocx
                            Codejock.ReportControl.v11.1.3.ocx
                            Codejock.SuiteCtrls.v11.1.3.ocx
                            Codejock.TaskPanel.v11.1.3.ocx

                            Comment


                              #44
                              Re: CodeJock ActiveX Calendar Control...

                              Hi all

                              I am very interested in using the codejock activex calendar control but am very new to all of this and after reading what I can about this am unsure of how to proceed.

                              Is there anyone out there that would be willing to assist me, in pointing me in the right direction on how I would go about doing this.

                              I would appreciate any help regarding this

                              Thank-you

                              Peter

                              Comment


                                #45
                                Re: CodeJock ActiveX Calendar Control...

                                Originally posted by djldc View Post
                                Would anyone be able to translate Visual Basic Code to xbasic?
                                I would be able to convert VB to xBasic for you, depending on how complex the VB is and how many lines of VB you need converted. If it is small I can do it for you at no charge. But if it's going to take a couple hours I don't have that kind of free time
                                Lee Goldberg
                                Software Development and Sales
                                Shore Consultants Ltd.
                                [email protected]
                                www.shorecon.com

                                Comment

                                Working...
                                X