wxSTC_MASK_FOLDERS = -1;

"janez pre?a" <[email protected]>
Newsgroups gmane.comp.lib.wxwindows.wxnet
Message-ID <[email protected]>
whit this parameter you can set folding margin
( see http://www.scintilla.org/ScintillaDoc.html#SCI_SETMARGINMASKN for 
documentation)
the problem is that wx.StyledTextCtrl.wxSTC_MASK_FOLDERS  is uint but 
SetMarginMask is
SetMarginMask(int, int) where first parameter is margin number and second is 
mask.
-1 works just fine, but im not to familiar with scintilla.(maybe there are 
some other if you use here -1).

I also suggest


extern "C" WXEXPORT
wxString* wxMenuItem_GetName(wxMenuItem* self)
{
    return new wxString(self->GetText());
}

extern "C" WXEXPORT
void wxMenuItem_SetName(wxMenuItem* self, char* str)
{
	self->SetText(wxString(str, wxConvUTF8));
}

in menuitem .cxx.

i also have a question about filedialog.
if i use(windows 2003 or xp build with VS .NET 2003) for example.
onFopen()
{
....
string filename = "";
FileDialog fd = new FileDialog(this,"select file to 
open",null,null,"*.*",wx.FileDialogStyle.wxOPEN|wx.FileDialogStyle.wxFILE_MUST_EXIST);
filename = fd.Path;
fd = null;
GC.Collect();
....
....
}

on method exit I get exeption with below output:

	00000000()
	wx.net.dll!wx.Object.Dispose(bool disposing = false) Line 153	C#
	wx.net.dll!wx.wxString.Finalize() Line 39 + 0xa bytes	C#

If i remove GC.Collect(); from code i get this error on application exit.
looks like some lost reference or pointer. but i didn't manage to solve 
problem.
but with wxGTK works  fine.


thanks for now it is really nice project.

_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.