HOWTO: SIP at the bottom in WM6.5? - Windows Mobile Software Development

Hi,
I've already asked on several forums but unfortunately no answers so far
My env: CF 2.0, WM 6+
I'm trying to create fullscreen application and I need to display Sip
panel completely at the bottom of the screen - without taskbar.
I have used few ways to do it:
1. FindWindow for "SipWndClass" and then SetWindowPos or MoveWindow
2. SipGetInfo/SipSetInfo setting rcSipRect and clearing SIPF_DOCKED bit.
These methods work fine with e.g. WM 6.1 but not with WM 6.5 – part of taskbar is still visible and sip panel is located over it.
You can see it here: http://img822.imageshack.us/img822/9240/sshot000.png
Any ideas how to make it working with all systems?
Rgds

I am hiding and displaying SIP in eVC++ native code with these functions:
SipShowIM(SIPF_ON);
SipShowIM(SIPF_OFF);
Well,it is shifted up as the menubar height is,but without icon in the middle.
I think,that if I get SIPwindow position and change it,it could be also moved. Didn't tried.
WM6.5.3

TomasNM said:
Well,it is shifted up as the menubar height is,but without icon in the middle.
Click to expand...
Click to collapse
The icon is not displayed because of me I used FindWindow for "MS_SIPBUTTON" and ShowWindow to hide it.
TomasNM said:
I think,that if I get SIPwindow position and change it,it could be also moved. Didn't tried.
WM6.5.3
Click to expand...
Click to collapse
I thought that was what I did by using FindWindow("SipWndClass", null) and then SetWindowPos or MoveWindow. As I mentioned in the 1st post it works ok in WM6.1 but not in WM6.5.
Rgds

OK,
I think I found it - after some tests it looks that it's also necessary to move window "SipBackDropWndClass".
Seems to be working in WM6 and WM6.5.
Rgds

That's good news.
However if I would like to achieve it,I would find the SIP window,then move it and enable.disable with SipShowIM(SIPF_ON);SipShowIM(SIPF_OFF);
Will this work?

TomasNM said:
That's good news.
I would find the SIP window,then move it
Click to expand...
Click to collapse
At the moment that's my code:
Code:
IntPtr sipWind = FindWindow("SipBackDropWndClass", null);
MoveWindow(sipWind, Left, Top, Width, Height, false);
sipWind = FindWindow("SipWndClass", null);
MoveWindow(sipWind, Left, Top, Width, Height, false);
Is that what you ment?

Related

HTC Homeplug.....nailed it

Finally.....
Got it looking pretty good, but does ne1 know how to increase the number of icons to more than 7.
also, how to call items from the control panel, like memory or today, so i can edit these settings with one click insted of having to go thru the menu`s everytime.
I dont know if it is possible to add arguments to the HTC Home plug... but you need to call the control panel like this:
Code:
\windows\ctlpnl.exe cplmain.cpl,13,0
13 is for Settings->Today... you have to try different values
0 is the first Today tab
does the homeplug in work on universal?
i was told in a post in the general section that it doesnt
when i installed it ,icons didnt display right.
can someone post .cab for universal nd explain how to get it to work on universal
tnx
grifone said:
does the homeplug in work on universal?
i was told in a post in the general section that it doesnt
when i installed it ,icons didnt display right.
can someone post .cab for universal nd explain how to get it to work on universal
tnx
Click to expand...
Click to collapse
Which ROM are u using, WM6 hopefully, i htink the HTC Homeplug only works with six. Most of the ROMs come with Homeplug.
Here`s the basic Homeplug.
bepe said:
I dont know if it is possible to add arguments to the HTC Home plug... but you need to call the control panel like this:
Code:
\windows\ctlpnl.exe cplmain.cpl,13,0
13 is for Settings->Today... you have to try different values
0 is the first Today tab
Click to expand...
Click to collapse
Bepe
It didn`t like that at all, any idea how to increase the number of icons ?
I dont know about the number of items...
but this will help you with the other problem
Registry:
Code:
[HKEY_LOCAL_MACHINE\SOFTWARE\HTC\HTCHomeplug\2]
"LaunchApPath"="\\Windows\\TodayTab1.lnk"
Content of \Windows\TodayTab1.lnk:
Code:
19#\windows\ctlpnl.exe cplmain.cpl,13,0
tested
yes, i see how that would work, will try it ASAP.
cheers
bepe said:
I dont know about the number of items...
but this will help you with the other problem
Registry:
Code:
[HKEY_LOCAL_MACHINE\SOFTWARE\HTC\HTCHomeplug\2]
"LaunchApPath"="\\Windows\\TodayTab1.lnk"
Content of \Windows\TodayTab1.lnk:
Code:
19#\windows\ctlpnl.exe cplmain.cpl,13,0
tested
Click to expand...
Click to collapse
you wouldnn`t happen to have the entire list for ctlpnl.exe, also what does the #19 stand for..
cheers
Found this:
http://www.xs4all.nl/~itsme/projects/xda/xda-controlpanel.html said:
ctlpnl.exe cplmain.cpl,1 - set password
ctlpnl.exe cplmain.cpl,2 - set ownerinfo
ctlpnl.exe cplmain.cpl,3 - battery status
ctlpnl.exe cplmain.cpl,4 - memory status
ctlpnl.exe cplmain.cpl,5 - about
ctlpnl.exe cplmain.cpl,7 - align
ctlpnl.exe cplmain.cpl,8 - keyboard settings
ctlpnl.exe cplmain.cpl,9 - sound
ctlpnl.exe cplmain.cpl,10- remove programs
ctlpnl.exe cplmain.cpl,11- start menu
ctlpnl.exe cplmain.cpl,12- button assignments
ctlpnl.exe cplmain.cpl,13- today screen
ctlpnl.exe cplmain.cpl,15- beam settings
ctlpnl.exe cplmain.cpl,16- clock
ctlpnl.exe cplmain.cpl,17- network adapters
ctlpnl.exe cplmain.cpl,18- regional settings
ctlpnl.exe cplmain.cpl,19- connections
ctlpnl.exe cplmain.cpl,20- phone settings
ctlpnl.exe cplmain.cpl,22- manage certificates
ctlpnl.exe cplmain.cpl,23- bluetooth
Click to expand...
Click to collapse
#19 means: "\windows\ctlpnl.exe" = 19 chars... you dont need to change that
ans as sayed:
ctlpnl.exe cplmain.cpl,13,0 - today screen - first tab
ctlpnl.exe cplmain.cpl,13,1 - today screen - second tab
...
yes i am using wm6.
i installed the basic cab however still the same.
icons do not appear right. ex .the 3cins on the bottoms only appear half of them.can I increase the spce used by it on the screen?
grifone said:
yes i am using wm6.
i installed the basic cab however still the same.
icons do not appear right. ex .the 3cins on the bottoms only appear half of them.can I increase the spce used by it on the screen?
Click to expand...
Click to collapse
Are you talking about the icons at position 1 or 2.
The Cab file was for the HTC Homeplug, which is the group of icons about half way down the screen (position 1) it is activated by going to "setting-today-items"
davieshyland said:
Finally.....
Got it looking pretty good, but does ne1 know how to increase the number of icons to more than 7.
also, how to call items from the control panel, like memory or today, so i can edit these settings with one click insted of having to go thru the menu`s everytime.
Click to expand...
Click to collapse
the new htchomeplug 1.12.0.0 support 9 icons and with app params.
here's my sample, the 7th icon is connections:
Code:
[HKEY_LOCAL_MACHINE\SOFTWARE\HTC\HTCHomeplug\6]
"iconindex"=dword:81
"LaunchApPath"="ctlpnl"
"LaunchApParam"="cplmain.cpl,19"
"ResPath"="\\Windows\\htcicon.dll"
link or even better, cab please.....
here's the CAB with 9 icons
Thank you...Thank you...Thank you...Thank you...
and now... hide systray ?
Hello guy, thx a lot for this cab, it work fine for me.
Now i would like to remove/hide the tray at the bottom of my today screen, i haven't find the tips..., any solution ?
thx !
i installed the 9icon .cab and it worked fine.
however can someone tell me how can I change what icons i want to see,and the icons type.
tnx

Hide WM 6.5 Taskbar

Is there a tweak or a software to hide one or both bars (bottom & top) in winrows mobile 6.5?
The following cabs remove the topbar (operator logo) & bottom bar (TF3D tabs). It is advisable to install sdkcerts first.
EDIT
I have no cabs to remove top bar (startmenu/taskmanager) and bottom bar (soft keys)
[QUESTION] How to make taskbars transparent?
Hi,
Recently, I was wondering, how to change taskbars (upper and down windows, wich are black and Manila's tap-bar) to transparent? Right now I have my wallpaper in hi-res (480x800px), and only taskbars disturbs my HD look-and-feel
On screens:
1 and 2 visual of my HD screen.
3rd screen I've lent from MaxTTm's thread, to show wich bars am I talking here about... I mean number 5 (Manila tapbar), 10 and 11.
What I want:
5 and 10 could be 100% transparent
11 could be 65% transparrent.
Could Anybody make cab's with these settings for me? I would appraciate that.
Thanx in advance....
My screens:
I'm affraid that is not possible in WM6.1, but a feature in WM6.5.
tnyynt said:
I'm affraid that is not possible in WM6.1, but a feature in WM6.5.
Click to expand...
Click to collapse
I'm using ROM based on WM 6.5 (like in my signature, or secound screen shows that). So I think it is possible...
2nd screen shows, that top and bottom bars are a little bit transparent... I just would like them to be (top) 100% and (bottom) 65%...
THX for reply...
mmm
not possible in 6.1 ? what makes it possible in 6.5? a reg hack ? as this is only software and there is no physical change betwen .5 and .1
dgattenb said:
not possible in 6.1 ? what makes it possible in 6.5? a reg hack ? as this is only software and there is no physical change betwen .5 and .1
Click to expand...
Click to collapse
On my previous ROM (EnergyROM), I had MaxTTm installed and there is an option, wich allows You to change transparency of top, bottom and Manila tap-bar... Maby person, who developed MaxTTm can say something about that...
MOD EDIT
Merged these 2 threads
Fallen Spartan said:
The following cabs remove the topbar (operator logo) & bottom bar (TF3D tabs). It is advisable to install sdkcerts first.
EDIT
I have no cabs to remove top bar (startmenu/taskmanager) and bottom bar (soft keys)
Click to expand...
Click to collapse
Question: could You please attach some screens, how does it look after cab's install?? I'm wondering, is this the thing, that I'm having on my mind...
EDIT
This doesn't solve my issue... I'm trying to make top and bottom bars transparent - I mean top bar (where icons are on it) and bottom (where we have text Phone, Contacts etc...).
Ok, I'm your first tester if you release a cab. ;-) Just let me know.
zoomol said:
Question: could You please attach some screens, how does it look after cab's install?? I'm wondering, is this the thing, that I'm having on my mind...
EDIT
This doesn't solve my issue... I'm trying to make top and bottom bars transparent - I mean top bar (where icons are on it) and bottom (where we have text Phone, Contacts etc...).
Click to expand...
Click to collapse
As I stated cabs where not to make top & bottom bars transparent. It only removed background to TF3D tabs & operator bar on TF3D homepage
Fallen Spartan said:
As I stated cabs where not to make top & bottom bars transparent. It only removed background to TF3D tabs & operator bar on TF3D homepage
Click to expand...
Click to collapse
OK, so back to beginning... If someone have a clue, tip or any way of doing this (also by registry values), please let me know...
PS. I don't think, that merging my thread with this was good idea - I'm having other issue than x0a... But if forum rules are strict in this case, I can't do anything about it
for those of you interested in hiding the bottom bar:
if have started a new thread here in the development section as i found the source code of dcinobar on the author's website. maybe someone can use this and create a new program
Fallen Spartan said:
The following cabs remove the topbar (operator logo) & bottom bar (TF3D tabs). It is advisable to install sdkcerts first.
EDIT
I have no cabs to remove top bar (startmenu/taskmanager) and bottom bar (soft keys)
Click to expand...
Click to collapse
When I try NoTopBar - my Manila Crashes I can use only standard Windows Default Today Plugin (in WM6.5)...
NoBottomBar works fine...
zoomol said:
When I try NoTopBar - my Manila Crashes I can use only standard Windows Default Today Plugin (in WM6.5)...
NoBottomBar works fine...
Click to expand...
Click to collapse
Did you install sdkcerts first?
Fallen Spartan said:
Did you install sdkcerts first?
Click to expand...
Click to collapse
Yes, I had it installed after flashed to new ROM. Always install sdkcerts after flash, that saves me surprizes
What could cause this crash
Is there any cab to disable the bars (top and bottom) ?? If so can anyone guide me??
up
no program for remove the taskbar on wm6.5?
nueNoBar v2.0 works for me, with extra space useable. wm6.5 build 21882 (siemens lover v2.0 wwe)

Listing currently used programs

Hi
Is there a possibility to view a list over last used programs simular as for the previous version of TF3D like on the Touch HD?
Mabye some tweak or program that would make this possible and easy/quick to use?
I would really like the option to quickly open last previous used programs even though the are closed/not running in the background.
Thanks!
If you click the windows/start button in the top left it shows the last 5 programs used just under the top bar.
you must change the Startmenu via Registry if you have the TF3D startmenu
running, before you can use the tipp from vHatch
HKLM\Software\HTC\EnlargeMenu
EnableManilaStartMenu = 1(Default)/ 0 (OldWMstyle)
LRC said:
you must change the Startmenu via Registry if you have the TF3D startmenu
running, before you can use the tipp from vHatch
HKLM\Software\HTC\EnlargeMenu
EnableManilaStartMenu = 1(Default)/ 0 (OldWMstyle)
Click to expand...
Click to collapse
Oh, I thought my answer was too simple, lol. I have the TMO TP2 and didn't need to change the registry at all to have the windows start menu function.
If i want the HTC startmenu, how do i get that? Also, would someone post a screen shot of what it's supposed to look like? please? thanks
LRC said:
you must change the Startmenu via Registry if you have the TF3D startmenu
running, before you can use the tipp from vHatch
HKLM\Software\HTC\EnlargeMenu
EnableManilaStartMenu = 1(Default)/ 0 (OldWMstyle)
Click to expand...
Click to collapse
Oki, thanks for your answer. Any tip of a easy to use registry editor?

Windows Mobile 6.1 - Skinning of All UI Components - possible?

Hey All!
Have used search many many times, and tried searching Google, but can't find any result!!!
I have tried many Shell UI programs like ThrottleLauncher, Wisbar Advance, PointUI and SPB MobileShell. Of all these, SPB seems the most polished.
Whilst these apps manage to hide the ancientness that is WindowsMobile 6.1, it doesn't allow you to skin the scrollbars, buttons or dropdown menus. Can anyone think of a way to do this? Maybe something that does the same job as PalmRevolt does on Palm OS?
Surely it'd be a case of finding a program that can replace some icons / settings in the Windows Directory...
I'm keeping SPB Mobileshell too.. Its just that I'm resigning to the fact that I'll be stuck with WinMo6.1 on my Palm Treo Pro for quite some time!
Thanks all!
I'm still going to use SPB, but thought this woud
dr3wster said:
Hey All!
Have used search many many times, and tried searching Google, but can't find any result!!!
I have tried many Shell UI programs like ThrottleLauncher, Wisbar Advance, PointUI and SPB MobileShell. Of all these, SPB seems the most polished.
Whilst these apps manage to hide the ancientness that is WindowsMobile 6.1, it doesn't allow you to skin the scrollbars, buttons or dropdown menus. Can anyone think of a way to do this? Maybe something that does the same job as PalmRevolt does on Palm OS?
Surely it'd be a case of finding a program that can replace some icons / settings in the Windows Directory...
I'm keeping SPB Mobileshell too.. Its just that I'm resigning to the fact that I'll be stuck with WinMo6.1 on my Palm Treo Pro for quite some time!
Thanks all!
I'm still going to use SPB, but thought this woud
Click to expand...
Click to collapse
Using a resource editor, it is possible to skin almost everything. It's just a bunch of dlls, exes and registry entries. I use PE Explorer and it's great and very powerful, but it does cost quite a bit of money..
dwizzy130
No unfortunately its not possible. At most you can alter themes, as I am sure you already know. The only other thing you can do is change the size of the scroll bars in the registry, and if you set their width to 0, they disappear... A setting like 2, makes them thin enough that they indicate where you are, but can't really be used.
Apart from that, you already have the right idea with SPB, Point UI, etc. You may want to know that PointUI hides more of the oem interface with the pay version and will be adding a dialer among other things in the next update. You did not mention Manilla... I don't use it b/c I just don't have the time to deal with new ROM bugs, but nonetheless it does the best the best job at hiding winmo, and has the most skinned elements...
EDIT: Just read the above post... I guess it is possible.
OK, decided to add some addtional stuff
Altering WM menu system and Dialogs
Try this program
FingerSuite
or
Try the extracted HTC Menu app
or
Edit the Menu Font size registry key for a less pretty effect, but it means one less program to install.
HKEY_LOCAL_MACHINE\system\gwe\menu\popfnt
and change the value for the "Ht" entry to "1000" decimal (from 1200).
play around with 800, 900, and 1000 and see which suits your personal preference
Modifying Scroll Bars
Change the thickness of scrollbars
To change the thickness of the scrollbars at the right/bottom of documents larger than the screen, adjust...
For the horizontal (bottom) scrollbar:
HKLM\System\GWE\cyHScr = 9 (DWORD decimal)
For the vertical (right) scrollbar:
HKLM\System\GWE\cxVScr = 9 (DWORD decimal)
The default thickness is 13. You can set the value to anything you may like
Change the length of scrollbar arrow buttons
To go with changing the thickness of the scrollbars, you may wish to change the length of the scrollbar arrow buttons...
For the horizontal (bottom) scrollbar arrows:
HKLM\System\GWE\cyVScr = 0 (DWORD decimal)
For the vertical (right) scrollbar:
HKLM\System\GWE\cxHScr = 0 (DWORD decimal)
The default length is 13. You can set the value to pretty much anything you like
Found another useful app for handling scroll bar color, background colors ect.
UITweaker
http://forum.xda-developers.com/showthread.php?t=411197
Further down in that thread someone gives this link which seems usefulhttp://mobile-sg.com/software/?platform=ppc
Hmm, real pity nothing can be done to skin those ugly looking scrollbars, eventhough SPB or any other software will beautify the look as well as experience of using the device, the scrollbars will still leave a signature stating "I am the ugly looking WM 6.1"
I just recently flashed SNN Diamond on my Wizard and I'm loving it so far but I do have one caveat. When I put a customized background on my today/home, the drop-down start menu adopts the same image as its background. I don't want my drop-down start menu to have a background image, I'd prefer it to be a plain color. How do I change it? You would think that this is a simple thing to do but I have been at it for a day, still no luck. Any ideas guys?

[2nd release]SenseSlider .NET CF Control 0.2

Because the SenseSDK which is available at xda lacks a control for the HTC Slider I tried to create my own.
I finally fixed some bugs and changed a bit of the behavior and here is the first release version of my SenseSlider control.
The 2nd release is ready and stable. See Changelog for further info.
Features:
mimics HTC Slider
fully functional .net Control
does not depend on images for the bar background/slider thumb (drawn at runtime) and therefore allows different color-schemes
events for SelectedIndexChanged, StartedSliding, StoppedSliding, OnSliding (Gives thes index of the hovered icon)
supports vibration (aka haptic feedback)
includes a semi-transparent panel for overlay when sliding
does not depend on other control collections (SenseSDK only used for demo application; can be used with any other collection) (does not apply for new version, uses SmartDeviceFrameWork)
changes in the 2nd release:
uses the IImaging-Implementation of the SmartDevice-Framework and is now stable and more flexible (load the IImages with SDF in any way and add them to the slider)
supports an imagefile as slider thumb (see attached screenshot)
great speed improvement (fixed a bug which slowed drawing down)
made the source code of the demo application a lot more readable and understandable (or at least I hope so )
I uploaded a demo application to show some of the control's features. The source code for the demo is also available.
To use the Slider in your own applications just add the SenseSlider.dll and instantiate LunaticShade.SenseSlider (see the source of the demo application for details). (The new Version needs also the OpenNETCF Assemblies enclosed in the package or an installed version of the SmartDeviceFramework on the target device)
At this time the control cannot be drawn at designtime (due to heavy P/Invokes) but you can set the properties and events with the property editor.
Please report any bugs you may encounter.
If you got questions just ask
looks quite interesting. I will give it a try as soon as I can integrate in my apps (testing makes no sense - I also have HD2 )
keep on developing!
Obelix
Looks cool ! I'll try it as soon as a release is available !
Looks nice, not exactly like Sense (no vibration, no left-right/right-left gesture, if I tap&hold some icon and then swipe to left or right, the slider doesn't follow my finger), but good. Can't wait to be able to use it in my apps
first release,
see first post
That's VERY nice mate. I'm also particularly pleased that you used the Sense SDK interface in your demo, as I was considering using this slider in one of my apps that uses the Sense SDK heavily. I'm not considering it any more though - I'm all over it
I'm not currently at a dev machine and therefore can't really check out the control, so I do have one question that I may be able to answer if I looked in the IDE. Can you stop it changing page by sliding left and right on the page itself? I'd rather people had to use the slider to change page.
But yeah, very nice - thanks a lot!
I'm glad to hear that you like it.
johncmolyneux said:
Can you stop it changing page by sliding left and right on the page itself? I'd rather people had to use the slider to change page.
Click to expand...
Click to collapse
Actually it is the WinMo 6.5 TabControl which exposes this behavior. If you slide over a TabPage it changes the tab respectively, the senseslider then only reflects this action. So this is not the default behavior of the Slider (actually you could just set back the SelectedTab if it was not changed by the SenseSlider).
Ah fair enough. I didn't realise you'd used a tab control, but I guess that makes sense.
Thanks for the reply mate
nice control man.
i got 4-5 times a crash on the program. when i changed the button slider color, and stopped the vibration, then when i moved the slider fast from left to right, etc, an error occured.
overall nice work. i don't know if it is your icons, or the real time drawing, but the icons at the slider have a very bad quality. hope you can make the graphics much more similar to the HTC Slider looks
well done for a 0.1 version.
anyone knows what is wrong with this line?
Dim imageNames = assembly.GetManifestResourceNames().Where(Function(r) r.Contains("_b"))
i can't get the slider to work having a vb code. this slider needs so many things. i guess the reason that my slider is not working right now is because of the above code line, which returns me nothing, even though i have a picture which contains _b in the name
TeDeV said:
anyone knows what is wrong with this line?
Dim imageNames = assembly.GetManifestResourceNames().Where(Function(r) r.Contains("_b"))
i can't get the slider to work having a vb code. this slider needs so many things. i guess the reason that my slider is not working right now is because of the above code line, which returns me nothing, even though i have a picture which contains _b in the name
Click to expand...
Click to collapse
your resources have to be embedded. in the file browser of visual studio open the Resources folder (not the resx file!) select the images and in the property window change Build action to embed in resx.
i tried that, but when i add the image in the resources file, and choose the embed build action, i get errors
DividedByZeroException
stackTrace....
"σε LunaticShade.SenseSlider.Draw(Graphics g, Int32 x, Int32 y) σε LunaticShade.SenseSlider.Draw(Graphics g) σε LunaticShade.SenseSlider.OnPaint(PaintEventArgs e) σε System.Windows.Forms.Control.WnProc(WM wm, Int32 wParam, Int32 lParam) σε System.Windows.Forms.Control._InternalWnProc(WM wm, Int32 wParam, Int32 lParam) σε Microsoft.AGL.Forms.EVL.EnterMainLoop(IntPtr hwnMain) σε System.Windows.Forms.Application.Run(Form fm) σε PrimeKeys.Form1.Main() "
i also have a question.
how do you "connect" the senseSlider with the tabControl?
for example.... if i had two tabcontrols, how does the SenseSlider, knows which tabcontrol to bind?
i can't find that code in your sample.
TeDeV said:
i tried that, but when i add the image in the resources file, and choose the embed build action, i get errors
DividedByZeroException
stackTrace....
"σε LunaticShade.SenseSlider.Draw(Graphics g, Int32 x, Int32 y) σε LunaticShade.SenseSlider.Draw(Graphics g) σε LunaticShade.SenseSlider.OnPaint(PaintEventArgs e) σε System.Windows.Forms.Control.WnProc(WM wm, Int32 wParam, Int32 lParam) σε System.Windows.Forms.Control._InternalWnProc(WM wm, Int32 wParam, Int32 lParam) σε Microsoft.AGL.Forms.EVL.EnterMainLoop(IntPtr hwnMain) σε System.Windows.Forms.Application.Run(Form fm) σε PrimeKeys.Form1.Main() "
Click to expand...
Click to collapse
hm, that's strange. are you using pngs? did you set the IconSize Property of the senseslider? maybe a call of senseslider.updatevalues() in your constructor helps.
i also have a question.
how do you "connect" the senseSlider with the tabControl?
for example.... if i had two tabcontrols, how does the SenseSlider, knows which tabcontrol to bind?
i can't find that code in your sample.
Click to expand...
Click to collapse
actually the senseslider does not know that it controls a tabcontrol. It raises the event SelectedIndexChanged when the user selects an icon. In this event I activate the corresponding TabPage to be active.
yes but the corresponding tabpage of which tabcontrol?
if i have 2 tabcontrols, with 5-6 tabpages inside each tabcontrol, how does the slider knows, to which tabcontrol to bind? i don't get it.
i am creating the senseSlider dynamically. and this is my code...
senseSlider.Location = New System.Drawing.Point(0, 554) '504
'senseSlider.Dock = DockStyle.Bottom
senseSlider.Size = New System.Drawing.Size(480, 84)
senseSlider.BackColor = System.Drawing.Color.FromArgb(CInt(CByte((239))), CInt(CByte((235))), CInt(CByte((239))))
senseSlider.BorderBaseColor = System.Drawing.Color.FromArgb(CInt(CByte((235))), CInt(CByte((235))), CInt(CByte((235))))
senseSlider.DarkBaseColor = System.Drawing.Color.Silver
senseSlider.DarkSliderColor = System.Drawing.Color.FromArgb(CInt(CByte((35))), CInt(CByte((35))), CInt(CByte((35))))
senseSlider.HapticFeedback = True
senseSlider.IconSize = New System.Drawing.Size(72, 72) '56,56
senseSlider.IconSpacing = 25
senseSlider.LightSliderColor = System.Drawing.Color.Silver
senseSlider.UpdateValues()
'=====================
anything wrong there?
ok i have figured it out. it is the IconSize! if i use other png images with different dimensions than yours, then i get that error, no matter what. i don't get it. what is 56,56? because none of your icons are 56x56
yes but the corresponding tabpage of which tabcontrol?
if i have 2 tabcontrols, with 5-6 tabpages inside each tabcontrol, how does the slider knows, to which tabcontrol to bind? i don't get it.
Click to expand...
Click to collapse
The senseslider does not bind to a TabControl it only informs you that the SelectedIndex was changed. In the event handler for SelectedIndexChanged you decide what to do then. That is which TabControl to refresh. If you do nothing, nothing will happen. (In the sample I subscribed to the SelectedIndexChanged event and change the SelectedIndex of the TabControl to the SelectedIndex of the Slider by code).
ok i have figured it out. it is the IconSize! if i use other png images with different dimensions than yours, then i get that error, no matter what. i don't get it. what is 56,56? because none of your icons are 56x56
Click to expand...
Click to collapse
The IconSize only says how big the Icons are drawn. If they are smaller or bigger they will be stretched. I don't know why this does not work but
i will try to figure this out.
Very nice. I've been wanting to write something similar for an app that I want to write. You've just saved me a boatload of work! Thanx!
One issue that I saw though; when the app starts up, the ons screen keyboard icon is displayed over the slider. Opening and closing the keyboard hides the icon. Is there a way to have the application hide the keyboard icon on startup?
the slider must be able to DOCK = bottom.
if i have an app which rotates, then i can't use the height thing, in order to anchor.
and depending on the pda resolution the height will be different. and you have to consider that people want menu bar at the bottom, and not just the slider. so it is difficult to have this without dock = bottom.
thanks
TeDeV said:
the slider must be able to DOCK = bottom.
if i have an app which rotates, then i can't use the height thing, in order to anchor.
and depending on the pda resolution the height will be different. and you have to consider that people want menu bar at the bottom, and not just the slider. so it is difficult to have this without dock = bottom.
thanks
Click to expand...
Click to collapse
But that's a very simple thing to manually code, so not an issue. It would be good to not have to code it though, so docking would be nice.
Edit:
Actually, forget coding. Just anchor it in a panel that's docked to the bottom of your form.
cool. thx for you job.
Wow
Fantastic work - really looking forward to seeing this develop. It's so frustrating that HTC don't just release this stuff so that the developers here can make the phone shine compared to android and iphone - the standard winmo controls are so 1980s !
Cheers
Ian

Categories

Resources