Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: ItemText in ListView is always "= 76". Why?


This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 4 - Last Post: Jan 1, 2018 9:12 AM Last Post By: abay rakhmet
abay rakhmet

Posts: 25
Registered: 7/20/16
ItemText in ListView is always "= 76". Why?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 1, 2018 4:31 AM
Delphi 25.0.29039.2004

1. Open sample project from C:\Users\Public\Documents\Embarcadero\Studio\19.0\Samples\Object Pascal\Multi-Device Samples\User Interface\ListView\ListViewMultiDetailAppearance\

2. Right click on ListView > click Toggle DesignMode > select and enlarge ItemText' Height from 76 to 80 (just for example)

3. Save changes, close project and reopen

4. Now check Height of ItemText

Little screencast: https://i.imgur.com/MVBVNwN.gif

So how to change it properly?

p.s.
As you can see in screencast a SampleListViewMultiDetailAppearancePackage.dpk is already installed.

Markus Humm

Posts: 5,113
Registered: 11/9/03
Re: ItemText in ListView is always "= 76". Why?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 1, 2018 5:01 AM   in response to: abay rakhmet in response to: abay rakhmet
Am 01.01.2018 um 13:31 schrieb abay rakhmet:
Delphi 25.0.29039.2004

1. Open sample project from C:\Users\Public\Documents\Embarcadero\Studio\19.0\Samples\Object Pascal\Multi-Device Samples\User Interface\ListView\ListViewMultiDetailAppearance\

2. Right click on ListView > click Toggle DesignMode > select and enlarge ItemText' Height from 76 to 80 (just for example)

3. Save changes, close project and reopen

4. Now check Height of ItemText

Little screencast: https://i.imgur.com/MVBVNwN.gif

So how to change it properly?

p.s.
As you can see in screencast a SampleListViewMultiDetailAppearancePackage.dpk is already installed.


There is some "PlatformDefault" property for many components available,
maybe (I'm not sure) it is responsible for this?

Greetings

Markus
abay rakhmet

Posts: 25
Registered: 7/20/16
Re: ItemText in ListView is always "= 76". Why?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 1, 2018 5:12 AM   in response to: Markus Humm in response to: Markus Humm
Markus Humm wrote:
Am 01.01.2018 um 13:31 schrieb abay rakhmet:
Delphi 25.0.29039.2004

1. Open sample project from C:\Users\Public\Documents\Embarcadero\Studio\19.0\Samples\Object Pascal\Multi-Device Samples\User Interface\ListView\ListViewMultiDetailAppearance\

2. Right click on ListView > click Toggle DesignMode > select and enlarge ItemText' Height from 76 to 80 (just for example)

3. Save changes, close project and reopen

4. Now check Height of ItemText

Little screencast: https://i.imgur.com/MVBVNwN.gif

So how to change it properly?

p.s.
As you can see in screencast a SampleListViewMultiDetailAppearancePackage.dpk is already installed.


There is some "PlatformDefault" property for many components available,
maybe (I'm not sure) it is responsible for this?

Greetings

Markus

I don't think so because for the Item Detail 1/2/3 all changes are saves correctly - problem with ItemText only :(
Markus Humm

Posts: 5,113
Registered: 11/9/03
Re: ItemText in ListView is always "= 76". Why? [Edit]  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 1, 2018 8:43 AM   in response to: abay rakhmet in response to: abay rakhmet
Am 01.01.2018 um 14:12 schrieb abay rakhmet:
Markus Humm wrote:
Am 01.01.2018 um 13:31 schrieb abay rakhmet:
Delphi 25.0.29039.2004

1. Open sample project from C:\Users\Public\Documents\Embarcadero\Studio\19.0\Samples\Object Pascal\Multi-Device Samples\User Interface\ListView\ListViewMultiDetailAppearance\

2. Right click on ListView > click Toggle DesignMode > select and enlarge ItemText' Height from 76 to 80 (just for example)

3. Save changes, close project and reopen

4. Now check Height of ItemText

Little screencast: https://i.imgur.com/MVBVNwN.gif

So how to change it properly?

p.s.
As you can see in screencast a SampleListViewMultiDetailAppearancePackage.dpk is already installed.


There is some "PlatformDefault" property for many components available,
maybe (I'm not sure) it is responsible for this?

Greetings

Markus

I don't think so because for the Item Detail 1/2/3 all changes are saves correctly - problem with ItemText only :(

Ok, but maybe esp. ItemText has some "restrictions" like this.
Means: have you checked whether there is such a property?

Greetings

Markus
abay rakhmet

Posts: 25
Registered: 7/20/16
Re: ItemText in ListView is always "= 76". Why?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 1, 2018 9:12 AM   in response to: abay rakhmet in response to: abay rakhmet
abay rakhmet wrote:
Delphi 25.0.29039.2004

1. Open sample project from C:\Users\Public\Documents\Embarcadero\Studio\19.0\Samples\Object Pascal\Multi-Device Samples\User Interface\ListView\ListViewMultiDetailAppearance\

2. Right click on ListView > click Toggle DesignMode > select and enlarge ItemText' Height from 76 to 80 (just for example)

3. Save changes, close project and reopen

4. Now check Height of ItemText

Little screencast: https://i.imgur.com/MVBVNwN.gif

So how to change it properly?

p.s.
As you can see in screencast a SampleListViewMultiDetailAppearancePackage.dpk is already installed.


I've found a solution:

1. Open C:\Users\Public\Documents\Embarcadero\Studio\19.0\Samples\Object Pascal\Multi-Device Samples\User Interface\ListView\ListViewMultiDetailAppearance\MultiDetailAppearanceU.pas and change "76" in line #101 to another value ("120" in my case): https://i.imgur.com/TGdtIwR.png

2. Save and close

3. Open SampleListViewMultiDetailAppearancePackage.dpk - uninstall and install it again


:facepalm:

Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02