Search found 18 matches

by YuMERA
Thu Nov 07, 2019 10:37 am
Forum: C++ Development
Topic: Printing
Replies: 1
Views: 68

Printing

I have a problem when i try the example on https://wiki.wxwidgets.org/Printing . wx.jpg i use CodeBlocks 17.12 and wxWidgets-3.1.2 wheh Build app no errors : ||=== Build finished: 0 error(s), 0 warning(s) (0 minute(s), 1 second(s)) ===| This class i put in two files QuickPrint.cpp and QuickPrint.h c...
by YuMERA
Thu Sep 05, 2019 4:28 pm
Forum: C++ Development
Topic: Problem with a percentage (%) sign in wxString
Replies: 2
Views: 82

Problem with a percentage (%) sign in wxString

Hi! How do I handle this? I have SQL Query scFindItem->SetValue("Pivo") wxString SQL = wxString::Format(_T("SELECT ID_art, naziv_art, kolicina_art, cena_art, grupa_naziv, grupa_ID, grupa_art " "FROM artikli,grupa " "WHERE grupa_art = grupa_ID AND " "naziv_art LIKE('%%s%')"),scFindItem->GetValue()); ...
by YuMERA
Sat Aug 31, 2019 9:44 pm
Forum: C++ Development
Topic: Multi line header
Replies: 2
Views: 109

Re: Multi line header

Thanks for your answer I will try with this
by YuMERA
Sat Aug 31, 2019 4:32 pm
Forum: C++ Development
Topic: Multi line header
Replies: 2
Views: 109

Multi line header

Hi!
I need any list control which has the ability to display multi-line text on columns header label.
What control it can and that you suggest to me???
Thx
by YuMERA
Mon Jul 29, 2019 8:45 pm
Forum: C++ Development
Topic: wxTextCtrl in EVT_TEXT_ENTER
Replies: 2
Views: 96

Re: wxTextCtrl in EVT_TEXT_ENTER

Sorry, my mistake I missed in the documentation. I forgot to put the necessary styling wxT_PROCESS_ENTER style EVT_TEXT_ENTER(id, func): Respond to a wxEVT_TEXT_ENTER event, generated when enter is pressed in a text control which must have wxTE_PROCESS_ENTER style for this event to be generated. Tha...
by YuMERA
Mon Jul 29, 2019 7:25 pm
Forum: C++ Development
Topic: wxTextCtrl in EVT_TEXT_ENTER
Replies: 2
Views: 96

wxTextCtrl in EVT_TEXT_ENTER

EVT_TEXT_ENTER on wxDialog not work or????
I try but it doesn't work.
by YuMERA
Sun Jul 21, 2019 2:40 pm
Forum: C++ Development
Topic: wxListCtrl and Mark first Item
Replies: 2
Views: 90

Re: wxListCtrl and Mark first Item

Thx Bro!
That's what I was looking for.
I'm sorry if I'm a bit tired, but I'm new to c ++ with wxWidgets
by YuMERA
Sun Jul 21, 2019 12:35 pm
Forum: C++ Development
Topic: wxListCtrl and Mark first Item
Replies: 2
Views: 90

wxListCtrl and Mark first Item

How to mark the first item on wxListCtrl, like when clicking with a mouse when initializing wxListCtrl..???

I have this when init app :

List.jpg
List.jpg (11.28 KiB) Viewed 90 times

I need this without any click on ListCtrl

List1.jpg
List1.jpg (11.54 KiB) Viewed 90 times
Thx.
by YuMERA
Wed Jul 17, 2019 12:05 am
Forum: C++ Development
Topic: Program crash when use insert MySQL query
Replies: 5
Views: 176

Re: Program crash when use insert MySQL query

The problem is solved. The error was below the code after INSERT

Because there's no need for this down after the command insert

Code: Select all

res = mysql_store_result(conn);
row = mysql_fetch_row(res);
I apologize for starting issues but do not mind, because I'm new to c ++ code blocks IDE

Thx
by YuMERA
Tue Jul 16, 2019 11:22 pm
Forum: C++ Development
Topic: Program crash when use insert MySQL query
Replies: 5
Views: 176

Re: Program crash when use insert MySQL query

VALUE or VALUES problem is still debugger log says : Setting breakpoints Debugger name and version: GNU gdb (GDB) 7.9.1 Child process PID: 9160 Program received signal SIGSEGV, Segmentation fault. In MultiByteToWideChar () (C:\Windows\System32\KernelBase.dll) call stack : Screenshot 2019-07-17 01.19...
by YuMERA
Tue Jul 16, 2019 10:32 pm
Forum: C++ Development
Topic: Program crash when use insert MySQL query
Replies: 5
Views: 176

Program crash when use insert MySQL query

C++ Code::Blocks 17.12, wxWidgets 3.1.2 and MySQL lib. I have problem with using INSERT command in my code for SQL query. wxString SQL = "INSERT INTO grupa (grupa_naziv,grupa_opis) VALUE ('" + tcNazivGrupe->GetValue() + "','" + tcOpisGrupe->GetValue() + "');"; int qstate = mysql_query(conn,SQL.mb_st...
by YuMERA
Tue Jul 09, 2019 9:57 am
Forum: C++ Development
Topic: wxString and SQL request
Replies: 2
Views: 113

Re: wxString and SQL request

Thanks alot

This post from You is helped a lot :

viewtopic.php?t=19565
by YuMERA
Tue Jul 09, 2019 12:39 am
Forum: C++ Development
Topic: wxString and SQL request
Replies: 2
Views: 113

wxString and SQL request

Hi, I have one problem with wxString and send SQL-request to MySQL server. I try from a test app send SQL request like wxString from TextCtrl Value to the MySQL server but it's not a good encoding. I have wxString like this : INSERT INTO grupa (grupa_ID,grupa_naziv,grupa_opis) VALUE (5,'ČĆŽŠĐšđčćž',...
by YuMERA
Sat Jul 06, 2019 9:01 am
Forum: Compiler / Linking / IDE Related
Topic: Problem with UNICODE and wxWidgets
Replies: 6
Views: 277

Re: Problem with UNICODE and wxWidgets

Yes, I uncheck this box and now is OK.
Thank you very much.
I've been looking for a solution for days and now I've only succeeded thanks to you @doublemax and @Kvazir.
Thanks again and I want you all well