in

Kodigo

An all purpose Powerbuilder framework

Preview 4 available for download

Last post 04-09-2008 3:14 by yeyi. 13 replies.
Page 1 of 1 (14 items)
Sort Posts: Previous Next
  • 04-08-2008 1:46

    • yeyi
    • Top 10 Contributor
    • Joined on 02-01-2008
    • Singapore
    • Posts 127

    Preview 4 available for download

    Preview 4 contains working Control authoring classes. This includes theming, rendering and image support. There have also been changes on scoping of some services like LayoutService and WindowService. They are now retained through the instance of the container (windowmain/userobjectbase). Thanks to Paco(kiboko) for the ideas and making me think more about scoping of some key services. You can also see subscriber approach for theme alert and servicemanager notification. There have also been changes in gdipFont to provide a font cache w/c is transparent to the developer. Overall, I am happy with the performance so far when drawing using the new classes, especially the added support for non-client messages. this will allow for entire window theming, similar to Office 2007 windows.

    The next preview will probably be the last before I go to Alpha where all existing features in Kodigo 3 will be ported over to version 4. Alpha stage will take some time before it is moved to Beta.

     

    Filed under: ,
  • 04-08-2008 5:23 In reply to

    Re: Preview 4 available for download

    I found a bug. Object themeservice function issystemthemed. If running Windows in Classic mode, it gets an error due to no Return statement - Both IF statements are False. This is easy to fix, just add Else Return False to the inner IF statement.

  • 04-08-2008 5:55 In reply to

    • yeyi
    • Top 10 Contributor
    • Joined on 02-01-2008
    • Singapore
    • Posts 127

    Re: Preview 4 available for download

    (Duh!) Thanks, I was always running themed so I never hit the error Stick out tongue

    I have a weird bug when running XP themed on an HP machine with Nvidia drivers, for some reason, alpha information is lost on the resource bitmaps when loaded and the stored gdipImage on the ImageList is empty, but debugging shows that all created handles are valid.

    I'm not sure if it is Driver specific but apparently, even classic mode yields the same problems. Let me know if anybody experiences the same thing.

    But the machine at work has no problems Hmm 

    Filed under: ,
  • 04-08-2008 7:38 In reply to

    Re: Preview 4 available for download

    I'm not a fan of .Net but to see what happens, I corrected the compile errors and deployed it as .Net Winform app. First off, all the windows are centered instead of being all spread out. There are several other issues I won't get into.

    I wouldn't worry about it now. I can get you my changes if you want. Then if someone asks about .Net, you can tell them that it compiles but has a few issues to take care of.

  • 04-08-2008 8:31 In reply to

    • yeyi
    • Top 10 Contributor
    • Joined on 02-01-2008
    • Singapore
    • Posts 127

    Re: Preview 4 available for download

    Agreed, too early for worrying about .NET deployment. I'm curious though, does the gradienttextcontrol draw properly? 

  • 04-08-2008 8:47 In reply to

    • kiboko
    • Top 10 Contributor
    • Joined on 04-01-2008
    • Spain
    • Posts 8

    Re: Preview 4 available for download

    PB 10.5.1 Build 6565

    No compilation errors, but PB crash when run!! Angry

    Any ideas? 

  • 04-08-2008 9:34 In reply to

    • yeyi
    • Top 10 Contributor
    • Joined on 02-01-2008
    • Singapore
    • Posts 127

    Re: Preview 4 available for download

    What OS are you running from? Are you running themed or classic? 

    Filed under:
  • 04-08-2008 9:50 In reply to

    Re: Preview 4 available for download

    Yes it does. The only problem on the Test Gradient Text window is that the images at the bottom do not appear. It could be just a matter of assigning the .pbr to the project object. The Draw Bitmap on the Test Subclass window has the bitmaps being too short, they are about the same size as the button controls. On the 'The Border colors should react to theme changes..' window the control and the border don't line up properly. It looks like the control is at 0,0 and the border is drawn where the control is supposed to be. On the Hook Test window, the display of x/y position is always at 0,0. The position display on the Test Gradient window does work.

  • 04-08-2008 11:31 In reply to

    • kiboko
    • Top 10 Contributor
    • Joined on 04-01-2008
    • Spain
    • Posts 8

    Re: Preview 4 available for download

     Sorry...

    Win XP SP2 Themed 

  • 04-08-2008 18:47 In reply to

    • yeyi
    • Top 10 Contributor
    • Joined on 02-01-2008
    • Singapore
    • Posts 127

    Re: Preview 4 available for download

    kiboko:

    Win XP SP2 Themed 

     

    OK, it looks like you have the same problem as my home machine. I will send an update as soon as I fix it. Thanks!

    Filed under: ,
  • 04-08-2008 19:31 In reply to

    • yeyi
    • Top 10 Contributor
    • Joined on 02-01-2008
    • Singapore
    • Posts 127

    Re: Preview 4 available for download

    Roland Smith:

    Yes it does. The only problem on the Test Gradient Text window is that the images at the bottom do not appear. It could be just a matter of assigning the .pbr to the project object. The Draw Bitmap on the Test Subclass window has the bitmaps being too short, they are about the same size as the button controls. On the 'The Border colors should react to theme changes..' window the control and the border don't line up properly. It looks like the control is at 0,0 and the border is drawn where the control is supposed to be. On the Hook Test window, the display of x/y position is always at 0,0. The position display on the Test Gradient window does work.

     

    The mere fact that it is drawing on .NET already sounds good. I'm guessing that it has something to do with PBU to Pixels stuff (problems are all size and position related). The safest bet would be to just use pixels. Anyway, too early to deal with .NET problems, I'll just keep in mind to stick to Pixels. Thanks.

    BTW, does the Layout work correctly? I recall that all of that is using PBU.

    Filed under: ,
  • 04-08-2008 19:38 In reply to

    • yeyi
    • Top 10 Contributor
    • Joined on 02-01-2008
    • Singapore
    • Posts 127

    Re: Preview 4 available for download

    yeyi:

    kiboko:

    Win XP SP2 Themed 

     

    OK, it looks like you have the same problem as my home machine. I will send an update as soon as I fix it. Thanks!

     

    I seemed to have located the problem.

    Can you try the ff:

    1. Under kodigoResource.PBL, open ResourceService
    2. Go to function AddImageList
    3. Go to line 60, the line should look like this:

              svcImageList.ILC_MASK + svcImageList.ILC_COLOR32

         4. Change it to this:

              svcImageList.ILC_MASK + svcImageList.ILC_COLOR24
     

    If it works for you, I can explain later why this change is needed. I'm hoping this is the cause.
    Filed under: ,
  • 04-09-2008 2:30 In reply to

    • kiboko
    • Top 10 Contributor
    • Joined on 04-01-2008
    • Spain
    • Posts 8

    Re: Preview 4 available for download

    No luck Super Angry 

    The only way to run has been commenting the line 9 "GarbageCollect()" in the UnloadServices function of the ServiceManager object!! Hmm

    In this case, all examples runs ok.

     

  • 04-09-2008 3:14 In reply to

    • yeyi
    • Top 10 Contributor
    • Joined on 02-01-2008
    • Singapore
    • Posts 127

    Re: Preview 4 available for download

    kiboko:

    No luck Super Angry 

    The only way to run has been commenting the line 9 "GarbageCollect()" in the UnloadServices function of the ServiceManager object!! Hmm

    In this case, all examples runs ok.

     

     

    Hmm  ..now that's strange... anyway, I put GarbageCollect in UnloadServices to expedite clean-up. Maybe 10.5 made some changes with GC? Anyway, I'll also remove the line to prevent the error from happening, GC will kick in eventually so we'll just have to trust it Stick out tongue

    Filed under: ,
Page 1 of 1 (14 items)
Gabriel Abulencia dela Torre 2008
Powered by Community Server (Non-Commercial Edition), by Telligent Systems