i already done this 5 years ago :)

you can even include DatePicklrCtr even own widgets via  XRC foreignhandler or 
so,
just look up the examples of wxcperl.sf. site

cheers

> 
> I think this isn't possible. XRC isn't designe for multible input files or 
> runtime modification. At startup it generate all Object static. Later you can 
> get the object ref over id and findwindow. In this phase is to late for 
> generate/modify new object.
> 
> XRC is a nice abstraction, but in wxPerl dosn't work sume object i.e. 
> DatePicklrCtr.
> 
> Regards
> Pascal
> 
> 
> -----Original Message-----
> From: herbert breunung <deirdre_s...@web.de>
> Sender: deirdre_s...@web.de
> Date: Fri, 01 Oct 2010 23:52:03 
> To: wxperl-users<wxperl-users@perl.org>
> Subject: Re: XRC modify
> 
> dynamically:
> 
> change on runtime, under both links is explained how get the widgez from the
> ID that is written in the XRC and you can use it as any other widget too.
> 
> Am 01.10.2010 23:35, schrieb Laslo Forro:
>> Thank you, it was fast.
>> Change dynamically - what do you mean ?
>>
>> Thanx again!
>>
>> Laslo
>>
>> On Fri, Oct 1, 2010 at 11:11 PM, herbert breunung <deirdre_s...@web.de>wrote:
>>
>>> i think you could since XRC is as far I know. 100% XML 1.0,
>>> but why not change it dynamically if you want to use that xrc and not
>>> change
>>> it anyway?
>>>
>>> http://wxperl.pvoice.org/w/index.php/WxPerlTablet#XRC
>>>
>>> http://www.himmelblauergarten.de/vortraege/XRC.pdf
>>>
>>> hope it helps
>>>
>>>
>>>
>>> Am 01.10.2010 22:50, schrieb Laslo Forro:
>>>> Hi there,
>>>> I have an XRC file with a Combobox widget :
>>>>
>>>>  <object class="wxComboBox" name="_project_chooser">
>>>>                     <handler event="EVT_COMBOBOX">_combo_event</handler>
>>>>                     <style>wxCB_DROPDOWN|wxCB_READONLY</style>
>>>>                     <selection>0</selection>
>>>>                     <focused>1</focused>
>>>>                     <content>
>>>>                         <item>New...</item>
>>>>                     </content>
>>>>                 </object>
>>>>
>>>> Can I change the <content> part adding new items dynamically using some
>>>> WxXML* module or it it better using some XML module like XML::Twig and
>>> feed
>>>> it to WxXMLResource?
>>>> I thought of using WxXML* but I have not got enlightenment how to do it.
>>>> Thanks for the help in advance!
>>>> Bests
>>>> Laslo
>>>>
>>>
>>>
>>
> 

Reply via email to