FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Pocket PC dialog setsize method
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
dialog setsize method
Posted: Tue Aug 22, 2006 07:33 PM

Antonio

Is there any plan for dialog setsize method ?

It is very dfficult to draw dialogs from resources and make them available to different type of pocket pcs as we can not resize them at init time or at least i have not found how to do it. In Fwh i use odlg:setsize()

Even the client sample from Carles will not show properly on my Ipaq 6515 and will not work as i do not see the OK and Cancel buttons, while it shows quite OK on 2 other pockets.

Drawing dialogs with @ ..,.. is very tricky and takes long time but at the time being looks like the only universal way of drawing screens.

Any idea ?

Tia

Richard

http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 1283
Joined: Fri Feb 10, 2006 02:34 PM
dialog setsize method
Posted: Wed Aug 23, 2006 06:40 AM
Richard,

Can you try the example TestSip ?

MoveWindow( oDlg:hWnd, 28, 10, 220, 180 )
Salutacions, saludos, regards

"...programar es fácil, hacer programas es difícil..."

UT Page -> https://carles9000.github.io/
Forum UT -> https://discord.gg/bq8a9yGMWh
HIX -> https://github.com/carles9000/hix
Posts: 1283
Joined: Fri Feb 10, 2006 02:34 PM
dialog setsize method
Posted: Wed Aug 23, 2006 07:14 AM
Sample

#include "Fwce.ch"

#define SM_CXSCREEN 0
#define SM_CYSCREEN 1

*--------------
FUNCTION Main()
*--------------
    LOCAL oDlg

    DEFINE DIALOG oDlg FROM 2,2 TO 13, 30

      @ 1, 1 BUTTON "Maximize" SIZE 100, 20 ACTION Maximize( oDlg )

      @ 3, 1 BUTTON "Exit    " SIZE 100, 20 ACTION oDlg:End()

    ACTIVATE DIALOG oDlg

RETU NIL

*-------------------------------
STATIC FUNCTION Maximize( oDlg )
*-------------------------------
   LOCAL nWidth  := GetSysmetrics( SM_CXSCREEN )
   LOCAL nHeight := GetSysmetrics( SM_CYSCREEN )

   MoveWindow( oDlg:hWnd, 0, 0, nWidth, nHeight )

RETU NIL
Salutacions, saludos, regards

"...programar es fácil, hacer programas es difícil..."

UT Page -> https://carles9000.github.io/
Forum UT -> https://discord.gg/bq8a9yGMWh
HIX -> https://github.com/carles9000/hix
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
dialog setsize method
Posted: Thu Aug 24, 2006 03:27 PM
Carles wrote:Sample

#include "Fwce.ch"

#define SM_CXSCREEN 0
#define SM_CYSCREEN 1

*--------------
FUNCTION Main()
*--------------
    LOCAL oDlg

    DEFINE DIALOG oDlg FROM 2,2 TO 13, 30

      @ 1, 1 BUTTON "Maximize" SIZE 100, 20 ACTION Maximize( oDlg )

      @ 3, 1 BUTTON "Exit    " SIZE 100, 20 ACTION oDlg:End()

    ACTIVATE DIALOG oDlg

RETU NIL

*-------------------------------
STATIC FUNCTION Maximize( oDlg )
*-------------------------------
   LOCAL nWidth  := GetSysmetrics( SM_CXSCREEN )
   LOCAL nHeight := GetSysmetrics( SM_CYSCREEN )

   MoveWindow( oDlg:hWnd, 0, 0, nWidth, nHeight )

RETU NIL


Thank you
http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013

Continue the discussion