ALSO for BACKSTAGE

ALSO for BACKSTAGE

Postby Silvio » Tue Nov 16, 2010 9:12 pm

How I can create a dialog into backstage at right ?
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: ALSO for BACKSTAGE

Postby Antonio Linares » Wed Nov 17, 2010 6:32 am

Silvio,

Try to use a non modal one
regards, saludos

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

Re: ALSO for BACKSTAGE

Postby Silvio » Wed Nov 17, 2010 7:02 am

yes I wish and l'd like insert a dialog as this:

Image
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: ALSO for BACKSTAGE

Postby Silvio » Wed Nov 17, 2010 11:33 am

I TRY THIS BUT NOT RUN OK

Code: Select all  Expand view

ANTONIO,

I MADE


 Local oBackBtn
   Local oBackstage
   Local aClrMenu1 := { { 0.5, RGB( 69, 124, 188 ), RGB( 41, 93, 171 ) }, { 0.5, RGB( 26, 64, 136 ), RGB( 56, 135, 191 ) } }
   Local aClrMenu2 := { { 0.5, RGB( 123, 178, 236 ), RGB( 71, 126, 205 ) }, { 0.5, RGB( 17, 78, 175 ), RGB( 128, 225, 255 ) } }
   Local  aMenuRibbon := { "Favoriti","Hardware","Software","Manuali","Prestiti","Magazzino","Utilità","Aiuto" }


  if ::obar != nil
      ::obar:End()
      ::obar = nil
    endif


   ::obar:=TRibbonBar():New(::oWndMain, aMenuRibbon,,,,125,26 )


   ::obar:nLeftMargin = 85
   ::obar:CalcPos()

    oBackBtn = TRBtn():New( 4, 0, 70, 20, "./../bitmaps/rbnmenu.bmp", { || ::obar:Backstage() }, ::obar,;
        ,,,,,, .T., .T.,,,,,, /*"POPUP"*/ , oBackstage,,,,,,,,,,,,, aClrMenu1, nRGB( 125, 172, 215 ),;
      nRGB( 65, 106, 189 ) )


   Add GROUP....


 //BACKSTAGE

     DEFINE BACKSTAGE oBackstage MAINWIDTH 300
    DEFINE BSSELECT OF oBackstage PROMPT "Test1" ACTION nBackstage1(oBackstage)
    DEFINE BSSELECT OF oBackstage PROMPT "Test2" ACTION Msginfo("Test2")
    SET BACKSTAGE oBackstage TO ::oBar

RETURN Self



Function nBackstage1(oBackstage)
   Local oDlgBack1
   DEFINE DIALOG  oDlgBack1 OF oBackstage

   @10,2 say "test" of  oDlgBack1



   ACTIVATE DIALOG  oDlgBack1 NOWAIT
  Return NIL
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: ALSO for BACKSTAGE

Postby Silvio » Wed Nov 17, 2010 12:44 pm

Perhaps I found

I try simply

@5,55 say "TEST " of oBackstage

@ 26, 75 BITMAP obmpBack FILE ".\bitmaps\blue.bmp" ;
of oBackstage TRANSPARENT NOBORDER


Only

How calc the right position of oBackstage to insert a bitmap on the bottom angle ?
Image
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Enrico Maria Giordano and 107 guests