News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

RadASM 3.0 bugtest

Started by KetilO, May 31, 2010, 12:28:11 PM

Previous topic - Next topic

ragdog

Hi KetilO

Thanks for the update

But I missing a function what i have post you

By Radasm2 have i a autocomplete function for include and lib files but not in Radasm3
Can you add this feature?

Greets,

ragdog

Hi

Can Radasm 3 not Codecomplete for Include and Includelib?

I have look in to source

To get the Profile string "Inc" , "Lib" from Masm32.ini contain this source

[CodeComplete]
Trig=invoke
Inc=include
Lib=includelib
Api=winasmApi.api,winasmConst.api,winasmStruct.api,winasmMsg.api,winmasmWord.api,winasmType.api


Assembler.asm

   invoke GetPrivateProfileString,addr szIniCodeComplete,addr szIniInc,NULL,addr da.szCCInc,sizeof da.szCCInc,addr da.szAssemblerIni
   invoke GetPrivateProfileString,addr szIniCodeComplete,addr szIniLib,NULL,addr da.szCCLib,sizeof da.szCCLib,addr da.szAssemblerIni

But more not

Must i make a .api file for all Includes and Libs?

Greets,

ragdog

Hi @all

I have long wait for this function AutoComplete for Include and Includelib like Radasm 2.
And i know not why Ketil not add this function?°?  ::)

Open the Masm32.ini and remove this lines

[CodeComplete]
Trig=invoke
Inc=include        <<<<<<<<<<
Lib=includelib      <<<<<<<<<<
Api=winasmApi.api,winasmConst.api,winasmStruct.api,winasmMsg.api,winmasmWord.api,winasmType.api

Copy Inc_lib_CC.dll in the Addin folder

This addin serach on the Masm32\Include and  Masm32\lib folder for all Include and libs

If you write in your source Include or Includelib popup the Autocomplete Window



Ps:Works only for Masm32
I think Ketil can this better  to support for all languages :bg

ragdog

#363
Hi

A Theme bug in the last version

I change the color for CodeComplete and works fine but it read not  by restart radasm.
same for selections bar and selections bar pen.

And here a bugfix


GetColors proc uses ebx
LOCAL racolor:RACOLOR
LOCAL cccol:CC_COLOR
LOCAL ttcol:TT_COLOR
invoke GetPrivateProfileString,addr szIniColors,addr szIniColors,addr szNULL,addr tmpbuff,sizeof tmpbuff,addr da.szAssemblerIni
.if eax
xor ebx,ebx
.while ebx<sizeof RADCOLOR/4
invoke GetItemInt,addr tmpbuff,0
mov dword ptr da.radcolor[ebx*4],eax
inc ebx
.endw
.else
invoke RtlMoveMemory,addr da.radcolor,addr defcol,sizeof RADCOLOR
.endif


invoke SendMessage,ha.hOutput,REM_GETCOLOR,0,addr racolor
mov eax,da.radcolor.toolback
mov racolor.bckcol,eax
mov eax,da.radcolor.tooltext
mov racolor.txtcol,eax

