Commit graph

30 commits

Author SHA1 Message Date
ehouse
949a67b15f {G|S}etWindowLong -> {G|S}etWindowLongPtr as per MSDN docs 2008-09-27 15:05:26 +00:00
ehouse
5e06c72f5d Finally fix scroll-follows-focus for color edit dialog (the tallest).
Trick was to add BS_NOTIFY property to dialog controls and look for
the WM_COMMAND->BN_SETFOCUS message.
2008-06-07 14:40:05 +00:00
ehouse
588c16d45f rename and reorganize/simplify dialog-handling code common to all
dialogs, handling scrolling and backspace key (smartphone only) and
scroll-by-focus in a single place.
2008-06-05 04:29:28 +00:00
ehouse
7da66696ed Fix dictionary-search code to look in top-level temporary directories
rather than hard-coded "SD Card" etc. to work in non-English cases;
fix password dialog to fit, and simplify it; fix backspace on
smartphone for all dialogs with EDIT fields to actually backspace
rather than exiting app; and in main window have it raise focus.  This
change requires SHSendBackToFocusWindow(), which is not yet in cegcc.
Until I get a patch accepted this breaks wince builds.
2008-05-31 22:07:29 +00:00
ehouse
cba5a023d1 fix win32 build 2008-05-10 21:11:54 +00:00
ehouse
3b1d566eed Fix color edit dialog itself. Shrink to fit smartphone screen. And
use another owner-drawn button for the sample so it can be located in
the resource file.
2008-05-10 21:09:12 +00:00
ehouse
bec57181ed Work around apparent limitation to smartphone/ppc, that ownerdraw
buttons don't generate WM_MESSAGE events and ownerdraw static controls
don't get drawn: have one disabled ownerdraw button as the color
sample and a real button to trigger the edit.
2008-05-10 18:41:16 +00:00
ehouse
44186e220d Use SHInitDialog on smartphone to create fullscreen dialogs. Move
test for smartphone into util functions so can't forget it.  This
fixes scrolling on smartphone.
2008-05-10 15:42:52 +00:00
ehouse
cde4a4dd6b Remove params from ceDlgSetup and ceDoDlgFocusScroll; use DM_SETDEFID
message to make self-drawn buttons respond to cr key.
2008-03-31 00:24:04 +00:00
ehouse
63c0cd8aee Use new APIs to scroll dialogs; use new saved games dialogs. 2008-03-24 12:41:12 +00:00
ehouse
08326c6146 add __attribute__ format and fix resulting compile warnings; add a few
new WM_ strings for debugging.
2008-03-15 14:14:39 +00:00
ehouse
b614b9b14c Add name of color edited to title of color edited. Clean up names and constants in support. 2008-02-26 13:31:36 +00:00
ehouse
073aa6716b Draw color samples to look more like buttons including thicker border to indicate focus. 2008-02-22 13:27:33 +00:00
ehouse
b527110379 replace all __FUNCTION__ with __func__ 2007-12-02 19:13:25 +00:00
ehouse
3a0b5af472 change constant names. No change to code compiled. 2007-01-19 06:43:52 +00:00
ehouse
62fe2be84b Move buttons in landscape mode for color sel dialogs too. 2006-05-27 22:19:30 +00:00
ehouse
37250643ee Turn on -Wall for compilers, and fix warnings that result. Got 'em
all for win32 build, but some remain for wince that I'm unable to fix.
2006-05-12 07:25:43 +00:00
ehouse
56050fff5a colorsel dialog works now on wince, so remove warning dialog 2006-03-04 15:56:31 +00:00
ehouse
fa77bb4a34 make color buttons owner-draw, and draw them. This fixes bug where
all are the background color, and seems to fix win32 build altogether.
Wince build still needs to respond to the buttons being pressed.
2006-02-16 03:31:44 +00:00
ehouse
c42c6a6551 turn off broken color sel until have time to fix 2006-02-14 04:52:31 +00:00
ehouse
df72a59423 use debhacks 2006-01-28 19:03:10 +00:00
ehouse
dcd31cd092 update email address in header comments: no code change 2006-01-08 01:25:02 +00:00
ehouse
5ed2892250 fix capitalization of header file -- which gcc cares about. 2005-11-27 20:04:06 +00:00
ehouse
0a6a9de4cf clean up dialog init 2004-05-26 04:46:57 +00:00
ehouse
4435888a04 shrink color editor 2004-04-15 02:18:13 +00:00
ehouse
c23b07ac3b cast for compiler 2004-04-14 04:05:00 +00:00
ehouse
ef521049df pass in starting colors 2004-04-14 03:56:12 +00:00
ehouse
fc8435aa9b get custom color selector working 2004-04-09 02:36:48 +00:00
ehouse
20b14dfa11 as-yet unsuccessful attempt to replace M$ ChooseColor dialog 2004-04-03 15:29:34 +00:00
ehouse
d640d4d301 first cut at color picking using MS's ChooseColor 2004-03-28 01:15:24 +00:00