Halaman

Minggu, 26 Mei 2013

[Delphi] DevExpress Ribbon - how to

Since it's is a rather sparse documentation, i think i will try to post how to add a Ribbon Control to the Delphi XE application

  1. Open Delphi!
  2. Create a new VCL Form Application
  3. Open your main pas file
  4. Change the ancestor for the TForm, to TdxCustomRibbonForm
  5. Add the unit dxRibbon
  6. Drop a dxBarManager and then assign it to your dxRibbon
  7. On dxRibbon, right click and then choose Tabs Editor..
  8. Add a TdxRibbonTab, and then highlight that newly created ribbon tab
  9. On you inspector, click on Groups and then click on the ellipsis to create a new Ribbon Tab Group
  10. For the time being, leave it as is..
  11. Double click you dxBarManager, create a new Toolbar
  12. Create a new command and then drop that command to your toolbar
  13. Now let's go back to your previously created Ribbon Tab Group, in the inspector, see the property Toolbar and assign it the toolbar you created on step 11
  14. Okayh, that's one great strong basic, now go wild!
Cheers!