WEB UI 2.0

Xbase++ 2.0 Build 554 or later
Post Reply
Message
Author
User avatar
unixkd
Posts: 565
Joined: Thu Feb 11, 2010 1:39 pm

WEB UI 2.0

#1 Post by unixkd »

Hi all,

Has anybody experience of web ui with probably samples and screen shorts ?

Thanks.

Joe

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

Re: WEB UI 2.0

#2 Post by rdonnay »

This is based on DC_XbpHtmlStyle().

I really haven't worked with this yet, but I will look at it this weekend and give me preliminary report.
The eXpress train is coming - and it has more cars.

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

Re: WEB UI 2.0

#3 Post by rdonnay »

Here is my first attempt trying to style a DCPUSHBUTTON. It doesn't seem to respect the "hover" correctly.
I think that XbpHtmlStyle() hasn't really been finished.
I am communicating with Alaska on this.

Code: Select all

#INCLUDE "dcdialog.CH"

#if XPPVER > 02000000
#Pragma Library("xppwui.lib")
#endif


FUNCTION Main()

LOCAL GetList[0], oStyle, cCSS

TEXT INTO cCSS WRAP
<style>
 div {
    text-align:center;
    height: 100%;
    vertical-align:middle;
    border: 1px goldenrod solid;
    font-size:16px;
 }
 #gradient-color {
    background-color:navajowhite gold khaki lemonchiffon;
 }
 #gradient-color:hover {
    background-color:lemonchiffon;
 }
 #gradient-color:active {
    background-color:navajowhite gold khaki lemonchiffon;
    border: 2px red solid;
 }
</style>
ENDTEXT

oStyle := XbpHTMLStyle():New( cCSS )

@ 0,0 DCPUSHBUTTON CAPTION '<div id="gradient-color">Button 2</div>' ;
      SIZE 30, 4 ;
      PREEVAL {|o|o:visualStyle := oStyle}

DCREAD GUI FIT TITLE 'Button Test'

RETURN nil

* ------------

PROC appsys ; RETURN
The eXpress train is coming - and it has more cars.

Post Reply