Jump to content
Sign in to follow this  
JackT

Firemonkey Style Problems ( editstyle )

Recommended Posts

I am trying to make a custom style to apply a uniform company themed UI style across all the components in the firemonkey desktop application.

 

I am starting with WindowModernUI and then modifying it by copying a style entry in the style book such as editstyle and pasting it to create a second entry. 

I then change the style name of the 2nd entry to editstyle2 and tweak it until it looks correct for the new style.

 

However even if I create a copy of editstyle and rename it to editstyle2 without doing any tweaking, when I apply this style to a TEdit box back in my test form I can no longer vertically resize the editbox,

although horizontal resizing works just fine.

 

I don't know what I am doing wrong or if there is some sort of bug ?

 

Version - Delphi 12.3 with April patch

 

 

Thanks For Any help in advance

 

 

Jack T

Share this post


Link to post

I just cracked the problem. For some reason editstyle has a FixedHeight of 32 which does not affect the original editstyle.

 

If I set fixed height height in the duplicate ( editstyle 2) to zero it then begins to behave as expected.

 

However I don't know why the original editstyle behaves differently.

 

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×