Hippocode Posted March 29, 2013 Share Posted March 29, 2013 (edited) I've created a Dialog with a custom listbrowser based on the info found on Vectorlab listbrowsers. All worked well, and I've got a simple listbrowser with only static strings/images. No other options yet, an edit button will be the next thing. I would like to have an "edit" option when rightclicking/doublicking rows in that specific listbrowser, basicly I want the same options as we all have in the build-in Organisation dialog of vectorworks. Doubleclicking classes/layers gives an option to edit those selected (or clicking on the edit button). I can't find any info related to such coding. Can anyone point me in the right direction ? Edited March 29, 2013 by hippothamus Quote Link to comment
Vectorworks, Inc Employee klinzey Posted March 29, 2013 Vectorworks, Inc Employee Share Posted March 29, 2013 On double click you get the negative value of the list browser control. Then check for a -5 returned by GetLBEventInfo(). Quote Link to comment
Hippocode Posted March 29, 2013 Author Share Posted March 29, 2013 On double click you get the negative value of the list browser control. Then check for a -5 returned by GetLBEventInfo(). Jup, did the trick. Is there any source you know where I can find related info ? Quote Link to comment
Vectorworks, Inc Employee klinzey Posted March 29, 2013 Vectorworks, Inc Employee Share Posted March 29, 2013 developer.vectorworks.net is the best place for information on the function calls. I just updated GetLBEventInfo() with the complete list of events. Quote Link to comment
Hippocode Posted March 31, 2013 Author Share Posted March 31, 2013 developer.vectorworks.net is the best place for information on the function calls. I just updated GetLBEventInfo() with the complete list of events. Thanks for adding more information Quote Link to comment
Hippocode Posted April 1, 2013 Author Share Posted April 1, 2013 PROCEDURE SetBooleanItem( dialogID :LONGINT; componentID :LONGINT; setState :BOOLEAN); The above function gives me checkboxcontrol of 2 options being checked or unchecked. What about the third option vw uses when you edit multiple layers/classes at once while those classer/layers have different values each ? Quote Link to comment
Vectorworks, Inc Employee klinzey Posted April 1, 2013 Vectorworks, Inc Employee Share Posted April 1, 2013 There is a single function to set any control to an indeterminate state. FUNCTION SetComponentIndeterminate( nDialogID :LONGINT; nComponentID :LONGINT; bIndeterminateState :BOOLEAN) : BOOLEAN; Quote Link to comment
Hippocode Posted April 2, 2013 Author Share Posted April 2, 2013 There is a single function to set any control to an indeterminate state. FUNCTION SetComponentIndeterminate( nDialogID :LONGINT; nComponentID :LONGINT; bIndeterminateState :BOOLEAN) : BOOLEAN; Does this also apply to checkboxes ? I've tried this function but it doesn't change the checkbox visually. To be sure we are on the same page I've added a picture of what I'm trying to achieve Quote Link to comment
MullinRJ Posted April 2, 2013 Share Posted April 2, 2013 Wouter, ???Did you use CreateCheckBox() or CreateThreeStateCheckBox()? Raymond Quote Link to comment
Hippocode Posted April 2, 2013 Author Share Posted April 2, 2013 (edited) SetThreeStateCheckBoxState(x,x,2) is the one I needed Atfirst I was trying to get this with the normal checkbox, believe it or not but I didn't know the "threestate" stood exactly for what I needed. Then what does SetComponentIndeterminate do? Edited April 2, 2013 by hippothamus Quote Link to comment
Vectorworks, Inc Employee klinzey Posted April 2, 2013 Vectorworks, Inc Employee Share Posted April 2, 2013 SetComponentIndeterminate is used for line, weight, color, etc. apparently everything but check boxes. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.