Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3673

Popover Sizing on Desktop

$
0
0

I am struggling with popOvers again. I want to be able to vary the size of the popover, dependent upon its contents, those contents not being known until the container used for the popover has been constructed and populated.

My simple logic would be:

  1. Construct a new container “create”
  2. In the container opening event - Populate its content and determine its size “populate”
  3. Issue showPopover “popover”

So I would expect on running that those would run in order viz: create, populate, popover.

However, when I run this the order shown in the debugLog is: create, popover, populate.

As a result the popover container does change its size (as shown by a simple paint event) but the underlying popover window retains the original (IDE) size of the container.

I’ve tried every which-way with timers etc to try and force the populating before the popOver but cannot get it to change. I can’t use the Constructor for the container as that is too early i.e. before the contents have been filled.

Any ideas?
POC_selectRowWithTags.xojo_binary_project.zip (7.5 KB)

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 3673

Trending Articles