Author Topic: Data controls/widgets in C::B  (Read 4930 times)

Offline asd34

  • Multiple posting newcomer
  • *
  • Posts: 27
Data controls/widgets in C::B
« on: March 21, 2014, 12:26:43 pm »
Dear All,

I wish to know is there a data controls available (e.g. datagrids, datalabels, grid view etc..)  in wxWidgets or wxSmith embedden in C::B?
If not, how developers are programming database with C::B, if their program requires database interaction to some extent.

Regards,

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Data controls/widgets in C::B
« Reply #1 on: March 21, 2014, 12:57:51 pm »
As far as I  know there are no data(-base) related controls implemented in wxSmith.
For wxWidgets please look in the wxWidgets docs: http://docs.wxwidgets.org .

Offline asd34

  • Multiple posting newcomer
  • *
  • Posts: 27
Re: Data controls/widgets in C::B
« Reply #2 on: March 22, 2014, 06:57:25 am »
Thank you very much, it seems that there is general purpose grid widget in wxWidget which anything  can be shown in tabular form.

I'm almost to finish the configuration of wxWidgets : C::B but this time I face another problem, compiled the 2.8.12 stable version of wxWidgets it all went well (with that command
Quote
mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 UNICODE=1 CXXFLAGS=-fno-keep-inline-dllexport
) , produced the libraries but when I hit run I get the following libraries can not be found message shown below. I used C::B 12.11 automatic template creator for wxWidgets, but it seems that template is a bit old, probably due to that it configures the C::B the wrong way, judging by their "d" suffix I see that -lwxmsw28ud,  -lwxpngd,  -lwxjpegd| -lwxtiffd|-lwxzlibd|. are for debug mode.

Nowhere in C::B search paths I see those libraries are set, but instead I got each file with "lib" prefix and without "d" suffix e.g. libwxmsw28u.a, libwxjpeg.a etc.. and it's been set accordingly in the linker tab of build options in C::B project.

Code
ld.exe||cannot find -lwxmsw28ud|
ld.exe||cannot find -lwxpngd|
ld.exe||cannot find -lwxjpegd|
ld.exe||cannot find -lwxtiffd|
ld.exe||cannot find -lwxzlibd|
||=== Build finished: 5 errors, 0 warnings (0 minutes, 2 seconds) ===|

So what am I doing wrong here , did I compile with wrong compilation directives or did I set the wrong path/variables in C::B.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7785
    • My Best Post
Re: Data controls/widgets in C::B
« Reply #3 on: March 22, 2014, 01:37:10 pm »
Do the "release" target instead of the "debug" target.
Or, Run the CB Wizard correctly next time.

From http://wiki.codeblocks.org/index.php?title=WxWindowsQuickRef
Quote
Choose your wxWidgets build options. These must match the options used when you built wxWidgets! If you followed the directions above, select all three of the options under "wxWidgets Library Settings". The other settings on this page are not related to the wxWidgets build options; you may use them or not as you prefer. In order to avoid using a debug wxWidgets build (as recommended), you must select "Configure Advanced options" and then leave "Use __WXDEBUG__ and Debug wxWidgets lib" unchecked on the next page.

Tim S.
« Last Edit: March 22, 2014, 02:05:34 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org