Added Shift + Left/Right/Up/Down to resize the selected gadgets, thanks for the suggestion!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!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 to my feature list, though the focus right now is to have a perfect editor and a perfect code generation/parserts-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.
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!)Falko wrote:Sorry @Polo,
did you update FormDesigner for Windows?
The Date and Time is older as Mac and Linux.
Thank's Falko
Hi, no sorry I'm not adding features to the code viewer as it won't stay in the long term.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.
I'm afraid I still do not understand, could you use another translator, Google maybe?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
Hello Polo and sorry for the translating with Promt-Translator.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.
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 differentThe gadget adjusts its width and height to fit the displayed image. The specified width and height are only used when no image is displayed.
Yes but in Purebasic the width/height on an image gadget is ignored - the image size is used.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.
For sure, but atm I need to leave it like that in the FD so that it stays WYSIWYGwilbert 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.
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