Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
625ed22f
Commit
625ed22f
authored
Nov 25, 2007
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
portable SetFocus() example
parent
10b14fea
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
14 deletions
+39
-14
dialog_track_options.cpp
pcbnew/dialog_track_options.cpp
+27
-9
dialog_track_options.h
pcbnew/dialog_track_options.h
+12
-5
No files found.
pcbnew/dialog_track_options.cpp
View file @
625ed22f
...
...
@@ -51,6 +51,8 @@ BEGIN_EVENT_TABLE( WinEDA_PcbTracksDialog, wxDialog )
EVT_BUTTON
(
wxID_CANCEL
,
WinEDA_PcbTracksDialog
::
OnCancelClick
)
EVT_ACTIVATE
(
WinEDA_PcbTracksDialog
::
OnActivate
)
////@end WinEDA_PcbTracksDialog event table entries
END_EVENT_TABLE
()
...
...
@@ -69,6 +71,22 @@ WinEDA_PcbTracksDialog::WinEDA_PcbTracksDialog( WinEDA_PcbFrame* parent, wxWindo
Create
(
parent
,
id
,
caption
,
pos
,
size
,
style
);
}
/**
* Function OnActivate
* gets control when the dialog becomes activated.
* After creation, not during creation.
*/
void
WinEDA_PcbTracksDialog
::
OnActivate
(
wxActivateEvent
&
event
)
{
m_OptViaSize
->
SetFocus
();
// deselect the existing text, seems SetFocus() wants to emulate Microsoft, which is not desireable here.
m_OptViaSize
->
SetSelection
(
0
,
0
);
event
.
Skip
();
}
/*!
* WinEDA_PcbTracksDialog creator
*/
...
...
pcbnew/dialog_track_options.h
View file @
625ed22f
...
...
@@ -88,6 +88,13 @@ public:
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CANCEL
void
OnCancelClick
(
wxCommandEvent
&
event
);
/**
* Function OnActivate
* gets control when the dialog becomes activated.
* After creation, not during creation.
*/
void
OnActivate
(
wxActivateEvent
&
event
);
////@end WinEDA_PcbTracksDialog event handler declarations
////@begin WinEDA_PcbTracksDialog member function declarations
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment