Search found 657 matches

by protocol
Sun Feb 12, 2006 2:48 am
Forum: C++ Development
Topic: wxStaticLine. How to change color?
Replies: 8
Views: 2529

OnPaint event

wxStaticLinBase <- wxControl <- wxWindow It not really overriding the paint event it just that you are responding to it. call GetDC on the instance of wxStaticLine. Then use the device context to draw on the widget. wxStaticLine * myStaticLine = ... wxPaintDC staticLineDC = myStaticLine->GetDC(); st...
by protocol
Sun Feb 12, 2006 2:27 am
Forum: C++ Development
Topic: Get Mouse Position
Replies: 2
Views: 2278

thanks

I totally forgot to check the ::wx function list.
by protocol
Sat Feb 11, 2006 6:04 am
Forum: Platform Related Issues
Topic: [WIN32] wxProcess::Exists and Kill
Replies: 2
Views: 1024

Umm

check out wxShell and wxExecute

that may point you in the right direction.
by protocol
Sat Feb 11, 2006 6:00 am
Forum: C++ Development
Topic: Status bar text colour
Replies: 1
Views: 663

try this but its hard

Currently I can only think of a couple difficult (but working) ways to EMULATE what you want.

1.) you can draw (wxDC) a string over the top of the status bar
2.) you can place a wxStaticText widget over the status bar and then use the set bg color function
by protocol
Sat Feb 11, 2006 5:56 am
Forum: Compiler / Linking / IDE Related
Topic: really can't get it to work
Replies: 7
Views: 1552

i had the same problem

Wow yours was pretty bad. I have a Mac (OS X) and the only way I can get it to run a wxWindows app is if I use make files. Basically compile it via the commad line or use Dialog Blocks. I don't think XCode does to well with the wxWidgets, but I gave up... I hate Macs anyways. But I can get it to com...
by protocol
Sat Feb 11, 2006 5:49 am
Forum: C++ Development
Topic: wxStaticLine. How to change color?
Replies: 8
Views: 2529

TypeCast

TRY:

typecasting it to its base class [ wxWindow || wxWidget ] and call the set background color function.

||

override the paint function and paint the control any color <- sure to work.
by protocol
Sat Feb 11, 2006 5:46 am
Forum: C++ Development
Topic: PNG Image transperancy problem on Windows XP
Replies: 1
Views: 760

try a different image type

I had a similiar problem, I used a transparent GIF and the second instance I used a bitmap. With the bitmap you can find all the pixel colors you want removed. It will appear to be background-less.
by protocol
Sat Feb 11, 2006 5:42 am
Forum: C++ Development
Topic: Get Mouse Position
Replies: 2
Views: 2278

Get Mouse Position

Is there a wx function or procedure that will return the mouse position even when the mouse is not over a wxWindow. I was going to use a wxTimer to update the coordinates. But then I realized I don't know of any function that retains the mouse position. Please help. Thanks in advance. FYI: I know MF...
by protocol
Fri Jan 20, 2006 3:16 pm
Forum: Compiler / Linking / IDE Related
Topic: Embedding binary files within compiled EXE
Replies: 4
Views: 1057

truly appreciated

Thanks for the link, I totally forgot about checking wxCode.

And even though the previous suggestion was geard towards catalog files, the conceptual aspect gave me more ideas and approaches.

Thank you very much.
by protocol
Thu Jan 19, 2006 3:13 pm
Forum: C++ Development
Topic: Problem with wxConfig, please help
Replies: 1
Views: 571

try this

Maybe instead of SetPath( "." use "./" )

Both are still pointing to same location.
by protocol
Thu Jan 19, 2006 2:54 pm
Forum: Compiler / Linking / IDE Related
Topic: Embedding binary files within compiled EXE
Replies: 4
Views: 1057

Thanks

I believe it may help, luckily I am developing for a Win32 environment. I will try accessing it as a resource.

Thanks again, but I still need it to build as a single executable (assuming that the module is an external resource).
by protocol
Wed Jan 18, 2006 6:24 pm
Forum: Compiler / Linking / IDE Related
Topic: Embedding binary files within compiled EXE
Replies: 4
Views: 1057

Embedding binary files within compiled EXE

Does anyone know of a way to embed a generic binary file ( word doc, windows exe, wav file, mp3, etc) inside an executable? And then access/referencing it without extracting it from the exe during runtime? Thanks in advance. Any other code problems I seem to smash without reprisal. This is my first ...