More than 128 object on a dialog
-
- Posts: 76
- Joined: Wed Oct 12, 2005 5:52 pm
- Location: Milan,Italy
More than 128 object on a dialog
Hi,
I need to create a single dialog with more than 128 object, i CANNOT use folders.
Is it a limit of FWH ?
Tks
I need to create a single dialog with more than 128 object, i CANNOT use folders.
Is it a limit of FWH ?
Tks
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Piscicelli,
Here you have a working sample using 150 controls:
This is how it looks:
Here you have a working sample using 150 controls:
Code: Select all
#include "FiveWin.ch"
function Main()
local oDlg, n, aValues := Array( 150 )
local nRow, nCol
for n = 1 to Len( aValues )
aValues[ n ] = Str( n, 3 )
next
DEFINE DIALOG oDlg TITLE "More than 128 controls" FROM 2, 2 TO 30, 48
n = 1
for nRow = 1 to 15
for nCol = 1 to 10
TGet():New( nRow - 0.5, nCol * 2 - 0.7, GenBlock( aValues, n++ ) )
next
next
ACTIVATE DIALOG oDlg CENTERED
return nil
function GenBlock( aValues, n )
return bSETGET( aValues[ n ] )
-
- Posts: 76
- Joined: Wed Oct 12, 2005 5:52 pm
- Location: Milan,Italy
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
-
- Posts: 76
- Joined: Wed Oct 12, 2005 5:52 pm
- Location: Milan,Italy
Try this:
Code:
#include "FiveWin.ch"
function Main()
local oDlg, n, aValues := Array( 150 )
local nRow, nCol
for n = 1 to Len( aValues )
aValues[ n ] = Str( n, 3 )
next
DEFINE DIALOG oDlg TITLE "More than 128 controls" FROM 0, 2 TO 35, 90
n = 1
for nRow = 1 to 20
for nCol = 1 to 15
bsave := ERRORBLOCK( { |x| BREAK(x)} )
BEGIN SEQUENCE
TGet():New( nRow - 0.5, nCol * 2 - 0.7, GenBlock( aValues, n++ ) )
RECOVER USING objError
msginfo("This is my Limit: "+str(n))
quit
END
ERRORBLOCK(bsave) // Restore handler
next
next
ACTIVATE DIALOG oDlg CENTERED
return nil
function GenBlock( aValues, n )
return bSETGET( aValues[ n ] )
I Got a messare of 152 max limit (under W98se /XP)
Hi
Code:
#include "FiveWin.ch"
function Main()
local oDlg, n, aValues := Array( 150 )
local nRow, nCol
for n = 1 to Len( aValues )
aValues[ n ] = Str( n, 3 )
next
DEFINE DIALOG oDlg TITLE "More than 128 controls" FROM 0, 2 TO 35, 90
n = 1
for nRow = 1 to 20
for nCol = 1 to 15
bsave := ERRORBLOCK( { |x| BREAK(x)} )
BEGIN SEQUENCE
TGet():New( nRow - 0.5, nCol * 2 - 0.7, GenBlock( aValues, n++ ) )
RECOVER USING objError
msginfo("This is my Limit: "+str(n))
quit
END
ERRORBLOCK(bsave) // Restore handler
next
next
ACTIVATE DIALOG oDlg CENTERED
return nil
function GenBlock( aValues, n )
return bSETGET( aValues[ n ] )
I Got a messare of 152 max limit (under W98se /XP)
Hi
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
-
- Posts: 76
- Joined: Wed Oct 12, 2005 5:52 pm
- Location: Milan,Italy
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact: