New Model Viwe Name dialog borked

Posts   
 
    
mihies avatar
mihies
User
Posts: 800
Joined: 29-Jan-2006
# Posted on: 12-Nov-2016 09:40:37   

It looks like New Model View Name dialog is somehow borked, at least on my machine. See attachment (current 5.0.7)

Attachments
Filename File size Added on Approval
nwemodelviewname.png 5,294 12-Nov-2016 09:40.47 Approved
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 13-Nov-2016 10:06:37   

Hmm. Could be a problem with 4K / HiDPi stuff.

Is it also broken for other things like new valuetype? Does 5.1 beta also show this problem? (as it uses newer controls)

Frans Bouma | Lead developer LLBLGen Pro
mihies avatar
mihies
User
Posts: 800
Joined: 29-Jan-2006
# Posted on: 14-Nov-2016 08:39:03   

I think I know what it is (same in 5.1 beta). The label gets vertically stretched and covers textedit control. And yes, it most probably appears only when I make content larger (in my case 125% due to high DPI) - so indirectly related to 4K simple_smile

Besides you could restrict dialog resize to width only (doesn't make sense resizing height, looks ugly).

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 14-Nov-2016 09:40:36   

mihies wrote:

I think I know what it is (same in 5.1 beta). The label gets vertically stretched and covers textedit control. And yes, it most probably appears only when I make content larger (in my case 125% due to high DPI) - so indirectly related to 4K simple_smile

Yes the label is indeed overlapping the textbox. Will check how to fix this.

Besides you could restrict dialog resize to width only (doesn't make sense resizing height, looks ugly).

Not sure how to do this, as resizing can be set only to a generic option, so resize in all directions. The dialog is a generic one which has an empty label which is set by a parameter so it can be used in multiple occasions. The thing is that the label is therefore setup to be at a size so it can contain most texts we use, but apparently this goes wrong. It should be easy to reproduce this in 125% textsize simple_smile

Frans Bouma | Lead developer LLBLGen Pro
mihies avatar
mihies
User
Posts: 800
Joined: 29-Jan-2006
# Posted on: 14-Nov-2016 10:12:16   

One way to block vertical sizing is by setting both MinimumSize and MaximumSize Height to a fixed value. To avoid blocking Width sizing, MaximumSize.Width has to be set to a some high value. sunglasses

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 14-Nov-2016 10:21:01   

mihies wrote:

One way to block vertical sizing is by setting both MinimumSize and MaximumSize Height to a fixed value. To avoid blocking Width sizing, MaximumSize.Width has to be set to a some high value. sunglasses

ah, that could do the trick indeed.

Well, looking into fixing this first simple_smile

Frans Bouma | Lead developer LLBLGen Pro
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39588
Joined: 17-Aug-2003
# Posted on: 14-Nov-2016 11:14:21   

Fixed in v5.0.8, just released. Also added your resize trick, worked great simple_smile

Frans Bouma | Lead developer LLBLGen Pro
mihies avatar
mihies
User
Posts: 800
Joined: 29-Jan-2006
# Posted on: 14-Nov-2016 14:33:10   

Can confirm both simple_smile Glad I could help.