dcpushbuttonXP instead of cjShortCutBar

This forum is for eXpress++ general support.
Post Reply
Message
Author
skiman
Posts: 1185
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

dcpushbuttonXP instead of cjShortCutBar

#1 Post by skiman »

Hi,

After creating the new buttons, and some problems I had before with the cjShortcutbar I wanted to replace this. I made a pbstack some time ago, see exp19\samples\pbstack, but never used it in my application. That time I was looking at Codejock to find some nice additions.

Now, I created a shortcutbar completely with dcPushbuttonXP. The advantage is that I have all the control over it.

Here is a screenshot of it.
Attachments
shortcutbar.jpg
shortcutbar.jpg (139.56 KiB) Viewed 14330 times
Best regards,

Chris.
www.aboservice.be

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

Re: dcpushbuttonXP instead of cjShortCutBar

#2 Post by rdonnay »

Here is a video of an Outlook style menu created using DCTREEVIEW and DCPUSHBUTTONXP objects.

I wrote it object oriented so it can be used in apps like a class.

This was specially designed for a customer, but can be easily modified to satisfy anyone's needs.

I will post the code for anyone who is interested.

http://donnay-software.com:8080/bmsi/outlookbar.swf.
The eXpress train is coming - and it has more cars.

Wolfgang Ciriack
Posts: 479
Joined: Wed Jan 27, 2010 10:25 pm
Location: Berlin Germany

Re: dcpushbuttonXP instead of cjShortCutBar

#3 Post by Wolfgang Ciriack »

Hi Roger,
i am very interested, can you please post it to
ciriack_at_ciju.de
_______________________
Best Regards
Wolfgang

Zdeno Bielik
Posts: 147
Joined: Thu Jan 28, 2010 9:24 am
Location: Nitra, Slovakia
Contact:

Re: dcpushbuttonXP instead of cjShortCutBar

#4 Post by Zdeno Bielik »

Hi Roger,

I'm very interested too, please, can you post the source code?
Or will be this also included into next eXpress++ build?

Regards
Zdeno

skiman
Posts: 1185
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: dcpushbuttonXP instead of cjShortCutBar

#5 Post by skiman »

Hi Roger,

This is even better. I was planning to add a system to change the height of the bottom, and dynamically change the shown buttons. According to your demo, you already have it.

With the new buttonstyle, it will even look better, and will be almost identical to the Office look.

In attachment the modified button class, and a new buttpicker. I added a new gradientstyle (9) which I called Windows.

The best results are with the following parameters.
- Radius is either 5 or 0.
- Gradientstep is 1. (This will be changed dynamically according to the height of the button.)
- No shadow.

As color I have the following used to simulate the Office2007 colors.

Code: Select all

    oConfigLegacy:fgColorMouse := GraMakeRGBColor({0,0,0})
    oConfigLegacy:bgColorMouse := GraMakeRGBColor({245,215,100})
    oConfigLegacy:bgColorClick := GraMakeRGBColor({245,215,100})
    oConfigLegacy:bgColor := GraMakeRGBColor({185,209,239})
    oConfigLegacy:disabledfgcolor := GraMakeRGBColor({150,150,150})
    oConfigLegacy:disabledbgcolor := GraMakeRGBColor({215,215,215})
    oConfigLegacy:bordercolor :=  GraMakeRGBColor({83,123,173})
    oConfigLegacy:font := '8.Arial'
    oConfigLegacy:radius := 5
For the bottom buttons in the taskbar, I used the following colors:

Code: Select all

oConfigButtonsc:fgColorSelected := GraMakeRGBColor({0,0,0})
oConfigButtonsc:bgColorSelected := GraMakeRGBColor({240,170,65})
oConfigButtonsc:bordercolor := GraMakeRGBColor({115,151,198})
oConfigButtonsc:font := '9.Arial Bold'
oConfigButtonsc:fgColor := GraMakeRGBColor({0,102,204})
oConfigButtonsc:radius := 0
Hereby the _dcxbutt.prg and buttpicker.prg.
Attachments
buttons.zip
(24.76 KiB) Downloaded 712 times
Best regards,

Chris.
www.aboservice.be

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

Re: dcpushbuttonXP instead of cjShortCutBar

#6 Post by rdonnay »

Ok, here is the code for the test program.

This was designed to work with their existing databases to create the tree menu.

I will probably add this to the next eXpress++ release as a sample program, but will modify it so it can read an existing menu structure into the tree menu.

http://donnay-software.com:8080/bmsi/outlookbar.zip
The eXpress train is coming - and it has more cars.

c-tec
Posts: 379
Joined: Tue Apr 20, 2010 1:36 am
Location: SALZBURG/AUSTRIA
Contact:

Re: dcpushbuttonXP instead of cjShortCutBar

#7 Post by c-tec »

Hello,
looks great, I want also avoid to use Codejock if possible, would be great if it can get implemented it in eXPress++
regards
Rudolf
Rudolf Reinthaler
digital pen & paper systems
http://www.formcommander.net

skiman
Posts: 1185
Joined: Thu Jan 28, 2010 1:22 am
Location: Sijsele, Belgium
Contact:

Re: dcpushbuttonXP instead of cjShortCutBar

#8 Post by skiman »

Hi,

Rogers outlookbar with the new buttonstyle.

'Cash receipts' is the current selected color.
'Technical Support' is the mouse-over color.
Attachments
outlookbar.jpg
outlookbar.jpg (53.58 KiB) Viewed 14253 times
Best regards,

Chris.
www.aboservice.be

User avatar
digitsoft
Posts: 451
Joined: Thu Jan 28, 2010 1:33 pm
Location: Republica Dominicana
Contact:

Re: dcpushbuttonXP instead of cjShortCutBar

#9 Post by digitsoft »

Hi Roger
This example OutlookBar.zip has a bug, when you minimize and then maximize the window, the OutlookBar disappears

Nolberto Paulino
Regards
Nolberto Paulino
Regards

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

Re: dcpushbuttonXP instead of cjShortCutBar

#10 Post by rdonnay »

I will work on this when I get back home from vacation.
The eXpress train is coming - and it has more cars.

Post Reply