[wx-dev] #9526: Proposal: wxWindow::ModifyStyle()

wxTrac noreply at wxsite.net
Mon Jun 2 13:36:48 PDT 2008


Ticket URL: <http://trac.wxwidgets.org/ticket/9526>

#9526: Proposal: wxWindow::ModifyStyle()
-------------------------+--------------------------------------------------
 Reporter:  troelsk      |       Owner:         
     Type:  enhancement  |      Status:  new    
 Priority:  low          |   Milestone:         
Component:  GUI-all      |     Version:  2.9-svn
 Keywords:               |   Blockedby:         
    Patch:  1            |    Blocking:         
-------------------------+--------------------------------------------------
 A companion to Get/SetWindowStyle(). Sadly missed by users familiar with a
 certain competing framework.
 In fact its signature is somewhat peculiar (you'd expect the add parameter
 first I guess):
 bool wxWindowBase::ModifyStyle(long remove, long add)
 But! You save on code lines, getting rid of bit-shuffling assembly-like
 code, "if else and-equals-not or-equals" (and gets "?" instead). See
 patch: one way of implementing this. If this looks all vile to you all,
 hit "close ticket".


--
Ticket URL: <http://trac.wxwidgets.org/ticket/9526>


More information about the wx-dev mailing list