Search found 391 matches

by Widgets
Mon Jul 14, 2008 8:39 pm
Forum: C++ Development
Topic: Painting wxtextCtrl background
Replies: 4
Views: 913

[quote="chris_bern"]I think you are looking for wxRichTextCtrl I have looked at that control, but I think it would be overkill and besides, it does not really change my problem. If I add background colors during the addition of the text, then I'm going to have to modify every line after the one modi...
by Widgets
Mon Jul 14, 2008 8:34 pm
Forum: C++ Development
Topic: Painting wxtextCtrl background
Replies: 4
Views: 913

Hi! Try the wxListCtrl. There you can change the color of each line (Item): http://wiki.wxwidgets.org/WxListCtrl#Using_Specific_Colours_for_Each_Item It's not so much that I can't change or don't know how to change the background color of a line when I add it. I think I need to do it from the erase...
by Widgets
Sat Jul 12, 2008 8:11 pm
Forum: C++ Development
Topic: Painting wxtextCtrl background
Replies: 4
Views: 913

Painting wxtextCtrl background

In a multi-line wxTextCtrl window, I would like to be able to paint the background of alternating lines a different color. I can do this easily enough when I first fill the control, but I do have to allow for adding and deleting of lines. So if I paint the background when I add the text, things get ...
by Widgets
Mon Jun 30, 2008 10:18 pm
Forum: C++ Development
Topic: Changing the button labels on wxMessageDialog
Replies: 3
Views: 649

Thank you both, I think I'll stick with Jim's suggestion. In my rush to get the question asked, I failed to mention that I actually had tried to build my own - using wxFormBuilder, but ran into much the same problems with the available options with that program ( my problem seemed to be to find the ...
by Widgets
Mon Jun 30, 2008 8:31 pm
Forum: C++ Development
Topic: Changing the button labels on wxMessageDialog
Replies: 3
Views: 649

Changing the button labels on wxMessageDialog

I would like to change the button labels on a wxMessageDialog from yes/no to "overwrite" & "use existing" before I show it, but I am stuck trying to do so. I have tried FindwindowById/byLabel/byName with both NULL as the 'parent' and the dialog itself. I have tried calling InitDialog() prior to find...
by Widgets
Thu May 08, 2008 4:57 pm
Forum: C++ Development
Topic: wxPluginManager and wxPluginLibrary
Replies: 40
Views: 8623

Two items in relation to upCase's plugin example. - for those who want to use it with dynamically linked wxWidgets, please see http://forums.wxwidgets.org/viewtopic.php?t=19036 - the other issue that came up for me after making the example work, is that the IMPLEMENT_LDR_PLUGIN macro - after I remov...
by Widgets
Tue May 06, 2008 11:32 pm
Forum: Platform Related Issues
Topic: trouble with wxDynamicLibrary
Replies: 21
Views: 3619

After spending a bit more time at it, I have been able to compile and link the basic plugin example posted by upCase http://www.upcase.de/stuff/wxPlugin.zip as two linked programs, one an exe, the plugin as a dll, both using wxWidgets as DLLs and I see the same problem fischi described and showed. W...
by Widgets
Tue May 06, 2008 6:37 pm
Forum: Platform Related Issues
Topic: trouble with wxDynamicLibrary
Replies: 21
Views: 3619

Thanks for letting us know; It is always good for the next guy who has the same problem to find the real solution :-)

I might even need it myself if I decide to move to a Dll based app.
by Widgets
Tue May 06, 2008 2:41 am
Forum: Platform Related Issues
Topic: trouble with wxDynamicLibrary
Replies: 21
Views: 3619

Good thing you uploaded your project files :-) It looks right now as though I have been wrong all along and had my current project, as well a your sample compiled with a _static_ version of wxWidgets - and both work as expected. I'm still in the process of sorting it all out and from the looks of th...
by Widgets
Wed Apr 30, 2008 3:38 pm
Forum: Platform Related Issues
Topic: trouble with wxDynamicLibrary
Replies: 21
Views: 3619

I have had problems with deprecated functions such as strdup etc because the compiler warns about the possibility of buffer overruns when they are used. MS has some replacement functions they recommend and if you're not concerned about portability to *nix, you may as well use them. You can avoid the...
by Widgets
Tue Apr 29, 2008 3:37 pm
Forum: Platform Related Issues
Topic: trouble with wxDynamicLibrary
Replies: 21
Views: 3619

My Visual Express says: 8.0.50727.42,
the .Net Framework:2.0.50727 SP1.

I rather doubt that that difference will account for the problem.

Did you try to compile the code using the solution file from the zip file I attached previously>
by Widgets
Thu Apr 24, 2008 9:57 pm
Forum: Platform Related Issues
Topic: trouble with wxDynamicLibrary
Replies: 21
Views: 3619

Interesting; mine shows no such problems. Actually I hadn't tied what your picture shows, but I have just run it again and I can move (both main frame and) the dialog pop-up all over the screen, including the application frame and it always redraws things as they should be. When run under the debugg...
by Widgets
Thu Apr 24, 2008 4:09 pm
Forum: Platform Related Issues
Topic: trouble with wxDynamicLibrary
Replies: 21
Views: 3619

I compiled the whole thing with my VS 2005 setup and I can't see any problems with it at all.
I can move, resize or minimize and restore the main window, before or after I make the Hallo box pop up.
I'll attach my zipped up 'solution'
If I missed anything, let me know.
by Widgets
Wed Apr 23, 2008 4:21 pm
Forum: Platform Related Issues
Topic: trouble with wxDynamicLibrary
Replies: 21
Views: 3619

I've just started using the example code myself quite recently , but I have not seen the problem of not repainting etc, so I can't comment on that. OTOH, everything I've tried so far, including moving and resizing has worked without any problems at all. The only possibility I can think of is the mat...
by Widgets
Tue Apr 22, 2008 9:55 pm
Forum: Platform Related Issues
Topic: trouble with wxDynamicLibrary
Replies: 21
Views: 3619

If you haven't found it already look at UpCase's wxPlugin
http://forums.wxwidgets.org/viewtopic.php?t=13178