![]() The two large ContainerControls I’ve converted so far have followed this pattern: I added code and signatures to IMSplitter so it can handle DesktopControl, DesktopContainer etc as items to resize when the bar is moved (along with existing methods), otheriwse I’d have to migrate everything at once. I’m using IMSplitter to provide the splitter bars. One large pane is a PagePanel, each panel of which has an instance of a ContainerControl on it. You move the splitter bars to change the space allocated to each pane. I have a mainwaindow made up of various panes with splitter bars between. Mostly I’ve been using the convert mechanism. So far I’m down from over 6000 warnings to around 2600. Remember to compile and run at each stage, and changes that move you forward can then be applied to the clean copy. And that left it in a state which appeared not to be undo-able. I tried converting the menubar but it refuses if there are unconverted windows. I wanted to convert the main window this way, but had an issue with the Apps main menu bar. Open, for example - copy the code in the Open event, add the Opening event to the Window, and paste the code into it. In the latter case you’ll need to reimplement and events which need changing. It may help to convert a small number of individual controls or perhaps just a window itself by editing its super in the inspector. It may be necessary to duplicate some items, having one for API1 and the other for API2, to avoid running into needing cascading changes which run into a brick wall. I couldn’t find any way to fix the indices other than by re-creating the control set. I must have done this by mistake at some point and ended up with a control set of two radio buttons, which had indices of 6 and 7 rather than 0 and 1. Never Undo a conversion on the clean copy. If that step works OK, apply it to the clean copy. All these can be fixed and then a new baseline saved.ĭon’t trust Undo: it’s OK to try a conversion, see what problems it gives, perhaps undo the conversion, try converting something else. Other items acquired a focus ring they didn’t previously have. I had one window with a number of controls when converted as a whole, some labels lost their alighment (it went back to default), or their text which went back to untitled’. Having done that, SAVE! This then becomes a new baseline. Such steps can then be applied to the clean copy. I have a number of small windows with only a few controls in each these converted easily, with no compilation errors, and worked OK when tested. One is for trying things, the other is for applying permanent conversion steps to. As I’ve no development I feel like doing on my app at the minute, I decided it was the time to attempt the conversion. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |