Attacking this from another direction I was thinking of trying to create my own 
edit control with the min necessary to function. using the StyledTextCtrl ie 
replacing dabo's deditor. Just as a learning perspective. I know that dabo is 
written on top of wxpython so is it possible to use any of wxpython's controls 
in a dabo form? or does one only have access to dabo's controls? How does one 
put a none dabo control on a dabo form? I tried searching the wiki and the mail 
archives but couldn't find anything.
-- AaronS

PS tried to code my previous idea but couldn't get it working.

in the dEditor control on my form

import wx.stc as stc

def afterInit(self):
        # self._language = "python"
        #self._language = "gedcom"
        self.Language = "container"
        
        self.Bind(stc.EVT_STC_STYLENEEDED, self.OnStyleNeeded2)

def OnStyleNeeded2(self, e):
    #fun = 3
    end = e.GetPosition()
    start = stc.GetEndStyled()

    stc.StartStyling(start, 0x1f)

    for i in range(start, end + 1):
        StyleSetBackground(4,"red")
        
        stc.SetStyling(3, 4)        
        
        #c = stc.GetCharAt(i)

        #if 48 <= c <= 57:
        #    stc.SetStyling(1, 1)
        #else:
        #    stc.SetStyling(1, 0)

The commented code should show some different things I've tried but all I get 
is plain text.

Thanks for any help.



      

--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to