Search found 153 matches

by Bundy
Fri Sep 16, 2005 1:16 pm
Forum: C++ Development
Topic: How convert wxString to unsigned char *
Replies: 10
Views: 2064

Ok, lets do this
by Bundy
Fri Sep 16, 2005 1:04 pm
Forum: C++ Development
Topic: How convert wxString to unsigned char *
Replies: 10
Views: 2064

sorry, but Your answer didn't help me, I already knowed this and tryed this and this not worked. I wrote this in my second post.
I wanted give You one point, but I first add 5 to upCase and I couldn't add any more points - I didn't know that system works that way
by Bundy
Fri Sep 16, 2005 12:39 pm
Forum: C++ Development
Topic: How convert wxString to unsigned char *
Replies: 10
Views: 2064

thanks - I tried :

unsigned char *c_plik = (unsigned char*)s_plik;

and

unsigned char *c_plik = s_plik->c_str();

I didn't thinking about using both methods :)

p.s. I need this because I use library that was writen in C and I need to send unsigned char* parameters to functions
by Bundy
Fri Sep 16, 2005 12:03 pm
Forum: C++ Development
Topic: How convert wxString to unsigned char *
Replies: 10
Views: 2064

How convert wxString to unsigned char *

How convert wxString to unsigned char * or how read file to unsigned char*? When I do like this: wxFFile plik(WxEdit1->GetValue(), "r"); wxString *s_plik = new wxString(); if( !plik.ReadAll(s_plik,wxConvUTF8) ) { wxLogMessage("nie moge czytac z pliku1"); return; } plik.Close(); Memo1->SetValue(*s_pl...
by Bundy
Tue Sep 13, 2005 1:38 pm
Forum: C++ Development
Topic: [SOLVED] What use as button with label but without border?
Replies: 3
Views: 881

ok, I did this and it's works
by Bundy
Tue Sep 13, 2005 12:55 pm
Forum: C++ Development
Topic: [SOLVED] What use as button with label but without border?
Replies: 3
Views: 881

[SOLVED] What use as button with label but without border?

It can be done with wxButton because wxNO_BORDER don't work on any platform. So how do this in the simple way? I was thinking about wxTextCtrl, but it isn't react on mause click, wxStaticText this same. I need white background (always) and mause click event. So what else can I use?
by Bundy
Tue Sep 13, 2005 7:27 am
Forum: C++ Development
Topic: time entry control
Replies: 4
Views: 1706

No, it isn't. On this forum is a time picker, but it's not exactly what I need (have time in "american standart" with PM/AM, have no seconds and not automaticaly resize, when user set bigger font in Linux): http://forums.wxwidgets.org/viewtopic.php?t=2854&highlight=timepicker I found my own solution...
by Bundy
Mon Sep 12, 2005 1:33 pm
Forum: C++ Development
Topic: Background images in the list ctrl?
Replies: 8
Views: 1356

I think so, I can do with this anythink because I have last egsam on my Universiti and I have no time for this. One thing is good - solid bakground guarantees that text can be read. When You will have transparent background You will be force to check attention to set correct colour of text So, when ...
by Bundy
Mon Sep 12, 2005 1:03 pm
Forum: C++ Development
Topic: Background images in the list ctrl?
Replies: 8
Views: 1356

I'm thinking that I tryed to do this my self by I still don't know how :(
Look at my topic, mayby it helps you with this:

http://forums.wxwidgets.org/viewtopic.p ... arent+list

Regards
Bundy
by Bundy
Mon Sep 12, 2005 11:53 am
Forum: C++ Development
Topic: Background images in the list ctrl?
Replies: 8
Views: 1356

Try this:

wxListCtrl::SetItemBackgroundColour
void SetItemBackgroundColour(long item, const wxColour& col)

Sets the background colour for this item. This function only works in report view.



if this faild i have another solution but only for virtual list in report mode
by Bundy
Mon Sep 12, 2005 11:41 am
Forum: C++ Development
Topic: is it a bug of wxDateTime?
Replies: 1
Views: 646

because function getMonth return mont - not int. Mayby this is an integer value but start from 0 to 11, try it You can use this functions to translate from month to int and int to month: ('Kal' is ofcourse my main class name) wxDateTime::Month Kal::returnMonth(int nrM) { switch(nrM) { case 0: return...
by Bundy
Mon Sep 12, 2005 7:01 am
Forum: C++ Development
Topic: Background images in the list ctrl?
Replies: 8
Views: 1356

It's my code, it's not beautiful but works class MyListCtrl: public wxListCtrl { public: MyListCtrl(wxWindow *parent, const wxWindowID id, const wxPoint& pos, const wxSize& size, long style) : wxListCtrl(parent, id, pos, size, style),m_bDragging(false) { m_Background = new wxBitmap(bg_icon_xpm); } ~...
by Bundy
Tue Sep 06, 2005 12:11 pm
Forum: C++ Development
Topic: How to Load an image(*.bmp,*.png,*.jpeg...) on a frame?
Replies: 9
Views: 1362

But works. When not in onPaint method so where?
by Bundy
Tue Sep 06, 2005 10:39 am
Forum: C++ Development
Topic: How to Load an image(*.bmp,*.png,*.jpeg...) on a frame?
Replies: 9
Views: 1362

Mayby my answer in this topic helps You

http://forums.wxwidgets.org/viewtopic.p ... highlight=

Regards, Bundy
by Bundy
Thu Sep 01, 2005 1:52 pm
Forum: C++ Development
Topic: How to send email from wxWidget Application?
Replies: 18
Views: 7239

Ok, first I use complet application which is on page that I have link to from priyank_bolia. Application works (no errors) but I don't receive email on my mailbox. Second, I use classes that I have link from NinjaNL to, I create my application (very simple), use example on page from NinjaNL: wxSMTP ...