Search found 98 matches

by Joelito
Mon Nov 27, 2017 7:40 pm
Forum: C++ Development
Topic: wxWidgets, imagemagic and png
Replies: 6
Views: 898

Re: wxWidgets, imagemagic and png

yeah, right now I'm using wxInclude and bin2c and both produce correct header files.
by Joelito
Mon Nov 27, 2017 2:52 pm
Forum: C++ Development
Topic: wxWidgets, imagemagic and png
Replies: 6
Views: 898

Re: wxWidgets, imagemagic and png

Code: Select all

file_button->SetBitmap(wxBITMAP_PNG_FROM_DATA(stop));
Same warning :(
by Joelito
Mon Nov 27, 2017 1:19 am
Forum: C++ Development
Topic: wxWidgets, imagemagic and png
Replies: 6
Views: 898

Re: wxWidgets, imagemagic and png

Sorry for the delay. 1.- This is the test icon stop.png http://files.softicons.com/download/toolbar-icons/free-sound-icons-by-design-bolts/png/128x128/Stop.png 2.- My convert version: convert -version outputs: Version: ImageMagick 6.9.9-23 Q16 x86_64 2017-11-12 http://www.imagemagick.org Copyright: ...
by Joelito
Fri Nov 17, 2017 7:33 pm
Forum: C++ Development
Topic: wxWidgets, imagemagic and png
Replies: 6
Views: 898

wxWidgets, imagemagic and png

I'm trying to convert png to header code with ImageMagick. Does anyone had succesfully use it. Because testing 3 image gives me on my executable startup "This is not a image PNG" message. The code is simple:

Code: Select all

convert close.png close.h
by Joelito
Fri Nov 17, 2017 12:56 am
Forum: C++ Development
Topic: wxButton with swaping wxBitmaps
Replies: 2
Views: 655

Re: wxButton with swaping wxBitmaps

Thanks, yeah.... must use a null bitmap before setting a new one
by Joelito
Thu Nov 16, 2017 6:34 pm
Forum: C++ Development
Topic: wxButton with swaping wxBitmaps
Replies: 2
Views: 655

wxButton with swaping wxBitmaps

Hi, been a while. I'm trying to update the bitmap and the label of the wxButton based on user clicks, for example: toggling play <-> pause button. I've reading around the some users recommend wxThings. On wxWidgets 3.0.3, still no way to change or update the wxBitmap of the wxButton other than owner...
by Joelito
Sun Jul 10, 2016 4:55 pm
Forum: C++ Development
Topic: update id of a menu item
Replies: 4
Views: 688

Re: update id of a menu item

The idea is to have toggled menu item, like play/pause.
When I use wxID_EXECUTE I get my locale string "execute" label. I want to use wxID_STOP so the item label change to "stop", and so on...
by Joelito
Sat Jul 09, 2016 11:14 pm
Forum: C++ Development
Topic: update id of a menu item
Replies: 4
Views: 688

update id of a menu item

This is how I create a simple menu: wxMenuBar *m_menubar1 = new wxMenuBar (); wxMenu *m_menu1 = new wxMenu(); start_item = m_menu1->Append (wxID_EXECUTE); m_menu1->AppendSeparator(); m_menu1->Append (wxID_EXIT); m_menubar1->Append (m_menu1, _("&Application")); wxMenu *m_menu2 = new wxMenu(); m_menu2...
by Joelito
Sat Jul 02, 2016 8:39 pm
Forum: C++ Development
Topic: Get wxMenuItem from XRC [solved]
Replies: 3
Views: 537

Re: Get wxMenuItem from XRC

Thanks, seems this instruction:

Code: Select all

GetMenuBar ()->FindItem (XRCID("start_item"))->SetItemLabel (IsActive ? wxT("&Stop") : wxT("&Start"));
works as expected.
by Joelito
Sat Jul 02, 2016 3:18 pm
Forum: C++ Development
Topic: Get wxMenuItem from XRC [solved]
Replies: 3
Views: 537

Get wxMenuItem from XRC [solved]

Hi: I need to change the label of menu item based on a button event, this is my xrc for the menubar: <object class="wxMenuBar" name="m_menubar1"> <label>MyMenuBar</label> <object class="wxMenu" name="m_menu1"> <label>_Application</label> <object class="wxMenuItem" name="start_item"> <label>_Start</l...
by Joelito
Thu Dec 17, 2015 10:42 pm
Forum: Platform Related Issues
Topic: Optimize the building in msvc 2008
Replies: 0
Views: 999

Optimize the building in msvc 2008

Hi, sorry if this a non-critical issue but I'm trying new things here. When I build wxWidgets with msvc I noticed that there are more files created: *.manifest *.ilk *.pdb *.exp *.lib *.dll I managed to avoid the ilk and manifest, with this: nmake -f makefile.vc UNICODE=1 SHARED=1 MONOLITHIC=0 BUILD...
by Joelito
Tue Sep 29, 2015 12:01 am
Forum: Compiler / Linking / IDE Related
Topic: Building wxWidgets 3.0.2 (Windows, Cygwin)
Replies: 4
Views: 3027

Re: Building wxWidgets 3.0.2 (Windows, Cygwin)

When I build wxWidgets for gcc in windows...I use Strawberry perl's version of gcc (you will missing mingw32-make but is on the web) or download TDM-gcc version. After that you use the old form like: mingw32-make -f makefile.gcc UNICODE=1 SHARED=1 MONOLITHIC=0 BUILD=release CXXFLAGS="-std=gnu++11 -f...
by Joelito
Mon Sep 28, 2015 11:55 pm
Forum: Platform Related Issues
Topic: wxMSW: A bug of wx-config or a bug of wx-widgets ?
Replies: 4
Views: 910

Re: wxMSW: A bug of wx-config or a bug of wx-widgets ?

For building software with wx, I use cmake, did you try it?
by Joelito
Mon Sep 28, 2015 11:30 pm
Forum: C++ Development
Topic: wxAnimationCtrl in a wxScrolledWindow.
Replies: 3
Views: 381

Re: wxAnimationCtrl in a wxScrolledWindow.

This show the scrollbars, but it doesn't scroll to see the whole image. The scrolling shows only a portion of the image: wxPanel *panel = new wxPanel (this); wxBoxSizer *sizer = new wxBoxSizer (wxVERTICAL); wxBoxSizer *ani_sizer = new wxBoxSizer (wxVERTICAL); wxScrolledWindow *scrolledWin = new wxSc...
by Joelito
Mon Sep 28, 2015 10:03 pm
Forum: C++ Development
Topic: wxAnimationCtrl in a wxScrolledWindow.
Replies: 3
Views: 381

wxAnimationCtrl in a wxScrolledWindow.

I'm trying to put scrollbars in a animation control: wxScrolledWindow *scrolledWin = new wxScrolledWindow (panel); m_animCtrl1 = new wxAnimationCtrl (scrolledWin, wxID_ANY); My goal is to add the scrollbars when the image is larger then the current size of the animation control, in GTK it would be s...