Hello everyone,

 

We need to send an event from a wxBitmapButton like  the following lines after:

 

 

#define wxID_BTN_LoadImage wxID("wxID_BTN_LoadImage")

EVT_BUTTON(wxID_BTN_LoadImage,  XXX::OnBtnLoadImage)

 

 

for ( it = list.begin() ; it != list.end() ; it++ )

{

                wxBitmapButton* m_bitmapButton = new wxBitmapButton(this, 
wxID_BTN_LoadImage, wxBitmap(wxT( *it), wxBITMAP_TYPE_ANY));

                bitmapButton.push_back(m_bitmapButton);

}

 

Where:

list = *.png files in a folder.

 

 

The event is sent but the images  showed by the bitmapbutton are always the 
same (the first one). After being sure that the images were different (in the 
folder), I try to isolate the problem by replacing this line by this other:

 

wxBitmapButton* m_bitmapButton = new wxBitmapButton(this, wxID_ANY, 
wxBitmap(wxT( *it), wxBITMAP_TYPE_ANY));

 

Which is exactly the same but wxID_ANY.

 

Now the images are showed by the wxBitmapButton properly, but obviously the 
event is not processed. 

Am I doing something   wrong ?  we need to show an image in each button and  to 
send the event wxID_BTN_LoadImage once you push on the image.

 

Do you have any idea to solve this?

 

Thank you for your help.

MIRIAM

 

 

Miriam Quintero Padrón

T +34 922 533 917

[email protected] <mailto:[email protected]> 

C/ Fuente de Santa Cruz, 3

Edificio Ciudamar - Oficina 2º

38003 Santa Cruz de Tenerife

www.atos.net <http://www.atos.net/> 

 

 

------------------------------------------------------------------
This e-mail and the documents attached are confidential and intended 
solely for the addressee; it may also be privileged. If you receive 
this e-mail in error, please notify the sender immediately and destroy it. 
As its integrity cannot be secured on the Internet, the Atos 
group liability cannot be triggered for the message content. Although 
the sender endeavours to maintain a computer virus-free network, 
the sender does not warrant that this transmission is virus-free and 
will not be liable for any damages resulting from any virus transmitted. 

Este mensaje y los ficheros adjuntos pueden contener informacion confidencial 
destinada solamente a la(s) persona(s) mencionadas anteriormente 
pueden estar protegidos por secreto profesional. 
Si usted recibe este correo electronico por error, gracias por informar 
inmediatamente al remitente y destruir el mensaje. 
Al no estar asegurada la integridad de este mensaje sobre la red, Atos 
no se hace responsable por su contenido. Su contenido no constituye ningun 
compromiso para el grupo Atos, salvo ratificacion escrita por ambas partes. 
Aunque se esfuerza al maximo por mantener su red libre de virus, el emisor 
no puede garantizar nada al respecto y no sera responsable de cualesquiera 
danos que puedan resultar de una transmision de virus. 
------------------------------------------------------------------

<<image001.gif>>

<<image002.gif>>

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Gimias-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gimias-developers

Reply via email to