invoke SendMessage,ha.hOutput,REM_SETCOLOR,0,addr racolor
invoke SendMessage,ha.hImmediate,REM_SETCOLOR,0,addr racolor
invoke SendMessage,ha.hREGDebug,REM_SETCOLOR,0,addr racolor
invoke SendMessage,ha.hFPUDebug,REM_SETCOLOR,0,addr racolor
invoke SendMessage,ha.hMMXDebug,REM_SETCOLOR,0,addr racolor
invoke SendMessage,ha.hWATCHDebug,REM_SETCOLOR,0,addr racolor
;Set tool colors
invoke SendMessage,ha.hFileBrowser,FBM_SETBACKCOLOR,0,da.radcolor.toolback
invoke SendMessage,ha.hFileBrowser,FBM_SETTEXTCOLOR,0,da.radcolor.tooltext
invoke SendMessage,ha.hProjectBrowser,RPBM_SETBACKCOLOR,0,da.radcolor.toolback
invoke SendMessage,ha.hProjectBrowser,RPBM_SETTEXTCOLOR,0,da.radcolor.tooltext
invoke SendMessage,ha.hProperty,PRM_SETBACKCOLOR,0,da.radcolor.toolback
invoke SendMessage,ha.hProperty,PRM_SETTEXTCOLOR,0,da.radcolor.tooltext
;Code complete
mov eax,da.radcolor.ccback
mov cccol.back,eax
mov eax,da.radcolor.cctext
mov cccol.text,eax
invoke SendMessage,ha.hCC,CCM_SETCOLOR,0,addr cccol
mov eax,da.radcolor.ttback
mov ttcol.back,eax
mov eax,da.radcolor.tttext
mov ttcol.text,eax
mov eax,da.radcolor.ttapi
mov ttcol.api,eax
mov eax,da.radcolor.ttsel
mov ttcol.hilite,eax
invoke SendMessage,ha.hTT,TTM_SETCOLOR,0,addr ttcol
ret

GetColors endp


Please fix it

ragdog

Can you Fix the Static Control in the Rebar?



I have try to found self a solution without any result

ragdog

And a other Redraw bug

Have i the output window hidden and i compile with Go
Clear all Properties windows and Tab Buttons and after compile if all again normal

Can you see in my screen shot
http://s7.directupload.net/images/120128/687fo4f6.jpg

KetilO

Thanks ragdog

Quote
Can you Fix the Static Control in the Rebar?
No. It's needed.

KetilO

KetilO

New upload.

Version 3.0.0.8 2012-01-30
--------------------------
o Fixed bug where code complete list and tooltip did not get its colors set. Thanks ragdog.
o Fixed a paint bug when output was shown during build.

KetilO

ragdog

Thanks KetilO  :U

QuoteCan you Fix the Static Control in the Rebar?
No. It's needed.

Can you this not make Transparent?

Quoteo Fixed bug where code complete list and tooltip did not get its colors set. Thanks ragdog.
o Fixed a paint bug when output was shown during build.

Works fine  :U

Have you try my AutoComplete for Include and Includelib Addin
Is this ok?

KetilO

No. It is used as a container for the build combo.

KetilO

donkey

Hi Ketil,

I also have an issue with code complete, its been around for a while but I never got around to reporting it. When I am typing an API that requires an offset to a function (for example a callback) when I type the function name the hint text changes to the parameters for the callback function and not the api. For example

invoke DialogBoxParam,[hInstance],IDD_MAINDLG,0,OFFSET DlgProc,0

When I am typing that line once I type OFFSET DlgProc the hint text will change to "DlgProc,hwnd,uMsg,wParam,lParam" instead of "DialogBoxParam,hInstance,lpTemplateName,HwndParent,lpDilaogFunc,dwInitParam"

Not really urgent, more of an annoyance than a problem.

Edgar
"Ahhh, what an awful dream. Ones and zeroes everywhere...[shudder] and I thought I saw a two." -- Bender
"It was just a dream, Bender. There's no such thing as two". -- Fry
-- Futurama

Donkey's Stable

ragdog

Hi

Can you add a function to Theme the radasm menu in the code editor color?

invoke MakeBitMap,19,0FFCEBEh,0FFFFFFh ;<<<<<<<<<<<

invoke CreateSolidBrush,0F5BE9Fh <<<<<<<<<
mov      hBrMnu,eax
invoke FillRect,mDC,addr rect,hBrMnu
...

invoke CreatePen,PS_SOLID,1,0F5BE9Fh <<<<<<<<<
invoke SelectObject,mDC,eax



ragdog

Hi Ketil

Gives a editor for winasmApi.api or other api files?
Or make your all manually?

ragdog

Resource editor bug?

Select a control ,push to same time del and move the mouse
now can no select a other control.

minor28

I have tested by converting two radasm 2 projects.

Clicking the "Run" button causes "An exception has occured" but not the "Go" button. There is no exception.

The first string in my string table has ID = 0. This is not accepted. Had to do a workaround.