AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

DevExpress Ribbons

Offene Frage von "Zend"
Ein Thema von Zend · begonnen am 16. Nov 2011 · letzter Beitrag vom 16. Nov 2011
Antwort Antwort
Zend

Registriert seit: 5. Mär 2010
Ort: Braunschweig
17 Beiträge
 
Delphi 7 Professional
 
#1

DevExpress Ribbons

  Alt 16. Nov 2011, 21:51
Hallo,

ich habe heute mal die Ribbons von DevExpress ausprobiert und merke, wie sich langsam eine Enttäuschung anbahnt.

Selbst nach 1 1/2 Stunden rumprobieren ist es mir nicht gelungen einen "ApplicationButton" anzeigen zu lassen. Ich kann die Eigenschaften setzen wie ich will, es erscheint einfach keiner. Eine Doku zu den Komponenten gibt es auch nicht - das Einzige was ich gefunden habe ist eine .HLP-Datei die man unter Windows 7 natürlich nicht mehr öffnen kann.

Des Weiteren habe ich die "Context"-Tabs ausprobiert. Also diese, die nur erscheinen wenn bestimmte Voraussetzungen erfüllt sind. Die Context-Tabs sind dann speziell farblich markiert. Diese sehen bei mir anders aus als in der Demo. So geht in der Demo der Farbverlauf bis in die Titelleiste hinein. Bei mir hingegen ist die Einfärbung nur im Ansatz zu erkennen.

Hat jemand eine Idee wie ich die beiden Sachen beheben kann oder sollte man lieber auf die TMS Ribbons setzen?

Grüße
zend
  Mit Zitat antworten Zitat
Benutzerbild von Stevie
Stevie

Registriert seit: 12. Aug 2003
Ort: Soest
4.008 Beiträge
 
Delphi 10.1 Berlin Enterprise
 
#2

AW: DevExpress Ribbons

  Alt 16. Nov 2011, 22:09
Eine Doku zu den Komponenten gibt es auch nicht - das Einzige was ich gefunden habe ist eine .HLP-Datei die man unter Windows 7 natürlich nicht mehr öffnen kann.
hlp Dateien kann man sehr wohl auf Windows 7 öffnen (Patch vorausgesetzt). Die Hilfe zu den DevExpress Komponenten ist imo durch die Kombination von Dokumentation (Hilfedateien), Demos und offiziellem Forum / Knowledgebase fast unübertroffen.
Stefan
“Simplicity, carried to the extreme, becomes elegance.” Jon Franklin

Delphi Sorcery - DSharp - Spring4D - TestInsight
  Mit Zitat antworten Zitat
Benutzerbild von Bummi
Bummi

Registriert seit: 15. Jun 2010
Ort: Augsburg Bayern Süddeutschland
3.470 Beiträge
 
Delphi XE3 Enterprise
 
#3

AW: DevExpress Ribbons

  Alt 16. Nov 2011, 22:20
Die Ribbons sind komplex und erfordern Einarbeitung, vor allen wenn man das ganze später auch dynamisch handeln möchte, ähnlich wie bei den cxGrids. Dafür sind die Komponenten IMHO grundsolide und sauber und wenn man drin ist möchte man anderes eigentlich nicht mehr verwenden.
Thomas Wassermann H₂♂
Das Problem steckt meistens zwischen den Ohren
DRY DRY KISS
H₂ (wenn bei meinen Snipplets nichts anderes angegeben ist Lizenz: WTFPL)
  Mit Zitat antworten Zitat
DSCHUCH

Registriert seit: 6. Jun 2007
Ort: Dresden
185 Beiträge
 
Delphi 10.2 Tokyo Enterprise
 
#4

AW: DevExpress Ribbons

  Alt 16. Nov 2011, 22:25
hallo zend,

also die devexpress ribbons sind sehr gut. wie alles von devexpress extrem anpassbar und somit auch sehr komplex.
die hilfe ist ausserdem auch hervorragen. ich weiß ja nicht wie und wo du gesucht hast, sie ist in jedem format verfügbar und integriert sich in den microsoft document explorer, genau wie die delphi hilfe.

ich bin aber jetzt auch erstmal beinah verrückt geworden. der trick liegt darin, das du für den ribbon button zwingend auch ein quickaccesstoolbar benötigst. das ist ein property am TdxRibbon. (und steht natürlich nicht in der hilfe... ^^)


Zitat:
Visually, the menu is divided into two panels:

The main menu (left panel).

The extra pane that contains a list of shortcuts, such as recently used files.


Main Menu Customization

To build a new menu, do the following:

1. Make certain that the bar manager component is on a form, and the required menu items are defined. For details, see the Customization Form topic.

2. Drop the Ribbon Application Menu control from the Component Palette's ExpressBars page onto the form. The bar manager will be automatically linked to the menu's BarManager property.

3. In the Object Inspector, click the ellipsis button next to the menu's ItemLinks property to invoke the Customization Form and the menu designer. Drag menu items from the Customization Form into the menu designer.



