Tab Panel Highlights Not Appearing Correctly?

Peter Haworth pete at lcsql.com
Wed Sep 17 13:44:52 EDT 2014


I think by resetting the text of the tab, it loses the info on which tab
was clicked.  I would save off the tab number that was clicked (I think
that's the menuhistory for tabbed buttons but not sure) then reset it after
you set the text.

Pete
lcSQL Software <http://www.lcsql.com>
Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>

On Wed, Sep 17, 2014 at 9:26 AM, JOHN PATTEN <johnpatten at me.com> wrote:

> Hi All,
>
> I think i must be using the Tab Panel object incorrectly. The tabs do not
> highlight correctly when clicked on.
>
> Tab Panel consists of: “Info, Create Account, Preferences, Minimize,” four
> panels.
>
> Here’s the script I have in my Tab Panel object:
>
> on mouseUp
>    get the selectedText of me
> if it is "Minimize" then
>       put the the text of button "TabObject" into tTabs
>       put "Maximize" into line 4 of tTabs
>       set the text of button "TabObject" to tTabs
>       set the height of current window to bottom of btn "tabObject"
>       else
>       if it is "Maximize" then
>          put the the text of button "TabObject" into tTabs
>       put "Minimize" into line 4 of tTabs
>       set the text of button "TabObject" to tTabs
>       set the height of current window to 450
>       set the loc of current window to the screenLoc
>    else
>       go card it
>    end if
>    end if
> end mouseUp
>
> The script does what it is supposed to, but the highlight does not follow
> the mouse click.
>
> Any suggestions?
>
> Thank you!
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list