Page 2 of 2

Re: cm_100percent -- allow relative changes

Posted: 2022-07-04, 14:10 UTC
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?

Re: cm_100percent -- allow relative changes

Posted: 2022-07-05, 06:13 UTC
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.

Re: cm_100percent -- allow relative changes

Posted: 2022-07-05, 11:37 UTC
by Fla$her
2MVV
Really. Then without TCFS2Tools no way.
I didn't know that the syntax with == is permissible. Thanks for the help! :)

Re: cm_100percent -- allow relative changes

Posted: 2022-10-05, 09:29 UTC
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...