Bo Peng wrote:
Now I'm here: see png.
But how do I make the menu->view items clickable?
After the first new tab (CTRL-N) they are clickable,
updateMenubar() does not help.
In lyxfunc.C, LFUN_SIWTCH_BUFFER is not processed when there is no
valid buffer. You can move line 422-438 to 355 to solve this problem.
Then, the bigger problem is that lyx wll crash if you actually try to
switch to a non-existence buffer in this window. (This is why my
bookmark feature crashes).
So, the real problem is to allow SWITCH_BUFFER to switch to a buffer
that is opened in another window. Can you do it?
We need to pass the LyXView id to the LFUN.
Abdel.