Page 22 of 45
Re: Form Designer for Mac/Windows/Linux -5.00b2 (update!)
Posted: Mon Sep 03, 2012 1:27 pm
by Polo
ts-soft wrote:Okay, i think better keyboard-support like Shift+Right to change the width or Shift+Down to change the height
is an alternate for this problem?
Added Shift + Left/Right/Up/Down to resize the selected gadgets, thanks for the suggestion!

Re: Form Designer for Mac/Windows/Linux -5.00b2 (update!)
Posted: Mon Sep 03, 2012 1:35 pm
by ts-soft
Thanks, your support and your formdesigner are great
A button to have a preview of the realwindow would be nice.
Use Compiler or create a windows on the fly with real-gadgets.
Thomas
Re: Form Designer for Mac/Windows/Linux -5.00b2 (update!)
Posted: Mon Sep 03, 2012 1:37 pm
by Polo
ts-soft wrote:A button to have a preview of the realwindow would be nice.
Use Compiler or create a windows on the fly with real-gadgets.
Added to my feature list, though the focus right now is to have a perfect editor and a perfect code generation/parser

Re: Form Designer for Mac/Windows/Linux -5.00b2 (update!)
Posted: Mon Sep 03, 2012 1:41 pm
by Falko
Sorry @Polo,
did you update FormDesigner for Windows?
The Date and Time is older as Mac and Linux.
Thank's Falko
Re: Form Designer for Mac/Windows/Linux -5.00b2 (update!)
Posted: Mon Sep 03, 2012 1:48 pm
by Polo
Falko wrote:Sorry @Polo,
did you update FormDesigner for Windows?
The Date and Time is older as Mac and Linux.
Thank's Falko
I did, that's because my Windows time is messed up (god knows why... As I'm not using Windows so much I didn't bother changing it!)
Re: Form Designer for Mac/Windows/Linux -5.00b2 (update!)
Posted: Mon Sep 03, 2012 2:18 pm
by Falko
Okay
Here another wish for Image.
If I liked to insert a bigger picture,
if it is not reduced, but only one cutting
shown. Better the picture would be to be reduced with the resize,
and to be able to cut an other option, the picture.
Sorry my english. For more english i use the
Promt-Translator
Greetings - Falko
Re: Form Designer for Mac/Windows/Linux -5.00b2 (update!)
Posted: Mon Sep 03, 2012 3:00 pm
by c4s
Feature suggestion: Make it possible at the code viewer to use the (user selected) PureBasic color scheme. Only fall back to the default one if nothing has been found.
Re: Form Designer for Mac/Windows/Linux -5.00b2 (update!)
Posted: Mon Sep 03, 2012 3:21 pm
by Polo
c4s wrote:Feature suggestion: Make it possible at the code viewer to use the (user selected) PureBasic color scheme. Only fall back to the default one if nothing has been found.
Hi, no sorry I'm not adding features to the code viewer as it won't stay in the long term.
Falko wrote:Here another wish for Image.
If I liked to insert a bigger picture,
if it is not reduced, but only one cutting
shown. Better the picture would be to be reduced with the resize,
and to be able to cut an other option, the picture.
Sorry my english. For more english i use the
Promt-Translator
Greetings - Falko
I'm afraid I still do not understand, could you use another translator, Google maybe?

If what you want is to resize the image when the gadget is resized, I'm not sure this would be the correct behaviour.
Re: Form Designer for Mac/Windows/Linux -5.00b2 (update!)
Posted: Mon Sep 03, 2012 4:04 pm
by Falko
Polo wrote:...
If what you want is to resize the image when the gadget is resized, I'm not sure this would be the correct behaviour.
Hello Polo and sorry for the translating with Promt-Translator.
Yes, if the gadget resized, i want this image resize into this gadget.
See the left picture. I mean zoom the big picture in the image-gadget:
I hope, you understand me.

Re: Form Designer for Mac/Windows/Linux -5.00b2 (update!)
Posted: Mon Sep 03, 2012 4:08 pm
by Polo
Got it - though from the PB manual you can read:
The gadget adjusts its width and height to fit the displayed image. The specified width and height are only used when no image is displayed.
So basically the gadget will be sized according to the image size, you cannot make the image bigger than what it is so I should not make it different

Re: Form Designer for Mac/Windows/Linux -5.00b2 (update!)
Posted: Mon Sep 03, 2012 4:12 pm
by wilbert
I think he wants the opposite Polo, so that the image always is scaled to best fit it's container so when scaling the gadget inside the form or resizing the window, the image would still fit its container.
Edit : I think you already read it correctly. I was a bit confused about the discussion.
Re: Form Designer for Mac/Windows/Linux -5.00b2 (update!)
Posted: Mon Sep 03, 2012 4:15 pm
by Polo
wilbert wrote:I think he wants the opposite Polo, so that the image always is scaled to best fit it's container so when scaling the gadget inside the form or resizing the window, the image would still fit its container.
Yes but in Purebasic the width/height on an image gadget is ignored - the image size is used.
When adding the image to an image gadget in FD, the gadget is resized to the image size and you should not resize it afterward

Re: Form Designer for Mac/Windows/Linux -5.00b2 (update!)
Posted: Mon Sep 03, 2012 4:18 pm
by wilbert
Then maybe it should be a feature request to Fred.
It can be very convenient at times if the image always scales itself to best fit an image container.
Re: Form Designer for Mac/Windows/Linux -5.00b2 (update!)
Posted: Mon Sep 03, 2012 4:20 pm
by Polo
wilbert wrote:Then maybe it should be a feature request to Fred.
It can be very convenient at times if the image always scales itself to best fit an image container.
For sure, but atm I need to leave it like that in the FD so that it stays WYSIWYG

Re: Form Designer for Mac/Windows/Linux -5.00b2 (update!)
Posted: Mon Sep 03, 2012 5:34 pm
by Falko
And you can this not include behind your LoadImage?
I've edit with PB-IDE your .pbf-File and this is it, what i mean.
Code: Select all
; Form Designer for Purebasic - 5.0
; Warning: this file uses a strict syntax, if you edit it, make sure to respect the Form Designer limitation or it won't be opened again.
Global Window_0
Global Image_0
Global Img_0
UseJPEGImageDecoder()
;------ http://cdn.ithinkdiff.com/wp-content/uploads/2009/03/koala.jpg -----
Img_0 = LoadImage(#PB_Any,"koala.jpg")
ResizeImage(Img_0,120,130) ; here i've insert a resize with PB-Editor
Procedure InitWindow_0()
Protected WindowWidth, WindowHeight
Window_0 = OpenWindow(#PB_Any, 0, 0, 322, 162, "", #PB_Window_SystemMenu)
WindowWidth = WindowWidth(Window_0)
WindowHeight = WindowHeight(Window_0)
Image_0 = ImageGadget(#PB_Any, 10, 10, 120, 130, ImageID(Img_0))
EndProcedure
Procedure ResizeGadgetsWindow_0()
Protected WindowWidth, WindowHeight
WindowWidth = WindowWidth(Window_0)
WindowHeight = WindowHeight(Window_0)
ResizeGadget(Image_0, 10, 10, 120, 130)
EndProcedure
Procedure Window_0_Events(event)
Select event
Case #PB_Event_Gadget
Select EventGadget()
EndSelect
EndSelect
EndProcedure
;Edit by Falko with PB-Editor
initWindow_0()
ResizeGadgetsWindow_0()
Repeat
event=WaitWindowEvent()
Until event=#PB_Event_CloseWindow