Message Boards Message Boards

0
|
3529 Views
|
1 Reply
|
1 Total Likes
View groups...
Share
Share this post:

Unexpected output when using Button

Here's a strange one for the community: I'm using CreateWindow[DialogNotebook[<some expression>]] to pop-up some information for the user. But when I trigger this with a Button i.e. Button["show window",CreateWindow[...]] I lose the scrollbar in the displayed Dataset.

enter image description here

The controls at the bottom of the dataset are missing too. "Method"->"Queued" doesn't help... since that's the first go-to with Button issues.

POSTED BY: Eric Smith

Here's some code you can use to create it yourself:

sampleDataset = 
  Dataset[Association @@ 
    Table[j -> (AssociationThread[{"set1", "set2", "set3"} -> 
         Characters@FromCharacterCode[{100, 200, 300} + j]]), {j, 
      100}]];

CreateWindow[DialogNotebook[sampleDataset]]

Button["Click",CreateWindow[DialogNotebook[sampleDataset]]]
POSTED BY: Eric Smith
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract