I'm still working on the DBGP plugin.. A few questions.
1. Is there an easy way to insert a separator line into the plugin's menu? I saw an example where you wait for the WM_CREATE message and then manipulate your plugin's menu... Still haven't been able to get it to work. Any other options?
// code snip
hm := GetMenu(self.NppData.NppHandle);
ModifyMenu(hm, 1, MF_BYCOMMAND or MF_SEPARATOR, 0, 0);
2. Docking... How would my dialog (that is registered with n++ - WM_DMM_REGASDCKDLG) tell N++ that it wants to close itself... If I let Delphi handle the even the docked (or floated) container remains in tact but the content is gone...
3. I cannot figure out how to add toolbar icons to the main toolbar...
Any examples?
4. If I define a custom mark and put it on some line, then close N++ and open it again, the mark is still there, but it is just a normal bookmark mark (yellow...). Any way to make N++ forget the marks that are not "its"?
Best regards..
-Zobo
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Ok.. I found out that I misunderstood some basics...
1. wroking fine now...
2. still on it..
3. gave up on image list and created a resource.. works now.. But there is something odd.. No matter what command ID I use, I always get the second menu item as tooltip...
4. Reading more code...
RE.
-Zobo
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello...
I'm still working on the DBGP plugin.. A few questions.
1. Is there an easy way to insert a separator line into the plugin's menu? I saw an example where you wait for the WM_CREATE message and then manipulate your plugin's menu... Still haven't been able to get it to work. Any other options?
// code snip
hm := GetMenu(self.NppData.NppHandle);
ModifyMenu(hm, 1, MF_BYCOMMAND or MF_SEPARATOR, 0, 0);
2. Docking... How would my dialog (that is registered with n++ - WM_DMM_REGASDCKDLG) tell N++ that it wants to close itself... If I let Delphi handle the even the docked (or floated) container remains in tact but the content is gone...
3. I cannot figure out how to add toolbar icons to the main toolbar...
Any examples?
4. If I define a custom mark and put it on some line, then close N++ and open it again, the mark is still there, but it is just a normal bookmark mark (yellow...). Any way to make N++ forget the marks that are not "its"?
Best regards..
-Zobo
Ok.. I found out that I misunderstood some basics...
1. wroking fine now...
2. still on it..
3. gave up on image list and created a resource.. works now.. But there is something odd.. No matter what command ID I use, I always get the second menu item as tooltip...
4. Reading more code...
RE.
-Zobo