2012-08-24 17:13 UTC
Hi all,
Don't even know where to begine with this one. Let me see if I can explain. I've got a picture box that I want to change pictures by the choice of two different option list. Hmmmm, that sounds like a pretty good explanation to me, great Also, one of the option list has a scroll bar in it and when I test it now, the text gets jumbled up when I play with it. OK, maybe that's too much explaining, lets show pictures.
Oh, I guess I'd better ask what I need, OK, How do I do it?
I know how to get the Member style to work,
;;; Members ;;;
(defun c:MemStyleQty_OnSelChanged (ItemIndexOrCount Value /)
(setq mbrs ItemIndexOrCount)
(princ)
); end defun
Then I use a cond statment like the following:
((= mbrs 2)
(progn
(command
"-MemberStyle" "_New" memstyna "_Component"
"_Edit" "1" "_Name" "Section" "STart"
"_SHape" memshna "" "_ENd" "_SHape"
memshna "" "" "_Add" "_Edit"
"2" "_Name" "Section" "_Start" "_SHape"
memshna "_Offset" "" custWidth ""
"" "_ENd" "_SHape" memshna "_Offset"
"" "" "" "" "" "" "" "" ""
); End command
); End progn
); End predicate2
So I was thinking, would I do, or add to the cond for the other options?
Don't even know where to begine with this one. Let me see if I can explain. I've got a picture box that I want to change pictures by the choice of two different option list. Hmmmm, that sounds like a pretty good explanation to me, great Also, one of the option list has a scroll bar in it and when I test it now, the text gets jumbled up when I play with it. OK, maybe that's too much explaining, lets show pictures.
Oh, I guess I'd better ask what I need, OK, How do I do it?
I know how to get the Member style to work,
;;; Members ;;;
(defun c:MemStyleQty_OnSelChanged (ItemIndexOrCount Value /)
(setq mbrs ItemIndexOrCount)
(princ)
); end defun
Then I use a cond statment like the following:
((= mbrs 2)
(progn
(command
"-MemberStyle" "_New" memstyna "_Component"
"_Edit" "1" "_Name" "Section" "STart"
"_SHape" memshna "" "_ENd" "_SHape"
memshna "" "" "_Add" "_Edit"
"2" "_Name" "Section" "_Start" "_SHape"
memshna "_Offset" "" custWidth ""
"" "_ENd" "_SHape" memshna "_Offset"
"" "" "" "" "" "" "" "" ""
); End command
); End progn
); End predicate2
So I was thinking, would I do, or add to the cond for the other options?
