html forms a desktop app

Xbase++ 2.0 Build 554 or later
Message
Author
bwolfsohn
Posts: 648
Joined: Thu Jan 28, 2010 7:07 am
Location: Alachua, Florida USA
Contact:

html forms a desktop app

#1 Post by bwolfsohn »

Has 2.0 progressed to where we can create html forms and use them instead of dialogs ?

I'm thinking of only a limited number of circumstances..

If 2.0 has not gotten there yet...

I remember something about scrollable dialogs.. Has anyone found that to be practical ????
Brian Wolfsohn
Retired and traveling around the country to music festivals in my RV.
OOPS.. Corona Virus, so NOT traveling right now...
http://www.breadmanrises.com
FB travel group: The Breadman Rises

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

Re: html forms a desktop app

#2 Post by rdonnay »

This is my next project.

Till Warweg says that a lot of it is completed, but not documented.
The eXpress train is coming - and it has more cars.

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

Re: html forms a desktop app

#3 Post by Auge_Ohr »

bwolfsohn wrote:Has 2.0 progressed to where we can create html forms and use them instead of dialogs ?
i do not think that you can create a Dialog-Windows with HTML ... you NEED a CreateWindow() as Top-Windows

Xbase++ v2.x can use HTMLayout*** to render XbParts with HTML Code instead of Presentation Parameter ( which does not exist in Windows )
*** http://www.terrainformatica.com/htmlayout/
bwolfsohn wrote:I remember something about scrollable dialogs.. Has anyone found that to be practical ????
this is "pure" Xbase++

Code: Select all

   oDlg := XbpDialog():new(AppDesktop(), ,{0,0},{x,y},,.F.)
   ...
   oDlg:drawingArea:scrollbars := XBP_SCROLLBAR_VERT
   oDlg:Create()
   // remenber Size
   aSize := oDlg:DrawingArea:currentsize()
   
   // this Static is bigger than aSize !!!
   oStatic := XbpStatic():new(oDlg:DrawingArea,,{0,0},{nWide, (nCount+1)*30 }  )
   oStatic:Create()

   // set XbpSLE on scrollable oStatic
   nStep := (nCount)*30
   FOR i := 1 TO nCount
      ...
      oSLE := XbpSLE():new(oStatic,,{50,nStep}, {nWide,26})
      ...
      nStep -= 30
   NEXT

   // NEED resize before Show
   oDlg:DrawingArea:SetSize( {aSize[1]+1,aSize[2]+1} )
   oDlg:Show()

   DO WHILE .NOT. lExit = .T.
      nEvent := AppEvent( @mp1, @mp2, @oXbp )
...
greetings by OHR
Jimmy

Cliff Wiernik
Posts: 605
Joined: Thu Jan 28, 2010 9:11 pm
Location: Steven Point, Wisconsin USA
Contact:

Re: html forms a desktop app

#4 Post by Cliff Wiernik »

Xdemo has a sample in samples page #4. It is somewhat jumpy in its scrolling. TopDown Library has a nice scrollarea sample. I moves in a screen of gets quite nicely. I have not used it though.

bwolfsohn
Posts: 648
Joined: Thu Jan 28, 2010 7:07 am
Location: Alachua, Florida USA
Contact:

Re: html forms a desktop app

#5 Post by bwolfsohn »

Cliff, ithanks.. i tried out sample 132. doesn't seem to be hiccupy but also doesn't seem to respond to any mouse events...

I'm thinking of trying it on a one-page single-activity set-up options process..

but the page would have to scroll...

once they finally integrate css into dialogs, we s/b able to go a long way towards having some of our web pages being used on the desktop...
Brian Wolfsohn
Retired and traveling around the country to music festivals in my RV.
OOPS.. Corona Virus, so NOT traveling right now...
http://www.breadmanrises.com
FB travel group: The Breadman Rises

Cliff Wiernik
Posts: 605
Joined: Thu Jan 28, 2010 9:11 pm
Location: Steven Point, Wisconsin USA
Contact:

Re: html forms a desktop app

#6 Post by Cliff Wiernik »

When I say hiccup, what I see if you get to the last get on the viewable page, the screen was not scrolling up automatically to show that get in the viewport. With the topdown demo that I have, it refreshes the view automatically which is smooth and not quirky.

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

Re: html forms a desktop app

#7 Post by rdonnay »

I remember something about scrollable dialogs.. Has anyone found that to be practical ????
This thread is discussing something other than HTML forms.
Now it's about scrollable dialogs.

What is it that you want?
The eXpress train is coming - and it has more cars.

bwolfsohn
Posts: 648
Joined: Thu Jan 28, 2010 7:07 am
Location: Alachua, Florida USA
Contact:

Re: html forms a desktop app

#8 Post by bwolfsohn »

what i WANT is html dialogs...

what i want to test in the interim is scrollable dialogs...

but, the 2 are not necessarily mutually exclusive...

in a browser, a long vertical form will scroll..
Brian Wolfsohn
Retired and traveling around the country to music festivals in my RV.
OOPS.. Corona Virus, so NOT traveling right now...
http://www.breadmanrises.com
FB travel group: The Breadman Rises

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

Re: html forms a desktop app

#9 Post by rdonnay »

I don't understand what it is that you are scrolling.
The eXpress train is coming - and it has more cars.

bwolfsohn
Posts: 648
Joined: Thu Jan 28, 2010 7:07 am
Location: Alachua, Florida USA
Contact:

Re: html forms a desktop app

#10 Post by bwolfsohn »

rdonnay wrote:I don't understand what it is that you are scrolling.
http://tsaco.cusauctions.com/?auction=1507&toa=register

if this was an xbase dialog that didn't fit in the vertical screen...

yes, i know i could re-arrange things so they could fit.. that's not the issue..

the issue is the ui being something "kids" are more familiar with.. they're familiar with scrolling up and down...
Brian Wolfsohn
Retired and traveling around the country to music festivals in my RV.
OOPS.. Corona Virus, so NOT traveling right now...
http://www.breadmanrises.com
FB travel group: The Breadman Rises

Post Reply