Indigo Rose Software
  #1  
Old 01-18-2008
clueless's Avatar
clueless clueless is offline
Forum Member
 
Join Date: Jun 2006
Location: UK SouthWest
Posts: 413
OnNextSelection , OnNullClick

Ok i realise the chances of getting these are slim but here goes..
Id like to suggest 2 extra event catagories to all current objects ;-

OnNextSelection
OnNullClick

They are both 'De-Focus' events that would only come into effect the moment a user clicks an object and would only last for 1 click.

OnNullClick - would get called if the next click from the user is on the page background.

OnNextSelection - would get called if the next click from the user is an object. + maybe some reference to which object it was.

For example: the user types something into an text input. Most of the time to aviod complicated checks on every key of the input the programmer is forced to add some type of 'ok' or 'enter' button. With either of these extra events the ok button could be eliminated.
Reply With Quote
  #2  
Old 01-18-2008
Worm Worm is offline
Indigo Rose Customer
 
Join Date: Jul 2002
Location: USA
Posts: 3,937
It would be nice to have a Validate event similar to VB. Using it you can keep the focus on the control until it meets criteria you specify.
Reply With Quote
  #3  
Old 01-18-2008
RizlaUK's Avatar
RizlaUK RizlaUK is offline
Forum Member
 
Join Date: May 2006
Location: London UK
Posts: 3,129
It would be nice to see such events...



but until we do, you could try this (is what i do for inputs)

Code:
-- Dummy Test Function
function MyReturnFunction(strText)
	Dialog.Message("Test",strText)
end

-- Check if return key is pushed
if System.IsKeyDown(13) then MyReturnFunction(Input.GetText(this)) end
Reply With Quote
  #4  
Old 01-19-2008
bule's Avatar
bule bule is offline
Indigo Rose Customer
 
Join Date: May 2005
Posts: 1,147
Quote:
Originally Posted by Worm View Post
It would be nice to have a Validate event similar to VB. Using it you can keep the focus on the control until it meets criteria you specify.
I really need this as well, all business applications would be much easier to code with this event. I called it OnBeforeLoseFocus or something like that when I suggested this several months ago. In Delphi, this event would be OnExit.
__________________
Never know what life is gonna throw at you.
(Based on a true story.)
Reply With Quote
  #5  
Old 01-19-2008
clueless's Avatar
clueless clueless is offline
Forum Member
 
Join Date: Jun 2006
Location: UK SouthWest
Posts: 413
With an OnNullClick event programing things like custom popup menus would be no problem at all.
Reply With Quote
  #6  
Old 01-19-2008
holtgrewe holtgrewe is offline
Indigo Rose Customer
 
Join Date: Jul 2002
Location: Just South of Reality
Posts: 732
An action of that type would certainly be an improvment, instead of always creating work-arounds.

I may be way off-base here, or maybe I'm just getting senile, but many years ago I handled something similar to this (Imagine COBOL & CICS - OMG) by logging where the user had 'come from' on the screen/page. I used a table back then to log user screen activity, but we used the last entry to determine where the user last made an entry. The table would then be checked to make certain all fields/objects were accounted for on the screen/page.

Applying this to AMS (sans table) may look something like this:

Code:
--Place this On Focus or On Click for each editted object (depending on the object type)
-- example of Input1 On Focus
if PriorObject ~= nil then
	Dialog.Message("Prior Field", ""..PriorObject)
	-- do your edit on prior object [editfunct(PriorObject)]
end 
PriorObject = "Input1"; -- now store this object name
For the nullclick I placed a hotspot on the page and made certain it is arranged to the BACK.
Reply With Quote
  #7  
Old 01-21-2008
Darryl's Avatar
Darryl Darryl is offline
Indigo Rose Staff Member
 
Join Date: Jul 2001
Location: Indigo Rose Software
Posts: 1,602
Thanks for the suggestions guys. These have been added to the list to be considered.

REF: 17140
__________________
Darryl
Indigo Rose Corporation

Product Guides: AMS70 | SUF80 | TU30 | VP30 |MSIFACT |DeltaMAX
Reply With Quote
  #8  
Old 01-22-2008
Desolator's Avatar
Desolator Desolator is offline
Forum Member
 
Join Date: Apr 2007
Location: Mar Sara
Posts: 292
Quote:
Originally Posted by clueless View Post
With an OnNullClick event programing things like custom popup menus would be no problem at all.
But they're currently easy to do as well. In the page's `On Mouse Button' event do this:

Code:
local menu_id = Application.ShowPopupMenu(e_X, e_Y, popup_menu, TPM_CENTERALIGN, TPM_TOPALIGN, true, true);
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -6. The time now is 06:01 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software