Re: [Iup-users] IupScintilla document issue

2017-08-11 Thread Antonio Scuri
  Yes, it was recently fixed.

Best,
Scuri


2017-08-11 9:24 GMT-03:00 許永寬 :

> I look at r4353 Suorce code, but the IupSetInt( ih, "TARGETEND", 0 ); was
> OK at IUP3.22
>
> in IUP3.22:
> static int iScintillaSetTargetEndAttrib(Ihandle* ih, const char* value)
> {
>   int end;
>
>   if (!value)
> return 0;
>
>   iupStrToInt(value, &end);
>   if (end < 1) end = IupScintillaSendMessage(ih, SCI_GETTEXTLENGTH, 0, 0);
>
>   IupScintillaSendMessage(ih, SCI_SETTARGETEND, end, 0);
>
>   return 0;
> }
>
> 2017-08-11 20:17 GMT+08:00 許永寬 :
>
>> in:Search and Replace (since 3.10)
>>
>> *TARGETEND* (non inheritable): sets and gets the end of target. If set
>> 0, target end will be the last position of text.
>> But in the  iupsci_searching.c is:
>> static int iScintillaSetTargetEndAttrib(Ihandle* ih, const char* value)
>> {
>>   int end = -1;
>>
>>   iupStrToInt(value, &end);
>>
>>   if (end < 0) end = (int)IupScintillaSendMessage(ih, SCI_GETTEXTLENGTH,
>> 0, 0);
>>
>>   IupScintillaSendMessage(ih, SCI_SETTARGETEND, end, 0);
>>
>>   return 0;
>> }
>>
>> Look like we need Set < 0, target end will be the last position of text.
>>
>
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users


Re: [Iup-users] IupScintilla document issue

2017-08-11 Thread 許永寬
I look at r4353 Suorce code, but the IupSetInt( ih, "TARGETEND", 0 ); was
OK at IUP3.22

in IUP3.22:
static int iScintillaSetTargetEndAttrib(Ihandle* ih, const char* value)
{
  int end;

  if (!value)
return 0;

  iupStrToInt(value, &end);
  if (end < 1) end = IupScintillaSendMessage(ih, SCI_GETTEXTLENGTH, 0, 0);

  IupScintillaSendMessage(ih, SCI_SETTARGETEND, end, 0);

  return 0;
}

2017-08-11 20:17 GMT+08:00 許永寬 :

> in:Search and Replace (since 3.10)
>
> *TARGETEND* (non inheritable): sets and gets the end of target. If set 0,
> target end will be the last position of text.
> But in the  iupsci_searching.c is:
> static int iScintillaSetTargetEndAttrib(Ihandle* ih, const char* value)
> {
>   int end = -1;
>
>   iupStrToInt(value, &end);
>
>   if (end < 0) end = (int)IupScintillaSendMessage(ih, SCI_GETTEXTLENGTH,
> 0, 0);
>
>   IupScintillaSendMessage(ih, SCI_SETTARGETEND, end, 0);
>
>   return 0;
> }
>
> Look like we need Set < 0, target end will be the last position of text.
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users