Problem with ribbonbar and get

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

Problem with ribbonbar and get

Post by Silvio.Falconi »

Image

please test this sample

Code: Select all

#include "fivewin.ch"
#include "constant.ch"
#include "ribbon.ch"



function main()

   local oRBar
   local oWnd,oGr
   local oFontBigNum

   local oNum1,oNum2
   local nNumFrom,nNumTo

     nNumFrom  := 1
     nNumTO    := 227

   DEFINE FONT  oFontBigNum NAME "VERDANA" SIZE 30,-40

   DEFINE WINDOW oWnd TITLE "RibbonBar Test " + FWVERSION from 1,1 to 600,600 pixel //brush oBrush1
   
   DEFINE RIBBONBAR oRBar WINDOW oWnd PROMPT "test numbers" HEIGHT 133 TOPMARGIN 25
   

    ADD GROUP oGr RIBBON oRBar TO OPTION 1 PROMPT "test get" width 400


     @ 9,10  GET oNum1 VAR nNumFrom SIZE 100,75 PIXEL  OF  oGr FONT oFontBigNum
     @ 9,160  GET oNum2 VAR nNumTO SIZE 100,75 PIXEL  OF  oGr FONT oFontBigNum




   oRBar:nLeftMargin = 75
   oRBar:CalcPos()

  oWnd:Center()
   
  ACTIVATE WINDOW oWnd MAXIMIZED;
  on init  oNum1:refresh()
   
   oRBar:End()
   
return ni

I not see the numbers on the get
I must click on each get and move the mouse into to see the numbers
why
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
User avatar
cnavarro
Posts: 5792
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Problem with ribbonbar and get

Post by cnavarro »

Use size and picture

Code: Select all

     @ 9, 10 GET oNum1 VAR nNumFrom SIZE 150,75 PIXEL OF oGr PICTURE "999" FONT oFontBigNum
     @ 9,180 GET oNum2 VAR nNumTO   SIZE 150,75 PIXEL OF oGr PICTURE "999" FONT oFontBigNum
 
C. Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
Post Reply