thanks bill, I tried this and it works well.

On Wed, Oct 28, 2015 at 10:42 PM, bill lam <[email protected]> wrote:
> a jandroid verison.
>
> Ср, 28 окт 2015, Joe Bogner написал(а):
>> It works fine for me on jqt on android (not jandroid)
>>
>> I've updated the wiki article with android screenshots.
>>
>> I executed it by:
>> 1.  Copying the code from the wiki article using chrome on android
>> 2.  Opening jqt on android and using the Run->Clipboard menu
>>
>>
>> http://code.jsoftware.com/wiki/File:Android-layout.png
>> http://code.jsoftware.com/wiki/File:Android-layout-landscape.png
>>
>>
>>
>> sidebar: on jandroid I am trying to load from a file (since run from
>> clipboard is not available) and receive this error:
>> |pc : pc requires a new activity
>> : wd
>> | (LF,~wd :: (''"_)'qer') (13!:8)
>>
>>
>> On Wed, Oct 28, 2015 at 5:29 AM, Björn Helgason <[email protected]> wrote:
>> > looks like this:
>> >
>> > idUI =: 0 addUI =: 3 : 0 if. 2=(#y) do. 'type text' =. y end. if. 3=(#y)
>> > do. 'type text cellwh' =. y end. id =. 'ux', ": idUI NB. grid cell can't be
>> > called in razed grid NB. wd 'grid cell ', pos NB. maxwh needs to be called
>> > before cc but on the cell if. 3=(#y) do. wd cellwh end. wd 'cc ', id , '
>> > ',type if. (#text) > 0 do. wd 'set ', id , ' text ', text end. idUI=:idUI+1
>> > id ) NB. ========================================================= grid=:
>> > 3 : 0 wd 'pc grid' wd 'grid size 3 3' NB. optional to show how columns
>> > widths can be specified wd 'grid colwidth 0 100' wd 'grid colwidth 2 100'
>> > addUI 'static';'Cmd 1' addUI 'edit';'Grid/Bin Layout' addUI 'button';'Run
>> > Cmd 1' addUI 'static';'Cmd 2' addUI 'edit';'' addUI 'button';'Run Cmd 2'
>> > NB. need to end previous grid and start a vertical bin wd 'bin zv' addUI
>> > 'static';'Output 1' addUI 'editm';'Output 1';'maxwh 1000 75' addUI
>> > 'static';'Output 2' addUI 'editm';'Output 2';'maxwh 1000 75' NB. stop
>> > previous vertical bin and create new vertical grid wd 'bin zvg' wd 'grid
>> > size 3 3' wd 'grid colwidth 0 100' wd 'grid colwidth 2 100' addUI
>> > 'static';'Plot Cmd 1' addUI 'edit';'' addUI 'button';'Run Cmd 1' addUI
>> > 'static';'Plot Cmd 2' addUI 'edit';'' addUI 'button';'Run Cmd 2' NB. need
>> > to end previous grid and start a vertical bin wd 'bin zv' addUI
>> > 'isigraph';'';'minwh 500 100' addUI 'isigraph';'';'minwh 500 100' wd
>> > 'pshow' ) NB. =========================================================
>> > grid_close=: 3 : 0 wd 'pclose' ) NB.
>> > ========================================================= grid''
>> > On 27 Oct 2015 20:11, [email protected] wrote:
>> >
>> > tried to copy the two examples on an android.
>> > the result was one long line each.
>> > copied from chrome to J file.
>> >
>> > can not look at this closer until later.
>> > On 27 Oct 2015 13:56, "Joe Bogner" <[email protected]> wrote:
>> >
>> > I also found it somewhat difficult to understand at first. I put a few
>> > hours into reading the documentation and playing and wrote a brief
>> > essay on it: http://code.jsoftware.com/wiki/User:Joe_Bogner/QtLayout .
>> > Does this help answer some of your questions?
>> >
>> >
>> >
>> > On Tue, Oct 27, 2015 at 5:10 AM, Björn Helgason <[email protected]> wrote:
>> >> When I put several objects on a form I have difficulty placing them whetre
>> >> I want.
>> >> When I have it close to what I want and want to put in more fields
>> >> everything can easily float into something that becomes a complete mess.
>> >> I am sure it possibly stays fixed once like it should be.
>> >> Getting the look I want has not been easy.
>> >> Sizes of fields difficult to change.
>> >> Simple things are possibly simple but combining stuff like plots, several
>> >> static output and inputs as well as buttons are not at all easy.
>> >> On 26 Oct 2015 23:01, "bill lam" <[email protected]> wrote:
>> >>
>> >>> On the contrary,  qt  keeps fields in their right places regardless of
>> >>> screen size and screen orientation.
>> >>>
>> >>> I think that vb6 style form editor using absolute pixel positions had
>> > been
>> >>> deprecated in most  modern gui system, not limiting to qt.
>> >>>
>> >>> Hypothetically, one can still control the exact position of placement
>> >>> within a window, eg using css in webpages, but it is incompatible with
>> >>> automatic layout of most gui systems. IMO it is better to use old gui
>> >>> system such j6 or vb6 rather than emulating using newer gui systems if
>> >>> absolute pixel xy position is what you wanted.
>> >>> On Oct 27, 2015 5:02 AM, "Björn Helgason" <[email protected]> wrote:
>> >>>
>> >>> > looks ok.
>> >>> >
>> >>> > better still have the different fields not just left positioned.
>> >>> > the real problem in qt that they float around.
>> >>> >
>> >>> > I created something like this often in j6.
>> >>> > There are two example in wiki (or used to be) for this in j6.
>> >>> >
>> >>> > Should be (probably is) possible in jhs.
>> >>> > I have not done the plot parts there.
>> >>> >
>> >>> > In qt it is difficult to get the fields to stay in the right place.
>> >>> > On 26 Oct 2015 20:38, "Joe Bogner" <[email protected]> wrote:
>> >>> >
>> >>> > > Björn,
>> >>> > >
>> >>> > > Your requested interface is unclear to me
>> >>> > >
>> >>> > > You wrote:
>> >>> > >
>> >>> > > Two buttons each executing one of two lines of input.
>> >>> > > Output in one of two multi line fields.
>> >>> > > Other two buttons taking input and displaying plot in one of two
>> >>> fields.
>> >>> > >
>> >>> > > I'm interpreting this as:
>> >>> > >
>> >>> > >
>> >>> > >
>> >>> > > Cmd 1: _____________ [Button 1]
>> >>> > > Cmd 2 : _____________ [Button 2]
>> >>> > >
>> >>> > > Output 1:
>> >>> > > __________
>> >>> > > __________
>> >>> > >
>> >>> > > Output 2:
>> >>> > > __________
>> >>> > > __________
>> >>> > >
>> >>> > >
>> >>> > > Plot Cmd 1: ___________ [Plot Button 1]
>> >>> > > Plot Cmd 2: ___________ [Plot Button 2]
>> >>> > >
>> >>> > > +-------------------------------+
>> >>> > > |                                |
>> >>> > > |           PLOT 1          |
>> >>> > > |                                |
>> >>> > > +-------------------------------+
>> >>> > >
>> >>> > > +-------------------------------+
>> >>> > > |                                |
>> >>> > > |           PLOT 2          |
>> >>> > > |                                |
>> >>> > > +-------------------------------+
>> >>> > >
>> >>> > >
>> >>> > > Is this what you had in mind? If not, can you specify more clearly or
>> >>> > > ideally even create it in j6 since you say it is easy.
>> >>> > >
>> >>> > > I would be willing to try and create examples for jhs and jqt
>> >>> > >
>> >>> > > On Mon, Oct 26, 2015 at 3:50 PM, Björn Helgason <[email protected]>
>> >>> > wrote:
>> >>> > > > The gui part of an applications is very important.
>> >>> > > > I liked the form editor in J6 and miss it.
>> >>> > > > I looked forward to the new features that came with new guis and
>> >>> > > > possibilities.
>> >>> > > > The JHS is magnificient but the gui is not that easy to use.
>> >>> > > > The demos are interesting but not great.
>> >>> > > > The plot demo is totally useless and worse than none.
>> >>> > > > The others are too simple and too complex at the same time.
>> >>> > > > I am sure it is possible to do a demo like the one I want.
>> >>> > > > Nobody is doing one.
>> >>> > > > A lab describing it too is needed.
>> >>> > > > Nobody is doing one.
>> >>> > > > Because of this lack of demos and labs not many people do use it.
>> >>> > > > I have been meaning to for some time but never given it enough
>> > time.
>> >>> > > > For most people it is too difficult but for people like Eric it
>> > would
>> >>> > be
>> >>> > > > easy but he does not do one either as far as I know.
>> >>> > > > Combining the demos more or less into one.
>> >>> > > > I managed it partly and am sure it is possible.
>> >>> > > > Having problems with two plots together with the rest is what I
>> > need
>> >>> > time
>> >>> > > > for.
>> >>> > > > A workig plot demo preferably two plot demo with help texts.
>> >>> > > > Combinig them all in one with two working plots is what I want.
>> >>> > > > Explaing how it works is what I really want and I am sure I am not
>> >>> > alone.
>> >>> > > > A lab explaining it is what is missing.
>> >>> > > > I guess something like the form editor from J6 is too much to wish
>> >>> for.
>> >>> > > >
>> >>> > > > I am pretty sure noone could do one in qt nor android.
>> >>> > > >
>> >>> > > > I actually did try that but became convinced it is not possible.
>> >>> > > > Came close to do it partially but no cigar.
>> >>> > > > The demos are not easy to read and do not come close in beeing
>> >>> helpful.
>> >>> > > > Actually more confusing than helpful.
>> >>> > > > I am very disappointed in qt and do not see it becoming anything
>> >>> > useful.
>> >>> > > > I am sure it is good for someone and something.
>> >>> > > > I am just not happy with it.
>> >>> > > > On 24 Oct 2015 18:23, "Björn Helgason" <[email protected]> wrote:
>> >>> > > >
>> >>> > > >> It would be good to have a simple demo easy to create and use.
>> >>> > > >>
>> >>> > > >> One for android and another for jhs.
>> >>> > > >>
>> >>> > > >> The application should look the same in both.
>> >>> > > >>
>> >>> > > >> Two buttons each executing one of two lines of input.
>> >>> > > >>
>> >>> > > >> Output in one of two multi line fields.
>> >>> > > >>
>> >>> > > >> Other two buttons taking input and displaying plot in one of two
>> >>> > fields.
>> >>> > > >>
>> >>> > > >> Very simple instructions on how to create these demos.
>> >>> > > >>
>> >>> > > >> No fancy hidden cute execution.
>> >>> > > >>
>> >>> > > >> Step by step description what each line is doing and why.
>> >>> > > >>
>> >>> > > >> The placement of each field, plots and buttons should be easy to
>> >>> place
>> >>> > > >> anywhere on the screen.
>> >>> > > >>
>> >>> > > >> This may not sound difficult for experienced user but for new user
>> >>> > this
>> >>> > > is
>> >>> > > >> really difficult or impossible but should not be.
>> >>> > > >>
>> >>> > > >> Some existings demos do parts of this but are mostly too difficult
>> >>> to
>> >>> > > >> understand.
>> >>> > > >>
>> >>> > > >> In J6 this used to be easy to do in J8 it is not.
>> >>> > > >>
>> >>> > > >
>> >>> ----------------------------------------------------------------------
>> >>> > > > For information about J forums see
>> >>> http://www.jsoftware.com/forums.htm
>> >>> > >
>> > ----------------------------------------------------------------------
>> >>> > > For information about J forums see
>> > http://www.jsoftware.com/forums.htm
>> >>> > ----------------------------------------------------------------------
>> >>> > For information about J forums see http://www.jsoftware.com/forums.htm
>> >>> ----------------------------------------------------------------------
>> >>> For information about J forums see http://www.jsoftware.com/forums.htm
>> >> ----------------------------------------------------------------------
>> >> For information about J forums see http://www.jsoftware.com/forums.htm
>> > ----------------------------------------------------------------------
>> > For information about J forums see http://www.jsoftware.com/forums.htm
>> > ----------------------------------------------------------------------
>> > For information about J forums see http://www.jsoftware.com/forums.htm
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
>
> --
> regards,
> ====================================================
> GPG key 1024D/4434BAB3 2008-08-24
> gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
> gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to