PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

eVB Backlite Toggle

Can I edit the backlite's level of brightness through eVB? I'm making a program that requires part the screen to be at full brightness for some parts, and without the backlight at others
I am quite sure what you need is impossible, although there are a few toggle backlight apps, what they do is toggle the backlight for the whole screen.
thats what i meant, i just wasnt quite clear enough. i want the backlite to be on full when theyre at a certain part of the app and then when they go to a different menu, it turns the backlite off
that should be possible. just wait for the coder elite to answer, they'll know!
You can set the registry value HKEY_CURRENT_USER\ControlPanel\OnOff to 0 or 1 to toggle the backlight on or off. The problem is that my iPaq 3630 does not recognize the change in the registry unless I power the device off and then back on. You might try sending a WM_SETTINGCHANGE message to the desktop window, etc, to see if you can get the shell to recognize that the registry value has been changed.

Dan East
If you have a Compaq iPAQ, you might be in luck - there was a DLL in their developer area that could play with the backlight... I'll post the URL in a couple of hours when I get to work and dig it up.

How to do it in a "standard" manner is another question.
Found it.

Code:


CPQSetBrightness: BOOL CPQSetBrightness ( DWORD dwBrightnessLevel );

//Abstract: This function will set the brightness of the frontlight in the iPAQ device.


//Parameters: dwBrightnessLevel - A number (0-4) that specifies the brightness level.

//Returns: TRUE on success, FALSE otherwise.

//Example: #include "CPQUtil.h"

//Other Code

//Check to see if the backlight is off
if(CPQGetBrightness() == BL_POWER_SAVE)
{
CPQSetBrightness(BL_LOW_BRIGHT); //Set the brightness level to low
}


The function list is <a href="http://csa.compaq.com/iPAQ_CD_V2/SDK/CPQUTIL_INDEX.HTM#CPQSetAutoBrightness">here</a> and the bits and pieces can be downloaded <a href="http://csa.compaq.com/CSA_For_iPAQ_Developers_CD.shtml">here</a> (download the zips from the bottom of the page).

Cheers,

Refractor.
I knew they would know it! On another topic, refractor is a dead end now (404 posts).