Problem with TScrollPanel and GEt

Problem with TScrollPanel and GEt

Postby Maurizio » Sat Mar 05, 2016 8:43 am

Hello

WHEN and GET used together doesn't work in TScrollPanel

Code: Select all  Expand view
#include "fivewin.ch"
static oPanel

Function Main()

Local oPanel,oWnd, C := 'HELLO'
Local lOk := .f.
   DEFINE WINDOW oWnd
   oPanel:= TScrollPanel():New(40,2,400,400,oWnd)
   //oPanel:SetBrush(oBrush)
   @ 10,10 GET C OF oPanel SIZE 100,20 PIXEL WHEN lOk
   oPanel:SetRange()

//   oWnd:oclient:=oPanel
   ACTIVATE WINDOW oWnd maximized

Return nil


Regards, Maurizio
www.nipeservice.com
User avatar
Maurizio
 
Posts: 824
Joined: Mon Oct 10, 2005 1:29 pm

Re: Problem with TScrollPanel and GEt

Postby nageswaragunupudi » Sun Mar 06, 2016 1:51 pm

The window and panel gets displayed and the get is not editable, though it receives focus.
May I know what do you mean by not working and what is the behavior you are expecting?

ScrollPanel works better if the first control is not disabled.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10620
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Problem with TScrollPanel and GEt

Postby Maurizio » Mon Mar 07, 2016 7:56 am

Hello ,

the GET in my EXE is editable :(

I use FW February 2016 , Harbour and BCC7,

Regards Maurizo
User avatar
Maurizio
 
Posts: 824
Joined: Mon Oct 10, 2005 1:29 pm

Re: Problem with TScrollPanel and GEt

Postby Silvio.Falconi » Mon Mar 07, 2016 10:00 am

How Use this class into a dialog ?



Application
===========
Path and name: C:\WORK\Errori\scrollpanel\test.Exe (32 bits)
Size: 3,232,256 bytes
Compiler version: xHarbour 1.2.3 Intl. (SimpLex) (Build 20150603)
FiveWin Version: FWHX 16.01
Windows version: 5.1, Build 2600 Service Pack 3

Time from start: 0 hours 0 mins 0 secs
Error occurred at: 03/07/16, 11:05:59
Error description: Warning BASE/1004 Message not found: TSCROLLPANEL:DEFCONTROL

Stack Calls
===========
Called from: source\rtl\tobject.prg => TSCROLLPANEL:ERROR( 0 )
Called from: source\rtl\tobject.prg => TSCROLLPANEL:MSGNOTFOUND( 0 )
Called from: source\rtl\tobject.prg => TSCROLLPANEL:DEFCONTROL( 0 )
Called from: .\source\classes\TGET.PRG => TGET:NEW( 377 )
Called from: test.prg => MAIN( 13 )
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7048
Joined: Thu Oct 18, 2012 7:17 pm

Re: Problem with TScrollPanel and GEt

Postby Antonio Linares » Mon Mar 07, 2016 10:03 am

Maurizio,

Please try this:

@ 10,10 GET oGet VAR C OF oPanel SIZE 100,20 PIXEL WHEN lOk

oGet:Disable()
regards, saludos

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

Re: Problem with TScrollPanel and GEt

Postby Maurizio » Mon Mar 07, 2016 10:31 am

Yes,

I had solved so , I wanted to report the problem

Thanks Maurizio
www.nipeservice.com
User avatar
Maurizio
 
Posts: 824
Joined: Mon Oct 10, 2005 1:29 pm

Re: Problem with TScrollPanel and GEt

Postby Antonio Linares » Mon Mar 07, 2016 11:35 am

I guess the problem comes from the fact that there is only one control

We need more than one control to loose the focus and then the VALIDs and WHENs work
regards, saludos

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

Re: Problem with TScrollPanel and GEt

Postby Maurizio » Mon Mar 07, 2016 1:38 pm

Antonio ,
the problem remains even with more controls .

Maurizio
www.nipeservice.com
User avatar
Maurizio
 
Posts: 824
Joined: Mon Oct 10, 2005 1:29 pm

Re: Problem with TScrollPanel and GEt

Postby Gale FORd » Mon Mar 07, 2016 3:15 pm

It work ok for me when i use
Code: Select all  Expand view
ACTIVATE WINDOW oWnd maximized on init oPanel:AEvalWhen()
Gale FORd
 
Posts: 663
Joined: Mon Dec 05, 2005 11:22 pm
Location: Houston


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 76 guests