lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lmi] Using picker controls for paths


From: Greg Chicares
Subject: Re: [lmi] Using picker controls for paths
Date: Tue, 7 Jun 2016 21:35:29 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.8.0

On 2016-06-07 20:18, Greg Chicares wrote:
> On 2016-06-04 15:40, Vadim Zeitlin wrote:
>> On Wed, 1 Jun 2016 17:54:43 +0000 Greg Chicares <address@hidden> wrote:
[...]
>> GC> Could I also ask you to opine on the "TODO ??" markers in 
>> transferor.cpp',
>> 
>>  I'll do this next but I wanted to post this quickly to let you know about
>> the new PR.
> 
> I think I'll just go ahead and resolve all of them except the one
> concerning wxControlWithItems and wxItemContainerImmutable.

Okay, I've done that, more or less. However, I can't always show the names
of the controls (they're empty strings). Using the code I just pushed
(commit b2deaa1facb8968e64acd1bdde95954e846644f4):

Remove a required read-only flag from a skin in the data directory:

/opt/lmi/data[0]$sed -i skin.xrc 
-e'/SupplementalReportColumn03/,/\/object/s/|wxCB_READONLY//'

Start lmi:

/opt/lmi/bin[0]$./lmi_wx_shared --ash_nazg --data_path=/opt/lmi/data

Do:
  File | New | Illustration
Result:

ComboBox '': must be read only.
[file /lmi/src/lmi/transferor.cpp, line 356]

I guess that's because I used GetLabel(), and that control doesn't have
a label. But I can't give it one: if I try, in 'skin.xrc':

                     <object class="wxComboBox" 
name="SupplementalReportColumn03">
                         <help>Fourth supplemental-report column</help>
                         <size>200,20</size>
                         <style>wxCB_DROPDOWN</style>
+                        <label>Supplemental report column 3</label>
                     </object>

then it doesn't validate:

/opt/lmi/data[0]$java -jar $jar_dir/jing.jar -c /lmi/src/lmi/xrc.rnc *.xrc
C:\opt\lmi\data\skin.xrc:3242:32: error: element "label" not allowed here; \
expected the element end-tag or element "bg", "content", [...] or "variant"

and, even if I ignore that schema, it doesn't work anyway.

Scylla: I can't label the combobox.
Charybdis: There's no wxWindow::GetName() for general use, or anything
like that for wxComboBox in particular AFAICS.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]