1. Gzim Ramizi
  2. PowerBuilder
  3. Tuesday, 9 November 2021 16:25 PM UTC

Dear all,

how do you integrate new controls, like DatePicker, MonthCalendar, Animation? Simply add into pfcmain.pbl and pfemain.pbl, as well as in the places where a case query makes the type distinction, or is there a specific procedure for this?

TIA,
gzim

Accepted Answer
René Ullrich Accepted Answer Pending Moderation
  1. Wednesday, 10 November 2021 08:00 AM UTC
  2. PowerBuilder
  3. # Permalink

I have classes pfc_u_am (animation control), pfc_u_dp (datepicker) and pfc_u_mc (month calendar) in my local application since 2009. I thought I got it from official PFC but now it seems that I added it myself.

A lot of new controls like CoderObject I've already added some time ago. But not this three.

I have now added it to PFC GitHub in a fork and requested a merge. So I think they will be available soon.

 

Comment
  1. Miguel Leeuwe
  2. Wednesday, 10 November 2021 09:27 AM UTC
Great René !
  1. Helpful
  1. Armeen Mazda @Appeon
  2. Wednesday, 10 November 2021 15:48 PM UTC
Thanks so much Rene for contributing!
  1. Helpful 1
  1. Gzim Ramizi
  2. Thursday, 11 November 2021 10:28 AM UTC
Thank you!
  1. Helpful
There are no comments made yet.
Bruce Armstrong Accepted Answer Pending Moderation
  1. Thursday, 11 November 2021 02:55 AM UTC
  2. PowerBuilder
  3. # 1

TABUllrish responded to your question in the discussion section of the PFC project and has added the new object types:

https://github.com/OpenSourcePFCLibraries/2019/discussions/30

https://github.com/OpenSourcePFCLibraries/2019/issues/3


Comment
  1. Gzim Ramizi
  2. Thursday, 11 November 2021 10:29 AM UTC
PowerBuilder Community is King! Love it! Hope I'll be able also to give contribution ...
  1. Helpful 1
  1. Olan Knight
  2. Friday, 12 November 2021 22:06 PM UTC
Well, ALRIGHTY then. That was easy! :)

Thanks, Bruce!
  1. Helpful 1
There are no comments made yet.
Andreas Mykonios Accepted Answer Pending Moderation
  1. Wednesday, 10 November 2021 08:47 AM UTC
  2. PowerBuilder
  3. # 2

This is an interesing question.

You don't simply add new controls. You have to inherit at each level.

By the way, if there is interest in doing some work in PFC and if we can do some collaborative work I'll be contributing.

Andreas.

Comment
  1. Armeen Mazda @Appeon
  2. Wednesday, 10 November 2021 15:49 PM UTC
Thanks so much Andreas for contributing!
  1. Helpful
  1. Gzim Ramizi
  2. Thursday, 11 November 2021 10:32 AM UTC
Yes, of course (inheritance, extend with the default functions, events, etc). My question was general, just to find out what to consider.
  1. Helpful
There are no comments made yet.
Olan Knight Accepted Answer Pending Moderation
  1. Tuesday, 9 November 2021 21:17 PM UTC
  2. PowerBuilder
  3. # 3

A list of the new controls available would be helpful. I would note that 1) these control be free of charge, and 2) allowed for use with distributed executable code.

Given that, I can give adding the controls to the PFC a try. No promises on a timeline, or even on success, but I can try!  :)

Comment
  1. Armeen Mazda @Appeon
  2. Wednesday, 10 November 2021 15:49 PM UTC
Thanks so much Olan for contributing!
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 9 November 2021 18:50 PM UTC
  2. PowerBuilder
  3. # 4

Hi Gzim;

  IMHO: That should be something that the PFC team ( https://github.com/OpenSourcePFCLibraries ) should have be doing for a long time now. There are many more new object classes to consider than just the ones you mentioned.

Regards ... Chris

Comment
  1. Gzim Ramizi
  2. Tuesday, 9 November 2021 20:20 PM UTC
After downloading the 2019 version of PFC, I didnt saw these objects. I also asked the same question there.
  1. Helpful
  1. Armeen Mazda @Appeon
  2. Tuesday, 9 November 2021 20:47 PM UTC
PFC team??? PFC was dumped by Sybase and now maintained by volunteers from Appeon community. It lags because even though so many people use PFC almost nobody contributes back to the open source project. I’m grateful to the few volunteers that even a 2019 version of PFC exists.
  1. Helpful 1
  1. Chris Pollach @Appeon
  2. Wednesday, 10 November 2021 15:39 PM UTC
Yes, PFC Team = = "Volunteers" ;-)
  1. Helpful 1
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Tuesday, 9 November 2021 18:07 PM UTC
  2. PowerBuilder
  3. # 5

Simply "add in pbl", "case query"....

Dear Gzim, you really are going to have to be a lot clearer in the question you have and tell us what you want to do exactly.

You're not going to get much help if not. At least, myself I don't understand at all what it is you are asking for. It's very very 'vague'.

Sorry I don't want to sound rude.

regards

Comment
  1. Gzim Ramizi
  2. Tuesday, 9 November 2021 20:18 PM UTC
I will try to write more precisely next time.
  1. Helpful
  1. Miguel Leeuwe
  2. Tuesday, 9 November 2021 22:06 PM UTC
If you download "pfcoref1.pdf" from https://github.com/OpenSourcePFCLibraries/docs and go to page 404, the use of u_calendar is being described. We use it ourselves since our code is old. (manager doesn't want to replace them).

Nowadays I would recommend NOT to use it. If you have a date(time) column on a datawindow and change the edit style to edit-mask, then you can check the box that says "drop-down calendar". This gives you a way nicer and more user friendly calendar control (date picker?). You can click on month, year etc.
  1. Helpful
  1. Miguel Leeuwe
  2. Tuesday, 9 November 2021 22:16 PM UTC
Maybe I'm starting to think I get what it is you are trying to do: You want to add controls which aren't currently in the PFC classes. The way to do that would be by using the github open source site. If not, every time there's an update on the pfc classes in the future, your changes will be gone.

regards
  1. Helpful 1
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.