View Single Post
Old 10-13-2015, 10:46 AM   #6
brucelee
Addict
brucelee can program the VCR without an owner's manual.brucelee can program the VCR without an owner's manual.brucelee can program the VCR without an owner's manual.brucelee can program the VCR without an owner's manual.brucelee can program the VCR without an owner's manual.brucelee can program the VCR without an owner's manual.brucelee can program the VCR without an owner's manual.brucelee can program the VCR without an owner's manual.brucelee can program the VCR without an owner's manual.brucelee can program the VCR without an owner's manual.brucelee can program the VCR without an owner's manual.
 
Posts: 352
Karma: 188498
Join Date: Jan 2015
Location: Romania
Device: Kobo Aura One
Here's the code I used for that in CoolReader:

PHP Code:
bool systemPanelShown() {
    return 
GetPanelType()!=PANEL_DISABLED;
}
void hideSystemPanel(bool screenUpdate) {
    if( 
systemPanelShown() ) {
        
CRLog::trace("hideSystemPanel(): PANEL_DISABLED");
        
SetPanelType(PANEL_DISABLED);
        if( 
screenUpdate )
            
CRPocketBookWindowManager::instance->update(true);
    }
}
void showSystemPanel(bool screenUpdate) {
    if( !
systemPanelShown() ) {
        
CRLog::trace("showSystemPanel(): PANEL_ENABLED");
        
SetPanelType(PANEL_ENABLED);
        
DrawPanel(NULL""""0);
        if( 
screenUpdate )
            
PartialUpdate(00ScreenWidth(), ScreenHeight());
    }
}
void toggleSystemPanel(bool screenUpdate) {
    if( 
systemPanelShown() )
        
hideSystemPanel(screenUpdate);
    else
        
showSystemPanel(screenUpdate);
}
void toggleSystemPanel() {
    
toggleSystemPanel(true);

brucelee is offline   Reply With Quote