Discussion:
How to rebuild in Linux wxGrid widget separately? Not all library.
p***@gmail.com
2014-08-25 17:25:07 UTC
Permalink
Hello,

I'd like to change some code in wxGrid widget for my custom grid-derived
widget. But I don't know how to rebuild wxGrid widget separately form all
library.

To build all wxWidgets called configure: ../../configure --with-gtk
--disable-shared --enable-stl but haw can I call configure for wxGrid
only?

Thanks in advance.
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Vadim Zeitlin
2014-08-25 17:37:12 UTC
Permalink
Post by p***@gmail.com
I'd like to change some code in wxGrid widget for my custom grid-derived
widget. But I don't know how to rebuild wxGrid widget separately form all
library.
To build all wxWidgets called configure: ../../configure --with-gtk
--disable-shared --enable-stl but haw can I call configure for wxGrid
only?
You can't. This file is part of the library and if you can't achieve your
goals by using any of the existing myriads of wxGrid customization methods,
your best bet is to make a patch to the library and submit it for inclusion
into the future versions (please see our guidelines at
http://trac.wxwidgets.org/wiki/HowToSubmitPatches if you decide to do it).

Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
p***@gmail.com
2014-08-25 17:56:48 UTC
Permalink
пПМеЎельМОк, 25 августа 2014 г., 21:37:17 UTC+4 пПльзПватель Vadim Zeitlin
Post by Vadim Zeitlin
Post by p***@gmail.com
I'd like to change some code in wxGrid widget for my custom grid-derived
widget. But I don't know how to rebuild wxGrid widget separately form
all
Post by p***@gmail.com
library.
To build all wxWidgets called configure: ../../configure --with-gtk
--disable-shared --enable-stl but haw can I call configure for wxGrid
only?
You can't. This file is part of the library and if you can't achieve your
goals by using any of the existing myriads of wxGrid customization methods,
your best bet is to make a patch to the library and submit it for inclusion
into the future versions (please see our guidelines at
http://trac.wxwidgets.org/wiki/HowToSubmitPatches if you decide to do it).
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
But to make a patch, I have to change wxGrid code and test results, should
I rebuild all wxWidgets library every time?
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Vadim Zeitlin
2014-08-25 17:59:04 UTC
Permalink
Post by p***@gmail.com
But to make a patch, I have to change wxGrid code and test results, should
I rebuild all wxWidgets library every time?
Yes, but it isn't a problem as if you change only one or two source files,
only these files will be recompiled and only the library containing them
("adv") will be relinked, so it doesn't take long. Just test it by doing
some change in grid.cpp and doing "make".

Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
p***@gmail.com
2014-08-25 18:09:49 UTC
Permalink
пПМеЎельМОк, 25 августа 2014 г., 21:59:08 UTC+4 пПльзПватель Vadim Zeitlin
Post by p***@gmail.com
Post by p***@gmail.com
But to make a patch, I have to change wxGrid code and test results,
should
Post by p***@gmail.com
I rebuild all wxWidgets library every time?
Yes, but it isn't a problem as if you change only one or two source files,
only these files will be recompiled and only the library containing them
("adv") will be relinked, so it doesn't take long. Just test it by doing
some change in grid.cpp and doing "make".
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
Oh, thanks a lot Vadim.
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
p***@gmail.com
2014-08-25 18:17:59 UTC
Permalink
пПМеЎельМОк, 25 августа 2014 г., 21:37:17 UTC+4 пПльзПватель Vadim Zeitlin
Post by Vadim Zeitlin
Post by p***@gmail.com
I'd like to change some code in wxGrid widget for my custom grid-derived
widget. But I don't know how to rebuild wxGrid widget separately form
all
Post by p***@gmail.com
library.
To build all wxWidgets called configure: ../../configure --with-gtk
--disable-shared --enable-stl but haw can I call configure for wxGrid
only?
You can't. This file is part of the library and if you can't achieve your
goals by using any of the existing myriads of wxGrid customization methods,
your best bet is to make a patch to the library and submit it for inclusion
into the future versions (please see our guidelines at
http://trac.wxwidgets.org/wiki/HowToSubmitPatches if you decide to do it).
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
By the way, it seems to me there are not myriads of wxGrid customization
methods.
I'm trying to draw black borders in specified cells but grid lines cover up
my borders.
It should be any customization method to change z-order of grid lines
drawing.
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Vadim Zeitlin
2014-08-25 18:38:57 UTC
Permalink
Post by p***@gmail.com
I'm trying to draw black borders in specified cells but grid lines cover
up my borders. It should be any customization method to change z-order of
grid lines drawing.
I actually think it would always make sense to draw the lines first and
then use the cell renderer, as I don't see any reasonable situation in
which you would want to draw "beneath" the separator lines. So if you made
a patch doing this, I'd apply it.

In the meanwhile my only advice is to turn off the lines completely and
draw everything yourself in your custom renderers. This should work, but
clearly requires more work.

Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
p***@gmail.com
2014-08-25 18:59:59 UTC
Permalink
пПМеЎельМОк, 25 августа 2014 г., 22:39:00 UTC+4 пПльзПватель Vadim Zeitlin
Post by Vadim Zeitlin
Post by p***@gmail.com
I'm trying to draw black borders in specified cells but grid lines cover
up my borders. It should be any customization method to change z-order
of
Post by p***@gmail.com
grid lines drawing.
I actually think it would always make sense to draw the lines first and
then use the cell renderer, as I don't see any reasonable situation in
which you would want to draw "beneath" the separator lines. So if you made
a patch doing this, I'd apply it.
In the meanwhile my only advice is to turn off the lines completely and
draw everything yourself in your custom renderers. This should work, but
clearly requires more work.
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
Thanks Vadim
Of course I did it, I turned off the lines completely and drew them all
myself.
In my renderer I draw grid lines for all grid and than I draw borders for
cells I need, not for all grid.
But there is a problem. Left and top cell covers up every next cell on one
pixel. So left and top border of the cell where I draw I have to shift on
one pix.
It doesn't look handsome, so to draw left border of my cell I switch on
right border of the left cell. The same way with top border of my cell, I
switch on bottom border of top cell.
But than top-left cell covers up top-left corner of my cell :)) I have to
draw one pix corner in top-left cell :)) This is like fight with shadow :))
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Steve Barnes
2014-08-25 18:18:49 UTC
Permalink
Post by p***@gmail.com
Hello,
I'd like to change some code in wxGrid widget for my custom
grid-derived widget. But I don't know how to rebuild wxGrid widget
separately form all library.
To build all wxWidgets called configure: ../../configure --with-gtk
--disable-shared --enable-stl but haw can I call configure for
wxGrid only?
Thanks in advance.
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
or visit http://groups.google.com/group/wx-users
Unless your changes *have* to be made to the actual source code you are
better off creating a class derived from wxGrid and adding new methods
or even overriding existing methods then using your new class for your
grid derived widget - the beauty of object oriented languages is that
you can do this.

