Search found 19 matches

by Vaulter
Sat Sep 24, 2005 9:51 am
Forum: C++ Development
Topic: wxTreeCtrl question.
Replies: 5
Views: 1490

create treevtrl with wxTR_HIDE_ROOT
Use this style to suppress the display of the root node, effectively causing the first-level nodes to appear as a series of root nodes.
by Vaulter
Fri Sep 23, 2005 4:42 am
Forum: C++ Development
Topic: wxNotebook wrong focus when hide.
Replies: 9
Views: 2791

Re: wxNotebook wrong focus when hide.

sel = event.GetSelection(); if ( sel != -1 ) { wxNotebookPage *pPage = m_pages[sel]; pPage->Show(true); } if ( IsShown() ) SetFocus(); m_nSelection = sel; I will post a patch to SF. I think, we have to check for visibility all parents. if we just check IsShown() - so, wxNotebook is NOT hidden on fo...
by Vaulter
Thu Sep 22, 2005 11:24 am
Forum: C++ Development
Topic: wxNotebook wrong focus when hide.
Replies: 9
Views: 2791

priyank_bolia wrote:Get the focus before addpage by FindFocus, and setfocus after the addpage to the window returned by FindFocus.
heh, and as a result - something like GTA:SA will unresonable dissapear and then restore back?
by Vaulter
Thu Sep 22, 2005 5:52 am
Forum: C++ Development
Topic: wxNotebook wrong focus when hide.
Replies: 9
Views: 2791

wxNotebook wrong focus when hide.

is it right to set focus when window with wxNotebook is hidden? MyFrame::MyFrame() { wxNotebook* sometabs = new wxNotebook(); } //... this->Show(false);//hide form //... sometabs->AddPage(/*...*/);//addpage. what going on: wxNotebook::AddPage() -> wxNotebook::InsertPage() -> wxNotebook::SetSelection...
by Vaulter
Thu Sep 22, 2005 4:16 am
Forum: C++ Development
Topic: wxHtmlWindow and online images ?
Replies: 11
Views: 3581

xtn wrote: Ok, but in that way how to get the images ?
at first, load to string tmp.html (htm)
then parse it by regex something like that:

Code: Select all

<img[^>src]+src=(('|")?[^'"\s]*('|")?)
then for all Matches(1) download images and save
by Vaulter
Wed Sep 21, 2005 6:41 am
Forum: C++ Development
Topic: how to append conent to a file?
Replies: 5
Views: 1485

i always use that:

Code: Select all

wxFFile f;
f.Open("some","ab");//for not text.

[/code]
by Vaulter
Thu Sep 15, 2005 10:10 am
Forum: C++ Development
Topic: Wrong logic in wxHtmlWindow?
Replies: 3
Views: 1221

Hi! The logic is quite correct. You forgot to quote one important ifdef block: #if !wxUSE_UNICODE So, using the control your way in a unicode build should work correctly. Otherwise it will reset the encoding. Try again with a unicode build. but i am not using Unicode and do not want and do not on t...
by Vaulter
Thu Sep 15, 2005 10:05 am
Forum: C++ Development
Topic: Wrong logic in wxHtmlWindow?
Replies: 3
Views: 1221

now i use this code to pass this problem

Code: Select all

class HtmlChatBox :	public wxHtmlWindow
{
  bool HtmlChatBox::SetPage(wxString& source)
  {	
    m_Parser->SetInputEncoding(wxFONTENCODING_CP1251);
    return wxHtmlWindow::SetPage(source);
  }
}
by Vaulter
Thu Sep 15, 2005 9:52 am
Forum: C++ Development
Topic: Wrong logic in wxHtmlWindow?
Replies: 3
Views: 1221

Wrong logic in wxHtmlWindow?

i write this code:

Code: Select all

//assume that's wxFrame child class...
wxHtmlWindow* myhtml = new wxHtmlWindow(this);
myhtml->SetInputEncoding(wxFONTENCODING_CP1251);
myhtml->AppendToPage("<center>!!!some this in cyrilic (
by Vaulter
Mon Sep 12, 2005 6:40 am
Forum: C++ Development
Topic: Newlines in tooltips
Replies: 16
Views: 5847

I see the change in the code but I do not want to apply it blindly so I would like to ask for some more from you. Could you please write some explanation why do you want once again measure the font in that place? Moreover could you modernize your patch so it could not duplicate code from other plac...
by Vaulter
Fri Sep 09, 2005 1:41 pm
Forum: C++ Development
Topic: Newlines in tooltips
Replies: 16
Views: 5847

patch from 1.42 to 1.43 doesn't solve this problem i suggest this code of wxToolTip::SetTip void wxToolTip::SetTip(const wxString& tip) { m_text = tip; if ( m_window ) { // update the tip text shown by the control wxToolInfo ti(GetHwndOf(m_window)); ti.lpszText = (wxChar *)m_text.c_str(); if ( m...
by Vaulter
Tue Aug 16, 2005 12:11 pm
Forum: The Code Dump
Topic: Latest wxTreeMultiCtrl Code
Replies: 36
Views: 18145

but how about retrieving XML back with user answers and choises?
ps: or its offtopic? sorry
by Vaulter
Fri Jul 22, 2005 6:40 am
Forum: The Code Dump
Topic: Latest wxTreeMultiCtrl Code
Replies: 36
Views: 18145

its now works fine, but under compiling through Bakefile (not CMake!), so
Jorg wrote:So it must have been a mistake by CMake then ;-)
by Vaulter
Wed Jul 20, 2005 11:37 am
Forum: The Code Dump
Topic: Latest wxTreeMultiCtrl Code
Replies: 36
Views: 18145

so, i compiled multictrltest.exe
in Debug mode
and just after start of it get:
Image
Image
by Vaulter
Wed Jul 20, 2005 10:49 am
Forum: The Code Dump
Topic: Latest wxTreeMultiCtrl Code
Replies: 36
Views: 18145

i think its because not correct img_data allocation. i use wxWidgets 2.6.1 (static. debug. nonunicode) i see the default_expand.xpm - it ok. one question: may it be if i compiled wxTreeMultiCtrl under: F:\wxWidgets-2.6.1\treemultictrl\ - folder, not in wxWidgets folder itself? after that move .h and...