folder bug

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

folder bug

Post by Silvio »

Dear antonio,

I saw the folder test sample fwppc and i saw that keyboard of smartphone hide the gets .

Instead i saw another program for wince and it have the panel scroll inside and when i click the keyboard the folder is move on up the same keyboard and i can see all the get of that folder.
I think it very important modify to do...
Best Regards, Saludos

Falconi Silvio
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Silvio,

That behavior has to be implemented by the programer.

We don't know when the keyboard is going to be used, and what should be needed to be moved in the screen, to get a proper view.

You just need to change the oFolder:nTop value, or the oDialog:nTop value.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Post by Silvio »

one sample to see if you have wince 5.0 or wince 6.1 can be the program today of configuration of smartphone or pds : there is a folder and on a one a listbox and to write some gets.
When you open the keyboard the folder go up and it create panel scroll.
I think it must be inative system and not from a modify of a rogrammer or i perhaps I' thinking bad...
Best Regards, Saludos

Falconi Silvio
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Silvio,

Can you reproduce it in the Windows Mobile emulator ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Post by Silvio »

sure
look it please

first sample

Image

second sample
Image

Instead if you compile a your sample with folder and get and press the keyboard then the keyboard hide the folders and the gets into...
Best Regards, Saludos

Falconi Silvio
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Silvio,

Please add this style to the dialog: WS_VSCROLL and try it again.

It seems as the SmartPhone scrolls automatically if such style is used.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Post by Silvio »

Antonio,
Now i trying with window but not know where i can insert this value
On sample test I see buttons only on first folder How I can see all buttons ?


Code: Select all

 
#include "FWCE.ch"



 function main()

   local oWnd,   oFld, i
   Local abtn[120]
   Local oPanel[6]

   DEFINE WINDOW oWnd TITLE "Beach" 




  // 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 ] ) }


     RETURN NI


I wish create this window

Image
Best Regards, Saludos

Falconi Silvio
Wolfgang Ciriack
Posts: 37
Joined: Sun Aug 03, 2008 8:02 am
Location: Germany, Berlin

Post by Wolfgang Ciriack »

Hi Silvio,
perhaps it is better only to create 20 buttons for the tables and 3 buttons for the group tables. Then you have not so much objects and can only change the captions and colors of table buttons with the group buttons ?
Best regards
Wolfgang Ciriack
User avatar
Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Post by Silvio »

Dear wolfang,
I need to create total 120 buttons
20 each folder.
have you an sample to create it?
Best Regards, Saludos

Falconi Silvio
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Silvio,

You don't need a panel for each folder page.

Simply use the oFolder:aDialogs[ n ] as the container for each group of buttons
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Silvio
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Post by Silvio »

Antonio,
I must arrive to 300 tables where I insert all ?
I must divide to 50 for each folder and it so for six folder
Best Regards, Saludos

Falconi Silvio
Post Reply