Print Page | Close Window

Custom Icons and Properties in Powerbuilder

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=19077
Printed Date: 16 November 2024 at 1:27am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Custom Icons and Properties in Powerbuilder
Posted By: mickh
Subject: Custom Icons and Properties in Powerbuilder
Date Posted: 18 October 2011 at 5:26am
Hi All,

I am new to the CodeJock Calendar ActiveX control, but already think it will be a powerful and useful addition to my application.  I am using Sybase Powerbuilder so it is taking me a bit of time to decipher some of the other threads and the help for things I need to do. The Powerbuilder sample was a great starting point.

Currently I have my calendar displaying events in month view.



I have two initial issues:

  1. How can I add and display custom icons for different events? For example my calendar is displaying any interaction a staff member has with a client. If there is a phone call, I want to display an event with a custom telephone icon. Is this possible?
  2. I also need the correct Powerbuilder syntax for adding Custom Properties to the event. I have tried:

    iOleEvent.CustomProperties.Property.ID = udw_dashboard_snapshot.GetItemNumber(counter,'c_key')

    and

    iOleEvent.CustomProperties.Property("ID") = udw_dashboard_snapshot.GetItemNumber(counter,'c_key')

    Neither syntax works. The first syntax compiles but falls over at runtime, the second reports an error in the compiler.
I hope someone can help.

Thanks

mickh



Replies:
Posted By: mickh
Date Posted: 19 October 2011 at 7:42am
Hi All

I have managed to work out a solution for Question 2 above, but calling on all Powerbuilder Developers for help with the 1st Question.

Thanks

Michael


Posted By: dindo.lales
Date Posted: 19 October 2011 at 10:33pm
Hi Michael,

How were you able to solve your question 2? I'm planning to add custom properties in my calendar as well.
Regarding your 1st question, I'm still finding ways to have it implemented. I'm studying the CalendarEvent.CustomIcons property and the ImageManagerIcon object. I'll inform you once I have a solution.

Thanks


-------------
Product: Xtreme Calendar (ActiveX) version 13.4.0
Platform: Windows 7 Professional (32bit)
Language: Powerbuilder 11.5


Posted By: mickh
Date Posted: 20 October 2011 at 9:23am
Hi Dindo

I eventually got it to work be referencing the Custom Properties as an array.  Naming the properties caused an error.

iOleEvent.CustomProperties.Property[1]=udw_dashboard_snapshot.GetItemNumber(counter,'c_key')
iOleEvent.CustomProperties.Property[2]=udw_dashboard_snapshot.GetItemString(counter,'c_comm_type')
...

I hope you have some luck with the customicons. They will be a real help for me.

Michael



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