CodeEditor: Closing in keep open mode (thanks Sender Ghost)

git-svn-id: svn://ultimatepp.org/upp/trunk@6317 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2013-09-05 18:11:35 +00:00
parent 376c8fcd08
commit ac82cf619a
2 changed files with 9 additions and 10 deletions

View file

@ -429,11 +429,7 @@ void CodeEditor::BlockReplace()
void CodeEditor::OpenNormalFindReplace(bool replace)
{
if(findreplace.IsOpen())
findreplace.Close();
findreplace.Setup(replace);
findreplace.itext = GetI();
findreplace.Title(replace ? "Find and Replace" : "Find");
findreplace.findback.Show();
@ -445,7 +441,9 @@ void CodeEditor::OpenNormalFindReplace(bool replace)
void CodeEditor::FindReplace(bool pick_selection, bool pick_text, bool replace)
{
CloseFindReplace();
if(findreplace.IsOpen())
findreplace.Close();
replacei = 0;
findreplace.CenterOwner();
WString find_text;

View file

@ -1,4 +1,5 @@
topic "Basic Use and Description";[2 $$0,0#00000000000000000000000000000000:Default]
topic "Basic Use and Description";
[2 $$0,0#00000000000000000000000000000000:Default]
[l288;i1120;a17;O9;~~~.1408;2 $$1,0#10431211400427159095818037425705:param]
[a83;*R6 $$2,5#31310162474203024125188417583966:caption]
[b83;*4 $$3,5#07864147445237544204411237157677:title]
@ -100,7 +101,7 @@ object to use.&]
user`=user1 password`=pass1`")&]
[s24; The [C Open()] function returns a true or false value depending
on success of connecting to database.&]
[s25;ISqlid objects; SqlId objects:&]
[s25; [ISqlid objects; SqlId objects:]&]
[s24; SqlId objects aid the formation of sql statements by mapping
database field/column names to local variables.&]
[s7; SqlId all(`"`*`");&]
@ -110,7 +111,7 @@ SQL CRUD statements in our code.&]
[s24; As mentioned previously, all of the declarations in our schema
file that end in an underscore will automatically be declared
as SqlId variables we can access in our source code. &]
[s25;1 Example use of SqlId variables:&]
[s25; [1 Example use of SqlId variables:]&]
[s7; sql `* Insert(PERSON)(NAME, `"John Smith`") (BIRTH`_DATE, Date(1980,8,20))
(NUM`_CHILDREN, 1)&]
[s24; The variables [C PERSON, NAME, BIRTH`_DATE, NUM`_CHILDREN] were
@ -123,7 +124,7 @@ operate on a session.&]
[s7; Sql sql(m`_session); //define Sql object to act on Session object
m`_session.&]
[s25; Queries&]
[s25;1 Select example:&]
[s25; [1 Select example:]&]
[s7; sql `* Select(all).From(PERSON).Where(person`_name `=`= `"John
Smith`");&]
[s24; Note: Here we can use `"all`" because we defined it as an [C SqlId
@ -165,4 +166,4 @@ array index (Ie. `"[C sql`[0`]]`").&]
[s24; Notice the use of AsString() here. sql`[id`] returns a U`+`+
Value type object. You can then convert that Value type to its
appropriate type afterward.&]
[s0; ]
[s0; ]]