RadASM 2.1.0.2 is uploaded to my website.

Whats new:

- Added LANGUAGE settings to resources.
- Improved support for fonts/charsets in dialog editor.
- Improved project wizard template handling.
- Updated hla templates, examples and RADbg.inc

KetilO
Posted on 2004-11-04 06:46:06 by KetilO
Hi KetilO,

I just installed the new version. The colref addin had two more options. Now they have disappeared. The ComTool addin icon is changed. I also had an addin to run a debugger. It is loaded acording to addin manager but is not visible on toolbar.

Best regards
Posted on 2004-11-14 05:54:49 by minor28
Hi minor28

The way to add a toolbar button has changed.



mov ebx,[lpHStruct]
mov ebx,(ADDINHANDLES ptr [ebx]).hToolBar
invoke SendMessage,ebx,TB_GETIMAGELIST,0,0
push eax
invoke LoadBitmap,hInstance,IDR_BITMAP
pop edx
push eax
invoke ImageList_AddMasked,edx,eax,808080h
mov mytbbutton.iBitmap,eax
pop eax
invoke DeleteObject,eax
invoke SendMessage,ebx,TB_BUTTONSTRUCTSIZE,sizeof TBBUTTON,0
invoke SendMessage,ebx,TB_INSERTBUTTON,-1,offset mytbbutton


It seem like I dont have the latest version of colref then.

KetilO
Posted on 2004-11-14 12:17:31 by KetilO
Thanks,

Fexed now. Here is the latest version of Colref.
Posted on 2004-11-14 16:15:16 by minor28
Thanks minor

KetilO
Posted on 2004-11-15 02:44:20 by KetilO
I can't get the myttbbutton bmp to show in my ComTool addin. I changed the code to
mov ebx,[lpHStruct] 

mov ebx,(ADDINHANDLES ptr [ebx]).hToolBar
invoke SendMessage,ebx,TB_GETIMAGELIST,0,0
push eax
invoke LoadBitmap,hInstance,IDB_ACTIVEX
pop edx
push eax
invoke ImageList_AddMasked,edx,eax,808080h
mov mytbbutton.iBitmap,eax
pop eax
invoke DeleteObject,eax
invoke SendMessage,ebx,TB_BUTTONSTRUCTSIZE,sizeof TBBUTTON,0
invoke SendMessage,ebx,TB_INSERTBUTTON,-1,offset mytbbutton


LoadBitmap returns nonzero value. ImageList_AddMasked do not return -1. The tbbutton works but no tbimage.

IDB_ACTIVEX constant equ 11003 in .const section, also defined as 11003 in resource file. The path to the bmp is correct. The bmp is 246 bytes, 16 colors and dim 16x16. I just can't understand what's wrong. Any suggestions?
Posted on 2004-11-15 15:57:49 by minor28
It all seem OK and should work.
Maybe it is the toolbar customizing that fails.
Try to dblclick on toolbar and reset.

KetilO
Posted on 2004-11-15 16:59:47 by KetilO
Well, I found the error. I was testing the addin on an older version of RadAsm. I forgot to update. I works now. I guess I am to tired now.

Thanks KetilO
Posted on 2004-11-15 17:24:50 by minor28