Total Commander Forum Index Total Commander
Форум поддержки пользователей Total Commander
Сайты: Все о Total Commander | Totalcmd.net | Ghisler.com | RU.TCKB
 
 RulesRules   SearchSearch   FAQFAQ   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

QuickView: закрыть по Ctrl-Q

 
Post new topic   Reply to topic    Total Commander Forum Index -> Написание плагинов для Total Commander printer-friendly view
View previous topic :: View next topic  
Author Message
Alextp



Joined: 06 Feb 2005
Posts: 4957

Post (Separately) Posted: Thu Oct 14, 2010 00:27    Post subject: QuickView: закрыть по Ctrl-Q Reply with quote

плагин вызван в QView режиме. Нажимается Ctrl-Q. Как при этом закрыть плагин и вернуть фокус на др. панель?
PostMessage(hLister, wm_keydown, <а тут что?>)
_________________
UniViewer - CudaText - LogViewer
Back to top
View user's profile Send private message
Alextp



Joined: 06 Feb 2005
Posts: 4957

Post (Separately) Posted: Thu Oct 14, 2010 10:09    Post subject: Reply with quote

PostMessage(hLister, wm_keydown, vk_control, 0);
PostMessage(hLister, wm_keydown, Ord('Q'), 0);
закрывает QView, но не переводит фокус на др. панель,
попытка послать vk_tab тоже не дает перевод фокуса.
_________________
UniViewer - CudaText - LogViewer
Back to top
View user's profile Send private message
MVV



Joined: 15 Oct 2009
Posts: 4811
Location: Ростов-Дон

Post (Separately) Posted: Thu Oct 14, 2010 11:32    Post subject: Reply with quote

Думаю, Tab надо посылать уже окну тотала, а не листера. И, кстати, WM_KEYUP тоже хорошо бы посылать после WM_KEYDOWN.
_________________
TCFS2 + TCFS2Tools: Полноэкранный режим и многое другое (обсуждение)
WINCMD.RU: AskParam, CopyTree, NTLinks, Sudo, VirtualPanel…
Back to top
View user's profile Send private message
Alextp



Joined: 06 Feb 2005
Posts: 4957

Post (Separately) Posted: Thu Oct 14, 2010 13:37    Post subject: Reply with quote

Послал
FindWindow('TTOTAL_CMD',nil) vk_tab, down/up. Не помогает(панель не активир-ся). Тому же окну послал Ctrl-Q- QV закрывается
_________________
UniViewer - CudaText - LogViewer
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> Написание плагинов для Total Commander All times are GMT + 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group