VALID in dialogs

VALID in dialogs

Postby byte-one » Fri Jun 01, 2012 8:09 am

I noticed, that are not in all cases, the valid-clausula from a window or dialog are respected when it is closed with the little X in the right upper corner!
A second problem is in gets with action. When this gets are disabled, a centered text goto right.
Regards,
Günther
---------------------------------
office@byte-one.com
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria

Re: VALID in dialogs

Postby Antonio Linares » Fri Jun 01, 2012 11:35 am

Günther,

Could you provide a working example ? thanks
regards, saludos

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

Re: VALID in dialogs

Postby Rick Lipkin » Fri Jun 01, 2012 12:22 pm

Günther,

Depending on whether you chose Modal or Non-Modal Window determines how the valid clause will be evaluated.

When you use MDI ( non-modal ) and non-modal dialogs( winchild ) , valid is always evaluated when you close a window either by oWnd:CLose(), oWndChild:CLose() or by x'ing out of the application.

YES, you can have a non-modal dialog ( nowait ), but if the dialog is not a MdiChild of the MDI window, the valid clause will not be evaluated you will not be able to trap an x out application close.

Hope that makes sense.

Rick Lipkin
User avatar
Rick Lipkin
 
Posts: 2665
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: VALID in dialogs; GETS wrong displayed

Postby byte-one » Mon Jun 04, 2012 10:47 am

Thanks for your reply! For VALID it was my mistake from a wrong programming. Sorry! But the wrong display from disabled gets with action-clausula are really unreadable. (only on centered or right gets?)
Regards,
Günther
---------------------------------
office@byte-one.com
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 97 guests