Search found 153 matches

by Bundy
Thu Sep 01, 2005 7:17 am
Forum: C++ Development
Topic: How to send email from wxWidget Application?
Replies: 18
Views: 7205

In topic http://forums.wxwidgets.org/viewtopic.p ... light=smtp hgiritzer wrote something about wxSMPT class. Does anybody know where I could find this class?
by Bundy
Wed Aug 31, 2005 2:00 pm
Forum: C++ Development
Topic: wxValidator not working with wxSpinCtrl
Replies: 2
Views: 755

I use text event: EVT_TEXT(ID_PORT,Konfserw::on_port_change) and then i function I check that entered value is correct (numeric) if not, I change this value to previous: void Konfserw::on_port_change(wxCommandEvent& event ) { if( !check_spin_value(event.GetString(),65535,port_previous_value) ) { wxM...
by Bundy
Wed Aug 31, 2005 9:52 am
Forum: C++ Development
Topic: How to send email from wxWidget Application?
Replies: 18
Views: 7205

Ups, wxEmail send mail using Outlook Express to.

p.s. It starts working when I add all files to my project.
by Bundy
Wed Aug 31, 2005 9:12 am
Forum: C++ Development
Topic: How to send email from wxWidget Application?
Replies: 18
Views: 7205

Send is a method of class wxEmail: bool wxEmail::Send(wxMailMessage& message, const wxString& profileName, const wxString& WXUNUSED(sendMail)) { wxASSERT (message.m_to.GetCount() > 0) ; wxString profile(profileName); if (profile.IsEmpty()) profile = wxGetUserName(); wxMapiSession session; if (!sessi...
by Bundy
Wed Aug 31, 2005 8:55 am
Forum: C++ Development
Topic: How to send email from wxWidget Application?
Replies: 18
Views: 7205

I did simple frame with button and function: void Projekt1Frm::WxButton1Click(wxCommandEvent& event) { // insert your code here wxMailMessage content("subject", "[email protected].pl","body", "from"); wxEmail *mail = new wxEmail(); wxString profile; wxString last_param; bool retval = mail->Send(content,pr...
by Bundy
Wed Aug 31, 2005 7:07 am
Forum: C++ Development
Topic: How to send email from wxWidget Application?
Replies: 18
Views: 7205

How to send email from wxWidget Application?

Hej all, I was searching topics for method to send email using wxWidgets but I didn't find it. I have wxString with content of email, I have email address where I want to send my email and address of my post server SMTP and POP3. Meybe somebody knows how to send this email from wxWidgets? Thanks Bundy
by Bundy
Tue Aug 30, 2005 1:26 pm
Forum: C++ Development
Topic: wxchoice example wanted and a few questions on wx
Replies: 4
Views: 4582

1. example wxArrayString str; str.Add("first value"); str.Add("second value"); wxChoice *wxCh = new wxChoice(this,-1, wxDefaultPosition, wxDefaultSize,str); 2. In examples is panel because it can be anything what is derived from wxWindow class (so panel, wxFrame, wxDialog). Better is to put controls...
by Bundy
Tue Aug 30, 2005 10:57 am
Forum: C++ Development
Topic: Opening a new frame with a button click?
Replies: 15
Views: 3084

in function wxbuttonclick place code:

Code: Select all

{
useradmin2diag *dialog2 = new useradmin2diag(this);
dialog2->ShowModal();
dialog2->Destroy();
event.Skip();
}
ofcourse You must add:

#include "useradmin2diag.h"

in file where is wxbuttonclick function (i prefer in .h file)

Regards
Bundy
by Bundy
Fri Aug 26, 2005 6:14 am
Forum: C++ Development
Topic: How to determine a listbox is deselected
Replies: 8
Views: 1351

I am definitely talking about a wxListbox. If for example I have one item in the listbox, and there is extra space in that box below the item, when I click in that space, my selected item is deselected. I am using wxMac. I don't know if it does this on any other platform. Yes, this explain everythi...
by Bundy
Thu Aug 25, 2005 9:21 am
Forum: C++ Development
Topic: about Application Icon
Replies: 18
Views: 3453

I wrote You how to use it, don't look at 16x16 in example. It can be 32x32 also. Somthing not work?
Bundy
by Bundy
Thu Aug 25, 2005 9:16 am
Forum: C++ Development
Topic: How to determine a listbox is deselected
Replies: 8
Views: 1351

Your right bundy if the listbox is full. However if it is not, you can select the empty space in the listbox and it will deselect what you have selected, (calling getselection() will not return a valid number) which is not what I want, as it gives the user the impression that they have deselected t...
by Bundy
Wed Aug 24, 2005 1:42 pm
Forum: C++ Development
Topic: How can I get the ListCtrl size ???
Replies: 2
Views: 903

Muskelkatermann wrote the simplest way, just set listctrl size to example 150 and the set column width with function "SetColumnWidth(int col, int width)". Or You can get listctrl size with fuction GetSize() or GetClientSize(), then divide this value with column count and set column width. My advice ...
by Bundy
Wed Aug 24, 2005 1:34 pm
Forum: C++ Development
Topic: Show and Hide a wxStaticText
Replies: 3
Views: 1622

You can make this in silly but simple way - just put text when you want to be shown or put " " (String with spaces) when you want not show message
by Bundy
Wed Aug 24, 2005 1:27 pm
Forum: C++ Development
Topic: How to determine a listbox is deselected
Replies: 8
Views: 1351

Maybe I'm wrong, but I think that in listbox deselection is immpossible. When You once select a row, You can't deselect. You can just select another row.

Regards
Bundy
by Bundy
Wed Aug 24, 2005 1:09 pm
Forum: C++ Development
Topic: about Application Icon
Replies: 18
Views: 3453

use this: #include <wx/icon.h> #include "img/icon_program_16x16.xpm" // example icon file .xpm .... //in constructor ... wxBitmap iconbmp(icon_program_16x16_xpm); // the name inside braces ( ) // is name without .xpm but with _xpm wxIcon icon; icon.CopyFromBitmap(iconbmp); this->SetIcon(icon); ... G...