May 16, 2024, 12:21:43 AM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


Single Line Tab Control

Started by LarryMc, September 26, 2010, 06:48:20 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

LarryMc

For the life of me I can't seem to create a tab control that is always just one line and has a horizontal spinner when the total width of all the tabs is wider than the tab control itself.

The effect I am looking for is like the sheet tabs in a spreadsheet application or,
the source files open in the IWBasic IDE.

LarryMc
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

sapero

from commctrl.inc:$define TCS_MULTILINE 0x0200
Do not specify this flag when creating the tab control, or try to remove it after toolbar creation (if you have no control over toolbar styles while creating it).

LarryMc

@Sapero

I wasn't using that flag.
However, I was using @BORDER|@EXCLIENTEDGE and if either one of those are used it will make it multiline.

LarryMc
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library