Commit Graph

21 Commits

Author SHA1 Message Date
Pietro Gagliardi b880635e74 Added the enable/disable/show/hide code to the Windows new control. Something is clobbering stacks; need to debug this... 2015-04-11 15:34:16 -04:00
Pietro Gagliardi 88a46d7a44 More exposition. 2015-04-11 10:34:26 -04:00
Pietro Gagliardi 0cfe64c2bb Moved the control IDs TODO to TODO.md as that's a long-term TODO; it depends on how container controls play out. 2015-04-10 18:32:04 -04:00
Pietro Gagliardi e03d9ae2bd Changed the Windows new control system to automatically assign the standard control font if a flag is set in the creation parameters structure. 2015-04-10 17:53:59 -04:00
Pietro Gagliardi 9016935d5e Changed onWM_NOTIFY() to only pass the NMHDR * in. The LPARAM is more useful as a NMHDR *, and the WPARAM contains duplicate data (http://blogs.msdn.com/b/oldnewthing/archive/2013/12/04/10473637.aspx). Ideally we wouldn't even have the NMHDR.idFrom (see previous commit message), but oh well :/ 2015-04-09 19:07:41 -04:00
Pietro Gagliardi a538412df2 Changed onWM_COMMAND() to give our controls only the notification code. We don't want to give the control the ID part of wParam because that's (or that'll be) dynamically assigned based on control parenting and prior controls; we don't want to give the control the LPARAM since that contains the window handle and uiControl already has that. 2015-04-09 18:54:14 -04:00
Pietro Gagliardi d84df8f38f Finished Windows conversion. Works perfectly! 2015-04-09 17:57:08 -04:00
Pietro Gagliardi cefa6d0bd2 Migrated the new control logic on Windows to the new uiControl/uiSizing system. 2015-04-09 17:24:26 -04:00
Pietro Gagliardi b60ff74a9e Decided to split control removal from parent into its own method removeParent() rather than automatically doing it in setParent(). 2015-04-09 16:21:09 -04:00
Pietro Gagliardi 880008b716 Implemented the text functions on Windows. 2015-04-09 11:12:01 -04:00
Pietro Gagliardi f2537aadd3 More TODO resolution. 2015-04-08 20:01:33 -04:00
Pietro Gagliardi 2e9ff88561 Fixed initial (and future) window redraw issues on Windows. 2015-04-08 18:04:46 -04:00
Pietro Gagliardi 00e31d0a2b Finished Windows cleanup management. Everything (almost, only parentWindow is still around, but that shouldn't be a uiWindow to begin with) now cleaned! 2015-04-08 00:51:50 -04:00
Pietro Gagliardi df4c5f270c Started work on ensuring things get cleaned up. Added a destroy() method to uiControl and implemented most of the work for Windows. 2015-04-08 00:43:35 -04:00
Pietro Gagliardi 5be4572302 Decided to remove containerShow() and containerHide() for now. 2015-04-07 21:05:47 -04:00
Pietro Gagliardi 4b13f93dbe Added the new native control code to the GTK+ backend. Fixed some missing statics in the Windows one too. 2015-04-07 12:17:05 -04:00
Pietro Gagliardi 5b36956ecb Wrote up the initial uiButton implementation. It (mostly; just needs text and for that I need to add a uiControlHandle()) works! 2015-04-07 04:02:21 -04:00
Pietro Gagliardi a09430113f Fixed build issues. Now I just need to hook resizing into uiWindow and implement a control and we'll be set... 2015-04-07 03:12:34 -04:00
Pietro Gagliardi 9e26519338 Added subclassing, which finishes off newcontrol_windows.c. 2015-04-07 02:46:27 -04:00
Pietro Gagliardi 9579a57501 More Windows control work. 2015-04-07 01:51:17 -04:00
Pietro Gagliardi 249cc1f2f0 More work on the Windows control hooking. 2015-04-07 01:33:26 -04:00