Results 1 to 1 of 1
  1.    #1  
    Anyone familiar with resource hacking? I used "Resource Hacker" to re-size the many of the dialogue boxes in Calc98.exe, downloaded from www.calculator.org. It's a very excellent calculator that is stuffed full of info... the periodic table, for one.

    Attached is my most recent hack of Calc98 for the Treo 700w.

    I'm having problems scrolling the window of the Periodic Table popup.

    (to find this window, start the calc98.exe, then press K (constants), then choose Elements from the PopUp.

    I've added a scroll bar AND made the window scrollable.

    Neiter seem to work.

    Here's the original script (or something close to it)...
    Code:
    106 DIALOG 0, 0, 320, 110
    STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
    CAPTION "Periodic Table of the Elements"
    LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_UK
    FONT 8, "MS SANS SERIF"
    {
       CONTROL "OK", 1, BUTTON, BS_DEFPUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 247, 2, 30, 14 
       CONTROL "Cancel", 2, BUTTON, BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 278, 1, 30, 14 
       CONTROL "more-->", 1051, BUTTON, BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 106, 25, 30, 14 
       CONTROL "<--more", 1050, BUTTON, BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 213, 1, 30, 14 
       CONTROL "OK", 3, BUTTON, BS_DEFPUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 73, 25, 30, 14 
    }
    Here's the current script

    Code:
    106 DIALOG 0, 0, 320, 110
    STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_VSCROLL | WS_SYSMENU
    CAPTION "Periodic Table of the Elements"
    LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_UK
    FONT 8, "MS SANS SERIF"
    {
       CONTROL "OK", 1, BUTTON, BS_DEFPUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 247, 2, 30, 14 
       CONTROL "Cancel", 2, BUTTON, BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 278, 1, 30, 14 
       CONTROL "more-->", 1051, BUTTON, BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 106, 25, 30, 14 
       CONTROL "<--more", 1050, BUTTON, BS_PUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 213, 1, 30, 14 
       CONTROL "OK", 3, BUTTON, BS_DEFPUSHBUTTON | WS_CHILD | WS_VISIBLE | WS_TABSTOP, 73, 25, 30, 14 
       CONTROL "", 0, SCROLLBAR, SBS_VERT | WS_CHILD | WS_VISIBLE, 1, 1, 7, 108 
    }
    I'm new to resourse hacking and would appreciacte any assistance.

    Thanks,

    -- JDC
    Attached Files Attached Files
    Last edited by jdcochran; 02/17/2007 at 01:08 PM.

Posting Permissions