Page 1 of 1

DC_GuiAlert

Posted: Sun Mar 17, 2019 1:37 am
by Wolfgang Ciriack
Hi Roger,
I like to change the Buttons in DC_GuiAlert to my special configured dcpushbuttonxp - buttons.
Can you please show me, how to change this in your function at line 2445 (_dcmenu2.prg):

Code: Select all

   FOR i:=1 TO imax
      aPushBtn[i] := XbpPushButtonEx():new( oDlg:drawingArea,, aPos, aPbSize )
I thougt of something like

Code: Select all

      aPushBtn[i] := DC_XbpPushButtonXP():new( oDlg:drawingArea,, aPos, aPbSize,,,, oBtnConf2 )
but this does not work.

Re: DC_GuiAlert

Posted: Mon Mar 18, 2019 9:36 am
by rdonnay
Wolfgang -

I haven't looked at that code in 20 years.

That's one of the first functions I wrote when first moving from Clipper.
I wrote it before I even wrote eXpress++.

I would not attempt to touch that old code.

I think it would be better to write one from scratch using DC* commands.

How do you use DC_GuiAlert() ?

Re: DC_GuiAlert

Posted: Mon Mar 18, 2019 11:43 am
by Wolfgang Ciriack
Hello Roger,
thanks for your offer, i think i will rewrite my function, that uses a copy from your dc_guialert.
If i have problems with that, i come back here.