auto split-screen

What new features you would like to see in next QM version?

auto split-screen

Postby r0n on Tue Jul 07, 2015 8:17 am

A function that would allow QM to automatically go into split-screen (just like [CTRL] + [T] ), when a function begins with "/macname".
Immediately after going to split-screen mode it would open "/macname" in the right-side.

As soon as the user clicks on another item within the tree it goes back to single-screen (unless the clicked item has a "/macname" as a first line.)

I think I could make this myself but I do not know how to:
- Trigger on tree-item click
- How to detect if QM is in split-screen mode (if splitscreen then toggle splitscreen off)
r0n
Active Member
 
Posts: 488
Joined: Tue Jul 24, 2012 5:47 am

Re: auto split-screen

Postby Gintaras on Tue Jul 07, 2015 8:54 am

Function qm_item_open_in_right_or_bottom_code_editor     ?
Trigger !n"" "QM_Editor" /QM     ?
QMITEM q
int itemId=qmitem("" 0 q 1); if(!itemId) ret

int hwndSecondaryEditor=id(2211 _hwndqm)
int isSplit=IsWindowVisible(hwndSecondaryEditor)
if(isSplit) int isSecondaryActive=(hwndSecondaryEditor=GetQmCodeEditor)

out F"isSplit={isSplit}, isSecondaryActive={isSecondaryActive}, QM item={q.name}"

int menuCmd
sel q.name 2
,case "* (right)" menuCmd=33546
,case "* (bottom)" menuCmd=33547
,case "* (primary)" menuCmd=33545
,case "* (primary&right)" menuCmd=33548
,case "* (primary&bottom)" menuCmd=33550
,case else
,if(isSplit) menuCmd=33545 ;;primary
if(!menuCmd) ret

int hwndMenuCommandReceiver=id(2213 _hwndqm)
men menuCmd hwndMenuCommandReceiver

Gintaras
Site Admin
 
Posts: 10324
Joined: Thu Dec 19, 2002 7:36 pm
Location: Lithuania

Re: auto split-screen

Postby r0n on Tue Jul 07, 2015 1:39 pm

THANK YOU!!!
r0n
Active Member
 
Posts: 488
Joined: Tue Jul 24, 2012 5:47 am


Return to Wish List

Who is online

Users browsing this forum: No registered users and 1 guest

cron