Page 1 of 1
How can I get the row/col coordinate of the ADDBUTTONS
Posted: Sat Jun 30, 2018 6:12 pm
by unixkd
Hello Roger,
Is it possible to get the row/col coordinate of the ADDBUTTONS in the getList ? I would like to use codejock buttons instead of the standard express++ buttons of the express++
I tried @ DCGUI_ROW, DCGUI_COL DCACTIVEXCONTROL oButton --- it does not work as I want
Thanks
Joe
Re: How can I get the row/col coordinate of the ADDBUTTONS
Posted: Sat Jun 30, 2018 8:12 pm
by Auge_Ohr
unixkd wrote:I tried @ DCGUI_ROW, DCGUI_COL DCACTIVEXCONTROL oButton --- it does not work as I want
have a look in your Express++ \Samples\CODEJOCK\ Folder
Picture can be found \XCodeJock\SnapShots
for activeX you need CLSID
Code: Select all
CLSID 'Codejock.PushButton.12.0.1' ;
---
i did have Codejock Suite and i have used it for some Project.
i still use Codejock SkinFrameWork but all other Control now are replace with native Control.
all Codejock Components use activeX Interface which is much slower than XbParts or native Control.
just try to create 100 activeX Buttons and compare it with XbpPushbutton().
---
what are you missing

using Ownerdraw you can do a lot.
but if you want to change hole Design i recommend to change visual Style using Codejock SkinFrameWork.

- SKINS.JPG (20.97 KiB) Viewed 12908 times
you can make your own Theme and attach it to your Xbase++ App.
Re: How can I get the row/col coordinate of the ADDBUTTONS
Posted: Sun Jul 01, 2018 2:11 pm
by rdonnay
I suggest looking at \exp20\xcodejock\samples\shortcutbar\shortcutbar.prg
Re: How can I get the row/col coordinate of the ADDBUTTONS
Posted: Mon Jul 02, 2018 1:41 am
by unixkd
Hi Roger
May be my question was not clear. Let me restate it this way
when I have DCREAD GUI ---- ADDBUTTONS
I want the OK and CANCEL buttons to be codejock buttons. Is it possible ?
Thanks.
Re: How can I get the row/col coordinate of the ADDBUTTONS
Posted: Mon Jul 02, 2018 5:11 am
by Tom
Hi, Joe.
DCGETOPTIONS ... BUTTONS in combination with DCREAD ... BUTTONS allows standard buttons and DCPUSHBUTTONXP, but no Codejock buttons. Why do you want them?
If you really need CJ buttons, remove ADDBUTTONS from DCREAD and place the CJ buttons by yourself. The OK-action is "DC_ReadGuiEvent(DCGUI_EXIT_OK,GetList)", the action for abort is DC_ReadGuiEvent(DCGUI_EXIT_ABORT,GetList).
Re: How can I get the row/col coordinate of the ADDBUTTONS
Posted: Mon Jul 02, 2018 11:35 am
by unixkd
Hi Tom
DCREAD GUI ..... ADDBUTTONS automatically add buttons to the dialog without you specifying the row/col coordinate. This allow you to build dynamic dialogs that depends on variable data at runtime e.g.
For i := 1 TO LEN(aVar)
@ i, 5 DCSAY "Input Line "+Str(i) Get aVar
Next
DCREAD GUI ADDBUTTONS -----
Hope you understand what I want now
Joe
Re: How can I get the row/col coordinate of the ADDBUTTONS
Posted: Mon Jul 02, 2018 12:13 pm
by rdonnay
What you are asking for would require modifications to the eXpress++ source code.
I am not going to add support for CodeJock buttons to the ADDBUTTONS feature.
Instead, I recommend that you use the feature that allows you to use DCPUSHBUTTONXP buttons.
Look at the function: DC_ExpressButtonStyle().
Re: How can I get the row/col coordinate of the ADDBUTTONS
Posted: Mon Jul 02, 2018 2:33 pm
by unixkd
Thanks now you got me.