Re: FavFolder GUI dialog
Posted: 16 Mar 2015 15:17
here's another version: you can swap locations 1 and 2 now. [Only the xys was changed this time]
Forum for XYplorer Users and Developers
https://www.xyplorer.com/xyfc/
My thoughts exactly! ... err, wrong quotationStef123 wrote:Thank you. You seem to be reading my mind,
Stef123 wrote:when turning DUAL off with the dialog open, it sometimes took another go-around to keep the wanted side and ditch the other one. Swapping sides on the dialog itself takes care of that.
That's not my button to fix. Don owns that. Privately. In his source safe. Not allowing us to so much as touch it.Cancel would be a more fitting name for the Close-button imo. It sits right where you expect OK to be, so if don't press ENTER but use the mouse instead
That shouldn't happen. I swap panes to get the path of the inactive one, but swap back immediately! Just see the #802's near the top of the xys.The active pane loses its focus when running the script. No big deal. Just wondering if you could activate the same pane again that was active at the outset.
Code: Select all
$favLoc1 = replace(replace(tab('get', 'term'), '<', '<'), '>', '>');
#802;
$favLoc2 = replace(replace(tab('get', 'term'), '<', '<'), '>', '>');
#802;Code: Select all
//$favLoc1 = replace(replace(tab('get', 'term'), '<', '<'), '>', '>');
$favLoc1 = replace(replace(get('path', a), '<', '<'), '>', '>');
//#802;
//$favLoc2 = replace(replace(tab('get', 'term'), '<', '<'), '>', '>');
$favLoc2 = replace(replace(get('path', i), '<', '<'), '>', '>');
//#802;No problem as long as I leave my mouse alone and operate the dialog with TAB and SPACE and RETURN. When using the mouse, however, the very standard looking CLOSE button is too irresistible to not click on it. Maybe you could make the OK button bigger, way bigger? To outsize close, to make users think before discarding the dialog without save. Could you intercept close and wedge in the OK function just before it closes?SammaySarkar wrote:That's not my button to fix. Don owns that.Cancel would be a more fitting name for the Close-button imo.
Weird... [ed] hey, go back to the #802 method and try putting wait 1; (or wait 10; or wait 100;) after the first #802;Stef123 wrote:Thanks for the hint. I replaced those 2 lines.
When I step through the script the active pane remains the same, just as you said it would. Without stepmode, however, this is not case. Focus gets lost to the other pane. Each and every time. No problem, though, it's just a tab away, just wondering ...![]()
Sure. Find #submit {position:absolute;right:6px;bottom:6px;height:24px;width:24px} and set "width" to whatever size you want, or a percentage: width:80%Stef123 wrote:Maybe you could make the OK button bigger, way bigger? To outsize close, to make users think before discarding the dialog without save.
Well, i tried and it made XY mad.Stef123 wrote:Could you intercept close and wedge in the OK function just before it closes?