Pietro Gagliardi
|
2c9e63d8d2
|
Same as previous commits, but for uiContainer. We don't need to do these because everything that calls uiControlSetParent() (which should only ever be a uiContainer) should also be updating themselves afterward (or are about to be destroyed).
|
2015-05-11 12:20:41 -04:00 |
Pietro Gagliardi
|
41030b0a03
|
Made it so uiContainer on Windows only updates when we ask it to resize, not on every WM_WINDOWPOSCHANGED. More TODOs.
|
2015-05-10 12:57:13 -04:00 |
Pietro Gagliardi
|
bd4716c949
|
Started code for handling WM_QUERYENDSESSION and its console equivalent.
|
2015-05-09 14:22:51 -04:00 |
Pietro Gagliardi
|
3f3191ea7a
|
More Windows uiUninit() implementation.
|
2015-05-08 15:01:23 -04:00 |
Pietro Gagliardi
|
efbdf14d5f
|
Made all instances of SetWindowPos() and MoveWindow() use the same wrapper functions so they can all use the same flags. Only the SetWindoPos() that sets the initial size of a uiWindow is unaffected (since that is a special case).
|
2015-05-07 17:40:13 -04:00 |
Pietro Gagliardi
|
2107595ce7
|
"Exported" uiSizing fields.
|
2015-05-07 14:33:46 -04:00 |
Pietro Gagliardi
|
f74394fbac
|
"Exported" uiSizingSys fields.
|
2015-05-07 14:22:31 -04:00 |
Pietro Gagliardi
|
6e4845f11f
|
Fixed tab order on Windows.
|
2015-05-07 14:20:31 -04:00 |
Pietro Gagliardi
|
38a5341603
|
Fixed public/private namespace clobbering in the Windows backend and a wrong name in ui_darwin.h.
|
2015-05-07 12:58:33 -04:00 |
Pietro Gagliardi
|
bb617883d1
|
"Fixed" box padded application bug on Windows; more related TODOs.
|
2015-05-07 12:24:02 -04:00 |
Pietro Gagliardi
|
316657e09e
|
I'm wrong; read-only edit controls on Windows DO get their backgrounds from their parents. Thanks gamax92 for help confirming.
|
2015-05-07 00:23:35 -04:00 |
Pietro Gagliardi
|
6a1661fd91
|
Implemented read-only uiEntries on Windows.
|
2015-05-06 22:21:11 -04:00 |
Pietro Gagliardi
|
8c3ca7fcce
|
Fixed WM_PRINTCLIENT on uiContainers in windows/container.c. It works.
|
2015-05-06 12:39:06 -04:00 |
Pietro Gagliardi
|
047913d1a6
|
Made paintContainerBackground() in windows/container.c respect the clip rect.
|
2015-05-06 11:30:09 -04:00 |
Pietro Gagliardi
|
74fc1aea45
|
Split out the parent drawing in windows/container.c into its own function. This is necessary to allow for clipping.
|
2015-05-06 11:10:28 -04:00 |
Pietro Gagliardi
|
7e0d79713b
|
Changed the uiContainer code on Windows to use WM_PRINTCLIENT directly instead of creating the brush each time. Thanks to Barmak Shemirani (http://stackoverflow.com/questions/30066108/brush-origin-patblt-and-mapwindowrect-confusion) for inspiring me with this solution that I should have thought of myself =P
|
2015-05-06 02:20:08 -04:00 |
Pietro Gagliardi
|
657cbe2013
|
Updated a TODO.
|
2015-05-05 20:57:30 -04:00 |
Pietro Gagliardi
|
58540b2b2b
|
Changed from GetWindowRect() in windows/contianer.c to get the parent's client size to GetClientRect(); we're only interested in the size, and WM_PRINTCLIENT is strictly for the client :/ It's still correct as far as I know (the old code used it).
|
2015-05-05 20:56:07 -04:00 |
Pietro Gagliardi
|
9f8d16b26a
|
Revert "Switch to using DeferWindowPos() in Windows resizes. It doesn't optimize anything just yet (because it's still recursively invoked), but it can be optimized later (by not responding to container resizes and only using container updates); and more important, it puts (most of) the resizing invocations in one place."
Decided not to make the code that much more complicated.
This reverts commit f6fdf932e1 .
|
2015-05-05 15:19:55 -04:00 |
Pietro Gagliardi
|
f6fdf932e1
|
Switch to using DeferWindowPos() in Windows resizes. It doesn't optimize anything just yet (because it's still recursively invoked), but it can be optimized later (by not responding to container resizes and only using container updates); and more important, it puts (most of) the resizing invocations in one place.
|
2015-05-05 15:10:37 -04:00 |
Pietro Gagliardi
|
f35d68907b
|
More flicker work and TODOs.
|
2015-05-05 14:44:10 -04:00 |
Pietro Gagliardi
|
7f56079257
|
Disabled WM_PRINTCLIENT in uiContainer on Windows for now.
|
2015-05-05 14:37:25 -04:00 |
Pietro Gagliardi
|
4ba82c6eeb
|
Started refactoring uiContainer painting on Windows to be more efficient and handle WM_PRINTCLIENT.
|
2015-05-05 14:00:55 -04:00 |
Pietro Gagliardi
|
93ead4043e
|
Added a wrapper around MapWindowRect() to simplify error handling. This will be needed for future changes to windows/container.c.
|
2015-05-05 13:12:48 -04:00 |
Pietro Gagliardi
|
047d5aaa4d
|
Added error checking to the container painting code. More TODOs.
|
2015-05-05 13:01:20 -04:00 |
Pietro Gagliardi
|
40993b33ab
|
One person reports flicker, one person doesn't... I'll have to investigate myself.
|
2015-05-05 11:02:32 -04:00 |
Pietro Gagliardi
|
913025c3de
|
More TODOs.
|
2015-05-05 09:34:43 -04:00 |
Pietro Gagliardi
|
c0cc7f2df4
|
Implemented uiContainer transparent background drawing.
|
2015-05-05 09:10:58 -04:00 |
Pietro Gagliardi
|
2d49baa2f1
|
Seemingly fixed redraw issues with uiContainer on Windows control background painting. Now to paint uiContainer's background itself.
|
2015-05-05 00:16:25 -04:00 |
Pietro Gagliardi
|
2968d48d9e
|
Figured out something workable for control backgrounds on Windows!
|
2015-05-04 23:06:16 -04:00 |
Pietro Gagliardi
|
4e56f2d2b5
|
Disabled the WM_CTLCOLORxxx handler for now.
|
2015-05-04 22:04:24 -04:00 |
Pietro Gagliardi
|
d4245a448d
|
Moved the WM_CTLCOLORxxx handler back into the Windows uiContainer.
|
2015-05-04 20:36:33 -04:00 |
Pietro Gagliardi
|
4716781e78
|
Finished container enable/disable on Windows for now.
|
2015-05-04 14:05:36 -04:00 |
Pietro Gagliardi
|
862f84292f
|
Fixed an error in windows/container.c.
|
2015-05-03 19:58:37 -04:00 |
Pietro Gagliardi
|
51cdb1817e
|
Added WS_EX_CONTROLPARENT to uiContainer on Windows.
|
2015-05-03 14:12:45 -04:00 |
Pietro Gagliardi
|
643ed46b00
|
Cleaned up windows/container.c resize(). More TODOs.
|
2015-05-03 11:55:34 -04:00 |
Pietro Gagliardi
|
a036632795
|
Re-connected Windows events. More TODOs.
|
2015-04-29 19:17:26 -04:00 |
Pietro Gagliardi
|
8f79f0596f
|
Set hidden flag variables BEFORE updating parent containers. Otherwise, parents won't reposition children correctly on systems where updates happen immediately (like OS X).
|
2015-04-29 14:25:34 -04:00 |
Pietro Gagliardi
|
6c6bce3702
|
Moved everything back to the top level.
|
2015-04-29 11:02:38 -04:00 |