Hi all

Here is a little contribution to the winasm project.

--- Intro ------------------------------------------------------

WACodeLib is a code Snipplets manager for WinASM.
It uses a docking window to display treeview of the WinAsm\Snipplets folder.
This folder is created in the Winasm dir on first load of the addin
You can use this folder (and sub folders) to store your Snipplets.


--- Use --------------------------------------------------------

The first toolbar button add the current selected text in a new Snipplets.
If the selection is empty, it adds the whole file.

The second button insert the selected Snipplets in your source file.
Use the third button to create a new folder.
The delete button delete the current treeview selection (!!)
(a folder must be empty to delete it)

Rename an item as usual, like in the explorer.

--- Revision ---------------------------------------------------

V 0.1 First release

V 0.2 - Remove all debug macros from Add-In ;-)
- The messagebox informing us that the Snipplets folder has been created had
a non-printable character at the end of the message text.
- The messageboxes are application modal.
- Added Tooltips for the toolbar.
- CodeLIB do not paste code when there is no visible child windows
- Improved treeview style (lines)
- The addin should not have any loading prb under WinXP PRO (Tx akyprian)
- Added a doubleclick support to the treeview to paste directly the Snipplets
- A click on the menu item "Code Snipplets" to show the dock window refresh
the treeview
- CodeLIB is now checking the new name when renaming an item.
(must be a valid file name)

--- Et voila ! ----------------------------------- PhoBos -----


Please post suggestions and/or blames :grin:
BUT : Please note that it's a beta version. The development still continue.
Posted on 2003-10-30 05:07:25 by PhoBos
....
Posted on 2003-10-30 05:08:05 by PhoBos
Hi PhoBos,

What can I say ? A nice proffessionally designed Add-In. Congratulations!

Some suggestions though :grin:

1)Remove all debug macros from your Add-In (PrintString ?)

2)The messagebox informing us that the Sniplet folder has been created has a non-printable character at the end of the message text. Also, the messagebox should me application modal.

3)Is it "snippet" or "sniplet" ?

4)Will there be any means to see what is inside the sniplet (text)?

5)I need Tooltips for the toolbar.

Regards,

akyprian

Congratulations once more
Posted on 2003-10-30 06:04:10 by akyprian
hi,

I said it was a pre-version ;)
I'm working on your comments,

Thanks for your good words :)
Posted on 2003-10-30 07:19:46 by PhoBos
3)Is it "snippet" or "sniplet" ?


I'm asking the question again !! I've found both of them on the web... Which one is the good one :confused:
:stupid: :)
Posted on 2003-10-30 07:34:13 by PhoBos


I said it was a pre-version ;)
I'm working on your comments


Just a reminder :alright:

Regards,

akyprian
Posted on 2003-10-30 07:56:22 by akyprian
your addin gives me an error when I try to load it ???

XP Professional (Spanish Version)
WinAsm 2.0.0.2
Posted on 2003-10-30 17:57:19 by Jnrz
same problem here WinXPSP1, WinASM 2.0.0.1

i traced it back to


010824E4 |. C705 44470801>MOV DWORD PTR [1084744], 1
010824EE |. E8 F9010000 CALL <JMP.&user32.GetForegroundWindow>
[b]010824F3 |. 50 PUSH EAX[/b]
010824F4 |. E8 71020000 CALL <JMP.&kernel32.GetModuleHandleA>


it does load if i change to PUSH 0, but no window is showned :(
Posted on 2003-10-31 00:59:58 by TBD
oops, my fault. I downloaded WinASM 2.0.0.2b and it works. :alright:
Posted on 2003-10-31 01:08:45 by TBD
TBD,

I was already replying to say that you need V2.0.0.2 to be able to use Add-Ins hosted in Docking windows.

PhoBos,

I get the error sometimes under WinXP. Do you preserve EBX, ESI and EDI ? I don't get this error under Win98SE.


Regards,

akyprian
Posted on 2003-10-31 02:10:29 by akyprian
Hi all,

Yep, there's a prb !
I get the error sometimes under WinXP. Do you preserve EBX, ESI and EDI ? I don't get this error under Win98SE.


You've certainly focus the prb, i'm checking this point.

Tx all for the feedbacks :alright:
Posted on 2003-10-31 02:39:13 by PhoBos
Hi all,

I've got this in my WAAddInLoad proc...
The loading error is there :(

Any idea ??



invoke GetForegroundWindow
invoke GetModuleHandle, eax
invoke GetModuleFileName, eax, addr szRoot, sizeof szRoot
invoke PathRemoveFileSpec,addr szRoot
invoke lstrcat,addr szRoot,SZ("\Snipplets")

where
szRoot db	MAX_PATH dup(0)
Posted on 2003-11-01 03:40:51 by PhoBos
You could try removing the backslash in SZ("\Snipplets") (just a guess)
Posted on 2003-11-01 03:48:18 by Delight
...upload above..

Tx Delight, you're right !! :alright:
Posted on 2003-11-01 04:12:52 by PhoBos
Hi!,

Even better! No serious problem under Win98SE. The toolbar tooltips are shown behind the Docking Window ONLY when it is floating. This is what I meant yesterday :)

I will play with it more and let you know!

Once again, this is top notch!

Regards,

akyprian
Posted on 2003-11-01 05:00:50 by akyprian
Hi akiprian :)

The toolbar tooltips are shown behind the Docking Window ONLY when it is floating


I don't have this prb :confused:
Checking my WM_NOTIFY proc.....
Posted on 2003-11-01 05:08:11 by PhoBos
Hi,

Yours is DOCKED not FLOATING

Regards,

akyprian
Posted on 2003-11-01 05:11:05 by akyprian
:grin: :grin: :grin: :grin: :grin: :grin:

You're right !!
BUT i've got NO prb with tooltip's !!
Posted on 2003-11-01 05:18:21 by PhoBos
OK,

Look at the image attached :grin: :grin: :grin:

Use this

;Tooltip is partly shown if parent floats
Invoke SetWindowPos, .NMHDR.hwndFrom, HWND_TOP, 0, 0, 0, 0, SWP_NOACTIVATE OR SWP_NOMOVE or SWP_NOSIZE or SWP_NOOWNERZORDER

in your WM_NOTIFY

akyprian
Posted on 2003-11-01 06:25:29 by akyprian
Does it mean that .NMHDR.hwndFrom is the tooltip window associated with the toolbar ?? (Can't see it in MSDN... :rolleyes: )
Any improvment ???
Posted on 2003-11-01 06:59:19 by PhoBos