I have tried the "ActionBars" and "Actionlists" but I found them a bit hard to work with and I also have some dynamic menuitems. But I think I should try that solution once more to see if I can get it to work.
The components that's not rendered is a mystery. It is a standard TEdit placed in a standard TGroupBox that is placed on a TTabSheet. But a TPanel placed inside the same Groupbox is rendered just perfect. The problem also occurs on a TListBox placed inside a TGroupBox and a TEdit placed directly on the tabsheet. A derived ListView still have the old grey colour on the columnheaders. I think that colour should be a little bit more white. But if I create a new application and put the same type of components on a tabsheet it all looks perfect. I have looked it over again and again and I can't figure out the difference between the components in my "old application" and the components in my new "test application". Tha actual PageControl is placed on a form that is derived in several levels, but I can't see why that should be a problem? "Cosmin Prund" <[EMAIL PROTECTED]> Sänt av: [EMAIL PROTECTED] 2008-10-04 16:56 Sänd svar till "Borland's Delphi Discussion List" <[email protected]> Till "Borland's Delphi Discussion List" <[email protected]> Kopia Ärende RE: GUI-questions > On Friday, October 03, 2008 5:31 PM, Jesper Stenlund wrote: > Subiect: GUI-questions > > Hi all > > I have a program that originally was created in -98 with Delphi 3 (on > Windows NT) > Since then we have moved from Delphi 3 to Delphi 5 and now Delphi 2006 > (we > will soon upgrade to D2009) and the OS has been upgraded to XP. > > But the program still looks the same as it did in -98. No > "XP-look-and-feel" at all. > Now we want to upgrade the GUI to look like a real XP-program. > That includes everything from menus to buttons and now I have a couple > of > questions on how to do this. > > 1. How can I get a menu that looks like the one in Microsoft Word or > the > one in Delphi itself? My menu is still grey and rather ugly compared to > Delphi's. You'll need to use "ActionBars" and "ActionLists" to get the look-and-feel for the menus. Once you add those to your application you'll be able to make them customizable! If you don't want to use Actions you'll need to look into 3rd party components for the look. I myself find the Actions paradigm difficult to use for my applications. To get the look-and-feel I'm using standard menus at design-time and I'm using a smart procedure that turns those standard menus into ActionBars at run-time (so I can avoid 3rd party components). If you only do the usual stuff with menus, you'll find Actions easy to use. I find them difficult to use because most of my applications have at least one dynamic menu (a menu that gets created at run-time based on configuration options). > 2. I have tried the "XP-manifest" component but it seems that certain > components don't repaint themselves in XP-way. > The background colour of the component is still grey instead of the > more > white colour that is on the other components. > The background colour of the components is usually set to clBtnFace. What's not rendered in the expected color? Is it a control (a Button) or is it a panel? If it's a button you'll need to replace it with a button from the Standard or Advanced page (standard TButton or an TBitBtn). If it's a panel that doesn't get the XP Dialog look, I don't know how you can easily fix it. I made a TPanel descendent that has an property to select the kind of XP theaming drawing to apply to it. I can place that panel on any form and give it the XP Dialog look (the whitish background). -- Cosmin Prund _______________________________________________ Delphi mailing list -> [email protected] http://lists.elists.org/cgi-bin/mailman/listinfo/delphi _______________________________________________ Delphi mailing list -> [email protected] http://lists.elists.org/cgi-bin/mailman/listinfo/delphi

