Wish Set Designer Size

ilan

Expert
Licensed User
Longtime User
hi,
I would like to have a way of putting the width and height to resize the designer in b4j instead of resize it with the mouse. something like this:

designerResize.png


a click on the size on the bottom of the designer will open a dialog where i can put the width and height.

thanks
 
Last edited:

ilan

Expert
Licensed User
Longtime User
I'm not critical, just curious: Why is this important to you?

i have difficulties to get the desired size using my mouse.
Its not simple to catch 1 pixel and if i work with the designer i want to get the exact size to know how it would look like when i will run it.
 

Sandman

Expert
Licensed User
Longtime User
Oh, THAT part I could figure out myself, ilan. ? I was more curious why you felt the need to have a super exact size in the first place?
 

ilan

Expert
Licensed User
Longtime User
The problem is when you set New variant, the PREVIEW windows is always the same size, you have to resize manually with your mouse down to the last 1px.

correct!!
Oh, THAT part I could figure out myself, ilan. ? I was more curious why you felt the need to have a super exact size in the first place?

i need to know where to position the views without having the real size how can i know it?
 

Sandman

Expert
Licensed User
Longtime User
i need to know where to position the views without having the real size how can i know it?
So your case is that you in the want to have a window with exact dimensions (that isn't resizable), and you have views that require exact sizes and positions, so you can't fully rely on anchors for them. And you want to designer window to be the same exact dimensions as your end window so you can place everything correctly?

Am I understanding this now?
 

ilan

Expert
Licensed User
Longtime User
So your case is that you in the want to have a window with exact dimensions (that isn't resizable), and you have views that require exact sizes and positions, so you can't fully rely on anchors for them. And you want to designer window to be the same exact dimensions as your end window so you can place everything correctly?

Am I understanding this now?

correct!


I was not aware that the preview window remains at its size, I never use the preview window.

Yes it was always the case and resizing with mouse works but its sometimes hard to get the exact size as your variant.
 

Sandman

Expert
Licensed User
Longtime User
Would a utility such as Sizer be a workaround?



(More alternatives: https://www.raymond.cc/blog/how-to-resize-an-unresizable-window-or-dialog-box/view-all/)

(updated post with correct url to Sizer - they had changed their url strategy)
 
Last edited:

stevel05

Expert
Licensed User
Longtime User
Nice find.Sizer seems to work perfectly with a little compensation for the window borders. Setting up cutom sizes is straightforward.
 

ilan

Expert
Licensed User
Longtime User
wow, that awesome. thanx Sandman. this would do the job although a build-in function would also be nice :)
 
Top