Jump to content
Developer Wiki and Function Reference Links ×

editing function on a listbrowers in a custom dialog


Recommended Posts

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 by hippothamus
Link to comment

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 ?

Link to comment
  • Vectorworks, Inc Employee

There is a single function to set any control to an indeterminate state.

FUNCTION SetComponentIndeterminate(

nDialogID :LONGINT;

nComponentID :LONGINT;

bIndeterminateState :BOOLEAN) : BOOLEAN;

Link to comment
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

Link to comment

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 by hippothamus
Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...