Author Topic: Radasm (RaEdit) Addin  (Read 2537 times)

ragdog

  • Member
  • ****
  • Posts: 572
Radasm (RaEdit) Addin
« on: August 15, 2014, 05:22:09 PM »
Hi Ketil

I coding a new Addin for Radasm3 and i use the RaEdit control all works fine
But with set the color to this control have i little problems.

Code: [Select]

mov ebx,lpHandles
invoke SendDlgItemMessage,hWin,IDC_RAECODE,REM_SETFONT,0, addr (ADDINHANDLES ptr[ebx]).racf
mov ebx,lpData
invoke SendDlgItemMessage,hWin,IDC_RAECODE,REM_SETCOLOR,0,addr (ADDINDATA ptr[ebx]).radcolor.racol

The font and background color what i have in Radasm works to use it in my Addin
But not the Asm syntax Highlight the text is only black .


And why must i call InstallRAEdit in your fbedit-code-2994\Addins\SnipletAddin example

Works it without this calls and with the color  REM_SETCOLOR code

Code: [Select]
invoke     InstallRAEdit,hInstance,FALSE
invoke DialogBoxParam,hInstance,IDD_DLGSNIPLETS,hWin,offset SnipletsProc,0
 invoke     UnInstallRAEdit

My resource code is same

Code: [Select]
CONTROL "",IDC_RAECODE,"RAEdit",0x50003907,111,3,282,210,0x00000200
Have you an idea?

Greets,
« Last Edit: August 16, 2014, 06:12:19 AM by ragdog »

ragdog

  • Member
  • ****
  • Posts: 572
Re: Radasm (RaEdit) Addin
« Reply #1 on: August 17, 2014, 12:25:03 AM »
Have a other a idea?
here is the project


is the same code like

fbedit-code-2994\RadASM30\RadASM30\Sniplets.asm
 or
fbedit-code-2994\RadASM\Edit\Sniplets.asm

KetilO

  • Moderator
  • Regular Member
  • *****
  • Posts: 15
Re: Radasm (RaEdit) Addin
« Reply #2 on: August 18, 2014, 09:49:13 PM »
Hi ragdog

Unfortunatly the current version of RadASM does not create a global class for RAEdit.
This makes it cumbersome to inherit keywords from RadASM.

Included in the zip is a version of RadASM that creates a global class.

KetilO

ragdog

  • Member
  • ****
  • Posts: 572
Re: Radasm (RaEdit) Addin
« Reply #3 on: August 23, 2014, 04:26:42 AM »
Hi Thanks

Ahh ok

Quote
Unfortunatly the current version of RadASM does not create a global class for RAEdit.
I must use "invoke     InstallRAEdit,hInstance,FALSE"  ? ?

Nice it support now in the new version on your Svn

Regards,