Page 5 of 5

Re: Slider question

Posted: Sun Apr 17, 2016 3:38 am
by Auge_Ohr
i can confirm Error Msg with DCSLIDE.PRG
i found this Difference
DC_Slider_Resize.jpg
DC_Slider_Resize.jpg (224.82 KiB) Viewed 12343 times
my Code is RED.

resize do work now after add new Class FROM Dxe_Slider, DC_XbaseParts :dance:
this Result is with "original" DclipX.DLL / LIB
DCSLIDE_2.ZIP
DCSLIDE.PRG
EXE v1.9.355
(13.49 KiB) Downloaded 738 times

Re: Slider question

Posted: Sun Apr 17, 2016 4:49 am
by hz_scotty
may be, but the error comes from the new _dcgetbx.prg !
with the original (or last version off dclipx.dll) it's all ok

need to be fixed by Roger - i think

Re: Slider question

Posted: Sun Apr 17, 2016 7:16 am
by rdonnay
lGETOPT_NO_UNDO undefined !
in _dxgetbx.prg line 615
Sorry, I forgot the latest DCDIALOG.CH.
Here it is.

Re: Slider question

Posted: Sun Apr 17, 2016 7:52 am
by hz_scotty
thank you - fixed

in _dcgetbx.prg line 6216 (FUNCTION DC_GetOptDefault( aGetOptions, lExpress ))
should not be here the array element 96 also?

Re: Slider question

Posted: Sun Apr 17, 2016 7:59 am
by rdonnay
in _dcgetbx.prg line 6216 (FUNCTION DC_GetOptDefault( aGetOptions, lExpress ))
should not be here the array element 96 also?
It really isn't needed there.
It isn't something you would want to propagate thru the entire application.

I added this for an eXpress++ programmer who had a specific problem on a specific dialog.

Re: Slider question

Posted: Sun Apr 17, 2016 5:51 pm
by Auge_Ohr
hz_scotty wrote:may be, but the error comes from the new _dcgetbx.prg !
with the original (or last version off dclipx.dll) it's all ok
ok, got it.

my Question is different : why ( how ) does my old DCSLIDE.PRG work now with resize after only add

Code: Select all

CLASS DC_Slider FROM Dxe_Slider, DC_XbaseParts
with old/new DclipX.DLL / LIB ?

i understand Rogers Code ( green ), which need new DclipX Version, but my Code ( red ) now work with resize without change ?
DC_or_DXE.jpg
DC_or_DXE.jpg (140.07 KiB) Viewed 12331 times
Roger do call CLASS DC_Slider but i do not ... :think: ... how can my Syntax , which work with old / new DclipX, work without calling CLASS DC_Slider :?:

p.s. did someone have Problem under Win 10 to recompile DclipX ?
it does create DEF and LIB without Error but no DLL ... :o
when run Aimplib.EXE manual it say some files are missing ...

Re: Slider question

Posted: Sun Apr 17, 2016 6:55 pm
by rdonnay
i understand Rogers Code ( green ), which need new DclipX Version, but my Code ( red ) now work with resize without change ?
That's interesting.
I will have to look at my code again to see why.

Re: Slider question

Posted: Wed Apr 20, 2016 6:34 am
by rdonnay
i understand Rogers Code ( green ), which need new DclipX Version, but my Code ( red ) now work with resize without change ?
After looking again at my code, I see that there is no reason to require inheriting from DC_XbaseParts() when doing simple resizing. That requirement is only there when needing advanced features such as drag and drop, when and hide code blocks, font scaling, noivar support, and designer features.

Re: Slider question

Posted: Sat Apr 23, 2016 11:00 am
by rdonnay
Jimmy -

I told you that I would work on simplifying the process of creating your own command sets.

Here is a replacement for your DCSLIDE.CH.

It inherits all the command parameters of @ .. DCCUSTOM, therefore you only need to add the parameters that are unique to your class.

Code: Select all

#include "dcdialog.ch"

#xcommand @ <row>, <col> DCSLIDE [<clauses,...>] ;
                [ORIENTATION <orient>]                                      ;
                [RANGE <r1>, <r2>]                                          ;
                [FREQUENCY <freq>]                                          ;
                [BUDDYSPACE <buds>]                                         ;
                [BUDDYLEFT <budl>]                                          ;
                [BUDDYRIGHT <budr>]                                         ;
                [COLORCHANNEL <colorc>]                                     ;
                [COLORTHUMB <colort>]                                       ;
                [COLORSCOPE <colors>]                                       ;
                [THUMBLENGTH <thumb>]                                       ;
                [TRACK <bTrack>]                                            ;
                [<tb:TICKBOTH>]                                             ;
                [PAINTSTYLE <style>]                                        ;
                [SCOPE <scope1>, <scope2>]                                  ;
                [RESTYPE <cResType>]                                        ;
                [RESFILE <cResFile>]                                        ;
                [ICOTHUMB  <iThumb>]                                        ;
                [ICOMARKER <iMarker>]                                       ;
                [ICOIMAGE  <iImage>]                                        ;
 => ;
  @ <row>, <col> DCCUSTOM {|a|DC_DxeSlide(a)} [<clauses>]                   ;
       ;DC_GetListSet(DCGUI_GETLIST,xGETLIST_OPTIONS,                       ;
         {<orient>,<r1>,<r2>,<freq>,<buds>,<budl>,<budr>,<thumb>,<style>,   ;
          <.tb.>,<iThumb>,<iMarker>,<iImage> } )                            ;
      [;DC_GetListSet(DCGUI_GETLIST,xGETLIST_OPTIONS2,{<scope1>,<scope2>})] ;
      [;DC_GetListSet(DCGUI_GETLIST,xGETLIST_OPTIONS3,{<cResType>,<cResFile>})] ;
      [;DC_GetListSet(DCGUI_GETLIST,aGETLIST_COLOR,{<colorc>,<colort>,<colors>})] ;
      [;DC_GetListSet(DCGUI_GETLIST,bGETLIST_ACTION,<bTrack>)]

Re: Slider question

Posted: Sat Apr 23, 2016 12:34 pm
by Auge_Ohr
rdonnay wrote:... therefore you only need to add the parameters that are unique to your class.
THX, that looks more easy to learn Express++ Syntax.