Slider question

This forum is for eXpress++ general support.
Message
Author
User avatar
Auge_Ohr
Posts: 1407
Joined: Wed Feb 24, 2010 3:44 pm

Re: Slider question

#41 Post 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 11399 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 679 times
greetings by OHR
Jimmy

User avatar
hz_scotty
Posts: 107
Joined: Thu Jan 28, 2010 8:20 am
Location: Wr.Neustadt / Österreich

Re: Slider question

#42 Post 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
best regards
Hans

User avatar
rdonnay
Site Admin
Posts: 4733
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Slider question

#43 Post by rdonnay »

lGETOPT_NO_UNDO undefined !
in _dxgetbx.prg line 615
Sorry, I forgot the latest DCDIALOG.CH.
Here it is.
Attachments
dcdialog.zip
(45.2 KiB) Downloaded 676 times
The eXpress train is coming - and it has more cars.

User avatar
hz_scotty
Posts: 107
Joined: Thu Jan 28, 2010 8:20 am
Location: Wr.Neustadt / Österreich

Re: Slider question

#44 Post 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?
best regards
Hans

User avatar
rdonnay
Site Admin
Posts: 4733
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Slider question

#45 Post 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.
The eXpress train is coming - and it has more cars.

User avatar
Auge_Ohr
Posts: 1407
Joined: Wed Feb 24, 2010 3:44 pm

Re: Slider question

#46 Post 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 11387 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 ...
greetings by OHR
Jimmy

User avatar
rdonnay
Site Admin
Posts: 4733
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Slider question

#47 Post 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.
The eXpress train is coming - and it has more cars.

User avatar
rdonnay
Site Admin
Posts: 4733
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Slider question

#48 Post 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.
The eXpress train is coming - and it has more cars.

User avatar
rdonnay
Site Admin
Posts: 4733
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Slider question

#49 Post 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>)]
The eXpress train is coming - and it has more cars.

User avatar
Auge_Ohr
Posts: 1407
Joined: Wed Feb 24, 2010 3:44 pm

Re: Slider question

#50 Post 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.
greetings by OHR
Jimmy

Post Reply