Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Mon Sep 16, 2019 11:47 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: WebView-Based Listbox
PostPosted: Tue May 14, 2013 5:02 am 
Offline

Joined: Sun Jun 24, 2007 12:24 pm
Posts: 441
Location: Madrid
Hello.

Has anyone tried doing a listbox-like control in a webview inside a window? I was thinking about it to work around some limitations of the current listbox that I just can't deal with any more and for some uses I could replicate enough of what I need through HTML, CSS and JS.

Mostly, what I want to "fix" is the way the listbox scrolls. It sounds picky but I can't deal with whole-row scrolling any more. For some of the uses I'm having the (fake) scroll is jarring and distracting and when using a trackpad or a magic mouse it feels downright unnatural.

But I have never done this before. While I wouldn't have a problem with the rendering itself I wonder whether it's possible to catch metadata from the webview on clicks and doubleclicks (like rows and columns) or if there's no way to communicate between the webview and the application.

By the way: I have tried using a scrollable canvas, but have found that while this solves the vertical scroll problem it introduces a new problem where the scroll behaviour doesn't feel native to the platform (StyleGrid has this exact same problem with mousewheel scrolling, where a single quick wheel flick can have the listbox scrolling for a good 10 seconds).

_________________
----
http://eduo.info/
http://gallery.eduo.info/
http://twitter.com/eduo/


Top
 Profile  
Reply with quote  
 Post subject: Re: WebView-Based Listbox
PostPosted: Tue May 14, 2013 2:48 pm 
Offline
User avatar

Joined: Sun Aug 12, 2007 10:10 am
Posts: 1086
Location: Boiling Springs, SC
I'll finish up the jQuery web listbox and send you a copy :-)...

I tried making a custom listbox using a webcanvas but it was SLOW...unbearably...thus why I settled for jQuery to make a custom control....the javascripts create the visuals client-side, and data is transferred to the server..rather than the server creating the visual listbox, sending the image, react to the user driven-events (mouse-down, etc)..then recreate the new image, do the event associated with the received event..yes...webcanvas is a mess to use when creating 'visually intensive' custom web controls.

I've managed to convert almost all the jQuery UI controls to custom web controls...just waiting for Xojo to release on Jun 4th to make them public as an 'extra' gift with the new Developer's Code Library version.

_________________
Matthew A. Combatti
Real Studio 2012 r1.2

Visit Xojo Developer's Spot!
Systems I Use:
Windows XP/Windows Vista/Windows Server 2008 r2/Windows 7/Windows 8
Mac OSX 10.5/Mac OSX 10.6/Mac OSX Server/Ubuntu/Debian/Suse/Red Hat/
Windows Server 2011/CentOS 5.4 /ReactOS/SimOS

~All Xojo Compatible~


Top
 Profile  
Reply with quote  
 Post subject: Re: WebView-Based Listbox
PostPosted: Tue May 14, 2013 5:41 pm 
Offline

Joined: Sun Jun 24, 2007 12:24 pm
Posts: 441
Location: Madrid
simulanics wrote:
I'll finish up the jQuery web listbox and send you a copy :-)...


I'm not sure if we're talking about the same thing. I want the webviews to exist in a desktop application, not a web application.

_________________
----
http://eduo.info/
http://gallery.eduo.info/
http://twitter.com/eduo/


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group