Конференция "KOL" » F1026 File not found: 'DesignConst.dcu' - error [Delphi, Windows]
 
  • mars (12.09.10 17:13) [0]
    Hello,

    When I try to run a KOL/MCK project on Delphi 2010, I get the above error. What can I do to fix it ? I tried finding all files, but they don't exist in my PC.

    Thanks !

    Delphi 2010, Windows Vista
  • Jon © (12.09.10 17:27) [1]
    Which version of KOL/MCK are you using? Have you tried a full build rather than a compile?

    If that fails, try this version: http://kolmck.svn.sourceforge.net/viewvc/kolmck.tar.gz?view=tar
  • mars (12.09.10 17:37) [2]
    Ahh, full build (Build All) worked, and now I can run without any problems ! Thanks !

    Using the latest build on site, 2.94.

    Is there any way we can use visual_xp_styles.inc in the apps ? Seeing as it's included with KOL, I figured it could make the controls a bit prettier.
  • Jon © (12.09.10 20:27) [3]
    You have to add the following conditional define: GRAPHCTL_XPSTYLES

    From KOL.pas


    Following conditional symbols can be used in a project (Project | Options | Directories/Conditional Defines) to change code generated a bit. There are following:

    ...

    GRAPHCTL_XPSTYLES - to use XP themed Visual styles for drawing graphic controls. This does not affect windowed controls which visual style is controlled by the manifest. This option also turns on RICHEDIT_XPBORDER option.

    ...

    {$IFDEF GRAPHCTL_XPSTYLES}
    {$I visual_xp_styles.inc}
    {$ENDIF}

  • mars (13.09.10 02:38) [4]
    Thanks a lot Jon !

    Maybe it's my Delphi version (2010), but setting that conditional statement (or even using {$DEFINE GRAPHCTL_XPSTYLES}) doesn't do anything. I achieved what I wanted with the MHXP Addon available in the download page.

    Thanks again for your help !
  • Jon © (13.09.10 04:10) [5]
    Yes, using a manifest is one solution if the target system is using themes.
    Maybe I should have been more specific: If you are working with MCK then try this:

    - Create a new KOL-MCK project
    - Add the following conditional defines: GRAPHCTL_XPSTYLES;USE_GRAPHCTLS;
    - Do a build
    - Add a couple of KOL buttons
    - For one of them set the property: Windowed = True
    - Compile and run to see the difference
 
Конференция "KOL" » F1026 File not found: 'DesignConst.dcu' - error [Delphi, Windows]
Есть новые Нет новых   [134430   +4][b:0][p:0.001]