--
Using Opera's revolutionary email client: http://www.opera.com/mail/
aUIitems = (CustomGFXFilesPath + "QMenu_MenuA.bmp", 0, CustomGFXFilesPath + "QMenu_MenuB.bmp", 1, CustomGFXFilesPath + "QMenu_MenuD.bmp", 3, CustomGFXFilesPath + "QMenu_MenuC.bmp",2)
oMenuSelector = oLayout.AddEnumControl ("QuadSelector", aUIitems, "Quadrant", c.siControlIconList)
oMenuSelector.SetAttribute(c.siUINoLabel, True)
oMenuSelector.SetAttribute(c.siUIColumnCnt,2)
oMenuSelector.SetAttribute(c.siUILineCnt,2)
oMenuSelector.SetAttribute(c.siUISelectionColor,0x000ff)
Let me know if this worked.
--
-------------------------------------------
Stefan Kubicek Co-founder
-------------------------------------------
keyvis digital imagery
1050 Vienna Wehrgasse 9 Austria
Phone: +43/699/12614231
--- www.keyvis.at ste...@keyvis.at ---
-- This email and its attachments are
--confidential and for the recipient only--
I really don't think it is possible to get a horizontal layout for siControlRadio.
From: softimag...@listproc.autodesk.com [mailto:softimag...@listproc.autodesk.com] On Behalf Of Martin Chatterjee
Sent: January-12-11 6:23 AM
To: soft...@listproc.autodesk.com
Subject: Re: CustomProperty Layout - horizontal row of radio buttons?
Stefan,
thanks for your code snippet - however I'm afraid that siUIColumnCnt and siUILineCnt don't have any effect on radioButtons... Oh well, worth a try... ;-)
I'd still very much like to use radio buttons for this - anybody got an idea how to force them into one line?
Thanks in advance,
Martin
--
Martin Chatterjee
[ Freelance Technical Director ]
[ http://www.chatterjee.de ]
On Wed, Jan 12, 2011 at 11:49 AM, Stefan Kubicek <s...@tidbit-images.com<mailto:s...@tidbit-images.com>> wrote:
You are using AddEnumControl with the siPPGControlType set to siControlRadio, right?
I haven't used this yet, but rather used a siControlIconList, but maybe the following will work in analogy for you too:
(Staright copy/paste from my code, sorry)
aUIitems = (CustomGFXFilesPath + "QMenu_MenuA.bmp", 0, CustomGFXFilesPath + "QMenu_MenuB.bmp", 1, CustomGFXFilesPath + "QMenu_MenuD.bmp", 3, CustomGFXFilesPath + "QMenu_MenuC.bmp",2)
oMenuSelector = oLayout.AddEnumControl ("QuadSelector", aUIitems, "Quadrant", c.siControlIconList)
oMenuSelector.SetAttribute(c.siUINoLabel, True)
oMenuSelector.SetAttribute(c.siUIColumnCnt,2)
oMenuSelector.SetAttribute(c.siUILineCnt,2)
oMenuSelector.SetAttribute(c.siUISelectionColor,0x000ff)
Let me know if this worked.
--
-------------------------------------------
Stefan Kubicek Co-founder
-------------------------------------------
keyvis digital imagery
1050 Vienna Wehrgasse 9 Austria
Phone: +43/699/12614231
--- www.keyvis.at<http://www.keyvis.at> ste...@keyvis.at<mailto:ste...@keyvis.at> ---