Opened 19 years ago

Closed 19 years ago

Last modified 18 years ago

#1 closed (fixed)

Setting initial focus to a widget control fails for [OK] and [Cancel] buttons

Reported by: Jan van Wijk Owned by: anonymous
Priority: normal Milestone: milestone1
Component: component1 Version: 1.0
Severity: normal Keywords: widget focus
Cc:

Description

Settuing initial focus is done by specifying the INDEX to the widget that needs to get the initial focus at dialog creation. This fails for standard bottons like[OK]

Change History (9)

comment:1 by anonymous, 19 years ago

Owner: changed from Jan van Wijk to anonymous
Status: newassigned

comment:2 by Jan van Wijk, 19 years ago

Resolution: fixed
Status: assignedclosed

comment:3 by Jan van Wijk, 19 years ago

Problem was caused by thios buttons having different Window-IDs. Other widgets have base+index, while these have fixed DID_OK and DID_CANCEL This needs to be checked when setting focus at dialog creation. If the 'explicit' window-ID in the widget is non-zero, that must be used as target windows-ID, not the calculated base+index value.

Fixed in changeset 6

comment:4 by Jan van Wijk, 19 years ago

Version: 1.0

comment:5 by kkkkoaaa, 18 years ago

Keep a good job up! http://quick-adult-links.com

Note: See TracTickets for help on using tickets.