Add wxSpinCtrl::SetIncrement() and implement it for all ports
SetIncrement() was already available in wxSpinCtrlDouble and GTK version of wxSpinCtrl, now implement support for it in wxMSW and wxOSX as well. In fact, in wxMSW, implement it at wxSpinButton level, so that both this class and wxSpinCtrl inheriting from it (in wxMSW only) support setting custom increment now. Also add support for it to XRC, show it in the sample and add a unit test verifying that it works. Closes #2597.
This commit is contained in:
parent
57b4a11f24
commit
995c6e6df5
19 changed files with 195 additions and 8 deletions
|
|
@ -1482,7 +1482,8 @@ wxSpinButton =
|
|||
stdWindowProperties &
|
||||
[xrc:p="o"] element value {_, t_integer }* &
|
||||
[xrc:p="o"] element min {_, t_integer }* &
|
||||
[xrc:p="o"] element max {_, t_integer }*
|
||||
[xrc:p="o"] element max {_, t_integer }* &
|
||||
[xrc:p="o"] element inc {_, t_integer }*
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -1494,7 +1495,8 @@ wxSpinCtrl =
|
|||
[xrc:p="o"] element value {_, t_integer }* &
|
||||
[xrc:p="o"] element min {_, t_integer }* &
|
||||
[xrc:p="o"] element max {_, t_integer }* &
|
||||
[xrc:p="o"] element base {_, ("10" | "16") }*
|
||||
[xrc:p="o"] element base {_, ("10" | "16") }* &
|
||||
[xrc:p="o"] element inc {_, t_integer }*
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue