On Apr 10, 2014, at 2:52 PM, Hans Sidharta <han...@yahoo.com> wrote: > however, i always gets an error when i try to add controls from data > environment, and change the field type (ie. from text box to date box or edit > box) via ClassDesigner. > everytime i try to change the field type, python will encounter a problem and > forced to close.
I have seen this on Gtk before, but never Windows. It seems to be a bug in wxPython, but I've never been able to trace it well enough to figure out where. If you're stuck, do this: create it using the default control, and save it. Then manually edit the .cdxml file using any plain text editor. Find the entry for the control, and simply change its class. For example, if the XML looks like: <dButton Caption="Button" sizerInfo="{}" designerClass="controlMix"></dButton> ...and you want a dBitmapButton, just change the XML to: <dBitmapButton Caption="Button" sizerInfo="{}" designerClass="controlMix"></dBitmapButton> Now you can open the .cdxml file back up in the Class Designer, and you will see the corrected object. -- Ed Leafe --- StripMime Report -- processed MIME parts --- multipart/signed text/plain (text body -- kept) application/pgp-signature --- _______________________________________________ Post Messages to: Dabo-users@leafe.com Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/a27afce6-7797-47b9-8413-c77136461...@rackspace.com