Search found 8 matches

by roboknight
Wed Oct 04, 2006 12:45 am
Forum: Compiler / Linking / IDE Related
Topic: Compiling wxWidgets 2.6.3-RC1 with GCC 4.1 (MinGW)
Replies: 14
Views: 3790

Compiling wxWidgets with gcc-4.1.1 x-compiler

I too had the same problem as above. I am trying to use a gcc-4.1.1 cross to windows to compile (essentially mingw32 on Linux... neat trick if you can do it)... Anyway, the patch works to get it compiled. I have yet to try my first binary, but I have some code I can try. I might try compiling a few ...
by roboknight
Sat Mar 18, 2006 3:49 am
Forum: Component Writing
Topic: Creating new controls with transparent bitmaps?
Replies: 6
Views: 2573

[quote="frank_frl"]Hi roboknight, wich OS you are on. If you are under Windows, the problem could be, that the style for windows is allways WS_CLIPCHILDREN, which will prevent your frame or panel from drawing the background under your control. Just add following line in the AppInit functio...
by roboknight
Thu Feb 16, 2006 6:37 pm
Forum: Component Writing
Topic: question about wxFileConfig
Replies: 4
Views: 1849

Re: question about wxFileConfig

I don't exactly understand how wxFileConfig works. Check the documentation. It is supposed to read and write values to a ini-type config file. Now I only use Write and Read methos, but after I quit the program, run next time -info that I wrote into it is still there! Yes, that info is supposed to b...
by roboknight
Thu Feb 16, 2006 5:11 pm
Forum: Component Writing
Topic: Creating new controls with transparent bitmaps?
Replies: 6
Views: 2573

I don't believe so. You're almost better off just making your own class derived from wxStaticText and overloading the OnPaint function using: dc.SetBackgroundMode(wxTRANSPARENT); Ahhh... that might be what I was missing. I did inherit from the wxStaticText class and did overload the OnPaint functio...
by roboknight
Thu Feb 16, 2006 2:29 pm
Forum: Component Writing
Topic: Method for grabbing pixels behind a control?
Replies: 0
Views: 815

Method for grabbing pixels behind a control?

Hi, I posted a related question on this board about transparent bitmapped controls. I wanted to be able to maintain a bitmapped background behind the controls while maintain the tranparency. I figured out one way to do it. I ended up telling each control what the background bitmap was. The control w...
by roboknight
Thu Feb 16, 2006 2:15 pm
Forum: The Code Dump
Topic: Ownerdrawn buttons
Replies: 5
Views: 4170

Tried in own program

I tried this technique in my own software. It worked very well for transparent bitmaps of a dial, a handle, a status light, and a special text box. I wish I knew a way of clipping the background behind a control into a bitmap instead, but this will suffice for now. Being able to clip the background ...
by roboknight
Wed Feb 15, 2006 11:28 pm
Forum: Component Writing
Topic: Creating new controls with transparent bitmaps?
Replies: 6
Views: 2573

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 roboknight
Wed Feb 15, 2006 3:46 pm
Forum: Component Writing
Topic: Creating new controls with transparent bitmaps?
Replies: 6
Views: 2573

Creating new controls with transparent bitmaps?

This seems like the best forum for this question. First, a little background: I created two controls, both of which required a bitmap (in fact, a few). The first control was a safe dial. It has a spinning knob and a digital readout. No problem. I even used wxBufferedPaintDC to draw the dial to stop ...