The problem with modifying the library code isn't just that you have to
rebuild the library but that you will have to redo the work if you
upgrade wxWidgets to get the latest features and bug fixes.

If you have found an actual bug, or possible enhancement, in the
existing code then a) raise a ticket, b) attach a test that demonstrates
the problem/enhancement and you can run the same test with a derived
class to show how to fix the problem provide the enhancement and submit
that.

Gadget/Steve
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
p***@gmail.com
2014-08-25 18:41:57 UTC
Permalink
пПМеЎельМОк, 25 августа 2014 г., 22:18:55 UTC+4 пПльзПватель Gadget Steve
Post by p***@gmail.com
Hello,
I'd like to change some code in wxGrid widget for my custom grid-derived
widget. But I don't know how to rebuild wxGrid widget separately form all
library.
To build all wxWidgets called configure: ../../configure --with-gtk
--disable-shared --enable-stl but haw can I call configure for wxGrid
only?
Thanks in advance.
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
or visit http://groups.google.com/group/wx-users
Unless your changes *have* to be made to the actual source code you are
better off creating a class derived from wxGrid and adding new methods or
even overriding existing methods then using your new class for your grid
derived widget - the beauty of object oriented languages is that you can do
this.
The problem with modifying the library code isn't just that you have to
rebuild the library but that you will have to redo the work if you upgrade
wxWidgets to get the latest features and bug fixes.
If you have found an actual bug, or possible enhancement, in the existing
code then a) raise a ticket, b) attach a test that demonstrates the
problem/enhancement and you can run the same test with a derived class to
show how to fix the problem provide the enhancement and submit that.
Gadget/Steve
Thank you Steve.

Of course I derived my class from wxGrid, but I suppose there is
architectural problems in wxGrid. So I'd like to experiment wxGrid code and
if get successfully results, I'd like to propose it wx-society. There is
problem how to draw custom borders in specified cells, grid lines cover up
user's created borders.

But anyway, thank you friend for your help!
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Steve Barnes
2014-08-25 18:56:45 UTC
Permalink
Post by p***@gmail.com
пПМеЎельМОк, 25 августа 2014 г., 22:18:55 UTC+4 пПльзПватель Gadget
Post by p***@gmail.com
Hello,
I'd like to change some code in wxGrid widget for my custom
grid-derived widget. But I don't know how to rebuild wxGrid
widget separately form all library.
To build all wxWidgets called configure: ../../configure
--with-gtk --disable-shared --enable-stl but haw can I call
configure for wxGrid only?
Thanks in advance.
--
Please read http://www.wxwidgets.org/support/mlhowto.htm
<http://www.wxwidgets.org/support/mlhowto.htm> before posting.
or visit http://groups.google.com/group/wx-users
<http://groups.google.com/group/wx-users>
Unless your changes *have* to be made to the actual source code
you are better off creating a class derived from wxGrid and adding
new methods or even overriding existing methods then using your
new class for your grid derived widget - the beauty of object
oriented languages is that you can do this.
The problem with modifying the library code isn't just that you
have to rebuild the library but that you will have to redo the
work if you upgrade wxWidgets to get the latest features and bug
fixes.
If you have found an actual bug, or possible enhancement, in the
existing code then a) raise a ticket, b) attach a test that
demonstrates the problem/enhancement and you can run the same test
with a derived class to show how to fix the problem provide the
enhancement and submit that.
Gadget/Steve
Thank you Steve.
Of course I derived my class from wxGrid, but I suppose there is
architectural problems in wxGrid. So I'd like to experiment wxGrid
code and if get successfully results, I'd like to propose it
wx-society. There is problem how to draw custom borders in specified
cells, grid lines cover up user's created borders.
But anyway, thank you friend for your help!
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
or visit http://groups.google.com/group/wx-users
If you find the method in the wxGrid that draws the grid itself and in
your class supply a method of the same name and signature - initially a
copy of what is in wxGrid itself then your method should override the
default and you can develop a patch in the copy within your class. If
your patch gets rejected/lost for any reason your derived class will
still work.
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Loading...