Make 'Set Attributes' window's width resizeable

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Make 'Set Attributes' window's width resizeable

Post by *MVV »

Currently it is very inconvenient to edit string fields in plugins section of attributes dialog, especially if field has units - field width too small to see string.

It would be great to have resizeable window so width of value fields may grow depending on window width.
User avatar
Sombra
Power Member
Power Member
Posts: 814
Joined: 2005-12-27, 22:23 UTC
Location: Zaragoza, Spain

Post by *Sombra »

I can read English, but... I write like Tarzan. (sorry)
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Wow, thanks, there are already some old posts on same topic. :)

But it is sad that nothing has changed last three years...
User avatar
Peter
Power Member
Power Member
Posts: 2068
Joined: 2003-11-13, 13:40 UTC
Location: Schweiz

Post by *Peter »

I want to support this thread with its nearly five years old sub-sub-threads.

Today I tried to use the plugin "Jpeg comment" with its "Exif_Thumbnail_JPEGInterchangeFormat"-field - it's not funny to work with that long strings in the small dialogue :cry: :cry:

Peter
TC 10.xx / #266191
Win 10 x64
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Would be great to see this quick-to-realize feature in new TC version. It is really quite easy to do, only set attribs dialog resizeable and set correct dock options for nested containers (and minimum size constraint). As I see, when I resize TScrollBox component, plugin value field is resized automatically so all is ok here, only need to make container resizeable.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

ghisler,
Any chance to see this in 8.50? :)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50873
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Unfortunately it's not so quick to realize - currently I'm so overloaded with bugfixing (even minor problems take forever) that I don't have the time to add any new features, sorry.
Author of Total Commander
https://www.ghisler.com
User avatar
MaxX
Power Member
Power Member
Posts: 1189
Joined: 2012-03-23, 18:15 UTC
Location: UA

Post by *MaxX »

2ghisler(Author)
May be later? In TC 8.51 or 8.52...
Ukrainian Total Commander Translator. Feedback and discuss.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

ghisler,
It requires only little form edition, so it shouldn't take much time. Mayb not now but a bit later, but it would be much more comfortable to have larger plugin fields.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50873
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I also have to consider things like minimum size, right to left text etc.
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Minimum size:

Code: Select all

	private
		procedure WMGetMinMaxInfo(var Msg: TWMGetMinMaxInfo); message WM_GETMINMAXINFO;

procedure TForm1.WMGetMinMaxInfo(var Msg: TWMGetMinMaxInfo);
begin
	Msg.MinMaxInfo^.PTMinTrackSize.X := ...;
	Msg.MinMaxInfo^.PTMinTrackSize.Y := ...;
end;
Here a simple sample of resizeable attributes dialog. It allows both resizing width and height (to se more plugin fields at once).

Are there any RTL problems that may arise when you just change component size?
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Even new select duplicates dialog is resizeable, it would be very useful to have resizeable attributes dialog too (PNG+CAB). :)

Hm, the most difficult may be to move all '>>' and '+' buttons of plugin fields...
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

I noticed that TC is already able to stretch edits in scroll box when scroll box is resized, so we already have all we need to make entire dialog resizeable. We only need to set dialog style and to to resize scroll box on window resize!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50873
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Yes it can, see e.g. the custom column confirmation dialog. But it's all done manually in the FormResize method.
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

I mean that scroll box in attributes dialog already supports nice resizing (and value field is increased when it is increased) so the only missing thing is dialog resize code that will resize scroll box.
Post Reply