Ticket #1 (closed: fixed)

Opened 3 years ago

Last modified 2 years ago

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

Reported by: jvw 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

Changed 3 years ago by anonymous

  • owner changed from jvw to anonymous
  • status changed from new to assigned

Changed 3 years ago by jvw

  • status changed from assigned to closed
  • resolution set to fixed

Changed 3 years ago by jvw

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

Changed 3 years ago by jvw

  • version set to 1.0

Changed 2 years ago by kkkkoaaa

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

Note: See TracTickets for help on using tickets.