Selecting numbers

Selecting numbers

Postby Silvio.Falconi » Wed May 22, 2019 4:23 pm

On a dialog I must select the number and I made a normal get with a action


Image






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
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: 7074
Joined: Thu Oct 18, 2012 7:17 pm

Re: Selecting numbers

Postby Antonio Linares » Thu May 23, 2019 5:54 am

Silvio,

Reduce the height of the control
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42125
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Selecting numbers

Postby Silvio.Falconi » Thu May 23, 2019 6:30 am

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
Image
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: 7074
Joined: Thu Oct 18, 2012 7:17 pm

Re: Selecting numbers

Postby Silvio.Falconi » Thu May 23, 2019 10:30 am

Now I' resolved with a buttobmp easy but I don't like it

Image

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
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: 7074
Joined: Thu Oct 18, 2012 7:17 pm

Re: Selecting numbers

Postby ukoenig » Fri May 24, 2019 8:20 am

Silvio,

maybe better one of these images

Image

or

Image

Image

regards
Uwe :D
Last edited by ukoenig on Fri May 24, 2019 9:38 am, edited 2 times in total.
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: Selecting numbers

Postby Silvio.Falconi » Fri May 24, 2019 8:37 am

Uwe,
thanks , but I not Know how adapt it ( size of the get)

I create down4.png

Image

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"
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: 7074
Joined: Thu Oct 18, 2012 7:17 pm

Re: Selecting numbers

Postby ukoenig » Fri May 24, 2019 9:40 am

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


Image

Your selected image ( with resized height )

Image

regards
Uwe :D
Last edited by ukoenig on Sat May 25, 2019 8:21 pm, edited 2 times in total.
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: Selecting numbers

Postby Silvio.Falconi » Fri May 24, 2019 10:42 am

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
Image
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: 7074
Joined: Thu Oct 18, 2012 7:17 pm

Re: Selecting numbers

Postby ukoenig » Fri May 24, 2019 1:29 pm

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.

Image

regards
Uwe :D
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: Selecting numbers

Postby Silvio.Falconi » Sat May 25, 2019 2:39 pm

>You have been trying to draw a button-border
I not remember and now I'm thinking to resolve a big problem
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: 7074
Joined: Thu Oct 18, 2012 7:17 pm

Re: Selecting numbers

Postby ukoenig » Sat May 25, 2019 3:02 pm

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 :?:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: Selecting numbers

Postby Silvio.Falconi » Sat May 25, 2019 3:36 pm

I don't Know .. remember Antonio sad me ...
try with ocontrol:nClrBorder := { || (IIF(ocontrol:lMOver,nColorBorder,nRgb(225, 225, 225))) }
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: 7074
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 34 guests

cron