Author Topic: SED Editor 2.03  (Read 20772 times)

0 Members and 1 Guest are viewing this topic.

Offline José Roca

  • Administrator
  • Hero Member
  • *****
  • Posts: 2525
  • User-Rate: +209/-0
  • Gender: Male
Re: SED Editor 2.03
« Reply #15 on: December 06, 2022, 07:40:26 PM »
How? You will have to loook in the code of the Scintilla control.

Offline Zlatko Vid

  • Sr. Member
  • ****
  • Posts: 298
  • User-Rate: +2/-2
Re: SED Editor 2.03
« Reply #16 on: December 06, 2022, 07:46:58 PM »
hmm
this must be some kind of craft
i found here typical tab selection only

Code: [Select]
' // Tab control selection changed
            CASE %TCN_SELCHANGE
               IF @pnmhdr.idFrom = %IDC_TABMDI THEN
                  ' // Identify the selected tab
                  nTab = TabCtrl_GetCurSel(pSed.hTabMdi)
                  ' // Activate the associated edit control
                  IF pSed.TabFilePaths.Count => nTab + 1 THEN
'                     vPath = pSed.TabFilePaths.Item(nTab + 1)
                     pTabFilePaths = pSed.TabFilePaths
                     vPath = pTabFilePaths.Item(nTab + 1)
                     CSED_TabMdiActivateWindow(VARIANT$$(vPath))
                  END IF
               END IF

Offline Zlatko Vid

  • Sr. Member
  • ****
  • Posts: 298
  • User-Rate: +2/-2
Re: SED Editor 2.03
« Reply #17 on: December 06, 2022, 07:51:13 PM »
I have saved each file path very similar like you made it in CSED
in my case each tab have array index same as tab
and that part work well but when i try to
store each line position in array i get always position 1
so focus is returned to line 1

sorry Jose i don't want to bothering you with all this
probably i am doing something wrong all the time .

Offline Zlatko Vid

  • Sr. Member
  • ****
  • Posts: 298
  • User-Rate: +2/-2
Re: SED Editor 2.03
« Reply #18 on: December 07, 2022, 08:45:16 PM »
I re - check again each step and found that i miss to setFocus on scintilla control
seems to me that now my way with array which hold line position work

Offline José Roca

  • Administrator
  • Hero Member
  • *****
  • Posts: 2525
  • User-Rate: +209/-0
  • Gender: Male
Re: SED Editor 2.03
« Reply #19 on: December 07, 2022, 11:28:02 PM »
I don't understand why you like to complicate your life so much. The only thing that you need to do is to use SetFocus <handle of the Scintilla control>.

Offline Zlatko Vid

  • Sr. Member
  • ****
  • Posts: 298
  • User-Rate: +2/-2
Re: SED Editor 2.03
« Reply #20 on: December 08, 2022, 07:22:17 AM »
I don't complicate at all...my code editor is really simple
setFous hsci was in my case on wrong place so that is why not work properly