01-13-2010 06:12 AM
Well guys, I know is a very easy question but I don't know how to make it!
I have a button that control something in a tab control, and I need to put the same button, doing the same function in another tab control, how can i do that?
Like link each other.. because I need if one is True the other have to be true too
same for False!
Thanks
Solved! Go to Solution.
01-13-2010 06:27 AM - edited 01-13-2010 06:28 AM
01-13-2010 06:30 AM - edited 01-13-2010 06:32 AM
A simple soluce is to not include your 2 buttons in the tab control but use only one which is outside the tab control.
Place it on the front panel in side of tab control then move it with arrows on top of tab control => so only one button to drive...
Other soluce, use local variable of your buttons with detection of value change If button 1 change, write the value in the local variable of button 2 and invert in the other case.
Time to write and jcarmody have already explain
01-13-2010 06:36 AM
01-13-2010 06:42 AM - edited 01-13-2010 06:49 AM
Well guys, I didn't understand! Sorry
But I have to use tab control, because it's like 2 different programs at the same....
and I cant put the button out of tab control, because it is a full window program and I already used all the window...
Could you make an example for me? because only in the image I didn't understand well
I'm using LB 8.6, so I can't drag and drop!
and if I need to change the other button, the first one will change too? or only if I change the first, the second change?
Thanks
01-13-2010 06:46 AM - edited 01-13-2010 06:48 AM
01-13-2010 06:47 AM
I am sceptic... could you give us the corresponding part of your code?
Local variable seem to be appropiate in your case. or are you sure that your button are in switch mode and not as latch?
01-13-2010 06:56 AM
Hi EduU,
you can put that button on top of the tab control!
Move it (using the mouse) outside of the tab, then move it (using cursor keys!) over the tab control. Now the button is on top (or can be made so with the order button in the menu) and is visible in each tab page...
01-13-2010 06:57 AM
Oh, now I understand!
It works perfectly
Thanks guys!
One day, I will be like you! haha
next week I will do the basic I & II
\o/
01-13-2010 07:32 AM
Well, I was doing here guys
the problem is I have 8 buttons in each page of tab control
so 16 in total, can I make only one event for all buttons?
or I have to make 8 different events? one for each par of buttons?
all buttons make the same function!
Thanks