Search found 199 matches

by Ksmith22
Fri Feb 17, 2006 3:19 pm
Forum: General Development
Topic: wxHtmlWindow problem loading an URL
Replies: 5
Views: 25826

Re: wxHtmlWindow problem loading an URL

Hello, I was trying to use wxHtmlWindow but I could not load any URL. I wrote: htmlWindow- LoadPage("http://www.site.com/bin/helloworld.asp"); Showed error mesage was: Unable to open requested HMTL document: http://www.site.com/bin/helloworld.asp What is the problem? Thank you!! If that's...
by Ksmith22
Fri Feb 17, 2006 3:15 pm
Forum: Compiler / Linking / IDE Related
Topic: Link Error when using wxWidgets w/ MFC
Replies: 4
Views: 1769

Re: I'll try to help

Have your tried compiling it against another compiler/IDE? if ! try using wxDevCpp || mingw, etc... I don't have any other compilers on this computer and I'd really rather not compile it on another one anyways. I've already got everything setup for VS .NET and I don't have the time to setup both a ...
by Ksmith22
Thu Feb 16, 2006 9:09 pm
Forum: C++ Development
Topic: wxListCtrl detecting Not selected items.
Replies: 7
Views: 2252

Yea this is what i had in mind. Thats why i said its simple. But it wont work as you sugest becouse m_stateMask can be ANY COMBINATION OF wxLIST_STATE_FOCUSED etc. I think i got some basics wrong. I thought that m_stateMask & wxLIST_STATE_SELECTED should return true (bwxLIST_STATE_SELECTED) whe...
by Ksmith22
Thu Feb 16, 2006 7:29 pm
Forum: C++ Development
Topic: wxListCtrl detecting Not selected items.
Replies: 7
Views: 2252

Re: wxListCtrl detecting Not selected items.

I am writing two wersions of function one works on selected items the other on not selected. I have problem with checking if item is Not selected. It should be very easy but i just cant crack it. :oops: Any ideas how to do it? Try deriving a class from wxListCtrl and writing EVT_LIST_ITEM_SELECTED ...
by Ksmith22
Thu Feb 16, 2006 5:29 pm
Forum: Component Writing
Topic: wxPanel over existing elements
Replies: 5
Views: 2294

The trouble is that my panel only partially cover the old one. And actually part of my component should appear over another component. This is something like combo box in bahavious - it appears over components that are below it. And I'm going to do something similiar but instead of rolling down it ...
by Ksmith22
Thu Feb 16, 2006 4:00 pm
Forum: Component Writing
Topic: Creating new controls with transparent bitmaps?
Replies: 6
Views: 3018

I fixed my problem a different way. I passed a pointer to the background bitmap to the control and told it to redraw the section underneath the control. It does fix the background problem very well. However, I wanted to inherit from a wxStaticText control and do something similar. While that worked...
by Ksmith22
Thu Feb 16, 2006 3:57 pm
Forum: Component Writing
Topic: wxPanel over existing elements
Replies: 5
Views: 2294

If you are displaying a new panel over an old one, maybe you can hide (wxWindow::Show(false)) the old one before showing (wxWindow::Show(true)) the new one. That's exactly what I do with my apps.. something like this: wxPanel panel1(...etc...); wxPanel panel2(...etc...); panel2.Show(false); // Some...
by Ksmith22
Thu Feb 16, 2006 3:50 pm
Forum: Compiler / Linking / IDE Related
Topic: Link Error when using wxWidgets w/ MFC
Replies: 4
Views: 1769

This topic is a bit old but I never did get an answer on the issue (or come up with a fix myself). I'm still having this problem so I figured I would bump it to see if anyone has any ideas.
by Ksmith22
Wed Feb 15, 2006 9:57 pm
Forum: C++ Development
Topic: Download image on a backgroung thread
Replies: 9
Views: 2361

Re: already done

Lamego wrote:Ksmith22,
I did apply that wxURL fix you have mentioned on the first place because it was also blocking on me (and I have looked around on the forum for it).

Anyway thanks for the tip :)
Yeah, it must be some other problem then. Hopefully they will clean up wxURL soon and fix all those errors.
by Ksmith22
Wed Feb 15, 2006 9:32 pm
Forum: C++ Development
Topic: Problem with wxTextCtrl KeyEvent & Focus
Replies: 15
Views: 5043

Great! I was beginning to get worried . . . Erm, you haven't mentioned popping the handler again. If you don't, every button-press will add yet another handler to the chain. Which probably won't matter, but still. Good point. I revised it, so this should take care of that: FindFocus()->PushEventHan...
by Ksmith22
Wed Feb 15, 2006 8:54 pm
Forum: C++ Development
Topic: Problem with wxTextCtrl KeyEvent & Focus
Replies: 15
Views: 5043

I don't think the other suggestion would work either since the function called by the Enter keypress is specific to InputBox. But you would be pushing the new event handler onto each InputBox (these are the textctrls, aren't they?). All the (latest version) event handler is doing is killing consecu...
by Ksmith22
Wed Feb 15, 2006 8:01 pm
Forum: C++ Development
Topic: Problem with wxTextCtrl KeyEvent & Focus
Replies: 15
Views: 5043

Thanks, that makes it a bit clearer. But won't this work? void InputBox::OnEnter(wxKeyEvent& evt) { // Check to see if keypress is "Enter" if(evt.GetKeyCode() == WXK_RETURN || evt.GetKeyCode() == WXK_NUMPAD_ENTER) { PushEventHandler(new MyEvtHandler); callback(object); // Run the pass...
by Ksmith22
Wed Feb 15, 2006 7:04 pm
Forum: C++ Development
Topic: Problem with wxTextCtrl KeyEvent & Focus
Replies: 15
Views: 5043

I can't visualise your code sufficiently to understand the problem. I'd have thought that there must be a place where you've just noticed an Enter in the last text, so you're about to call the message dialog. That's where the push/call/pop sequence would go. But presumably you've done something dif...
by Ksmith22
Wed Feb 15, 2006 6:10 pm
Forum: C++ Development
Topic: Problem with wxTextCtrl KeyEvent & Focus
Replies: 15
Views: 5043

Failing that, why not push a new derived wxEvtHandler on the textctrl just before the MessageDialog. This could be made to swallow all key events until you pop it again. I'm not really sure how to do that, nor do I think I want to go that far for something that is kind of trivial. I thought it was ...
by Ksmith22
Wed Feb 15, 2006 4:41 pm
Forum: C++ Development
Topic: Problem with wxTextCtrl KeyEvent & Focus
Replies: 15
Views: 5043

wxYieldIfNeeded() is undocumented indeed. Could use wxApp::Yield with the appropriate arguments if you don't want to use undocumented functions that might disappear at some point of time. The problem in wxGTK is precisely that the focus pointer still points at the control that had the focus, but sh...