ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> scintilla-interest
scintilla-interest
Re: [scintilla] GetStyleAt always returns 0
by Neil Hodgson other posts by this author
Feb 28 2004 9:49PM messages near this date
[scintilla] GetStyleAt always returns 0 | Re: [scintilla] New Guy - Question
Otto Wyss:

>  Right after I insert text from a file into scintilla I run through this
>  text and retrieve the folding level and the style of each position but
>  GetStyleAt always returns 0. Is there a time lag until this information
>  is available? If I later use GetStyleAt everything is fine.
> 
>  How can I solve this situation?

   Styling is performed only as required to ensure the user sees styled text
so it occurs when the window is painted. Ask for the document to be styled
explicitly with SendEditor(SCI_COLOURISE, 0, -1);

   Neil

_______________________________________________
Scintilla-interest mailing list
Scintilla-interest@[...].org
http://mailman.lyra.org/mailman/listinfo/scintilla-interest
Thread:
Otto Wyss
Neil Hodgson
Neil Hodgson
Doyle Whisenant

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved