Condition for TabControl

Started by velasquez, September 30, 2008, 02:29:05 PM

Previous topic - Next topic

velasquez

Hi 
I need help for a problem. 
How to prohibit the change in TabControl if a condition be not accepted.

Fred Tomke

Hello,

1. there are two events for tabs: OnChanged OnSelChanging. If the user changes the tab although the conditions are not accepted you could changed the selected tab back (with a message what the user has to to.

2. when OnSelChanging events will be fired you should disable all controls in the selected tab.

Regards
Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

Fred Tomke

... and you could use HideTab if the conditions are not accepted and use ShowTab if they are accepted.
Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

velasquez

Hello Fred 

I didn't get to do your suggestion to work. 
Please see the video that I posted. 

Regards 
Velasquez

velasquez

Hello Fred 
I posted a video of my TabControl.

Fred Tomke

yeeeees, and after the error message you should activate the configuration tab again (I believe SetCurSel).

BTW: how did you create the white-blue gradient in the left tab? Are these all images?

Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

velasquez

Hi Fred 
 
I used dcl_Tab_SetCurSel, but nothing impedes the change of TabControl. 
I believe that this is not possible. But it is a lot of imprtante. 
Do you have some other idea? 
 
See the image that I used in the bottom of TabControl.

velasquez

Hi Fred     
   
I posted my file.odcl for you to see. 


Regards,   
Velasquez

BazzaCAD

Great use of the PictureBox Velasquez, really good looking stuff.
Do you use PhotoShop to create the raised (Mouse Over) buttons, or is there an easier way?
a.k.a.
Barry Ralphs
barryDOTralphsATgmailDOTcom

velasquez

Yes I used PhotoShop and SnagIt 8 Editor, to create all the images.

velasquez

Does nobody know a form please of working around of my problem with TabControl?

Tanks

Fred Tomke

Hi velasquez, tomorrow I'm in the office so I can have a try.

Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

Fred Tomke

Hi, velasquez,

I send you an example. If the checkbox is not checked you cannot change the tabs.

Sorry for the delay. I was out of office in the last week cause of a trade fair for surveyors, cities and governments. At these times I can only send short answers. Especially not at the days. In the next weeks I will be out very often for roadshows, customer trainings and so on.

Hope this helps.

Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

Fred Tomke

Hi velasquez,

the textbox "AlturaTextoDados" uses FilterStyle Text. Why don't you use DecimalUnits?

Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

velasquez

Hi Fred 
I didn't use DecimalUnits because he accepts "," and the height of the text not accepts. 
With FilterStyle Text it is easier to control this. 
I use the function below: 
(dcl_TextBox_SetFilter DuctilCAD_DuctilCAD_MainForm_AlturaTextoDados " .0123456789 ")

Do you know me to say because OnClicked is not added the c:tab_tabtest_chb_acceptcondition of your TabTest?