Results 1 to 4 of 4

Thread: Confusion with DIALOG GET/SET CLIENT, DESKTOP GET SIZE and DIALOG SET LOC

  1. #1

    Confusion with DIALOG GET/SET CLIENT, DESKTOP GET SIZE and DIALOG SET LOC

    Hi folks,

    I'm pulling my hairout, if I had any. I have trouble with DIALOG GET LOC, DIALOG GET CLIENT and compare to that DESKTOP GET SIZE.

    I get teh right Desktop size for me 1440x880 , but a dialog that is sizes at the maximum client area I get for it these values:

    XPos=-2
    YPos=-2
    sizeWidth=963
    sizeHeight=537
    ClientWidth=957
    ClientsHeight=504

    Why is that?

    Somehow the DIALOG SET/GET LOC and CLIENT functions behave like I not expect them to be.

  2. #2
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,780
    Rep Power
    10

    Re: Confusion with DIALOG GET/SET CLIENT, DESKTOP GET SIZE and DIALOG SET LOC

    I think you have created your dialog without indicating PIXELS.
    If this is true, all dialog measures are in UNITS.

    Try to use DIALOG NEW PIXELS ...

    but all controls over it will be placed reflecting the new unit of meausre.

    Maybe you can use
    DIALOG UNITS ...
    DIALOG PIXELS ...
    statement to convert units to pixels and the other way round.

    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  3. #3

    Re: Confusion with DIALOG GET/SET CLIENT, DESKTOP GET SIZE and DIALOG SET LOC

    Ok, will try thta. Thanks. This is the first real workout with the UI module, so I have to get used to it.

  4. #4
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,780
    Rep Power
    10

    Re: Confusion with DIALOG GET/SET CLIENT, DESKTOP GET SIZE and DIALOG SET LOC

    Zero problems Michael. Just ask whatever you need or are in doubt.

    Every question can be of help to better implement thinBasic or thinBasic help.

    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •