Page 1 of 1
Selecting numbers
Posted: Wed May 22, 2019 4:23 pm
by Silvio.Falconi
On a dialog I must select the number and I made a normal get with a action
It open a dialog with scrollPanel and on it I list many small btnbmp
I have the number with the font
DEFINE FONT oLarge NAME "VERDANA" SIZE 0,-22 BOLD
to show big and clear
the problem is I have also a big button "..." while I prefer have a button as the combobox
How I can resolve ? because it is no good quality
Re: Selecting numbers
Posted: Thu May 23, 2019 5:54 am
by Antonio Linares
Silvio,
Reduce the height of the control
Re: Selecting numbers
Posted: Thu May 23, 2019 6:30 am
by Silvio.Falconi
Antonio, I need a big font and the control must be the same height of the date block (gets)
and I must use it on a touch tablet if I make the control small then the user cannot use it
I need something of this
Re: Selecting numbers
Posted: Thu May 23, 2019 10:30 am
by Silvio.Falconi
Now I' resolved with a buttobmp easy but I don't like it
it is certainly not beautiful and professional to behold
but I have not found other solutions
I remember there was many year ago a button (dbutton) with the possibility to open a dialog popup but I not found this class on fivewin controls
Re: Selecting numbers
Posted: Fri May 24, 2019 8:20 am
by ukoenig
Silvio,
maybe better one of these images
or
regards
Uwe
Re: Selecting numbers
Posted: Fri May 24, 2019 8:37 am
by Silvio.Falconi
Uwe,
thanks , but I not Know how adapt it ( size of the get)
I create down4.png
DEFINE FONT oLarge NAME "VERDANA" SIZE 0,-22 BOLD
@ 06,50 GET aGet[2] VAR nNumberElemento SIZE 50,32 PIXEL of oFld:aDialogs[1] FONT oLarge
@ 6.01,100 BUTTONBMP oBtnSel ;
SIZE 10,31.5 PIXEL OF oFld:aDialogs[1];
RESOURCE ".\bitmaps\down4.png"
Re: Selecting numbers
Posted: Fri May 24, 2019 9:40 am
by ukoenig
Silvio,
calculated button-position from get :
@ 380, 570 GET oGet VAR cGet SIZE 130, 50 PIXEL OF oDlg
// button adjusted to get size and position
// the button-height should be close to the get-hight
// otherwise the arrow will be stretched to much
@ oGet:nTop +1, oGet:nRight BTNBMP oBtn OF oDlg ;
SIZE 20, oGet:nHeight PIXEL ; // B / H width = fixed value
FILENAME c_path1 + "Down4.png" ;
ACTION MsgAlert( "Test" ) ;
CENTERED NOBORDER ADJUST
Your selected image ( with resized height )
regards
Uwe
Re: Selecting numbers
Posted: Fri May 24, 2019 10:42 am
by Silvio.Falconi
I remember there was a control called Dbutton
it had a button as combobox
if I call the scrolpanel with dbutton and then change the caption with the number selected can be a solution
only I not found dbutton class or another button have the possibility to insert a button at left and call to a function
as this
Re: Selecting numbers
Posted: Fri May 24, 2019 1:29 pm
by ukoenig
Silvio,
In one of Your tests You have been trying to draw a button-border
a solution still needed
It is possible to draw a border with any size, colour, round and transparent-level.
regards
Uwe
Re: Selecting numbers
Posted: Sat May 25, 2019 2:39 pm
by Silvio.Falconi
>You have been trying to draw a button-border
I not remember and now I'm thinking to resolve a big problem
Re: Selecting numbers
Posted: Sat May 25, 2019 3:02 pm
by ukoenig
Inside Your function You defined
Function SetGradientBtnbmp(ntype,ocontrol,nColorBorder)
DEFAULT nColorBorder := nRGB(116,165,216 )
Do case
Case ntype = 2007
...
...
//2007
ocontrol:bClrGrad = { | lInvert | If( ! lInvert,;
...
ocontrol:nClrBorder := { || (IIF(ocontrol:lMOver,nColorBorder,nRgb(225, 225, 225))) }
regards
Uwe
Re: Selecting numbers
Posted: Sat May 25, 2019 3:36 pm
by Silvio.Falconi
I don't Know .. remember Antonio sad me ...
try with ocontrol:nClrBorder := { || (IIF(ocontrol:lMOver,nColorBorder,nRgb(225, 225, 225))) }