Project

General

Profile

Actions

Bug #3622

closed

Dialog get incorrect size after restore

Added by westor (GR) over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Scripting
Target version:
Start date:
07/24/2017
Due date:
% Done:

0%

Estimated time:
Operative System:
All
Regression:
No

Description

Hello,

There is an dialog GUI bug, it seems that the dialog uses unknown sizes when get minimized, if you try to restore it back then
you are gonna see that the sizes are incorrect.

Example Code:

/dialog -md example10 example10

alias -l _owner return WESTOR
alias -l _bel return ->
alias -l _lang return 0

alias _input {
  if (!$1) || ($isid) { return }
  if ($1 == ok) { .timer -ho 1 0 !noop $input($replace($3-,@newline@,$crlf),ouidbk $+ $iif($2 && $2 isnum,$2,0),$upper($_owner) $iif($_lang(16),$v1,Module Manager) $_bel $iif($_lang(19),$v1,OK)) }
  if ($1 == error) { .timer -ho 1 0 !noop $input($replace($3-,@newline@,$crlf),houdbk $+ $iif($2 && $2 isnum,$2,0),$upper($_owner) $iif($_lang(16),$v1,Module Manager) $_bel $iif($_lang(20),$v1,Error)) }
  if ($1 == warn) { .timer -ho 1 0 !noop $input($replace($3-,@newline@,$crlf),woudbk $+ $iif($2 && $2 isnum,$2,0),$upper($_owner) $iif($_lang(16),$v1,Module Manager) $_bel $iif($_lang(21),$v1,Warn)) }
}

dialog example10 {
  title "testing dialog" 
  size -1 -1 233 208
  option dbu disable
  button "Close this window", 2, 61 91 117 16, ok default
}

ON *:DIALOG:example10:*:*: {
  if ($devent == init) {
    dialog -i $dname
    echo -s Starting...
    _input ok 10 Testing message here.
    echo -s The input dialog closed, and the dialog is minimized, try to activate it manually now.
  }
}

Example Video: http://a.pomf.cat/cpdhws.mp4

- Thanks!

Actions #1

Updated by Per Amundsen over 6 years ago

  • Status changed from New to Resolved
Actions #2

Updated by Per Amundsen over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF