How do I create a workbookview using Spreadsheetgear with code. I do not want to use the workbookview control on the form, I want to create it dynamically, then place it on a tab control all by code.
You create a workbook view object and then add it to the tab page controls.
SpreadsheetGear.Windows.Forms.WorkbookView workbookView1 = new SpreadsheetGear.Windows.Forms.WorkbookView();
tabControl1.TabPages[0].Controls.Add(workbookView1);
Related
I'm using Delphi XE8.
I want to create a tabbed control, with each tab having its own panel. I tried TTabControl, for which I can create different tabs. But when I drop a component on the control with the first tab active, it remains visible when I change the tab (TabIndex). How can I in design time create different layouts for the different tabs? Or am I using the wrong component?
You are using the wrong component. You need to use TPageControl. Each page of a page control has its own distinct set of controls. From the documentation:
TPageControl is a set of pages used to make a multiple page dialog
box.
Use TPageControl to create a multiple page dialog or tabbed notebook.
TPageControl displays multiple overlapping pages that are TTabSheet
objects. The user selects a page by clicking the page's tab that
appears at the top of the control. To add a new page to a TPageControl
object at design time, right-click the TPageControl object and choose
New Page.
To create a tabbed control that uses only a single body portion
(page), use TTabControl instead.
I have an separate Add button (neither on toolbar, nor on grid) and I want to open a popup window (having some fields) after clicking this button in order to create a new record. I have a look at the Kendo Demo pages, but all the samples use grid's or toolbar's Create button. Instead of them, a need a sample with a separate button. Any sample please?
Update: I want to create a listview as shown below instead of grid:
If you call dataGrid.addRow() method and edit mode is set to "popup", Popup window will be displayed.
Look at this dojo
Trying to get a new style on a ComboBox in FireMonkey (XE2).
But for some odd reason I cannot get the text of a ListBoxItem to show.
What I've tried is the following.
Create a new FireMonkey HD Application.
On the form I've added a ComboBox.
Right click on the ComboBox and select 'Edit custom style'
There I've added the following components
while the original one consist out of the following components
Now it seems to me that I need the TContent object (but I can't seem to find it in the toolpallete)
How can i bind my Text object to the strings that are placed in my ComboBox?
Any pointers are very welcome.
FireMonkey doesn't use a TText object to display the text. Instead it creates a copy of the list box item within the TContent (if I remember correctly).
As you've worked out you need to add a TContent to your form. The easy way to do this is to
go back to the form,
right click and select View as Text
Find the TStyleBook object and add a TContent at the appropriate point (the format for this should be obvious from the rest of the file).
No need to add any properties - defaults will be used the first time.
Right click, View as Form.
Go back into the style editor and edit away.
At design-time inside the IDE, is there a quick 'n' easy trick to automatically generate actions from several menu items and then apply these actions back to the menu items?
The drop down of the action inside the Object Inspector allows you to create a new action which will automatically be connected, but you have to set the actions properties manually and implement the event handles separately.
I had a TActionMainMenuBar in a form and I want to customize the preferences in runtime, is possible show the same dialog displayed in desgin time, but in runtime?
You can use the TCustomizeDlg component
Drop the TCustomizeDlg component to your form
Set the ActionManeger property value to your ActionManager component
Call the Show method of the TCustomizeDlg component
or Also you can add a TCustomizeActionBars standard action to your Menu.