4. Select the Ribbon control and bind the newly created menu to the Ribbon Application Button via the Ribbon's ApplicationButton.Menu property.


Extra Pane Customization

The list in the menu's right panel is populated via the menu's ExtraPane.Items property. To inform end-users about this list's purpose, provide it with a header using the menu's ExtraPane.Header property.

To respond to list item clicks, handle the menu's ExtraPane.OnItemClick event.


Related Information

Ribbon Control
Ribbon Quick Access Toolbar
Ribbon Status Bar
Ribbon Tab
Ribbon Tab Group
Ribbon User Interface
TdxBarApplicationMenu Object
TdxBarApplicationMenuExtraPane Object


Copyright © 1998-2010 Developer Express Inc. ALL RIGHTS RESERVED
Miniaturansicht angehängter Grafiken
help.jpg  
  Mit Zitat antworten Zitat
Zend

Registriert seit: 5. Mär 2010
Ort: Braunschweig
17 Beiträge
 
Delphi 7 Professional
 
#5

AW: DevExpress Ribbons

  Alt 16. Nov 2011, 22:36
Vielen Dank. Das klappt. Vielleicht war ich auch heute einfach nur zu Müde. Die HLP-Datei kann ich jetzt auch öffnen. Die Integration in Delphi-Hilfe hat aber scheinbar nicht geklappt.

Ein Probem hab ich allerdings noch: Diese Quick Access Toolbar ist bei Word / in der Ribbon-Demo in die Titelleiste integriert. Bei mir allerdings hab einen unschönen Effekt und zwar wird zwischen Ribbon und Titelleiste eine extra Zeile eingefügt. Ich habe auch probiert die vom von TDxRibbonForm abzuleiten, dies hatt aber leider keine Abhilfe geschafft.
Miniaturansicht angehängter Grafiken
ribbbon.png  

Geändert von Zend (16. Nov 2011 um 22:51 Uhr)
  Mit Zitat antworten Zitat
DSCHUCH

Registriert seit: 6. Jun 2007
Ort: Dresden
185 Beiträge
 
Delphi 10.2 Tokyo Enterprise
 
#6

AW: DevExpress Ribbons

  Alt 16. Nov 2011, 22:52
deine form hat noch den standard windows style. siehst du an der blauen-standard-titelleiste. dieser kann ins ribbon integriert werden.

suche mal in der hilfe nach tdxRibbonForm. effekt siehe bild im anhang.

viele grüße.

Zitat:

Ribbon Form

TdxRibbon and TdxRibbonStatusBar controls are only a part of the window's non-client area.

The Microsoft® Office® 2007 UI guidelines contain requirements that developers must follow when implementing different portions of the non-client area when using a Ribbon. As such, you must develop numerous routines that paint the form's elements with the visual appearance and dimensions specified by the license guidelines.

As you can imagine, the TdxRibbonForm class takes care of these requirements. To benefit from this full-featured form:

Add the dxRibbonForm unit to the 'uses' clause.

Derive your form from TdxRibbonForm.

Drop TdxRibbon and TdxRibbonStatusBar (if needed) controls onto the form and configure them as required.

Activate the Ribbon's SupportNonClientDrawing option.

The following image shows a form painted using a standard style (the Ribbon's SupportNonClientDrawing property is False) and a Ribbon style (the Ribbon's SupportNonClientDrawing property is True).




In addition to the provided capabilities, the TdxRibbonForm class also allows you to customize the height of the Ribbon Form's title bar. To do this, override the TdxRibbonForm.GetCaptionHeightDelta method. To learn how to accomplish this task, refer to the How to Change the Height of the Ribbon Form's Title in Code help topic.


At runtime, if the Ribbon control's SupportNonClientDrawing property is set to True, part of the Ribbon displays a Ribbon Form's non-client area. By default, a Ribbon Form is automatically adjusted at runtime to retain the control layout specified at design time. As a result, the form is vertically resized to preserve control offsets relative to the Ribbon's and form's bottom edges. Use the form's AdjustLayoutForNonClientDrawing property to customize this behavior.


To allow a Ribbon control to correctly paint a Ribbon Form's non-client area on itself, the Ribbon control should always be the topmost control on the form. To ensure this, when you programmatically create a Ribbon control, set the Ribbon Form's RibbonAlwaysOnTop property to True. Note that this property is available only in Delphi/C++ Builder 2006 and later.
Miniaturansicht angehängter Grafiken
help.jpg  
  Mit Zitat antworten Zitat
Zend

Registriert seit: 5. Mär 2010
Ort: Braunschweig
17 Beiträge
 
Delphi 7 Professional
 
#7

AW: DevExpress Ribbons

  Alt 16. Nov 2011, 22:55
Super! SupportNonClientDrawing war das Stichwort. Danke an alle . Scheint ja doch ihr Geld wert zu sein, die Komponente.

Jetzt geh ich aber erst mal ab in die Falle. Hab auf jeden Fall erst einmal Ribbon, wie ich es mir vorgestellt habe.

Gute Nacht!
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 13:47 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz