1. newbie - TabControl, TabItem within a TabItem

How does one put a "TabControl", "TabItem"s within a "TabItem"?  
Want to use a tab layout with a couple of the tab displays containing 
other tab items within it. Can't seem to figure out how to do this.  
Help please.

On another note, how do I keep the mouse wheel from terminating 
programs while running them in the *.exw state?  Or is it just me 
and a setting somewhere?

Thank you in advance.

Doug Cameron

new topic     » topic index » view message » categorize

2. Re: newbie - TabControl, TabItem within a TabItem

Hi there,


Not sure if this is what you meant but...if you use the WinClass library
then you simply create a Property Sheet on a Property Sheet, then
populate it as usual.


Take care,
Al

And, good luck with your Euphoria programming!

My bumper sticker: "I brake for LED's"

new topic     » goto parent     » topic index » view message » categorize

3. Re: newbie - TabControl, TabItem within a TabItem

OK, explain to this newbie, what's a "property sheet"?

The code I'm trying to create:


----------------------------------------------------

-- test-01-01.exw
-- creates a simple do nothing blank window

include win32lib.ew

constant MainWin = create(Window, "DC-TEC Classroom", 0, Default, Default, 775,
310, 0)
constant projOn = create(PushButton, "Projector ON", MainWin, 10, 10, 90, 40, 0)
constant projOff = create(PushButton, "Projector OFF", MainWin, 10, 230, 90, 40,
0)

constant volMute = create(PushButton, "Mute Off", MainWin, 110, 10, 90, 40, 0)
constant volUp = create(PushButton, "Volume UP", MainWin, 110, 60, 90, 40, 0)
constant volDn = create(PushButton, "Volume DOWN", MainWin, 110, 230, 90, 40, 0)


constant mainTabs = create(TabControl, "", MainWin, 210, 10, 543, 260, 0)
constant tabSym = create(TabItem, "Sympodium", mainTabs, 0, 0, 0, 0, 0)
constant tabDoc = create(TabItem, "Document Camera", mainTabs, 0, 0, 0, 0, 0)
constant tabVcr = create(TabItem, "VCR", mainTabs, 0, 0, 0, 0, 0)
constant tabDvd = create(TabItem, "DVD", mainTabs, 0, 0, 0, 0, 0)
constant tabLap = create(TabItem, "Laptop", mainTabs, 0, 0, 0, 0, 0)
constant tabAux = create(TabItem, "Auxiliary", mainTabs, 0, 0, 0, 0, 0)
constant tabVid = create(TabItem, "Video Conference", mainTabs, 0, 0, 0, 0, 0)

-- constant vidTabs = create(TabControl, "", tabVid, 30, 30, 100, 100, 0)
-- constant tabDir = create(TabItem, "Directory", vidTabs, 0, 0, 0, 0, 0)

constant tabAud = create(TabItem, "Audio Conference", mainTabs, 0, 0, 0, 0, 0)




WinMain(MainWin, Normal)

-----------------------------------------------------

Any thoughts on the mouse problem?

Any help appreciated.


drdoug

new topic     » goto parent     » topic index » view message » categorize

4. Re: newbie - TabControl, TabItem within a TabItem

> On another note, how do I keep the mouse wheel from terminating
> programs while running them in the *.exw state?  Or is it just me
> and a setting somewhere?

This is odd, and shouldn't happen. Are you handling w32HMouse events
somewhere? Wait.......

You're not using onMouse are you? That might cause a crash. Make sure
you're using the setHandler() method, and not onXXX.

~Greg

new topic     » goto parent     » topic index » view message » categorize

5. Re: newbie - TabControl, TabItem within a TabItem

