Index Parent

HexEdit class


HexEdit class is used to create a gadget to edit memory.

HexEdit class is a subclass of HexEdit.mcc, so you must have HexEdit.mcc in MUI:Libs/MUI to use it. HexEdit.mcc is copyright of Miloslaw Smyk.

A HexEdit object is very dangerous if you don't really know what you are doing!

 

Attributes
Name Type Class Note
ActiveField M G2N ISGN A number or one of:
  • HexDump
  • Chars
AddressChars M G2N ISGN A number or Auto
BaseAddressOffset N IS A boolean that indicates if the first address should be offset to 0.
BytesPerColumn N IG  
BytesPerLine N SGN  
ByteValue B SGN  
ColumnsPerLine M G2N IG A number or Auto
CursorAddress N SGN  
CursorNibble N ISGN  
CursorVisible B ISGN  
EditMode B ISGN  
First N ISGN  
FirstLine M S One of:
  • Up or -1
  • Down or -2
  • PageUp or -3
  • PageDown or -4
  • Top or -5
  • Bottom or -6
FullRefresh B S  
HighBound N IND IG A 4 bytes max long packet chars string (e.g. '7eeeeee'x) upper address of the mem to edit. Note that a wrong address may cause enforcer hits.
LowBound N IG A 4 bytes max long packet chars string (e.g. '7eeee00'x) lower address of the mem to edit. Note that a wrong address may cause enforcer hits.
MoveCursor M S One of:
  • Up or -1
  • Down or -2
  • Left or -3
  • Right or -4
  • PageUp or -5
  • PageDown or -6
  • Top or -7
  • Bottom or -8
  • WordLeft or -9
  • WordRight or -10
  • LineStart or -11
  • LineEnd or -12
NibbleValue N SGN  
PropObject S IS A Scrollbar object name. Note that at Init time the object have to exists.
SelectMode M G2N IG A number or one of:
  • Nibble
  • Byte
VisibleLines N GN  

 

Methods
Name Parameters Note
None defined

 

Examples:

  1. A HexEdit object without Scrollbar:
        mem=GetSpace(1024)
        if mem=Null() then exit
        call Export(mem,Copies("RxMUI rulezzzz!!!",50))
        ...
        he0.Class="HexEdit"
        he0.Frame="Virtual"
        he0.EditMode=1
        he0.LowBound=mem
        he0.HighBound=d2c(c2d(mem)+1023)
  2. A HexEdit object with Scrollbar:
        mem=GetSpace(1024)
        if mem=Null() then exit
        call Export(mem,Copies("RxMUI rulezzzz!!!",50))
        ...
        sg1.Class="group"
        sg1.Horiz=1
        sg1.Spacing=0
         sg1.0="he1"
          he1.Class="hexedit"
          he1.Frame="Virtual"
          he1.EditMode=1
          he1.LowBound=mem
          he1.HighBound=d2c(c2d(mem)+1023)
          he1.PropObject="Scroll1"
         sg1.1=XNewObj("Scrollbar","Scroll1")
  3. A HexEdit object with Scrollbar in the right window border:
        if mem=Null() then exit
         ...
         win.UseRightBorderScroller=1
         ...
        mem=GetSpace(1024)
        if mem=Null() then exit
        call Export(mem,Copies("RxMUI rulezzzz!!!",50))
        ...
        sg2.Class="group"
        sg2.Horiz=1
        sg2.Spacing=0
         sg2.0="he2"
          he2.Class="hexedit"
          he2.Frame="Virtual"
          he2.EditMode=1
          he2.LowBound=mem
          he2.HighBound=d2c(c2d(mem)+1023)
          he2.PropObject="Scroll2"
           Scroll2.UseWinBorder="right"
         sg2.1=XNewObj("scrollbar","Scroll2")