Property | Type | Description | |
---|---|---|---|
btnScrPsgDropDown | |||
m_dropdownForm | |||
m_mulScrBooks | SILUBS.SharedScrUtils.MultilingScrBooks | ||
m_scrProj | IScrProjMetaDataProvider | ||
txtScrRef |
Property | Type | Description | |
---|---|---|---|
DisplayDropDown | void | ||
DisplayErrorMessage | void | ||
DropDownChapterSelected | void | ||
DropDownClosed | void | ||
DropDownShouldGoUp | bool | ||
HandleDropDown | void | ||
HandleSizeChanged | void | ||
InitializeBookLabels | void | ||
InitializeComponent | void | ||
OnParentChanged | void | ||
PaintNonThemeButton | void | ||
PaintOnToolbar | void | ||
PositionDropDown | void | ||
btnScrPsgDropDown_MouseEnter | void | ||
btnScrPsgDropDown_MouseLeave | void | ||
btnScrPsgDropDown_MouseUp | void | ||
btnScrPsgDropDown_Paint | void | ||
btnScrPsgDropDown_PaintOnToolstrip | void | ||
txtScrRef_GotFocus | void | ||
txtScrRef_LostFocus | void | ||
txtScrRef_MouseEnter | void | ||
txtScrRef_MouseLeave | void |
Method | Description | |
---|---|---|
Initialize ( SILUBS.SharedScrUtils.ScrReference reference ) : void |
Initialization, either from constructor or elsewhere following the default constructor.
|
|
Initialize ( SILUBS.SharedScrUtils.ScrReference reference, int availableBooks ) : void |
Initialization, either from constructor or elsewhere following the default constructor.
|
|
IsReferenceValid ( SILUBS.SharedScrUtils.ScrReference scrRef ) : bool |
Determines whether the specified ScrReference is in the list of available books.
|
|
ParseRefString ( string sTextToBeParsed ) : SILUBS.SharedScrUtils.ScrReference |
Parses the user typed in string. Creates and returns a ScrReference object.
|
|
PreFilterMessage ( |
Because Del and Ctrl+A are menu item shortcuts, if our ref. text box has focus, then we need to trap them before the menu system gets a crack at them.
|
|
ResolveReference ( ) : void |
Resolve the reference specified in the text box
|
|
ScrPassageControl ( ) : System |
Default constructor
|
|
ScrPassageControl ( SILUBS.SharedScrUtils.ScrReference reference, IScrProjMetaDataProvider scrProj, ScrVers versification ) : System |
Non-default constructor
|
Method | Description | |
---|---|---|
CreateMultilingScrBooks ( IScrProjMetaDataProvider scrProj, ScrVers versification ) : void |
Creates the object that can provide multi-lingual names and abbreviations for Scripture books.
|
|
CreateScrPassageDropDown ( |
Create a new ScrPassageDropDown object
|
|
Dispose ( bool disposing ) : void |
Clean up any resources being used.
|
|
DropDownBookSelected ( int book ) : void |
If the book has changed, parse the new reference and display it in the text box.
|
|
InvokePassageChanged ( SILUBS.SharedScrUtils.ScrReference reference ) : void |
Invoke the PassageChanged event
|
|
OnEnabledChanged ( |
Make sure the panel control behind the text box takes on the same back color as the text box.
|
|
OnHandleDestroyed ( |
Make sure the dropdown control isn't left hanging around after this control goes away.
|
|
OnPaint ( PaintEventArgs e ) : void |
|
|
OnResize ( |
This will center the text box vertically within the control.
|
|
btnScrPsgDropDown_MouseDown ( object sender, System e ) : void |
|
|
txtScrRef_KeyDown ( object sender, |
|
|
txtScrRef_KeyPress ( object sender, |
Handle the key press to look for Enter keys.
|
Method | Description | |
---|---|---|
DisplayDropDown ( ) : void | ||
DisplayErrorMessage ( ) : void | ||
DropDownChapterSelected ( int book, int chapter ) : void |
|
|
DropDownClosed ( object sender, |
This is the method that the dropdown will call to notify me that it is closed.
|
|
DropDownShouldGoUp ( Point screenPoint, SILUBS.SharedScrControls.ScrPassageDropDown dropDown ) : bool |
Determine if the drop down should go above the ScrPassageControl or below it.
|
|
HandleDropDown ( ) : void |
Display the drop down if it doesn't show, or close it if it does show.
|
|
HandleSizeChanged ( object sender, |
||
InitializeBookLabels ( ) : void |
|
|
InitializeComponent ( ) : void |
Required method for Designer support - do not modify the contents of this method with the code editor.
|
|
OnParentChanged ( |
||
PaintNonThemeButton ( |
|
|
PaintOnToolbar ( PaintEventArgs e ) : void |
|
|
PositionDropDown ( SILUBS.SharedScrControls.ScrPassageDropDown dropDown ) : void |
Position the drop down control.
|
|
btnScrPsgDropDown_MouseEnter ( object sender, System e ) : void |
|
|
btnScrPsgDropDown_MouseLeave ( object sender, System e ) : void |
|
|
btnScrPsgDropDown_MouseUp ( object sender, System e ) : void |
|
|
btnScrPsgDropDown_Paint ( object sender, PaintEventArgs e ) : void |
|
|
btnScrPsgDropDown_PaintOnToolstrip ( PaintEventArgs e ) : void | ||
txtScrRef_GotFocus ( object sender, System e ) : void |
When gaining the focus, highlight the entire text.
|
|
txtScrRef_LostFocus ( object sender, System e ) : void |
Handle the text box losing focus. Resolve the reference that has been typed in.
|
|
txtScrRef_MouseEnter ( object sender, |
|
|
txtScrRef_MouseLeave ( object sender, |
|
protected CreateMultilingScrBooks ( IScrProjMetaDataProvider scrProj, ScrVers versification ) : void | ||
scrProj | IScrProjMetaDataProvider | The Scripture project meta-data provided (can be null). |
versification | ScrVers | The default versification to use for references if /// scrProj is not set. |
return | void |
protected CreateScrPassageDropDown ( |
||
owner | The ScrPassageControl that will own the drop-down control | |
return | SILUBS.SharedScrControls.ScrPassageDropDown |
protected DropDownBookSelected ( int book ) : void | ||
book | int | |
return | void |
public Initialize ( SILUBS.SharedScrUtils.ScrReference reference ) : void | ||
reference | SILUBS.SharedScrUtils.ScrReference | Initial reference |
return | void |
public Initialize ( SILUBS.SharedScrUtils.ScrReference reference, int availableBooks ) : void | ||
reference | SILUBS.SharedScrUtils.ScrReference | Initial reference |
availableBooks | int | Array of canonical book IDs to include |
return | void |
protected InvokePassageChanged ( SILUBS.SharedScrUtils.ScrReference reference ) : void | ||
reference | SILUBS.SharedScrUtils.ScrReference | The reference. |
return | void |
public IsReferenceValid ( SILUBS.SharedScrUtils.ScrReference scrRef ) : bool | ||
scrRef | SILUBS.SharedScrUtils.ScrReference | The given ScrReference |
return | bool |
protected OnEnabledChanged ( |
||
e | ||
return | void |
protected OnHandleDestroyed ( |
||
e | ||
return | void |
protected OnPaint ( PaintEventArgs e ) : void | ||
e | PaintEventArgs | |
return | void |
protected OnResize ( |
||
e | ||
return | void |
public ParseRefString ( string sTextToBeParsed ) : SILUBS.SharedScrUtils.ScrReference | ||
sTextToBeParsed | string | Reference string the user types in. |
return | SILUBS.SharedScrUtils.ScrReference |
public PreFilterMessage ( |
||
m | ||
return | bool |
public ScrPassageControl ( SILUBS.SharedScrUtils.ScrReference reference, IScrProjMetaDataProvider scrProj, ScrVers versification ) : System | ||
reference | SILUBS.SharedScrUtils.ScrReference | Initial reference |
scrProj | IScrProjMetaDataProvider | Object that can provide meta-dat information about a Scripture /// project. |
versification | ScrVers | The versification to use if scrProj is not set. |
return | System |
protected btnScrPsgDropDown_MouseDown ( object sender, System e ) : void | ||
sender | object | |
e | System | |
return | void |
protected txtScrRef_KeyDown ( object sender, |
||
sender | object | |
e | ||
return | void |
protected txtScrRef_KeyPress ( object sender, |
||
sender | object | |
e | ||
return | void |
protected Panel,System.Windows.Forms btnScrPsgDropDown | ||
return |
protected Form,System.Windows.Forms m_dropdownForm | ||
return |
protected MultilingScrBooks,SILUBS.SharedScrUtils m_mulScrBooks | ||
return | SILUBS.SharedScrUtils.MultilingScrBooks |
protected IScrProjMetaDataProvider m_scrProj | ||
return | IScrProjMetaDataProvider |