[Paraview-developers] ParaView XML plugin - help with alignment
Chiranjib Sur
sur.chiranjib at gmail.com
Thu Sep 14 10:28:37 EDT 2017
Hi Utkarsh,
Thanks for your quick reply.
I already created the property group (like the following) but the
checkboxes are appearing vertically one below the other. I need to display
those side by side.
<PropetyGroup label="foo" panel_visibility="MyCustomWidget">
<Property name="CheckBox1" />
<Property name="CheckBox2" />
</PropertyGroup>
I see that in your example, you have used panel_widget instead of
panel_visibility.
Is this the trick to achieve what I am looking for?
Thanks again,
Chiranjib
On Thu, Sep 14, 2017 at 7:51 PM, Utkarsh Ayachit <
utkarsh.ayachit at kitware.com> wrote:
> The only way currently is to create a custom widget. Create a custom
> property group widget and then grouping the two properties as follows:
>
> .....
> <PropetyGroup label="foo" panel_widget="MyCustomWidget">
> <Property name="CheckBox1" />
> <Property name="CheckBox2" />
> </PropertyGroup>
>
>
>
> On Thu, Sep 14, 2017 at 10:15 AM, Chiranjib Sur <sur.chiranjib at gmail.com>
> wrote:
> > Hi,
> > I am writing a XML plugin for paraview and I am adding boolean type GUI
> > parameters (appear as checkbox in the property panel) in the following
> way
> >
> > <IntVectorProperty name="Checkbox 1"
> > command="setProperty1"
> > number_of_elements="1"
> > default_values="1">
> > <BooleanDomain name="bool"/>
> > </IntVectorProperty>
> >
> >
> > <IntVectorProperty name="Checkbox 2"
> > command="setProperty2"
> > number_of_elements="1"
> > default_values="1">
> > <BooleanDomain name="bool"/>
> > </IntVectorProperty>
> >
> >
> > They appear in the GUI like the following
> >
> >
> >
> > I want to align them side by side, so that they appear like this
> >
> >
> >
> >
> >
> >
> > How do I do that?
> >
> >
> > Later using the pqServerManager proxy, I need to know what values are set
> > for the checkboxes.
> >
> > Any expert clues?
> >
> > Thanks in advance.
> > Chiranjib
> >
> >
> >
> >
> >
> >
> >
> >
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Search the list archives at:
> > http://markmail.org/search/?q=Paraview-developers
> >
> > Follow this link to subscribe/unsubscribe:
> > http://public.kitware.com/mailman/listinfo/paraview-developers
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20170914/9d412b44/attachment.html>
More information about the Paraview-developers
mailing list