Mawdraw problem (easyptr4)

Anything QL Software or Programming Related.
User avatar
Giorgio Garabello
Trump Card
Posts: 207
Joined: Tue Jun 30, 2015 8:39 am
Location: Turin, ITaly
Contact:

Re: Mawdraw problem (easyptr4)

Postby Giorgio Garabello » Sun Apr 15, 2018 2:23 pm

BSJR wrote:
I'm trying to do something different, you print the string after clicking, I need to present a list in which each element is divided into several lines, to scroll through this list and eventually select an element

Giorgio

This is just a proof of concept. I have not tested what happens when a list needs to scroll up or down.
If it's a single column list you want, you could adopt what I do in SuQcess with Viewing a record with subfields.
The list can be scrolled (set the main window to a minimum) and each line is a field or a subfield and can be clicked on.
In a separate array I keep track of which field that line belongs to so the correct field is taken to act upon.

Bob


this is intetrsting... But how can i creste a subfield in suqcess in order to vuew this effect?


User avatar
BSJR
Chuggy Microdrive
Posts: 52
Joined: Sun Oct 18, 2015 12:53 pm
Location: Amsterdam
Contact:

Re: Mawdraw problem (easyptr4)

Postby BSJR » Mon Apr 16, 2018 10:43 am

Giorgio Garabello wrote:
BSJR wrote:
I'm trying to do something different, you print the string after clicking, I need to present a list in which each element is divided into several lines, to scroll through this list and eventually select an element

Giorgio

This is just a proof of concept. I have not tested what happens when a list needs to scroll up or down.
If it's a single column list you want, you could adopt what I do in SuQcess with Viewing a record with subfields.
The list can be scrolled (set the main window to a minimum) and each line is a field or a subfield and can be clicked on.
In a separate array I keep track of which field that line belongs to so the correct field is taken to act upon.

Bob


this is intetersting... But how can i create a subfield in suqcess in order to view this effect?

In a DBAS database a string field can be divided into subfields by the LF/CHR$(10) character.
While the normal text edit window in SuQcess does not directly support that, you can create this by inserting a CHR$(13) into the text.
Hit Shift+ENTER and the CR character will be visible as a stippled block that will be replaced by a LF in the database.
When you next edit this field it will probably be presented as a list in the edit window, hit space to select the subfield for editing.
In the F3-Command menu you can switch between String and Array editing. Check the Edit chapter from F1-Help.

Bob


User avatar
Giorgio Garabello
Trump Card
Posts: 207
Joined: Tue Jun 30, 2015 8:39 am
Location: Turin, ITaly
Contact:

Re: Mawdraw problem (easyptr4)

Postby Giorgio Garabello » Mon Apr 16, 2018 1:12 pm

BSJR wrote:
Giorgio Garabello wrote:
BSJR wrote:This is just a proof of concept. I have not tested what happens when a list needs to scroll up or down.
If it's a single column list you want, you could adopt what I do in SuQcess with Viewing a record with subfields.
The list can be scrolled (set the main window to a minimum) and each line is a field or a subfield and can be clicked on.
In a separate array I keep track of which field that line belongs to so the correct field is taken to act upon.

Bob


this is intetersting... But how can i create a subfield in suqcess in order to view this effect?

In a DBAS database a string field can be divided into subfields by the LF/CHR$(10) character.
While the normal text edit window in SuQcess does not directly support that, you can create this by inserting a CHR$(13) into the text.
Hit Shift+ENTER and the CR character will be visible as a stippled block that will be replaced by a LF in the database.
When you next edit this field it will probably be presented as a list in the edit window, hit space to select the subfield for editing.
In the F3-Command menu you can switch between String and Array editing. Check the Edit chapter from F1-Help.

Bob


OK! many thanks!



Return to “Software & Programming”

Who is online

Users browsing this forum: Bing [Bot] and 2 guests