Tget change size on line

Post Reply
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Tget change size on line

Post by Silvio.Falconi »

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 ?
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
Post Reply