Tget change size on line

Tget change size on line

Postby Silvio.Falconi » Wed Oct 28, 2020 10:53 am

local cData_To_Print,nData_To_Print:=1
local aDataPrint :={"Campo","Valore"}

@ 26, 5 Say "Dato da Stampare" SIZE 90,20 PIXEL OF oDlg TRANSPARENT
@ 24, 75 COMBOBOX aGet[2] VAR nData_To_Print ITEMS aDataPrint SIZE 50,90 PIXEL OF oDlg STYLE CBS_DROPDOWNLIST;
ON CHANGE (IIF(nData_To_Print=2,;
(aGet[3]:hide(),aGet[4]:show(), oBtn1:Hide(),oBtn2:Hide(),oBtn3:Hide()),;
(aGet[4]:hide(),aGet[3]:show(), oBtn1:Show(),oBtn2:Show(),oBtn3:Show())) )

@ 24, 130 GET aGet[3] VAR cData_To_Print SIZE 180,14 PIXEL OF oDlg WHEN nData_To_Print=1 UPDATE
@ 24, 130 GET aGet[4] VAR cData_To_Print MEMO SIZE 240,40 PIXEL OF oDlg WHEN nData_To_Print=2 UPDATE

@ 24, 312 BTNBMP oBtn1 RESOURCE "folderpiu.bmp" FLAT SIZE 15, 15 OF oDlg PIXEL ACTION NIL WHEN nData_To_Print=1 COLOR nRgb(238,236,219),nRgb(238,236,219)
@ 24, 328 BTNBMP oBtn2 RESOURCE "foldermeno.bmp" FLAT SIZE 15, 15 OF oDlg PIXEL ACTION NIL WHEN nData_To_Print=1 COLOR nRgb(238,236,219),nRgb(238,236,219)
@ 24, 342 BTNBMP oBtn3 RESOURCE "vuoto.bmp" FLAT SIZE 15, 15 OF oDlg PIXEL ACTION NIL WHEN nData_To_Print=1 COLOR nRgb(238,236,219),nRgb(238,236,219)


Image



I wish change the size of the get when I change the nData_to_print, so I wish sho only one get ( 3,4)
and you shouldn't see the buttons if nData_To_Print = 2



when it is "Campo" it must be

Image

when it is "Valore" it must be

Image

the problem is that at first you see all the controls
and I made
ACTIVATE DIALOG oDlg CENTERED ;
ON INIT ( nData_To_Print:=1, aGet[2]:refresh())

and I see the get memo and over the buttons

Image

how I can resolve it ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 6771
Joined: Thu Oct 18, 2012 7:17 pm

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], Silvio.Falconi and 72 guests