How can I get the row/col coordinate of the ADDBUTTONS

This forum is for eXpress++ general support.
Post Reply
Message
Author
User avatar
unixkd
Posts: 565
Joined: Thu Feb 11, 2010 1:39 pm

How can I get the row/col coordinate of the ADDBUTTONS

#1 Post 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

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

Re: How can I get the row/col coordinate of the ADDBUTTONS

#2 Post 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
SKINS.JPG (20.97 KiB) Viewed 11814 times
you can make your own Theme and attach it to your Xbase++ App.
greetings by OHR
Jimmy

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

Re: How can I get the row/col coordinate of the ADDBUTTONS

#3 Post by rdonnay »

I suggest looking at \exp20\xcodejock\samples\shortcutbar\shortcutbar.prg
The eXpress train is coming - and it has more cars.

User avatar
unixkd
Posts: 565
Joined: Thu Feb 11, 2010 1:39 pm

Re: How can I get the row/col coordinate of the ADDBUTTONS

#4 Post 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.

User avatar
Tom
Posts: 1169
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: How can I get the row/col coordinate of the ADDBUTTONS

#5 Post 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).
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

User avatar
unixkd
Posts: 565
Joined: Thu Feb 11, 2010 1:39 pm

Re: How can I get the row/col coordinate of the ADDBUTTONS

#6 Post 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

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

Re: How can I get the row/col coordinate of the ADDBUTTONS

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

User avatar
unixkd
Posts: 565
Joined: Thu Feb 11, 2010 1:39 pm

Re: How can I get the row/col coordinate of the ADDBUTTONS

#8 Post by unixkd »

Thanks now you got me.

Post Reply