Jiri Pavlovsky wrote:
Mattia Barbon napsal(a):
jira wrote:

  Hi,

how can I get a atyle at caret position.
None of the GetStyle* methods seem to work under wxperl.
I get an error that the method doesn't exist.

The methods have been renamed for wxPerl, but I forgot to document it; you can use

  my $style = $rtc->GetTextAttrStyle( $pos );
  my $style_ex = $rtc->GetTextAttrExStyle( $pos );
  my $style_rich = $rtc->GetRichTextAttrStyle( $pos );

all get methods for styles have been renamed this way, for example you can use

Thanks, I'll try that.


  my $style_rich = $rtc->GetRichTextAttrStyleForRange( $range );

and

  my $style = $rtc->GetTextAttrUncombinedStyle( $pos );

  Setter methods haven't been renamed and should work as documented.




For setter methods I was getting error: 'cannot resolve overloaded method' or similar.

  It means you are passing an argument with the wrong type.

Regards,
Mattia

Reply via email to