|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Finding out the width of a tab on the SSTAB controlHow would one go about finding out the width of a tab not the tab window,
just the top portion. I need to replace the tab with a control that displays unicode since the SSTAB control does not support unicode. -- Randem Systems Your Installation Specialist The Top Inno Setup Script Generator http://www.randem.com/innoscript.html Disk Read Error Press Ctl+Alt+Del to Restart http://www.randem.com/discus/messages/9402/9406.html?1236319938
Show quote
Hide quote
"Randem" <newsgro***@randem.com> wrote in message If you right click on a tab of the tab control and select properties, you news:O%23452bw2JHA.5816@TK2MSFTNGP02.phx.gbl... > How would one go about finding out the width of a tab not the tab window, > just the top portion. I need to replace the tab with a control that > displays unicode since the SSTAB control does not support unicode. > > -- > Randem Systems > Your Installation Specialist > The Top Inno Setup Script Generator > http://www.randem.com/innoscript.html > Disk Read Error Press Ctl+Alt+Del to Restart > http://www.randem.com/discus/messages/9402/9406.html?1236319938 > > > see a TabMaxWidth property for each tab. I set this to 0, which I guess means to size the tab according to the size of the TabCaption. My tabs vary in size depending on the caption. I assume you can set the TabMaxWidth as desired. If like me you have assigned 0, then you either must guess or find documentation on how the width is determined from the length (and font) of the caption. "Randem" <newsgro***@randem.com> wrote in message If you use TabStrip instead, maybe you can use TCM_GETITEMRECT, but I think news:O%23452bw2JHA.5816@TK2MSFTNGP02.phx.gbl... > How would one go about finding out the width of a tab not the tab window, > just the top portion. I need to replace the tab with a control that > displays unicode since the SSTAB control does not support unicode. it's for the whole tab. However, TabStrip supports Unicode when you send TCM_SETUNICODEFORMAT, and then set the text using TCM_SETITEMW. Pass the string as "ByVal StrPtr(s)" so VB doesn't convert the string to ANSI. I think you need to use SendMessageW() instead of SendMessage(). Search the newsgroups for these messages for samples. I haven't tried this, so proceed at your own risk...
OT: The bloated get bloatier
MBF to IEEE (Beg. Q) write a bitmap into an array of picture boxes VSFlexGrid 8 for VB 6 Free or low cost PDF viewer ocx? Sending email without client Toolbar Dilema Where are the VB6 Reference entries kept? How do I stop opportunistic record locking from causing massive de calling (and deleting) a string from an unmanaged dll |
|||||||||||||||||||||||