Doug Cameron wrote:
> 
> OK, explain to this newbie, what's a "property sheet"?
> 
> The code I'm trying to create:
> 
> 
> ----------------------------------------------------
> 
> -- test-01-01.exw
> -- creates a simple do nothing blank window
> 
> include win32lib.ew
> 
> constant MainWin = create(Window, "DC-TEC Classroom", 0, Default, Default,
> 775,
> 310, 0)
> constant projOn = create(PushButton, "Projector ON", MainWin, 10, 10, 90, 40,
> 0)
> constant projOff = create(PushButton, "Projector OFF", MainWin, 10, 230, 90,
> 40, 0)
> 
> constant volMute = create(PushButton, "Mute Off", MainWin, 110, 10, 90, 40,
> 0)
> constant volUp = create(PushButton, "Volume UP", MainWin, 110, 60, 90, 40, 0)
> constant volDn = create(PushButton, "Volume DOWN", MainWin, 110, 230, 90, 40,
> 0)
> 
> 
> constant mainTabs = create(TabControl, "", MainWin, 210, 10, 543, 260, 0)
> constant tabSym = create(TabItem, "Sympodium", mainTabs, 0, 0, 0, 0, 0)
> constant tabDoc = create(TabItem, "Document Camera", mainTabs, 0, 0, 0, 0, 0)
> constant tabVcr = create(TabItem, "VCR", mainTabs, 0, 0, 0, 0, 0)
> constant tabDvd = create(TabItem, "DVD", mainTabs, 0, 0, 0, 0, 0)
> constant tabLap = create(TabItem, "Laptop", mainTabs, 0, 0, 0, 0, 0)
> constant tabAux = create(TabItem, "Auxiliary", mainTabs, 0, 0, 0, 0, 0)
> constant tabVid = create(TabItem, "Video Conference", mainTabs, 0, 0, 0, 0,
> 0)
> 
> -- constant vidTabs = create(TabControl, "", tabVid, 30, 30, 100, 100, 0)
> -- constant tabDir = create(TabItem, "Directory", vidTabs, 0, 0, 0, 0, 0)
> 
> constant tabAud = create(TabItem, "Audio Conference", mainTabs, 0, 0, 0, 0,
> 0)
> 
> 
> WinMain(MainWin, Normal)
> 
> -----------------------------------------------------
> 
> Any thoughts on the mouse problem?
> 
> Any help appreciated.
> 
> 
> drdoug
> 

Hi Doug,

A "Property Sheet" is a dialog box that has controls that can be set
to control other aspects of the program, but in the WinClass library
(note this is not "WinLib") a property sheet is one or more tabbed pages
where you can place controls that can be set by the user to control other
aspects of the program, or simply display things, so it's more of a 
tab control but meant for use with other controls.

The "WinClass" library is a different library that allows you to program
more in the style of C++ with many classes that can be included to add
functionality to your program.  Each class has its own 'create' function
that more or less works the same as other classes, yet with certain aspects
tuned to that class alone.  It's programming heaven because when writing
or modifying a class there's much less to consider than when using other
'pure function call' libraries.  The "Property Sheet" is one of many classes
that can be added to your program simply by including the .ew file and
calling it's 'create()' function.  From there you add pages with it's
AddTab() and add controls to a tab with AddControl().
Other classes include Pager, Scrollbar, etc, and the most recent addition
to the library has been the Marquee control, which is an animated control
that tells the user some process is still working in the background.  There
are several styles to choose from and they all 'install' basically the
same way: with their respective 'create' calls.  If fact, all of the
classes install about the same way except for the number of parameters,
which you would know from a simple examination of their .ew file.


Take care,
Al

And, good luck with your Euphoria programming!

My bumper sticker: "I brake for LED's"

new topic     » goto parent     » topic index » view message » categorize

6. Re: newbie - TabControl, TabItem within a TabItem

Greg Haberek wrote:
> I'm not using ANY mouse calls at this point.  This problem even 
happens when I use Judith's editor.  The only programs I can run 
without this problem are sample programs from w32engin.  Weird.  
Any help appreciated.

Doug Cameron





> > On another note, how do I keep the mouse wheel from terminating
> > programs while running them in the *.exw state?  Or is it just me
> > and a setting somewhere?
> 
> This is odd, and shouldn't happen. Are you handling w32HMouse events
> somewhere? Wait.......
> 
> You're not using onMouse are you? That might cause a crash. Make sure
> you're using the setHandler() method, and not onXXX.
> 
> ~Greg
> 
>

new topic     » goto parent     » topic index » view message » categorize

7. Re: newbie - TabControl, TabItem within a TabItem

> I'm not using ANY mouse calls at this point.  This problem even
> happens when I use Judith's editor.  The only programs I can run
> without this problem are sample programs from w32engin.  Weird.

Sounds like your Win32Lib is fubar-ed.  Make sure you hve the current
version installed.

~Greg

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu