It is currently Sun Jan 24, 2021 7:16 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 161 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8 ... 11  Next
Author Message
 Post subject: Re: Users complain boring user interface of my apps
PostPosted: Tue Aug 07, 2018 5:05 pm 
Offline
Addict
Addict
User avatar

Joined: Mon Jun 06, 2005 2:35 pm
Posts: 1259
Location: germany
I really wish for a direct support for SCITER from PB team. As far as I can see there are a few challenges around events and handling (classes, structures and types etc). Maybe the PB team can offer some generic access options to SCITER so that we can focus on the GUI instead of implementing the API? Some sort of an alternative to the XMLDialog feature?

Or maybe someone familiar with such API's is able to create a SCITER module or include to focus on that? Cross platform of course ;-)


Top
 Profile  
Reply with quote  
 Post subject: Re: Users complain boring user interface of my apps
PostPosted: Tue Aug 07, 2018 5:44 pm 
Offline
User
User

Joined: Wed Apr 18, 2018 8:24 am
Posts: 98
Quote:
I really wish for a direct support for SCITER from PB team. As far as I can see there are a few challenges around events and handling (classes, structures and types etc). Maybe the PB team can offer some generic access options to SCITER so that we can focus on the GUI instead of implementing the API? Some sort of an alternative to the XMLDialog feature?

Or maybe someone familiar with such API's is able to create a SCITER module or include to focus on that? Cross platform of course


Yeah, that would really boost productivity regarding better looking GUIs... Hope someone with enough knowledge can jump in :D


Top
 Profile  
Reply with quote  
 Post subject: Re: Users complain boring user interface of my apps
PostPosted: Tue Aug 07, 2018 6:24 pm 
Offline
Addict
Addict

Joined: Thu Jun 07, 2007 3:25 pm
Posts: 3967
Location: Berlin, Germany
Kukulkan wrote:
I really wish for a direct support for SCITER from PB team. As far as I can see there are a few challenges around events and handling (classes, structures and types etc). Maybe the PB team can offer some generic access options to SCITER so that we can focus on the GUI instead of implementing the API? Some sort of an alternative to the XMLDialog feature?

Maybe this could be a feature which we can buy (if this is the proper word) via a bounty system, that has been discussed previously.

_________________
Please excuse my flawed English. My native language is PureBasic.
Search
RSBasic's backups


Top
 Profile  
Reply with quote  
 Post subject: Re: Users complain boring user interface of my apps
PostPosted: Tue Aug 07, 2018 7:10 pm 
Offline
Addict
Addict
User avatar

Joined: Tue Mar 02, 2004 1:20 pm
Posts: 1164
Location: Amphibios 9
Little John wrote:
Maybe this could be a feature which we can buy (if this is the proper word) via a bounty system, that has been discussed previously.

good idea! I'm in!

Greetings ... Peter

_________________
Hygge


Top
 Profile  
Reply with quote  
 Post subject: Re: Users complain boring user interface of my apps
PostPosted: Tue Aug 07, 2018 8:37 pm 
Offline
New User
New User

Joined: Sat Aug 04, 2018 11:50 pm
Posts: 6
Kukulkan wrote:
I really wish for a direct support for SCITER from PB team. As far as I can see there are a few challenges around events and handling (classes, structures and types etc). Maybe the PB team can offer some generic access options to SCITER so that we can focus on the GUI instead of implementing the API? Some sort of an alternative to the XMLDialog feature?


As a conceptual idea of simple PB integration:

0. To add function-convertors PBValueToSciterValue() and SciterValueToPBValue(). SciterValue (sciter::value) essentially is VARIANT in MS terms but closer to JSON - can hold arrays and name/value JSON maps.
1. To define pb function to create Sciter window :
Code:
CreateSciterWindow(..., callbacks)

2. To allow that callbacks mechanism to accept name/PB function map - these will be functions callable from UI script as
Code:
view.somePBFunc(...)
to get data from "PB business layer".
3. To add PB function
Code:
CallSciterFunction("name", params)
. This is for communication in opposite direction - from "PB business layer" side to UI.

#1 and #2 define UI<->backend "gate" so two layers (UI and backend) will be clearly separated.

I am not familiar with PB options in this respect but in C++ such simple integration looks like:

Code:
class frame: public sciter::window {
public:
  frame() : window(SW_TITLEBAR | SW_RESIZEABLE | SW_CONTROLS | SW_MAIN | SW_ENABLE_DEBUG) {}

  // native functions exposed to UI script as view.helloWorld() and  view.nativeApi()
  BEGIN_FUNCTION_MAP
    FUNCTION_0("helloWorld", helloWorld);
    FUNCTION_0("nativeApi", native_api);
  END_FUNCTION_MAP

  sciter::string  helloWorld() { return WSTR("Hello u-minimal World"); }

};

#include "resources.cpp"

int uimain(std::function<int()> run ) {

  sciter::archive::instance().open(aux::elements_of(resources)); // bind resources[] (defined in "resources.cpp") with the archive

  frame *pwin = new frame();

  // note: this:://app URL is dedicated to the sciter::archive content associated with the application

  pwin->load( WSTR("this://app/main.htm") );
  //pwin->load( WSTR("file:///home/andrew/Desktop/test.htm") );

  pwin->expand();

  return run();

}


Top
 Profile  
Reply with quote  
 Post subject: Re: Users complain boring user interface of my apps
PostPosted: Tue Aug 07, 2018 9:33 pm 
Offline
Addict
Addict
User avatar

Joined: Tue Mar 02, 2004 1:20 pm
Posts: 1164
Location: Amphibios 9
Hello Andrew,

thank you very much for your support! Now it's our turn.

Image

Greetings ... Peter

_________________
Hygge


Top
 Profile  
Reply with quote  
 Post subject: Re: Users complain boring user interface of my apps
PostPosted: Wed Aug 08, 2018 7:26 am 
Offline
Addict
Addict
User avatar

Joined: Mon Jun 06, 2005 2:35 pm
Posts: 1259
Location: germany
I definitely would be willing to spend some extra money on this!


Top
 Profile  
Reply with quote  
 Post subject: Re: Users complain boring user interface of my apps
PostPosted: Wed Aug 08, 2018 8:11 am 
Offline
User
User

Joined: Wed Apr 18, 2018 8:24 am
Posts: 98
Quote:
I definitely would be willing to spend some extra money on this!


Me too


Top
 Profile  
Reply with quote  
 Post subject: Re: Users complain boring user interface of my apps
PostPosted: Wed Aug 08, 2018 8:12 am 
Offline
Enthusiast
Enthusiast

Joined: Mon Apr 10, 2017 6:17 pm
Posts: 401
Location: Germany
Kukulkan wrote:
I definitely would be willing to spend some extra money on this!


+1

_________________
webpage


Top
 Profile  
Reply with quote  
 Post subject: Re: Users complain boring user interface of my apps
PostPosted: Wed Aug 08, 2018 8:57 am 
Offline
Enthusiast
Enthusiast

Joined: Fri Jun 06, 2003 2:41 pm
Posts: 181
Location: Belgium
Kukulkan wrote:
I definitely would be willing to spend some extra money on this!

Me too.

_________________

LuckyLuke


Top
 Profile  
Reply with quote  
 Post subject: Re: Users complain boring user interface of my apps
PostPosted: Wed Aug 08, 2018 9:14 am 
Offline
Addict
Addict
User avatar

Joined: Fri Sep 21, 2007 5:52 am
Posts: 3556
Location: New Zealand
I think sciter looks great but It could take 2 to 3 of weeks to import and wrap for PB, I'm kind of available
if anyone wants to sponsor it but I also looked at it doing it earlier and in the time that it would have taken
to import, wrap and test it, I was already serving html5 to the IE webgadget or the users web browser with
any Js framework, SSL, WebSockets and the added convenience of a server side PB html preprocessor
and very soon an integrated in memory DB. So yeah nah it's really tempting but it's a lot of work for a library
that's got a limited amount of utility which isn't free, but I'll happily import and wrap it for a fee.


Top
 Profile  
Reply with quote  
 Post subject: Re: Users complain boring user interface of my apps
PostPosted: Wed Aug 08, 2018 2:13 pm 
Offline
Addict
Addict
User avatar

Joined: Thu Jul 03, 2003 6:53 pm
Posts: 1333
Location: England
Have a look at Mousehole


Top
 Profile  
Reply with quote  
 Post subject: Re: Users complain boring user interface of my apps
PostPosted: Thu Aug 09, 2018 4:51 pm 
Offline
User
User

Joined: Wed Apr 18, 2018 8:24 am
Posts: 98
@idle

Can you explain what we'd get if you do it (for a fee)?
A cross-platform module that we can easily include and
which wraps the internals of sciter into easy to use functions
so that we can focus on GUI design and not prototypes, C library
stuff, etc.?

I really want to see this happening so if you can tell me
(either in public or via pm) how much do you want and
@all_others_who_are_interested:
Please write me a pm as well and how much you're willing
to pay.

I would collect the money afterwards and send it to idle
(either via bank transfer or paypal)... This is just an offer.
If a known user with a longer membership on this forum
wants to do this instead: You're welcome!

