BlockStyler - Enumeration Block
BlockStyler - Enumeration Block
(OP)
Hi -
In blockstyler it is possible to create a enumeration block - with different presentations style..> OPTION MENU, RADIO BOX , PULLDOWN.
I'm used to only use the style OPTION MENU - which also make it possible to programmatically decide which option should be shown , when program is launched..
What I mean is, that it is not always the first option, that should be shown...This works very well ,
when I use the xxx.GetProperties().SetEnumMembers("Value", ****) and xxx.GetProperties().SetEnum("Value",***)...in the public sub: dialogShown_cb in my VB code...
My question is.. Can this also be done if the enumeration block has it's style as RADIO BOX ?
In the attached screenshot there is a small test dialog which shows OPTION MENU and RADIO BOX.
I would like to know if someone can tell me if it is possible to decide programmatically which option should be pre-selected in sample B , when dialog is shown.
But it should be controlled from the VB code - not the dialog file itself, because the pre-selected RADIO BOX should differ depending on which NX part is displayed during runtime..
regards lkl
In blockstyler it is possible to create a enumeration block - with different presentations style..> OPTION MENU, RADIO BOX , PULLDOWN.
I'm used to only use the style OPTION MENU - which also make it possible to programmatically decide which option should be shown , when program is launched..
What I mean is, that it is not always the first option, that should be shown...This works very well ,
when I use the xxx.GetProperties().SetEnumMembers("Value", ****) and xxx.GetProperties().SetEnum("Value",***)...in the public sub: dialogShown_cb in my VB code...
My question is.. Can this also be done if the enumeration block has it's style as RADIO BOX ?
In the attached screenshot there is a small test dialog which shows OPTION MENU and RADIO BOX.
I would like to know if someone can tell me if it is possible to decide programmatically which option should be pre-selected in sample B , when dialog is shown.
But it should be controlled from the VB code - not the dialog file itself, because the pre-selected RADIO BOX should differ depending on which NX part is displayed during runtime..
regards lkl





RE: BlockStyler - Enumeration Block
Suresh
www.technisites.com.au
RE: BlockStyler - Enumeration Block
Thank you so much for your reply....
The reason I asked was that I did some test for some days ago - without succeeding....
Today I tried again - but still without a "positive result"....in 1. attempt.
It seems like its possible to populate Option Menu & Pull Down from the vb code....But not the Radio Box.....please see page 1 , 2 , 3 in attached pdf file.
Then I made a 2.attempt...
I simply populated the options in "Values" AAA, BBB, CCC, DDD, in BlockStyler - and then it works.......please see page 4 in attached pdf file.
I just wonder why this is necessary in use of " Radio Box " - but maybe it is the way it works....?
regard lklo
RE: BlockStyler - Enumeration Block
Regarding the items in Radio Box, the documentation says 'You can change the list of options after initialization only if presentation style is set to Option Menu'
Suresh
www.technisites.com.au
RE: BlockStyler - Enumeration Block