[text control] fix in get_value + fix to global cur_dialog property