cm_100percent -- allow relative changes

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

Re: cm_100percent -- allow relative changes

Post by *Fla$her »

MVV
For L_isActive we need TCFS2Tools.dll, what won't be a quick solution for a beginner.
Still, I would like to understand why my command does not work? Something in this part (msg(1074,1000)*10?10:-10) wrong?
Overquoting is evil! 👎
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Re: cm_100percent -- allow relative changes

Post by *MVV »

Fla$her wrote: 2022-07-04, 14:10 UTCFor L_isActive we need TCFS2Tools.dll, what won't be a quick solution for a beginner.
Well, TCFS2Tools is required for both set_separator(x) (which is equal to msg($0433, 65562, x)) and sepPos (which is equal to msg($0433, 65561)) anyway. :)
Still, I would like to understand why my command does not work? Something in this part (msg(1074,1000)*10?10:-10) wrong?
Hm, what should this expression do? You multiply 1 or 2 by 10 and check for zero, there is no sense to multiply. Anyway, if you want to get 10 or -10 depending on active panel, you should use msg($433, 1000) == 1 ? 10 : -10. But then you still need set_separator and sepPos.
Fla$her
Power Member
Power Member
Posts: 2244
Joined: 2020-01-18, 04:03 UTC

Re: cm_100percent -- allow relative changes

Post by *Fla$her »

2MVV
Really. Then without TCFS2Tools no way.
I didn't know that the syntax with == is permissible. Thanks for the help! :)
Overquoting is evil! 👎
User avatar
funkymonk
Senior Member
Senior Member
Posts: 410
Joined: 2013-12-04, 09:56 UTC

Re: cm_100percent -- allow relative changes

Post by *funkymonk »

Code: Select all

28.09.22 Added: cm_50percent now accepts a parameter: It adds the value (in percent) to the width of the active panel. Example: cm_50percent -10 reduces active panel width by 10% (use cm_100percent with parameter for absolute values) (32/64)
Great! Thank you!

As pointed out in https://www.ghisler.ch/board/viewtopic.php?p=421704#p421704, cm_50percent can not yet be used in combination with other commands (comma separated). Maybe this can be added/fixed...
Post Reply