[Gambas-user] Tab stops or similar?

ron ronstk at ...239...
Mon Mar 27 00:52:39 CEST 2006


On Monday 27 March 2006 00:30, GuruLounge - MailLists wrote:
> I was wondering if there is a way to arrange how the tab stops work for
> controls on a form.  I don't see a reference to this in properties for
> any controls.
> 
> As it is when I tab about my form the focus jumps in order of controls
> placed on the form.  I can't seem to modify this order and it's a bit
> inconvenient to have to recreate the form so tabstops work correctly --
> particularly if there are a lot of controls on a form.
> 
> Any Ideas?
> 
> TIA,
> Jeff
> 

Two ways.

1) Not tested:
for each contol in tab order
	select control
	use ctrl-x to cut
	uce ctrl-v to paste

Labels do not get a focus so it must be safe to let them allone.
for each control done place them back on correct x/y position
You need to do it for all controls in the section panel/container control.
Pro: the safe way Against: is only 1 control to reorder a lot of work  

2) Done myself several times:
Edit the myform.form file with a editor.
Make a backup because it is not on first sight clear how
all properties belong to each other.

Pro: the single control to reorder, Against: easy to mess up.


Special the tabstrip is not easy.
A few lines just in front of the {} belong to that {} in the same order.
There is a count in the main section of a tab strip.
The index is itterated in that main section instead as property inside the tab {}


index 1
{
}
index 2
{
}
index n...
{
}

Keep all the properties at position index 2 as belong to the {}

---
Ron




More information about the User mailing list