Page 1 of 1

problem painting xBrowse

Posted: Tue May 19, 2020 2:37 pm
by MOISES
Hello,

There's a painting problem with xBrowse. It doesn't paint the whole width at once, but first it paints up to the middle of the screen and then it widens.

This is a sample:

Code: Select all


#include "fivewin.ch"
#include "xbrowse.ch"



function main()

local oWnd
local oGrid
local oBtn, oGet1, oGet2




   USE C:\FWH\SAMPLES\CUSTOMER ALIAS "BASE" NEW

   DEFINE WINDOW oWnd
   oWnd:nHeight := ScreenHeight()

 

   @ 10, 151 XBROWSE oGrid ;
      SIZE -1, -1 PIXEL ;
      OF oWnd ;
      DATASOURCE "BASE" ;
      AUTOSORT ;
      AUTOCOLS ;
      CELL LINES NOBORDER





    oGrid:CreateFromCode()


     @ 10, 10 BUTTON oBtn PROMPT "Filtro" OF oPanel ;
              SIZE 80, 20 PIXEL                   ;
              ACTION ( alert(oGrid:Refresh()) )


ACTIVATE WINDOW oWnd MAXIMIZED


Return nil

 
Thank you very much.

Re: problem painting xBrowse

Posted: Tue May 19, 2020 3:13 pm
by FranciscoA
Prueba asi:

Code: Select all

#include "fivewin.ch"
#include "xbrowse.ch"



function main()

local oWnd
local oGrid
local oBtn, oGet1, oGet2




   USE C:\FWH\SAMPLES\CUSTOMER ALIAS "BASE" NEW

   DEFINE WINDOW oWnd
   oWnd:nWidth := ScreenWidth()
   oWnd:nHeight := ScreenHeight()      // <<-----

 

   @ 10, 151 XBROWSE oGrid ;
      SIZE -1, -1 PIXEL ;
      OF oWnd ;
      DATASOURCE "BASE" ;
      AUTOSORT ;
      AUTOCOLS ;
      CELL LINES NOBORDER





    oGrid:CreateFromCode()


     @ 10, 10 BUTTON oBtn PROMPT "Filtro" OF oWnd ;      // <<-----
              SIZE 80, 20 PIXEL                   ;
              ACTION ( alert(oGrid:Refresh()) )


ACTIVATE WINDOW oWnd MAXIMIZED 


Return nil

 
Saludos.

Re: problem painting xBrowse

Posted: Tue May 19, 2020 3:23 pm
by MOISES
Thank you.

Now it happens with the lower half of the xBrowse, including the horizontal scroll bar.

Re: problem painting xBrowse

Posted: Thu May 21, 2020 6:42 am
by MOISES
Up