unable to select an item in cxImageComboBox1 - delphi

I added 3 items to cxImageComboBox1.
Assigned ImageList1 for the images.
Looks like this :
At runtime it displays images correctly. However only the first image (1) can be selected. I can not select the '2' or '3' :
Why wont it allow me to make the selection ? I do not understand.
Also it wont allow me to set the ImageIndex to -1 so it displays empty at runtime.

You only set the descriptions. Try also setting the values.

You must make unique value for every Items (Set Value 1,2,3)

Related

Bartender label print preview only displays one label

Hi I have setup two labels using same SQL statement to retrieve data and have multiple records inserted to the DB.
One label when and id is passed for the print preview it only shows one record. The same id when passed to the other label it previews all the labels.
Generic_old.btw displays all the 2 labels in preview,
whereas,
Generic.btw only displays only the 1st label
I cant seem to identify whats wrong here.
Since Bartender can see the two records in the database it looks to me you are not using the correct setting for Queried Records. You can find this setting in the printscreen (File ==> print)almost at the bottom under "Record selection". I think your current setting is on "first record only" or "selected" and you should change it to "All".

Delphi 10.1 Berlin Fast Report - Show Multiple Records in One Page

Below is the design of my report.
When clicking the preview button, it shows one record every page.
How to make it display multiple records until the page is fully occupied, and then the next record will be on the next page? I want something like the image below.
Looks like you have set the StartNewPage property flag on your MasterData1.
Click that band with the righ button and uncheck the Start New Page of its Menu.
Instead of defining Report DataSet, define MasterData1 DataSet.
Right click on MasterData1, Edit... select the your DataSet and set the value of Number of Records to 0. Probably this property is set with 1.

TListBoxItem.ItemData.Details doesn't work

My situation is illustrated/explained with this screenshot :
http://www.evolutiongraph.fr/chevereto/images/2015/02/11/Capture.jpg
In my ListBox, I want to display a text (titles), and details (articles) ; but it doesn't work : titles work perfectly, but ItemData.Details is not displayed, I don't know why :/
The variable desc is not empty, I've tested it. ItemData.Details still not appear.
Help me please :)
You need to modify the TListBoxItem's StyleLookup to one which supports showing details. For example, listboxitembottomdetail. Keep in mind this property is changed on an item-by-item basis, not necessarily the entire list. You can specify this to be the default item style (for all new items) by modifying TListBox.DefaultItemStyles.ItemStyle rather than each individual item.

How to create pass with custom design?

Have a pass with Store Card style. How can I add 2nd row with data and change the label position (label should be below the value)? When I add second item in secondaryFields array it inserts the item in the 2nd column, the same row. Thanks.
Image as example:
If you have a look here "Pass Style Sets the Overall Visual Appearance":
https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/PassKit_PG/Chapters/Creating.html#//apple_ref/doc/uid/TP40012195-CH4-SW45
It gives an overview of what fields are allowed on the different pass types.
To achieve what you describe you want to make the pass a generic pass and specify both secondary and auxiliary fields.
To switch the label to be below the data, you need to flip the values when specifying them, so set label ="Gold" and the value="Level". However it will still have the same formatting (the top one will still be smaller text)

TcxGrid column is hidden when dragging to group row

I have two seemingly identical TcxGrids bound to two different tables. On one grid, when the column header is dragged and dropped to the group panel, a large X appears above the column being dragged, when it is dropped the column is immediately hidden. On the other grid a big circle with a line through it shows and it cannot be dropped on to the group panel. The Options.Grouping for both columns is false. Why the difference in the two behaviors ? I cannot see a property setting difference but I'm sure there must be one somewhere that causes this behavior. What property is it ?
John
Inspect the properties of the column which won't group in the Object Inspector. Probably, you'll find that its DisableGrouping property is set to True. If it is, set it to False. If that doesn't work, a) I'll take this answer down and b) edit your q to add the contents of your DFM.
There are two places in DX grid that control the ability to group columns. First is at the grid level and it takes precedent over the columns' individual Options.Grouping settings. Second is at the column level. Look at .OptionCustomize.ColumnGrouping. It may be set to False.

Resources