If you read the MapBasic Help file:
 
The Active keyword applies only to EditText controls
 
You'll notice that the Active keyword only works for EditText controls. I have spent quite a few hours wondering why my dialog wasn't working as designed.
 
You might wonder why the Active keyword doesn't work on other controls. Any ideas ?

Peter Horsbøll Møller
GIS Developer, MTM
Geographical Information & IT
 
COWI A/S
Odensevej 95
DK-5260 Odense S.
Denmark
 
Tel     +45 6311 4900
Direct  +45 6311 4908
Mob     +45 5156 1045
Fax     +45 6311 4949
E-mail  [EMAIL PROTECTED]
http://www.cowi.dk/gis

"For enden af regnbuen..." - hvordan kommer man dertil og er det overhovedet muligt?
Læs mere om årets MapInfo konference på www.cowi.dk/mapinfokonference

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Greg Goodall
Sent: Monday, August 21, 2006 10:21 PM
To: 'Jacques Paris'; mapinfo-l@lists.directionsmag.com
Subject: RE: [MI-L] Set Focus on PopupMenu Control in a Dialog

There’s all sorts of “hidden” rules in MapBasic and more importantly the MapBasic documentation.

 

I added another EditText control to the dialog BEFORE my PopupMenu but made it hidden.

 

Control EditText Hide

 

As it turns out, that hidden control received the focus.  Go Figure.  In essence the dialog displays and it appears that No control at all has the focus.  However, when I hit the tab key the focus goes to the next control which is my PopupMenu.  This is a better scenario, but not completely what I want.

 


From: Jacques Paris [mailto:[EMAIL PROTECTED]
Sent: Monday, August 21, 2006 3:42 PM
To: 'Greg Goodall'; mapinfo-l@lists.directionsmag.com
Subject: RE: [MI-L] Set Focus on PopupMenu Control in a Dialog

 

There seems to be some hidden rules in that control focus setting. Popup menu does not seem to able to be set as “default” control, the one that should be active at dialog opening. But it is not the only case I have met; I have been unable to set the OkButton or any button as default focus.

 

What could be that hidden rule?

 

Jacques Paris

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Greg Goodall
Sent: 21 août 2006 13:31
To: mapinfo-l@lists.directionsmag.com
Subject: [MI-L] Set Focus on PopupMenu Control in a Dialog

 

I have a Dialog that contains several types of controls (StaticText, PopupMenu, EditText, RadioGroup and Buttons) and I would like to specify which control has the initial focus when the Dialog displays.

 

Currently when the Dialog displays, the focus is placed on the first EditText control.  I want the focus to be placed on a PopupMenu control instead.

 

The Controls are defined in the following order

 

StaticText

PopupMenu

EditText

 

So I would think that the PopupMenu would be get the initial focus according to the Help information below.

 

 

 

    

 

Greg Goodall

Data Management Marketing

Project Manager / Senior Systems Analyst

321-725-8081

[EMAIL PROTECTED]

 

_______________________________________________
MapInfo-L mailing list
MapInfo-L@lists.directionsmag.com
http://www.directionsmag.com/mailman/listinfo/mapinfo-l

Reply via email to