Search found 25 matches

by airc
Mon Apr 10, 2017 4:59 pm
Forum: C++ Development
Topic: how to save wxAuinotebook layout
Replies: 1
Views: 394

Re: how to save wxAuinotebook layout

ops , first rule is : search first ;)
i found this viewtopic.php?t=21868 , didn't try it yet
by airc
Mon Apr 10, 2017 1:21 pm
Forum: C++ Development
Topic: how to save wxAuinotebook layout
Replies: 1
Views: 394

how to save wxAuinotebook layout

Hi
is there some way to let the user save wxAuinotebook layout after change it in runtime ?
like this
by airc
Wed Apr 06, 2016 4:20 pm
Forum: C++ Development
Topic: there is no glosy tab of wxAuiNotebook with wx3.1
Replies: 4
Views: 603

Re: there is no glosy tab of wxAuiNotebook with wx3.1

hi
i just compile the sample aui that come with wx samples , note that with wx2.8 there is no problem
also if i set the style of wxauinotebook to wxAUI_NB_BOTTOM , the tabs appears glosy .
by airc
Wed Apr 06, 2016 4:02 pm
Forum: C++ Development
Topic: there is no glosy tab of wxAuiNotebook with wx3.1
Replies: 4
Views: 603

there is no glosy tab of wxAuiNotebook with wx3.1

hi
i download wx3.1 and compiled aui sample , i noticed that the glosy tabs of the wxAuinotebook is removed , now it looks the same as wxNotebook
my os is win7 32bits
by airc
Tue Jan 12, 2016 8:17 am
Forum: Announcements and Discoveries
Topic: wxDatabase Library
Replies: 10
Views: 2756

Re: wxDatabase Library

the guy who said that he will add firebird he mentioned that he will use ibpp , i think is heavy , instead .. databaselayer already has firebird backend ,( i never used it ) , why not grabing fb backend from databaselayaer and add it to wxDataBase . its is just my opinion , i am not using wxwidget f...
by airc
Mon Jan 11, 2016 4:05 pm
Forum: Announcements and Discoveries
Topic: wxDatabase Library
Replies: 10
Views: 2756

Re: wxDatabase Library

there is no firebird backend ! .
by airc
Wed Dec 02, 2015 4:47 pm
Forum: C++ Development
Topic: Hiding Tabs On wxNotebook
Replies: 8
Views: 1646

Re: Hiding Tabs On wxNotebook

i am using wxAuiNotebook for this with SetTabCtrlHeight(0) , it will behave like a stack of panels .
advice : wxsmith is bugy , use wxformbuilder instead
by airc
Thu Sep 17, 2015 8:24 am
Forum: C++ Development
Topic: wxgrid native look
Replies: 1
Views: 573

wxgrid native look

Hi
how to make wxgrid looks native , there is UseNativeColHeader , but its only for column header , what about row header ?
by airc
Tue May 05, 2015 5:02 pm
Forum: C++ Development
Topic: how to draw a gradient column label in wxgrid
Replies: 5
Views: 957

Re: how to draw a gradient column label in wxgrid

you're right
i am using 2.8 only for size matter . my apps are all under 1mb .
but maybe i'll switch to 3 , who cares for size nowadays !
by airc
Tue May 05, 2015 1:58 pm
Forum: C++ Development
Topic: how to draw a gradient column label in wxgrid
Replies: 5
Views: 957

Re: how to draw a gradient column label in wxgrid

thanks
the grid example showing only SetLabelBackgroundColour() function which sets the color for the grid label
also wxGridColumnHeaderRenderer doesn't exist in wxwidgets 2.8.12 .

btw , (Kirix Strata) has a very nice wxgrid , i don't know how they make it !!
by airc
Tue May 05, 2015 10:28 am
Forum: C++ Development
Topic: how to draw a gradient column label in wxgrid
Replies: 5
Views: 957

how to draw a gradient column label in wxgrid

Hi
is it possible to draw gradient colors on wxgrid's column label ?

like this
by airc
Wed Apr 08, 2015 4:55 pm
Forum: C++ Development
Topic: how to manipulate wxImage pixels
Replies: 10
Views: 2606

Re: how to manipulate wxImage pixels

thank DenDev , it works
i thought it's simpler than that . in my point of view separating alpha channel from rgb is not good idea , it involve additional work
it would be easier if img->getdata() return unsigned int (4byte) by default. if i want alpha i'll use the highest 8bits .
by airc
Wed Apr 08, 2015 2:43 pm
Forum: C++ Development
Topic: how to manipulate wxImage pixels
Replies: 10
Views: 2606

Re: how to manipulate wxImage pixels

thank doublemax but how ? how to make such code work ? void Simple::OnPaint(wxPaintEvent &event) { wxPaintDC dc(this); unsigned int* imgData = (unsigned int*)img->GetData(); for (int i=0; i<256*256; i++) imgData[i] = 0xff000000; // 4byte per pixel ? wxBitmap bmp(*img); dc.DrawBitmap(bmp,0,0); }
by airc
Wed Apr 08, 2015 2:23 pm
Forum: C++ Development
Topic: how to manipulate wxImage pixels
Replies: 10
Views: 2606

Re: how to manipulate wxImage pixels

thanks guys for replies But it is not very efficient. Please take a look at wxPixelData or consider using a wxMemoryDC or alike. http://docs.wxwidgets.org/trunk/classwx_pixel_data.html http://docs.wxwidgets.org/trunk/classwx_memory_d_c.html i'll check those links but wximage seems only 24bits format...
by airc
Wed Apr 08, 2015 1:45 pm
Forum: C++ Development
Topic: how to manipulate wxImage pixels
Replies: 10
Views: 2606

how to manipulate wxImage pixels

Hi i'd like to fill wxImage pixels with some colors . here's what i did , but i failed. could someone show me the correct way ? #include <wx/wx.h> class MyApp : public wxApp { public: virtual bool OnInit(); }; IMPLEMENT_APP(MyApp) class Simple : public wxFrame { wxImage * img; wxBitmap bmp; unsigned...