Results 1 to 8 of 8

Thread: Minimum Window Size

  1. #1

    Minimum Window Size

    I have an app that is only a single textbox and button and is intended to be used as a "helper" to another program we use. Since it is small, it would be convenient to resize to a smaller usable size and keep on the desktop, in a corner perhaps. I have found in runtime that there appears to be a hard minimum window size. Is this a settable thing? I have looked around and can't seem to find anything that controls or sets this minimum. Is is a Qt issue? Are the Title bar graphics the limiting factor, perhaps?

    I am continuing my journey with Lianja and I appreciate all you guy's help (and Patience!) so far!

  2. #2
    Hi James,

    Have you tried a custom section an just call the .dbo file?

    Herb

  3. #3
    Hi,

    No I haven't...yet. Working my way through Sections, on Canvas at the moment. Should be to Custom soon, will try then. Thanks and I enjoy the Videos.

    - James

  4. #4
    Hi James,

    I have been testing out a custom section, but it may not be what you are looking for.
    I will try again a little later today.

    Herb

  5. #5
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    2,190
    Hi Herb,

    yes, I remember Barry saying something about that on the forum at one time. Josip is the one who would probably be able to find it. I think it's a custom container, not a section.

    Hank

  6. #6
    Lianja MVP
    Join Date
    Dec 2012
    Location
    Croatia, Zagreb
    Posts
    1,135
    Hi,

    Maybe this helps:
    Q:
    How does one set an individual 'form' to be a specific size rather than filling the whole screen
    A:
    custom forms have properties for that
    Pages themselves always adjust to the geometry of the app. Custom forms exist on their own, in effect outside the page object and the App. Custom sections conform to the page width.
    A2:
    You just specify the size of the window using showdialog.
    https://www.lianja.com/community/sho...ll=1#post18215
    Last edited by josipradnik; 2018-06-06 at 04:37.

  7. #7
    Lianja Team yvonne.milne's Avatar
    Join Date
    Feb 2012
    Location
    Berkshire, UK
    Posts
    1,913
    Hi James,

    If you use the Form Framework class you can size it as you want to.

    e.g.

    Code:
    // buttonform.prg
    myform = createObject("Form")
    myform.caption = "Form"
    myform.resize(200,80)
    myform.addobject("cont1","container")
    cont1.autosize = .T.
    cont1.layout = "form"
    cont1.addrow("Text","otextbox","textbox")
    cont1.addrow("","buttons","container")
    buttons.layout = "horizontal"
    buttons.addobject("button1","commandbutton")
    buttons.minheight = 40
    button1.caption = "Click"
    myform.show(1)
    // end
    You can then run the prg (compiled to a .dbo)

    Name:  buttonform.png
Views: 94
Size:  2.4 KB

    Regards,

    Yvonne

  8. #8
    Great! Thanks guys, I knew you would come through. Now onward...

    - James

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us