Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

DW_FCF_VERTSCROLL

Help
tomdodge
2006-10-10
2013-04-11
  • tomdodge
    tomdodge
    2006-10-10

    Applying a window style of VERTSCROLL doesn't seem to work.  HORZSCROLL will create a scroll bar.  I'm running 1.1 of RexxDW, Object Rexx, and XP.

    Any hints?

    thanks,
    tom

     
    • Mark Hessling
      Mark Hessling
      2006-10-11

      Can you please post a small sample program that exhibits the incorrect behaviour?

       
      • tomdodge
        tomdodge
        2006-10-11

        /* test */

        Call RxFuncAdd 'DW_LoadFuncs', 'rexxdw', 'DW_LoadFuncs'
        Call dw_loadfuncs

        Call dw_init

        screenw=dw_screen_width()
        screenh=dw_screen_height()

        baseh=400
        basew=400
        global.style=!REXXDW.!DW_FCF_VERTSCROLL
        global.mainwindow = dw_window_new( !REXXDW.!DW_DESKTOP, 'test', global.style)

        mainbox = dw_box_new( !REXXDW.!DW_VERT )
        Call dw_box_pack_start global.mainwindow, mainbox, 0, 0, !REXXDW.!DW_EXPAND_HORZ, !REXXDW.!DW_EXPAND_VERT, 0

        Call dw_window_set_pos_size global.mainwindow, (screenw % 2) - (basew % 2), (screenh % 2) - (baseh % 2), basew, baseh
        Call dw_window_show global.mainwindow

        ....

        pretty simple stuff, just lifted it straight from the example.  it should create a box in the middle of the screen that has nothing in it.  If I replace VERTSCROLL with HORZSCROLL then the window created will have a horizontal scroll bar.  What am I missing?

        thanks,
        tom