XP style Manifest ?

Hello,
I got problem when use Manifest for active xp style in project, many buttons on
designer not work , like font style button, shadow, ...

can tell me why ?

Regards,
m.t

Comments

  • edited 6:20PM
    I use BCB6 ,
    No idea , any body help me please .
  • edited 6:20PM
    It is a bug in the Down property of TToolButton when XP Themes are applied.

    I have posted a fix (if you have source of course) for FR3 to the FR3 newsgroup, and perhaps a formal fix will be added in a future release.

    You could of course ask Mike (I assume you are using ThemeManager) if he can add support to fix TToolButton instead.

    Good luck

    Chris
  • edited 6:20PM
    Hi,

    i have the same problem under Delphi 5.
    Is there any solution?!

    Regards
    Ralf

  • edited 6:20PM
    i know solution:
    1. Copy ComCtrls.pas form delphi to project dir.
    2. In implementation section add:
     const 
     ComCtlVersionIE6 = $00060000;
     var
     IsOnCheckDownNeed: Boolean;
    

    3. In initialization section add:
    IsOnCheckDownNeed := GetComCtlVersion >= ComCtlVersionIE6;
    

    4. In TToolButton.MouseDown change :
    if (Style = tbsDropDown) and (Button = mbLeft) and Enabled then ...
    to:
    if ((Style = tbsDropDown) or ((Style = tbsCheck) and IsOnCheckDownNeed)) and (Button = mbLeft) and Enabled then ...
    

    5. rebuild your project.
  • edited 6:20PM
    That's ist!!! :-)

    Thank you!

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.