Number of people who already contacted me via pm (and an offer): 1

Regards,
forumuser


Top
 Profile  
Reply with quote  
 Post subject: Re: Users complain boring user interface of my apps
PostPosted: Thu Aug 09, 2018 7:12 pm 
Offline
Enthusiast
Enthusiast

Joined: Fri Apr 20, 2012 8:09 pm
Posts: 299
Sciter32.dll was mentioned on a couple of posts a few years ago.
It is free if you don't want any warranties or static linking.

privateamerica posted this test code modified from HanPBF post.


https://www.purebasic.fr/english/viewtopic.php?p=524960#p524960

it runs, just make sure you have a "test.html" with html, javascript code:
minimal.htm from sciter examples
Code:
<html>
  <head>
    <title></title>
    <style>
   
    html {
      background: radial-gradient(75% 75%, circle farthest-side, white, orange, rgb(0,0,204));
      //background: #f00;
      color:#fff;
    }
   
    html:rtl {
      mapping: left-to-right(background);
    }
   
   
    //body {
    //  size:*;
    //  overflow:auto;
    //}
   
    </style>
    <script type="text/tiscript">

/*   
      stdout.println("minimal demo started");
   
      $(#machine).text = Sciter.machineName();
     
      var counter = 0;
     
      $(button#append).on("click", function(){
     
        //var newElem = new Element("H1", (++counter).toString());
        //$(body).append( newElem );

        $(body).$append(<h1#test>{++counter }</h1>);
       
     
      });
     
      $(button#open).on("click", function(){
     
        var fn = view.selectFile(#open,
          "HTML Files (*.htm,*.html)|*.HTM;*.HTML|All Files (*.*)|*.*" , "html" );
     
      }); */

      event keydown (evt) {
        if( evt.keyCode == Event.VK_F5 ) {
          view.load( view.root.url() ); // reload it
        }
      }
     
      function self.ready() {
        var w = self.intrinsicWidthMax();
        var h = self.intrinsicHeight(w);
        view.move(100,100,w,h,true);
        view.connectToInspector(); // connect to inspector
      }
   
    </script>
  </head>
<body>

<h1>Minimal Sciter Application</h1>
<!--    <p>Running on <em #machine /> machine</p>
 
  <button #append>Append</button>
  <button #open>Open</button>
  <select>
    <option>First</option>
    <option>Second</option>
    <option>Third</option>
  </select> -->
 
  <input|text #first novalue="{text}">
  <input|password #second novalue="{password}">
 
  <p>test of generated image: <img src="in-memory:test"> </p>
  <p>Connects to inspector automatically, so inspector should be running.</p>
  <p>Press F5 to reload the document in window.</p>


</body>
</html>


BUT, at this point you will have to learn HTML and javascript to make it look nice.
You should take a look at JHPJHP "Embed JS into PureBasic"
https://www.purebasic.fr/english/viewtopic.php?p=473965#p473965
if you don't mind using javascript for your interface.
You could probably use Bootstrap and make your interface responsive.

Thank you.
Norm.

_________________
google Translate;Makes my jokes fall flat- Fait mes blagues tombent à plat- Machte meine Witze verpuffen- Eh cumpari ci vo sunari


Top
 Profile  
Reply with quote  
 Post subject: Re: Users complain boring user interface of my apps
PostPosted: Fri Aug 10, 2018 12:18 am 
Offline
Addict
Addict
User avatar

Joined: Fri Sep 21, 2007 5:52 am
Posts: 3556
Location: New Zealand
forumuser wrote:
@idle

Can you explain what we'd get if you do it (for a fee)?
A cross-platform module that we can easily include and
which wraps the internals of sciter into easy to use functions
so that we can focus on GUI design and not prototypes, C library
stuff, etc.?

I really want to see this happening so if you can tell me
(either in public or via pm) how much do you want and
@all_others_who_are_interested:
Please write me a pm as well and how much you're willing
to pay.

I would collect the money afterwards and send it to idle
(either via bank transfer or paypal)... This is just an offer.
If a known user with a longer membership on this forum
wants to do this instead: You're welcome!

Number of people who already contacted me via pm (and an offer): 1

Regards,
forumuser


Hi forumuser

I said it could take 2 to 3 weeks to do and at my cheapest rate of nzd $45 p/h
it's probably more than the community would be willing to pay. ~$2500 - 4000k
Would be a different story if I was going to use it myself, then I'd already have done it.

Fred has indicated that he's willing to look into Sciter so maybe add up what people are willing to pay
and ask Fred to do it instead.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 161 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7, 8 ... 11  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 14 guests


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:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye