ehouse
930ed69d6b
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
fa1f65283f
for win32, look for dicts locally.
2008-06-07 13:46:27 +00:00
ehouse
a29ab639fc
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
3555414ffc
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
f749fdd560
Remove all tabs. No code changes.
2008-05-31 03:26:16 +00:00
ehouse
af089de849
Move to new cegcc, whose tools have slightly different name.
2008-05-26 00:47:40 +00:00
ehouse
bd6aed4b5a
Fix so curses-only builds and curses build doesn't segfault.
2008-05-26 00:27:48 +00:00
ehouse
1355b61906
set background color in timer, preventing flash of color when focus on scoreboard.
2008-05-25 15:54:34 +00:00
ehouse
64199cf1ec
clip so arrow doesn't overwrite cell border on smartphone with small cells.
2008-05-25 15:31:54 +00:00
ehouse
556e947cad
Prevent Pts in temp score display from overwriting number: draw it
...
first, and use a font the right size.
2008-05-25 15:08:59 +00:00
ehouse
ec8786b2a7
cleanup: remove dead function; move variables closer to where used
2008-05-25 15:08:03 +00:00
ehouse
8fa530303a
fix bug: don't advance arrow if unable to move tile to board (introduced with recent tile index changes)
2008-05-24 16:21:03 +00:00
ehouse
c6da605b56
add missing error message
2008-05-24 16:08:13 +00:00
ehouse
4c191e0755
Don't specify g++ version; add some consts to fix warnings with newer g++.
2008-05-21 03:49:11 +00:00
ehouse
6280129788
Fix bug that number key tries to move tile to board even during trade.
...
Generalize use of number to select tile in tray so that during trade
keys will toggle selected tiles. Letters too.
2008-05-19 01:18:43 +00:00
ehouse
51d4c608f9
Don't include mingwm10.dll in .cab. Doesn't seem to be needed.
2008-05-12 02:51:22 +00:00
ehouse
5502c3ef8b
Trying to give smartphone users way to use keypad to move tiles to
...
board. Enabling key-to-text works, but constants to turn it off
aren't in cegcc. So for b2 add a quick hack where 1 means first tile
in tray, 7 means last (rightmost). Enable and test on gtk.
2008-05-11 20:29:43 +00:00
ehouse
290f505a98
While tap on draggable tile should not return it to tray, return-key on same tile should.
...
That's the only way to return a single tile on smartphone.
2008-05-11 16:20:37 +00:00
ehouse
f5b5da9dc5
Fix trade window draw and timer draw by setting clip rect. Change
...
softkey to turnDone when trading. Tweak trade-related user messages.
2008-05-11 15:25:04 +00:00
ehouse
1a2ce36bb0
A bit of cleanup; no code change.
2008-05-11 15:23:22 +00:00
ehouse
cf6a3db940
Work around what appears to be smartphone bug where grouped radio
...
buttons are not kept in sync by manually unchecking one when the
other's selected. Also add terminating WS_GROUP bits; they're supposed
to be there, but did not help.
2008-05-11 13:58:04 +00:00
ehouse
4e9f1c6c2b
remove unnecessary memset
2008-05-11 13:55:58 +00:00
ehouse
9617f503a9
Make prefs dialog narrower so fits smartphone screen.
2008-05-10 22:33:07 +00:00
ehouse
bbd9384a9e
fix win32 build
2008-05-10 21:11:54 +00:00
ehouse
180de81e58
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
3d6f26cc3d
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
e178b7ccf5
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
ebad668227
add some consts.
2008-05-06 12:49:37 +00:00
ehouse
6c81a63fce
redraw tray (if dirty) even if hidden. On wince at least this
...
prevents the bottoms of the tiles from peeking out from under a
partially obscuring board, giving away information. In cases where
the board completely hides the tray this is unnecessary, but making
that optimiztion can come later. This is a bug.
2008-04-14 01:31:53 +00:00
ehouse
ac63d5621f
Clean up saved games dialogs, and remove (temporarily) controls that
...
won't do anything for b2. Rename a couple of structs.
2008-04-13 17:14:16 +00:00
ehouse
63419db11a
Put game name in title bar on launch as well as after opening saved
...
game. Clear when opening unnamed/defaultnamed game
2008-04-13 17:01:09 +00:00
ehouse
18ea57fa38
Set clip rect before scrolling screen. Fixes bug where scroll forced
...
by hint left board drawn incorrectly.
2008-04-12 19:29:20 +00:00
ehouse
4730a23188
fix gtk_draw_vertScrollBoard to scroll bits rather than just letting
...
board inval everything.
2008-04-12 16:50:46 +00:00
ehouse
b085e0cea7
Fix drawing of cursor arrow by moving the clip rect.
2008-04-12 15:47:15 +00:00
ehouse
c2fbb06438
force miniwindow entirely onto board even if natural position is on
...
tray; fix overdrawing onto miniwindow by making timer proc return a
boolean and only redrawing (on wince) when it's true.
2008-04-12 15:36:31 +00:00
ehouse
ff254fcef4
add ability to scroll the board by dragging it. add new method
...
util_altKeyDown to allow user to choose between scrolling board and
dragging the hint rect when both are possible. add adjustYOffset;
make it and board_setYOffset more tolerant of out-of-bounds inputs and
use that to simplify calling code.
2008-04-08 03:55:53 +00:00
ehouse
fd4cc02c13
shorten dialog
2008-04-02 03:51:12 +00:00
ehouse
97b8d81d40
remove excessive logging
2008-04-02 03:50:55 +00:00
ehouse
11b0b4d254
up version number; test for CELL_DRAGSRC and treat same as empty.
2008-04-01 13:00:10 +00:00
ehouse
0225343c09
Remove params from ceDlgSetup and ceDoDlgFocusScroll; use the right
...
message to fetch text from listbox on CE.
2008-03-31 00:26:18 +00:00
ehouse
4516cde69c
Force redraw after timer fires. This allows scrolling to happen
...
during drag, but isn't the right fix. The timerProc should probably
return a boolean indicating whether redraw is needed.
2008-03-31 00:25:18 +00:00
ehouse
6c0d196f6c
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
10c9b15980
Remove params from ceDlgSetup and ceDoDlgFocusScroll
2008-03-31 00:23:07 +00:00
ehouse
7790bf13ff
make ceDlgSetup figure out from sizes whether to scroll; make
...
ceDoDlgFocusScroll parse params passed into WM_NEXTDLGCTL message to
figure out what object is about to get focus.
2008-03-31 00:22:24 +00:00
ehouse
da118a485a
Tweak layouts. Wrap color prefs dialog controls in macros so easier to tweak. Up version number.
2008-03-31 00:17:41 +00:00
ehouse
9e38eb7336
name change only
2008-03-30 23:58:04 +00:00
ehouse
1e7bc3839b
Implement scrolling during drag via timer rather than by counting on
...
getting notified when pen is dragged off the board. The latter won't
happen if the board is up against the edge of the screen.
2008-03-29 20:23:27 +00:00
ehouse
1172502b04
If search limits in use, try vertical as well as horizontal initial moves.
2008-03-29 19:40:03 +00:00
ehouse
75ab88565d
implement util_yOffsetChange; increase pen timer to half second.
2008-03-27 04:12:16 +00:00
ehouse
ae67a58a26
Attempt to find font that best fits string to encosing rect. Works
...
but only with a hack: need to understand pango better.
2008-03-25 12:47:05 +00:00