Form Designer 5.10

You need some new stunning features ? Tell us here.
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: Form Designer for Mac/Windows/Linux -5.00b2 (update!)

Post 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! :)
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: Form Designer for Mac/Windows/Linux -5.00b2 (update!)

Post by ts-soft »

Thanks, your support and your formdesigner are great :D

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
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: Form Designer for Mac/Windows/Linux -5.00b2 (update!)

Post 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 ;)
User avatar
Falko
Enthusiast
Enthusiast
Posts: 271
Joined: Sat Oct 04, 2003 12:57 pm
Location: Germany
Contact:

Re: Form Designer for Mac/Windows/Linux -5.00b2 (update!)

Post by Falko »

Sorry @Polo,
did you update FormDesigner for Windows?
The Date and Time is older as Mac and Linux.
Thank's Falko
www.falko-pure.de
Win11 Pro 64-Bit, PB_6.11b1
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: Form Designer for Mac/Windows/Linux -5.00b2 (update!)

Post 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!)
User avatar
Falko
Enthusiast
Enthusiast
Posts: 271
Joined: Sat Oct 04, 2003 12:57 pm
Location: Germany
Contact:

Re: Form Designer for Mac/Windows/Linux -5.00b2 (update!)

Post by Falko »

Okay :wink:

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
www.falko-pure.de
Win11 Pro 64-Bit, PB_6.11b1
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

Re: Form Designer for Mac/Windows/Linux -5.00b2 (update!)

Post 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.
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: Form Designer for Mac/Windows/Linux -5.00b2 (update!)

Post 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.
User avatar
Falko
Enthusiast
Enthusiast
Posts: 271
Joined: Sat Oct 04, 2003 12:57 pm
Location: Germany
Contact:

Re: Form Designer for Mac/Windows/Linux -5.00b2 (update!)

Post 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:
Image

I hope, you understand me. :)
www.falko-pure.de
Win11 Pro 64-Bit, PB_6.11b1
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: Form Designer for Mac/Windows/Linux -5.00b2 (update!)

Post 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 ;)
wilbert
PureBasic Expert
PureBasic Expert
Posts: 3942
Joined: Sun Aug 08, 2004 5:21 am
Location: Netherlands

Re: Form Designer for Mac/Windows/Linux -5.00b2 (update!)

Post 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.
Last edited by wilbert on Mon Sep 03, 2012 4:15 pm, edited 1 time in total.
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: Form Designer for Mac/Windows/Linux -5.00b2 (update!)

Post 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 ;)
wilbert
PureBasic Expert
PureBasic Expert
Posts: 3942
Joined: Sun Aug 08, 2004 5:21 am
Location: Netherlands

Re: Form Designer for Mac/Windows/Linux -5.00b2 (update!)

Post 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.
Polo
Addict
Addict
Posts: 2422
Joined: Tue May 06, 2003 5:07 pm
Location: UK

Re: Form Designer for Mac/Windows/Linux -5.00b2 (update!)

Post 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 :)
User avatar
Falko
Enthusiast
Enthusiast
Posts: 271
Joined: Sat Oct 04, 2003 12:57 pm
Location: Germany
Contact:

Re: Form Designer for Mac/Windows/Linux -5.00b2 (update!)

Post 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
www.falko-pure.de
Win11 Pro 64-Bit, PB_6.11b1
Post Reply