scroll dialod , tab and buttons

scroll dialod , tab and buttons

Postby Silvio » Thu Aug 21, 2008 7:43 pm

Dear Anotnio,

I saw your scroll sample

I 'd like create this dialog with 4 folder or tab

1- 50, 51-100, 101-150, 151-200

on each folder I'd like to insert a oPanel scroll

where I can insert 50 buttons on each panel

It 's possible ?
Best Regards, Saludos

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

Postby Antonio Linares » Fri Aug 22, 2008 7:17 am

Silvio,

Please try it yourself, thanks :-)

It should work, but we will not be sure about it until we try it.
regards, saludos

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

Postby Silvio » Fri Aug 22, 2008 1:39 pm

I try it but not run ok
Code: Select all  Expand view  RUN

#include "FWCE.ch"

// test with  folder , panel and button

function Main()

   local oWnd, cValue, cText := "Hello world!", oFld, i
   Local abtn[120]
   Local oPanel[6]
   DEFINE WINDOW oWnd TITLE "Tables"

  // USE ( CurDir() + "\tavoli" )

@ 0.5, 1 FOLDER oFld PROMPTS "1-20", "21-40", "41-60","61-80","81-100","101-120" ;
      SIZE 225, 245

@ 0.6, 1.5 PANEL oPanel[1] OF oFld:aDialogs[ 1 ] ;
      SIZE oFld:nWidth()-5 , oFld:nHeight() - 20 PIXEL


     FOR i = 1 TO 20
     CREAPULSANTI( aBtn, i ,oPanel[1])
    NEXT

@ 0.6, 1.5 PANEL oPanel[2] OF oFld:aDialogs[ 2 ] ;
      SIZE oFld:nWidth()-5 , oFld:nHeight() - 20 PIXEL

FOR i = 21 TO 40
     CREAPULSANTI( aBtn, i ,oPanel[2])
    NEXT

@ 0.6, 1.5 PANEL oPanel[3] OF oFld:aDialogs[ 3 ] ;
      SIZE oFld:nWidth()-5 , oFld:nHeight() - 20 PIXEL

FOR i = 41 TO 60
     CREAPULSANTI( aBtn, i ,oPanel[3])
    NEXT


@ 0.6, 1.5 PANEL oPanel[4] OF oFld:aDialogs[ 4 ] ;
      SIZE oFld:nWidth()-5 , oFld:nHeight() - 20 PIXEL

FOR i = 61 TO 80
     CREAPULSANTI( aBtn, i ,oPanel[4])
    NEXT


  @ 0.6, 1.5 PANEL oPanel[5] OF oFld:aDialogs[ 5 ] ;
      SIZE oFld:nWidth()-5 , oFld:nHeight() - 20 PIXEL

FOR i = 81 TO 100
     CREAPULSANTI( aBtn, i ,oPanel[5])
    NEXT



   @ 0.6, 1.5 PANEL oPanel[6] OF oFld:aDialogs[6] ;
      SIZE oFld:nWidth()-5 , oFld:nHeight() - 20 PIXEL

   FOR i = 101 TO 120

     CREAPULSANTI( aBtn, i ,oPanel[6])
    NEXT







   ACTIVATE WINDOW oWnd

return nil

//----------------------------------------------------------------------------

STATIC FUNCTION CREAPULSANTI( aBtn, nBtn,odlgscroll )

   @ 0.5 + ( nBtn - 1 ) * 40, 12 BUTTON abtn[nBtn] PROMPT "TAV." + STR( nBtn, 2 );
   PIXEL of odlgscroll SIZE 40,40



     *abtn[nBtn]:bAction := {|| menupopup( aBtn[nBtn ] ) }
     *abtn[nBtn]:cToolTip  :="TAVOLO" + STR( nBtn, 2 )

     RETURN NIL







I see only the first 20 tables

I wish in each folder 20 tables 4 for col for 5 row ( 4x5)
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 Pocket PC

Who is online

Users browsing this forum: No registered users and 5 guests