Search found 323 matches

by Muetdhiver
Fri Nov 12, 2010 2:09 pm
Forum: C++ Development
Topic: Write text on bitmap of a wxSplashScreen
Replies: 2
Views: 778

Write text on bitmap of a wxSplashScreen

Hello, In this thread http://forums.wxwidgets.org/viewtopic.php?t=24532&highlight=splash+screen it is advised to write text on bitmap before filling the wxSplashScreen with this bitmap. But how to achieve this ? I tried with wxPaintDC and DrawText function but I don't understand how to paint a text ...
by Muetdhiver
Fri Oct 29, 2010 4:16 pm
Forum: C++ Development
Topic: Writing something else than text in a zip file ?
Replies: 2
Views: 778

Hello,

finally I solved my problem by doing Rot13 function on wxString, not on std::string.
That was because my string is converted from std::string to wxString with UTF8 encoding.

Thanks for the answer.
by Muetdhiver
Thu Oct 28, 2010 8:58 pm
Forum: C++ Development
Topic: Writing something else than text in a zip file ?
Replies: 2
Views: 778

Writing something else than text in a zip file ?

Hello, I've got a simple code to write information into a zip file: wxFFileOutputStream loc_o_file( _S( par_o_file ) ); wxZipOutputStream loc_o_zip( loc_o_file ); wxTextOutputStream loc_o_txt( loc_o_zip ); loc_o_zip.PutNextEntry( _T("try") ); // Write something into loc_o_to_write.... loc_o_txt << _...
by Muetdhiver
Tue Sep 14, 2010 9:48 am
Forum: wxCode
Topic: LCDWindow not available anymore ?
Replies: 2
Views: 1523

LCDWindow not available anymore ?

Hello, I'm really interested by the LCDWindow component:

http://wxcode.sourceforge.net/components/lcdwindow/

but download in no longer available ?
Where to find it ?

Is there another component that does the same thing ?

Thanks.
by Muetdhiver
Thu Aug 26, 2010 2:40 pm
Forum: C++ Development
Topic: wxTextCtrl: how to resize height until scrollbar is removed?
Replies: 2
Views: 588

Hello, unfortunally, there is not a wxWidgets way of doing (it does not exist an already built function ?) But you can guess the total size by doing GetNumberOfLine() * factor. factor is the size of a line, you may determine it. If line thickness varies, I don't see how to get it ! Hope it could help.
by Muetdhiver
Fri Aug 20, 2010 8:31 am
Forum: C++ Development
Topic: wxWidgets 2.9.1 wxImage::Rescale inferior quality
Replies: 6
Views: 1096

Could you post images before and after 2.9.1 version in order to compare them ?

And the whole code to draw your image.

Thanks.
by Muetdhiver
Fri Aug 20, 2010 8:20 am
Forum: C++ Development
Topic: Use Icon From Resource
Replies: 5
Views: 1164

Hello !

This topic deals with your problem and has been resolved:

http://forums.wxwidgets.org/viewtopic.php?t=25465
by Muetdhiver
Thu Aug 19, 2010 3:49 pm
Forum: C++ Development
Topic: drawing a rectangular line instead of curved one
Replies: 5
Views: 703

Ouchhhh, in fact wxColor takes 0 to 255 numbers !! try wxColor( 255, 0, 0) or more simply wxRed : wxPen pen(*wxRed, wallThickness); For the other problem, what is the result of wxJOIN_MITER ?? Otherwise you have also the choice of drawing your object with no pen (transparent pen). What is the object...
by Muetdhiver
Thu Aug 19, 2010 3:39 pm
Forum: C++ Development
Topic: New to WxWidgets
Replies: 1
Views: 388

Welcome ! 1) No ! There are some way to do cross compiling but they are not related to wxWidgets. wxWidgets is a library that guarantees a transparent adaptation in any plateform, but you must build your application in each plateform using the appropriate compiler (g++ exists for all plateforms). Th...
by Muetdhiver
Thu Aug 19, 2010 9:47 am
Forum: C++ Development
Topic: Question about wxgrid with a custom renderer pos memory leak
Replies: 3
Views: 782

Hello, you create how many renderers as you have cells. I don't know wxGrid but it seems weird since I understood that a renderer represents a way the cell is displayed. How about creating only one renderer and attach this to all cells ? MyGridCellRenderer* myRenderer = new MyGridCellRenderer ; for ...
by Muetdhiver
Sun Aug 15, 2010 9:16 pm
Forum: C++ Development
Topic: Scrolling a window
Replies: 2
Views: 781

Dawn, I'm sorry I searched a lots in the wxGrid documentation but among all functions for the grid I was not abled to find the good function !!

Thanks a lot for pointing me out this function that does perfectly the job !

Bye.
by Muetdhiver
Sun Aug 15, 2010 3:46 pm
Forum: C++ Development
Topic: Scrolling a window
Replies: 2
Views: 781

Scrolling a window

Hello, I've got a grid wich is derived from wxScrolledWindow. My grid contains a lots of lines, so there are not all visible. When my app begins, the grid is scrolled at the top. My app is filling the grid line by line (for a game). My question: When the line filled is not visible (so it is not in t...
by Muetdhiver
Thu May 27, 2010 7:49 am
Forum: C++ Development
Topic: Really strange graphical problem since ubuntu 10.4
Replies: 16
Views: 2904

Hello, yes I will try as soon as possible to remove unnecessary code. In fact I already tried this, but no success. I think that removing unnecessary code will naturally show me the problem, but each time I remove something I have to change the appropriate sizers to reorganize the panel, and it is q...
by Muetdhiver
Wed May 26, 2010 1:34 pm
Forum: C++ Development
Topic: Really strange graphical problem since ubuntu 10.4
Replies: 16
Views: 2904

Hi Auria. Thanks a lots for your answer, and sorry for not having answered before. Regarding the problem, I can't get your explanation, because your are saying that i'm creating two nested static boxes.... but where ? I just create ONE static box, and then I use this constructor to build the associa...
by Muetdhiver
Sun May 02, 2010 9:50 pm
Forum: C++ Development
Topic: Really strange graphical problem since ubuntu 10.4
Replies: 16
Views: 2904

Yes, here is the code for the panel description, I checked all sizers, for me it seems ok, but you can have a look. Thanks you. Nota: sorry, the number of line code is important, but there are a lots of objects into my window. bool CFind::Construct_Frame( void ) { // Add a background image to the ap...