Page 1 of 3
html forms a desktop app
Posted: Wed Nov 18, 2015 4:06 am
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 ????
Re: html forms a desktop app
Posted: Wed Nov 18, 2015 5:41 am
by rdonnay
This is my next project.
Till Warweg says that a lot of it is completed, but not documented.
Re: html forms a desktop app
Posted: Wed Nov 18, 2015 12:48 pm
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 )
...
Re: html forms a desktop app
Posted: Wed Nov 18, 2015 1:39 pm
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.
Re: html forms a desktop app
Posted: Wed Nov 18, 2015 11:35 pm
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...
Re: html forms a desktop app
Posted: Thu Nov 19, 2015 9:08 am
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.
Re: html forms a desktop app
Posted: Thu Nov 19, 2015 9:29 am
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?
Re: html forms a desktop app
Posted: Thu Nov 19, 2015 9:49 am
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..
Re: html forms a desktop app
Posted: Thu Nov 19, 2015 10:52 am
by rdonnay
I don't understand what it is that you are scrolling.
Re: html forms a desktop app
Posted: Thu Nov 19, 2015 11:08 am
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...